mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04: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 <[email protected]> Signed-off-by: Eric W. Biederman <[email protected]>
This commit is contained in:
parent
078de5f706
commit
76b6db0102
4 changed files with 4 additions and 17 deletions
|
|
@ -1026,7 +1026,7 @@ static inline int legacy_queue(struct sigpending *signals, int sig)
|
|||
static inline uid_t map_cred_ns(const struct cred *cred,
|
||||
struct user_namespace *ns)
|
||||
{
|
||||
return user_ns_map_uid(ns, cred, cred->uid);
|
||||
return from_kuid_munged(ns, cred->uid);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_USER_NS
|
||||
|
|
|
|||
Loading…
Reference in a new issue