* [patch userns-always-map-user-v64] userns: release the reference of old userns in userns_install
@ 2012-10-12 2:47 Gao feng
[not found] ` <1350010024-27836-1-git-send-email-gaofeng-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Gao feng @ 2012-10-12 2:47 UTC (permalink / raw)
To: ebiederm-aS9lmoZGLiVWk0Htik3J/w
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
we should release the reference of old userns.
Signed-off-by: Gao feng <gaofeng-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
---
kernel/user_namespace.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c
index 054471d..dafa125 100644
--- a/kernel/user_namespace.c
+++ b/kernel/user_namespace.c
@@ -812,6 +812,7 @@ static int userns_install(struct nsproxy *nsproxy, void *ns)
if (!cred)
return -ENOMEM;
+ put_user_ns(cred->user_ns);
set_cred_user_ns(cred, get_user_ns(user_ns));
return commit_creds(cred);
--
1.7.7.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [patch userns-always-map-user-v64] userns: release the reference of old userns in userns_install
[not found] ` <1350010024-27836-1-git-send-email-gaofeng-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
@ 2012-10-12 3:27 ` Eric W. Biederman
0 siblings, 0 replies; 2+ messages in thread
From: Eric W. Biederman @ 2012-10-12 3:27 UTC (permalink / raw)
To: Gao feng; +Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
Gao feng <gaofeng-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org> writes:
> we should release the reference of old userns.
Thanks applied.
Eric
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-12 3:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-12 2:47 [patch userns-always-map-user-v64] userns: release the reference of old userns in userns_install Gao feng
[not found] ` <1350010024-27836-1-git-send-email-gaofeng-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2012-10-12 3:27 ` Eric W. Biederman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.