diff options
Diffstat (limited to 'include/linux/user_namespace.h')
-rw-r--r-- | include/linux/user_namespace.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/user_namespace.h b/include/linux/user_namespace.h index 4c9846d90741..a2c61457cba1 100644 --- a/include/linux/user_namespace.h +++ b/include/linux/user_namespace.h | |||
@@ -70,15 +70,15 @@ static inline void put_user_ns(struct user_namespace *ns) | |||
70 | #endif | 70 | #endif |
71 | 71 | ||
72 | static inline uid_t user_ns_map_uid(struct user_namespace *to, | 72 | static inline uid_t user_ns_map_uid(struct user_namespace *to, |
73 | const struct cred *cred, uid_t uid) | 73 | const struct cred *cred, kuid_t uid) |
74 | { | 74 | { |
75 | return from_kuid_munged(to, make_kuid(cred->user_ns, uid)); | 75 | return from_kuid_munged(to, uid); |
76 | } | 76 | } |
77 | 77 | ||
78 | static inline gid_t user_ns_map_gid(struct user_namespace *to, | 78 | static inline gid_t user_ns_map_gid(struct user_namespace *to, |
79 | const struct cred *cred, gid_t gid) | 79 | const struct cred *cred, kgid_t gid) |
80 | { | 80 | { |
81 | return from_kgid_munged(to, make_kgid(cred->user_ns, gid)); | 81 | return from_kgid_munged(to, gid); |
82 | } | 82 | } |
83 | 83 | ||
84 | #endif /* _LINUX_USER_H */ | 84 | #endif /* _LINUX_USER_H */ |