attic icon indicating copy to clipboard operation
attic copied to clipboard

ACLs do not work when using attic mount

Open evoltek opened this issue 10 years ago • 3 comments

ACLs are not available when using attic mount, only normal Unix permissions are seen. Using attic extract there's no problem, the ACLs are restored correctly.

Tested with Attic 0.14, ACLs retrieved with getfacl.

evoltek avatar Apr 03 '15 06:04 evoltek

Related: http://users.suse.com/~agruen/acl/linux-acls/online/

llfuse supports xattr, but I didn't see special acl stuff. it is unclear whether ACLs can be made working with FUSE and what the best way to do that would be - esp. when considering potential platform differences.

Here's a NON-WORKING patch based on master, in case someone wants to debug / fix it or use it as starting point for own work: https://paste.thinkmo.de/2jJuLTcY#fuse-acl.diff

The patched code tried to get ACLs in a fuse mount working by putting the binary ACL representation into the xattrs.

ThomasWaldmann avatar Apr 04 '15 06:04 ThomasWaldmann

I guess it would work if the return value of fuse.getxattr for system.posix_acl_* was in the format expected by the caller.

attic has a text representation of the acl stored in the item, which can be transformed into an acl object easily. but: AFAIK, there is no public api call that transforms such an acl object into the required format.

What I found is the following code, but being a leading-double-underscore named function, it doesn't look like it's expected to be used from other code:

http://git.savannah.gnu.org/cgit/acl.git/tree/libacl/__acl_to_xattr.c#n31

ThomasWaldmann avatar May 06 '16 12:05 ThomasWaldmann

https://bitbucket.org/nikratio/python-llfuse/issues/92/how-to-implement-acl-support-using-llfuse

ThomasWaldmann avatar May 06 '16 12:05 ThomasWaldmann