userns: Convert adfs to use kuid and kgid where appropriate
Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
This commit is contained in:
parent
9a11f4513c
commit
c010d1ff4f
4 changed files with 17 additions and 13 deletions
|
@ -304,8 +304,8 @@ adfs_notify_change(struct dentry *dentry, struct iattr *attr)
|
|||
* we can't change the UID or GID of any file -
|
||||
* we have a global UID/GID in the superblock
|
||||
*/
|
||||
if ((ia_valid & ATTR_UID && attr->ia_uid != ADFS_SB(sb)->s_uid) ||
|
||||
(ia_valid & ATTR_GID && attr->ia_gid != ADFS_SB(sb)->s_gid))
|
||||
if ((ia_valid & ATTR_UID && !uid_eq(attr->ia_uid, ADFS_SB(sb)->s_uid)) ||
|
||||
(ia_valid & ATTR_GID && !gid_eq(attr->ia_gid, ADFS_SB(sb)->s_gid)))
|
||||
error = -EPERM;
|
||||
|
||||
if (error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue