8 ms·
As for the permissions, using ACLs would work better here. Then you don't need a separate group for every grouping.
by Wicher 11mo ago
As for the permissions, using ACLs would work better here. Then you don't need a separate group for every grouping.
- MontyCarloHall 11mo agoTIL about ACLs! I think that would nicely solve the group permission issue.
- technothrasher 11mo 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 11mo agoWrite up? Code? :D
- thebeardisred 11mo agoThen let me also introduce you to extended attributes, aka xattrs. That's how the data for SELinux is stored.
- westurner 11mo 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)