summaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2016-06-27 16:04:06 -0500
committerEric W. Biederman <ebiederm@xmission.com>2016-06-30 18:04:58 -0500
commit0d4d717f25834134bb6f43284f84c8ccee5bbf2a (patch)
treeaa4f4605f45bca718b01483e90835731227ef341 /drivers/staging/lustre
parent37b11804ed1725dc2ea97be2236150210a69e9d5 (diff)
downloadop-kernel-dev-0d4d717f25834134bb6f43284f84c8ccee5bbf2a.zip
op-kernel-dev-0d4d717f25834134bb6f43284f84c8ccee5bbf2a.tar.gz
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>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r--drivers/staging/lustre/lustre/mdc/mdc_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/mdc/mdc_request.c b/drivers/staging/lustre/lustre/mdc/mdc_request.c
index 86b7445..40cf57f 100644
--- a/drivers/staging/lustre/lustre/mdc/mdc_request.c
+++ b/drivers/staging/lustre/lustre/mdc/mdc_request.c
@@ -434,7 +434,7 @@ static int mdc_unpack_acl(struct ptlrpc_request *req, struct lustre_md *md)
return rc;
}
- rc = posix_acl_valid(acl);
+ rc = posix_acl_valid(&init_user_ns, acl);
if (rc) {
CERROR("validate acl: %d\n", rc);
posix_acl_release(acl);
OpenPOWER on IntegriCloud