Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba613560 authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

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: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent 2c034176
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -1116,7 +1116,8 @@ int ocfs2_setattr(struct dentry *dentry, struct iattr *attr)
			    (unsigned long long)OCFS2_I(inode)->ip_blkno,
			    (unsigned long long)OCFS2_I(inode)->ip_blkno,
			    dentry->d_name.len, dentry->d_name.name,
			    dentry->d_name.len, dentry->d_name.name,
			    attr->ia_valid, attr->ia_mode,
			    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 */
	/* ensuring we don't even attempt to truncate a symlink */
	if (S_ISLNK(inode->i_mode))
	if (S_ISLNK(inode->i_mode))