[LU-9155] number of args changed in posix_acl_valid Created: 24/Feb/17 Updated: 24/Feb/17 Resolved: 24/Feb/17 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Bob Glossman (Inactive) | Assignee: | Bob Glossman (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Severity: | 3 | ||||||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||||||
| Description |
|
The kernel API posix_acl_valid called by us in mdc_request.c was changed in upstream linux by the following commit: commit 0d4d717f25834134bb6f43284f84c8ccee5bbf2a
Author: Eric W. Biederman <ebiederm@xmission.com>
Date: Mon Jun 27 16:04:06 2016 -0500
vfs: Verify acls are valid within superblock's s_user_ns.
Update posix_acl_valid to verify that an acl is within a user namespace.
Update the callers of posix_acl_valid to pass in an appropriate
user namespace. For posix_acl_xattr_set and v9fs_xattr_set_acl pass in
inode->i_sb->s_user_ns to posix_acl_valid. For md_unpack_acl pass in
&init_user_ns as no inode or superblock is in sight.
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Among other things this adds a namespace argument to posix_acl_valid(). We need to add autoconf support to be able to build with either the old or new version of this kernel API. |
| Comments |
| Comment by Gerrit Updater [ 24/Feb/17 ] |
|
Bob Glossman (bob.glossman@intel.com) uploaded a new patch: https://review.whamcloud.com/25619 |
| Comment by James A Simmons [ 24/Feb/17 ] |
|
This is a duplicate of |
| Comment by Bob Glossman (Inactive) [ 24/Feb/17 ] |
|
James, Thanks for pointing it out. |
| Comment by James A Simmons [ 24/Feb/17 ] |
|
BTW your patch is on the right track. The other patch for |