Commit ab27b91b9f1937ddb9e0eb0d0892728f852b48cf
1 parent
091bd3ea4e
Exists in
master
and in
20 other branches
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>
Showing 2 changed files with 2 additions and 3 deletions Side-by-side Diff
fs/sysfs/inode.c
... | ... | @@ -62,8 +62,8 @@ |
62 | 62 | |
63 | 63 | /* assign default attributes */ |
64 | 64 | iattrs->ia_mode = sd->s_mode; |
65 | - iattrs->ia_uid = 0; | |
66 | - iattrs->ia_gid = 0; | |
65 | + iattrs->ia_uid = GLOBAL_ROOT_UID; | |
66 | + iattrs->ia_gid = GLOBAL_ROOT_GID; | |
67 | 67 | iattrs->ia_atime = iattrs->ia_mtime = iattrs->ia_ctime = CURRENT_TIME; |
68 | 68 | |
69 | 69 | return attrs; |