summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/file.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2013-02-01 02:33:53 +0100
committerEric W. Biederman <ebiederm@xmission.com>2013-02-13 15:00:59 +0100
commitba6135609c2b56851e37e1d89ddbdbae4e774a71 (patch)
tree09e26625e28618c8f0c2cf3b2f60a64f0b8a2cfc /fs/ocfs2/file.c
parentocfs2: Convert uid and gids between in core and on disk inodes (diff)
downloadlinux-ba6135609c2b56851e37e1d89ddbdbae4e774a71.tar.xz
linux-ba6135609c2b56851e37e1d89ddbdbae4e774a71.zip
ocfs2: For tracing report the uid and gid values in the initial user namespace
Cc: Mark Fasheh <mfasheh@suse.com> Cc: Joel Becker <jlbec@evilplan.org> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to '')
-rw-r--r--fs/ocfs2/file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c
index 37d313ede159..8ee93322db2b 100644
--- a/fs/ocfs2/file.c
+++ b/fs/ocfs2/file.c
@@ -1116,7 +1116,8 @@ int ocfs2_setattr(struct dentry *dentry, struct iattr *attr)
(unsigned long long)OCFS2_I(inode)->ip_blkno,
dentry->d_name.len, dentry->d_name.name,
attr->ia_valid, attr->ia_mode,
- attr->ia_uid, attr->ia_gid);
+ from_kuid(&init_user_ns, attr->ia_uid),
+ from_kgid(&init_user_ns, attr->ia_gid));
/* ensuring we don't even attempt to truncate a symlink */
if (S_ISLNK(inode->i_mode))