Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xattrs do not work #188

Open
peesock opened this issue Sep 6, 2024 · 4 comments
Open

Xattrs do not work #188

peesock opened this issue Sep 6, 2024 · 4 comments

Comments

@peesock
Copy link

peesock commented Sep 6, 2024

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.

@netheril96
Copy link
Owner

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.

@peesock
Copy link
Author

peesock commented Sep 8, 2024

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!

@netheril96
Copy link
Owner

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

@peesock
Copy link
Author

peesock commented Sep 9, 2024

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants