-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
'applyto' fails on Rocky 8 with "Invalid argument" since an ACL with named user/group doesn't have a mask ACE #26
Comments
I'm not sure what the bug report is about. As you say, if there are user/group entries, a mask is needed, and you didn't pass it. Either pass an explicit mask manually, or use the
The reason why the mask is not automatically applied is to keep parity with the C library, and allow customisation of the mask. |
Thanks for the quick response. This may break, e.g., existing apps that transition from CentOS 7 to Rocky 8. Perhaps we can implicitly set the mask if the ACL doesn't have one and yet it needs one? |
Hmm, are you sure this is a regression? The code here, and in the Linux kernel, hasn't changed in a long time, I believe. |
From what I saw, CentOS 7 doesn't call CentOS 7 -
|
So I haven't ever seen, on XFS at least, applying an ACL with an invalid mask to pass. Just to confirm - can you tell me which filesystem you're using in both cases, and which are the kernel versions? |
I'm using NFSv3 filesystem and the kernel versions are mentioned in my previous comment.
|
NFS, I'm not surprised then. But those versions are package versions, not actual kernel versions. Can you tell me the output of |
it's the same. please see it in my original post. |
Wait, you're actually talking about 3.x and 4.x kernels? From many many years ago? Please try to confirm behaviour on a modern (6.x) kernel. Honestly, I'm not inclined to handle upgrades from kernel 3.x, since that's ancient. |
Issue
According to
posix_acl_valid
in the Linux kernel, a mask entry is needed if there are any user or group entries.posix_acl_valid
referencehttps://github.com/kernelim/linux/blob/linux-4.18.0-553.30.1.el8_10.tar.xz/fs/posix_acl.c#L209
Reproduction
The text was updated successfully, but these errors were encountered: