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:
Eric W. Biederman 2012-03-14 15:24:19 -07:00
commit 76b6db0102
4 changed files with 4 additions and 17 deletions

View file

@ -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