mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 06:21:31 +00:00
userns: Replace user_ns_map_uid and user_ns_map_gid with from_kuid and from_kgid
These function are no longer needed replace them with their more useful equivalents. Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
This commit is contained in:
parent
078de5f706
commit
76b6db0102
4 changed files with 4 additions and 17 deletions
|
@ -69,16 +69,4 @@ static inline void put_user_ns(struct user_namespace *ns)
|
|||
|
||||
#endif
|
||||
|
||||
static inline uid_t user_ns_map_uid(struct user_namespace *to,
|
||||
const struct cred *cred, kuid_t uid)
|
||||
{
|
||||
return from_kuid_munged(to, uid);
|
||||
}
|
||||
|
||||
static inline gid_t user_ns_map_gid(struct user_namespace *to,
|
||||
const struct cred *cred, kgid_t gid)
|
||||
{
|
||||
return from_kgid_munged(to, gid);
|
||||
}
|
||||
|
||||
#endif /* _LINUX_USER_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue