mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
userns: Use uid_eq gid_eq helpers when comparing kuids and kgids in the vfs
Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
This commit is contained in:
@@ -22,8 +22,8 @@ static inline struct quota_info *sb_dqopt(struct super_block *sb)
|
||||
static inline bool is_quota_modification(struct inode *inode, struct iattr *ia)
|
||||
{
|
||||
return (ia->ia_valid & ATTR_SIZE && ia->ia_size != inode->i_size) ||
|
||||
(ia->ia_valid & ATTR_UID && ia->ia_uid != inode->i_uid) ||
|
||||
(ia->ia_valid & ATTR_GID && ia->ia_gid != inode->i_gid);
|
||||
(ia->ia_valid & ATTR_UID && !uid_eq(ia->ia_uid, inode->i_uid)) ||
|
||||
(ia->ia_valid & ATTR_GID && !gid_eq(ia->ia_gid, inode->i_gid));
|
||||
}
|
||||
|
||||
#if defined(CONFIG_QUOTA)
|
||||
|
||||
Reference in New Issue
Block a user