userns: Pass a userns parameter into posix_acl_to_xattr and posix_acl_from_xattr
[deliverable/linux.git] / fs / reiserfs / xattr_acl.c
index 44474f9b990db532124d29460983858465186e33..87d6911c659df1bd9062cbf8bee8106e8d827da9 100644 (file)
@@ -30,7 +30,7 @@ posix_acl_set(struct dentry *dentry, const char *name, const void *value,
                return -EPERM;
 
        if (value) {
-               acl = posix_acl_from_xattr(value, size);
+               acl = posix_acl_from_xattr(&init_user_ns, value, size);
                if (IS_ERR(acl)) {
                        return PTR_ERR(acl);
                } else if (acl) {
@@ -77,7 +77,7 @@ posix_acl_get(struct dentry *dentry, const char *name, void *buffer,
                return PTR_ERR(acl);
        if (acl == NULL)
                return -ENODATA;
-       error = posix_acl_to_xattr(acl, buffer, size);
+       error = posix_acl_to_xattr(&init_user_ns, acl, buffer, size);
        posix_acl_release(acl);
 
        return error;
This page took 0.025397 seconds and 5 git commands to generate.