summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/file.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2013-01-31 17:33:53 -0800
committerEric W. Biederman <ebiederm@xmission.com>2013-02-13 06:00:59 -0800
commitba6135609c2b56851e37e1d89ddbdbae4e774a71 (patch)
tree09e26625e28618c8f0c2cf3b2f60a64f0b8a2cfc /fs/ocfs2/file.c
parent2c03417627c5edaeeae1e8c5da6e8fd6f8c720d3 (diff)
downloadlinux-ba6135609c2b56851e37e1d89ddbdbae4e774a71.tar.gz
linux-ba6135609c2b56851e37e1d89ddbdbae4e774a71.tar.bz2
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 'fs/ocfs2/file.c')
-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))