securefs icon indicating copy to clipboard operation
securefs copied to clipboard

Xattrs do not work

Open peesock opened this issue 1 year ago • 4 comments

I can't get xattrs to work, either with overlayfs which uses xattrs to track filesystem changes, or directly with getfattr:

$ cd mount
$ touch file
$ getfattr file
getfattr: file: Operation not supported

Tested with lite and full formats with default parameters, under both btrfs and tmpfs backing filesystems. --trace doesn't log anything when using getfattr.

peesock avatar Sep 06 '24 06:09 peesock

Currently securefs only supports xattr on macOS, due to the extensive usage of xattr on this OS. Are you trying on Linux?

If you have serious needs for xattr on Linux, rather than just toy with it, please let me know. I'll implement it in the following versions.

netheril96 avatar Sep 08 '24 13:09 netheril96

Yes I'm on linux, I thought the docs meant macOS has special handling of xattrs, not that only macOS supported them, sorry.

My use is to mount compressed read-only filesystems and add a writable layer with overlayfs, which requires xattrs to track things like deleted files.

For now, i'm migrating those parts of my securefs mount to gocryptfs, as they aren't very fingerprintable and thus don't need the extra security. Thanks for considering support!

peesock avatar Sep 08 '24 20:09 peesock

So the layering is securefs/gocryptfs ➡️compressed readonly filesystem➡️overlayfs?

netheril96 avatar Sep 09 '24 02:09 netheril96

Yes

peesock avatar Sep 09 '24 02:09 peesock

Fixed in https://github.com/netheril96/securefs/releases/tag/v1.1.0

netheril96 avatar Apr 27 '25 07:04 netheril96