mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
Merge branch 'fs.vfsuid.conversion' into for-next
This commit is contained in:
committed by
Christian Brauner (Microsoft)
commit
e4236f9768
@@ -1612,23 +1612,6 @@ static inline void i_gid_write(struct inode *inode, gid_t gid)
|
||||
inode->i_gid = make_kgid(i_user_ns(inode), gid);
|
||||
}
|
||||
|
||||
/**
|
||||
* i_uid_into_mnt - map an inode's i_uid down into a mnt_userns
|
||||
* @mnt_userns: user namespace of the mount the inode was found from
|
||||
* @inode: inode to map
|
||||
*
|
||||
* Note, this will eventually be removed completely in favor of the type-safe
|
||||
* i_uid_into_vfsuid().
|
||||
*
|
||||
* Return: the inode's i_uid mapped down according to @mnt_userns.
|
||||
* If the inode's i_uid has no mapping INVALID_UID is returned.
|
||||
*/
|
||||
static inline kuid_t i_uid_into_mnt(struct user_namespace *mnt_userns,
|
||||
const struct inode *inode)
|
||||
{
|
||||
return AS_KUIDT(make_vfsuid(mnt_userns, i_user_ns(inode), inode->i_uid));
|
||||
}
|
||||
|
||||
/**
|
||||
* i_uid_into_vfsuid - map an inode's i_uid down into a mnt_userns
|
||||
* @mnt_userns: user namespace of the mount the inode was found from
|
||||
@@ -1681,23 +1664,6 @@ static inline void i_uid_update(struct user_namespace *mnt_userns,
|
||||
attr->ia_vfsuid);
|
||||
}
|
||||
|
||||
/**
|
||||
* i_gid_into_mnt - map an inode's i_gid down into a mnt_userns
|
||||
* @mnt_userns: user namespace of the mount the inode was found from
|
||||
* @inode: inode to map
|
||||
*
|
||||
* Note, this will eventually be removed completely in favor of the type-safe
|
||||
* i_gid_into_vfsgid().
|
||||
*
|
||||
* Return: the inode's i_gid mapped down according to @mnt_userns.
|
||||
* If the inode's i_gid has no mapping INVALID_GID is returned.
|
||||
*/
|
||||
static inline kgid_t i_gid_into_mnt(struct user_namespace *mnt_userns,
|
||||
const struct inode *inode)
|
||||
{
|
||||
return AS_KGIDT(make_vfsgid(mnt_userns, i_user_ns(inode), inode->i_gid));
|
||||
}
|
||||
|
||||
/**
|
||||
* i_gid_into_vfsgid - map an inode's i_gid down into a mnt_userns
|
||||
* @mnt_userns: user namespace of the mount the inode was found from
|
||||
|
||||
Reference in New Issue
Block a user