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

Fixes for Linux 4.9 #4

Open
wants to merge 2 commits into
base: aufs4.x-rcN
Choose a base branch
from
Open

Conversation

sforshee
Copy link

@sforshee sforshee commented Dec 7, 2016

Two fixes for FTBFS issues with Linux 4.9.

The first problem is that the {get,set,remove}xattr inode operations have been remove, and filesystems must now use xattr handlers. There's already a partial implementation to use xattr handlers commented out in the source, so that implementation is completed and used instead of the unsupported callbacks.

The second issue is that the rename inode operation was replaced by the rename2 op, so aufs_rename needs an extra "flags" argument. Since aufs doesn't support the operations specified by the flags yet, it should return an error if the flags are non-zero.

Seth Forshee added 2 commits December 7, 2016 14:16
Starting with Linux 4.9-rc1 the {get,set,remove}xattr inode
operations have been removed, and filesystems are required to use
xattr handlers instead. There's some partially implemented xattr
handlers commented out in aufs already. Finish those handlers and
convert aufs over to use them.

Signed-off-by: Seth Forshee <[email protected]>
Starting with Linux 4.9-rc1 the rename2 inode operation has
replaced the rename op, so filesystem rename implementations
require an extra flags argument. Add the argument to fix the
FTBFS with Linux 4.9, but since aufs doesn't support any of the
flags return an error if it is non-zero.

Signed-off-by: Seth Forshee <[email protected]>
@sfjro
Copy link
Owner

sfjro commented Dec 8, 2016 via email

@sforshee
Copy link
Author

sforshee commented Dec 8, 2016

I don't see a tarball. Did you forget to attach it?

@sfjro
Copy link
Owner

sfjro commented Dec 8, 2016 via email

@sforshee
Copy link
Author

sforshee commented Dec 9, 2016

Your changes are obviously more complete, especially in supporting the rename flags. I only made a minimal effort to fix the build error.

I'd personally be a little hesitant to use vfs_setxattr() instead of vfs_removexattr() on remove because the call a different set of security hooks. However it looks like userspace can call setxattr(2) that way to remove xattrs, so I guess it's probably okay.

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

Successfully merging this pull request may close these issues.

2 participants