diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-03-14 18:24:19 -0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-05-03 06:28:39 -0400 |
commit | 76b6db010297d4928ab7b7e7c78dd982f413f0a4 (patch) | |
tree | 0d8fef729548a4f266684c0b7e56e4a9ed14780f /kernel | |
parent | 078de5f706ece36afd73bb4b8283314132d2dfdf (diff) |
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/signal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index 2734dc965f69..d6303277a640 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
@@ -1026,7 +1026,7 @@ static inline int legacy_queue(struct sigpending *signals, int sig) | |||
1026 | static inline uid_t map_cred_ns(const struct cred *cred, | 1026 | static inline uid_t map_cred_ns(const struct cred *cred, |
1027 | struct user_namespace *ns) | 1027 | struct user_namespace *ns) |
1028 | { | 1028 | { |
1029 | return user_ns_map_uid(ns, cred, cred->uid); | 1029 | return from_kuid_munged(ns, cred->uid); |
1030 | } | 1030 | } |
1031 | 1031 | ||
1032 | #ifdef CONFIG_USER_NS | 1032 | #ifdef CONFIG_USER_NS |