All of lore.kernel.org
 help / color / mirror / Atom feed
* nsgroup autoremoving
@ 2009-01-16 10:23 Daniel Lezcano
       [not found] ` <49706006.80002-GANU6spQydw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Lezcano @ 2009-01-16 10:23 UTC (permalink / raw)
  To: Linux Containers,
	linux- >> Meiosys Linux Development Interlock

Hi,

While trying to unshare a namespace with the clone syscall with an 
inifinite loop, I got an EEXIST.
That looks weird to have such syscall returning EEXIST ... :)

After investigating, it appears the ns_cgroup creates automatically a 
control group named with the pid number when we call the clone syscall 
with a namespace parameter and when the namespace exits, the control 
group is not automatically removed. So when the pid numbers are recycled 
we conflict with a previous ns_cgroup name and the clone fails.

IMHO, if the nsgroup is automatically created, it should automatically 
destroyed, otherwise what will happen to application using the 
namespaces (eg. mount namespace) wrote before nsgroup appeared ?

Thanks.
  -- Daniel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-19  3:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-16 10:23 nsgroup autoremoving Daniel Lezcano
     [not found] ` <49706006.80002-GANU6spQydw@public.gmane.org>
2009-01-16 16:52   ` Serge E. Hallyn
     [not found]     ` <20090116165217.GA8477-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-01-18 21:35       ` Daniel Lezcano
     [not found]         ` <4973A0AD.6090508-GANU6spQydw@public.gmane.org>
2009-01-18 23:32           ` Serge E. Hallyn
     [not found]             ` <20090118233216.GA10126-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-01-19  3:05               ` KAMEZAWA Hiroyuki

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.