diff options
Diffstat (limited to 'kernel/user_namespace.c')
-rw-r--r-- | kernel/user_namespace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c index 7eff867bfac5..86602316422d 100644 --- a/kernel/user_namespace.c +++ b/kernel/user_namespace.c | |||
@@ -36,8 +36,8 @@ static bool new_idmap_permitted(struct user_namespace *ns, int cap_setid, | |||
36 | int create_user_ns(struct cred *new) | 36 | int create_user_ns(struct cred *new) |
37 | { | 37 | { |
38 | struct user_namespace *ns, *parent_ns = new->user_ns; | 38 | struct user_namespace *ns, *parent_ns = new->user_ns; |
39 | kuid_t owner = make_kuid(new->user_ns, new->euid); | 39 | kuid_t owner = new->euid; |
40 | kgid_t group = make_kgid(new->user_ns, new->egid); | 40 | kgid_t group = new->egid; |
41 | 41 | ||
42 | /* The creator needs a mapping in the parent user namespace | 42 | /* The creator needs a mapping in the parent user namespace |
43 | * or else we won't be able to reasonably tell userspace who | 43 | * or else we won't be able to reasonably tell userspace who |