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 /include | |
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 'include')
-rw-r--r-- | include/linux/user_namespace.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/user_namespace.h b/include/linux/user_namespace.h index a2c61457cba1..4e72922e5a75 100644 --- a/include/linux/user_namespace.h +++ b/include/linux/user_namespace.h | |||
@@ -69,16 +69,4 @@ static inline void put_user_ns(struct user_namespace *ns) | |||
69 | 69 | ||
70 | #endif | 70 | #endif |
71 | 71 | ||
72 | static inline uid_t user_ns_map_uid(struct user_namespace *to, | ||
73 | const struct cred *cred, kuid_t uid) | ||
74 | { | ||
75 | return from_kuid_munged(to, uid); | ||
76 | } | ||
77 | |||
78 | static inline gid_t user_ns_map_gid(struct user_namespace *to, | ||
79 | const struct cred *cred, kgid_t gid) | ||
80 | { | ||
81 | return from_kgid_munged(to, gid); | ||
82 | } | ||
83 | |||
84 | #endif /* _LINUX_USER_H */ | 72 | #endif /* _LINUX_USER_H */ |