3 ms·
TIL about ACLs! I think that would nicely solve the group permission issue.
by MontyCarloHall 1y ago
TIL about ACLs! I think that would nicely solve the group permission issue.
- technothrasher 1y agoThe final project for my senior year filesystems class thirty years ago was to implement ACLs on top of a SunOS 4 filesystem. That was a fun project.
- johnisgood 1y agoWrite up? Code? :D
- thebeardisred 1y agoThen let me also introduce you to extended attributes, aka xattrs. That's how the data for SELinux is stored.
- westurner 1y agoThere is no support for writing multiple xattrs in one transaction. There is no support for writing multiple xattrs and file contents in one transaction. Journaled filesystems that immediately flush xattrs to the journal do have atomic writes of single xattrs; so you'd need to stuff all data in one xattr value and serialize/deserialize (with e.g JSON, or potentially Arrow IPC with Feather ~mmap'd from xattrs (edit: but getxattr() doesn't support mmap. And xattr storage limits: EXT4: 4K, XFS: 64k, BTRFS: 16K) Atomicity (database systems) https://en.wikipedia.org/wiki/Atomicity_(database_systems) https://en.wikipedia.org/wiki/Atomicity_(database_systems)