Skip to content

Commit ba61356

Browse files
committed
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>
1 parent 2c03417 commit ba61356

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎fs/ocfs2/file.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,8 @@ int ocfs2_setattr(struct dentry *dentry, struct iattr *attr)
11161116
(unsigned long long)OCFS2_I(inode)->ip_blkno,
11171117
dentry->d_name.len, dentry->d_name.name,
11181118
attr->ia_valid, attr->ia_mode,
1119-
attr->ia_uid, attr->ia_gid);
1119+
from_kuid(&init_user_ns, attr->ia_uid),
1120+
from_kgid(&init_user_ns, attr->ia_gid));
11201121

11211122
/* ensuring we don't even attempt to truncate a symlink */
11221123
if (S_ISLNK(inode->i_mode))

0 commit comments

Comments
 (0)