summaryrefslogtreecommitdiffstats
path: root/fs/configfs/inode.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-02-08 01:28:09 +0100
committerEric W. Biederman <ebiederm@xmission.com>2012-09-18 10:01:37 +0200
commit69552c0c50f3f950f304fb07a4320e46f7f60c21 (patch)
tree4c9dba96746a43d632966c2ff30f7ca2e4dd7205 /fs/configfs/inode.c
parentuserns: Convert extN to support kuids and kgids in posix acls (diff)
downloadlinux-69552c0c50f3f950f304fb07a4320e46f7f60c21.tar.xz
linux-69552c0c50f3f950f304fb07a4320e46f7f60c21.zip
userns: Convert configfs to use kuid and kgid where appropriate
Cc: Joel Becker <jlbec@evilplan.org> Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'fs/configfs/inode.c')
-rw-r--r--fs/configfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/configfs/inode.c b/fs/configfs/inode.c
index 0074362d9f7f..a9d35b0e06cf 100644
--- a/fs/configfs/inode.c
+++ b/fs/configfs/inode.c
@@ -79,8 +79,8 @@ int configfs_setattr(struct dentry * dentry, struct iattr * iattr)
return -ENOMEM;
/* assign default attributes */
sd_iattr->ia_mode = sd->s_mode;
- sd_iattr->ia_uid = 0;
- sd_iattr->ia_gid = 0;
+ sd_iattr->ia_uid = GLOBAL_ROOT_UID;
+ sd_iattr->ia_gid = GLOBAL_ROOT_GID;
sd_iattr->ia_atime = sd_iattr->ia_mtime = sd_iattr->ia_ctime = CURRENT_TIME;
sd->s_iattr = sd_iattr;
}