mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
caps: use type safe idmapping helpers
We already ported most parts and filesystems over for v6.0 to the new
vfs{g,u}id_t type and associated helpers for v6.0. Convert the remaining
places so we can remove all the old helpers.
This is a non-functional change.
Reviewed-by: Seth Forshee (DigitalOcean) <sforshee@kernel.org>
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
This commit is contained in:
committed by
Christian Brauner (Microsoft)
parent
a2bd096fb2
commit
b7c9b67512
@@ -489,8 +489,8 @@ bool privileged_wrt_inode_uidgid(struct user_namespace *ns,
|
||||
struct user_namespace *mnt_userns,
|
||||
const struct inode *inode)
|
||||
{
|
||||
return kuid_has_mapping(ns, i_uid_into_mnt(mnt_userns, inode)) &&
|
||||
kgid_has_mapping(ns, i_gid_into_mnt(mnt_userns, inode));
|
||||
return vfsuid_has_mapping(ns, i_uid_into_vfsuid(mnt_userns, inode)) &&
|
||||
vfsgid_has_mapping(ns, i_gid_into_vfsgid(mnt_userns, inode));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user