aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-02-07 18:46:26 -0500
committerEric W. Biederman <ebiederm@xmission.com>2012-05-15 17:59:29 -0400
commitab27b91b9f1937ddb9e0eb0d0892728f852b48cf (patch)
tree399f8665e6a0c4e0780bea20437bd7834c672db7
parent091bd3ea4e7ff4da8509978b9be93dc9d8cf0680 (diff)
userns: Convert sysfs to use kgid/kuid where appropriate
Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
-rw-r--r--fs/sysfs/inode.c4
-rw-r--r--init/Kconfig1
2 files changed, 2 insertions, 3 deletions
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c
index feb2d69396c..907c2b3af75 100644
--- a/fs/sysfs/inode.c
+++ b/fs/sysfs/inode.c
@@ -62,8 +62,8 @@ static struct sysfs_inode_attrs *sysfs_init_inode_attrs(struct sysfs_dirent *sd)
62 62
63 /* assign default attributes */ 63 /* assign default attributes */
64 iattrs->ia_mode = sd->s_mode; 64 iattrs->ia_mode = sd->s_mode;
65 iattrs->ia_uid = 0; 65 iattrs->ia_uid = GLOBAL_ROOT_UID;
66 iattrs->ia_gid = 0; 66 iattrs->ia_gid = GLOBAL_ROOT_GID;
67 iattrs->ia_atime = iattrs->ia_mtime = iattrs->ia_ctime = CURRENT_TIME; 67 iattrs->ia_atime = iattrs->ia_mtime = iattrs->ia_ctime = CURRENT_TIME;
68 68
69 return attrs; 69 return attrs;
diff --git a/init/Kconfig b/init/Kconfig
index be587651b95..908e61cd0b0 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -952,7 +952,6 @@ config UIDGID_CONVERTED
952 depends on QNX6FS_FS = n 952 depends on QNX6FS_FS = n
953 depends on REISERFS_FS = n 953 depends on REISERFS_FS = n
954 depends on SQUASHFS = n 954 depends on SQUASHFS = n
955 depends on SYSFS = n
956 depends on SYSV_FS = n 955 depends on SYSV_FS = n
957 depends on TMPFS = n 956 depends on TMPFS = n
958 depends on UBIFS_FS = n 957 depends on UBIFS_FS = n