mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
mnt_idmapping: use new helpers in mapped_fs{g,u}id()
The old non-type safe helpers will soon be removed. Cc: Seth Forshee <sforshee@digitalocean.com> Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
This commit is contained in:
parent
9adf24a409
commit
fc04dafd26
1 changed files with 4 additions and 2 deletions
|
@ -422,7 +422,8 @@ static inline bool vfsgid_has_fsmapping(struct user_namespace *mnt_userns,
|
|||
static inline kuid_t mapped_fsuid(struct user_namespace *mnt_userns,
|
||||
struct user_namespace *fs_userns)
|
||||
{
|
||||
return mapped_kuid_user(mnt_userns, fs_userns, current_fsuid());
|
||||
return from_vfsuid(mnt_userns, fs_userns,
|
||||
VFSUIDT_INIT(current_fsuid()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -441,7 +442,8 @@ static inline kuid_t mapped_fsuid(struct user_namespace *mnt_userns,
|
|||
static inline kgid_t mapped_fsgid(struct user_namespace *mnt_userns,
|
||||
struct user_namespace *fs_userns)
|
||||
{
|
||||
return mapped_kgid_user(mnt_userns, fs_userns, current_fsgid());
|
||||
return from_vfsgid(mnt_userns, fs_userns,
|
||||
VFSGIDT_INIT(current_fsgid()));
|
||||
}
|
||||
|
||||
#endif /* _LINUX_MNT_IDMAPPING_H */
|
||||
|
|
Loading…
Reference in a new issue