* unshare() pid ns
@ 2007-08-30 5:29 sukadev-r/Jw6+rmf7HQT0dZR+AlfA
[not found] ` <20070830052928.GA27864-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: sukadev-r/Jw6+rmf7HQT0dZR+AlfA @ 2007-08-30 5:29 UTC (permalink / raw)
To: Pavel Emelianov; +Cc: Containers
Pavel,
unshare() of pid ns seems to fail with -EINVAL in 2.6.23-rc3-mm1.
I thought we supported it in the earlier patchsets. I guess
I missed that in the review of recent patchsets.
Did we remove/disable it on purpose ? I am not particular that we
support it though. Just want to make sure.
Suka
^ permalink raw reply [flat|nested] 7+ messages in thread[parent not found: <20070830052928.GA27864-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>]
* Re: unshare() pid ns [not found] ` <20070830052928.GA27864-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org> @ 2007-08-30 8:10 ` Pavel Emelyanov [not found] ` <46D67B8B.2000606-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Pavel Emelyanov @ 2007-08-30 8:10 UTC (permalink / raw) To: sukadev-r/Jw6+rmf7HQT0dZR+AlfA; +Cc: Containers sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org wrote: > Pavel, > > unshare() of pid ns seems to fail with -EINVAL in 2.6.23-rc3-mm1. > I thought we supported it in the earlier patchsets. I guess > I missed that in the review of recent patchsets. I disabled unsharing of pid namespaces because it's almost impossible. Look - you have to reattach all the pids to the task with saving its ids as seen in previous namespaces. > Did we remove/disable it on purpose ? I am not particular that we > support it though. Just want to make sure. > > Suka > ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <46D67B8B.2000606-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>]
* Re: unshare() pid ns [not found] ` <46D67B8B.2000606-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org> @ 2007-08-30 13:34 ` Serge E. Hallyn [not found] ` <20070830133422.GA28129-6s5zFf/epYLPQpwDFJZrxKsjOiXwFzmk@public.gmane.org> 2007-08-30 14:19 ` sukadev-r/Jw6+rmf7HQT0dZR+AlfA 1 sibling, 1 reply; 7+ messages in thread From: Serge E. Hallyn @ 2007-08-30 13:34 UTC (permalink / raw) To: Pavel Emelyanov; +Cc: Containers Quoting Pavel Emelyanov (xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org): > sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org wrote: >> Pavel, >> unshare() of pid ns seems to fail with -EINVAL in 2.6.23-rc3-mm1. >> I thought we supported it in the earlier patchsets. I guess >> I missed that in the review of recent patchsets. > > I disabled unsharing of pid namespaces because it's almost > impossible. Look - you have to reattach all the pids to the > task with saving its ids as seen in previous namespaces. We agree, but thought you for some perverse reason preferred unshare to clone for pidns :) Thanks for clarifying. -serge ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <20070830133422.GA28129-6s5zFf/epYLPQpwDFJZrxKsjOiXwFzmk@public.gmane.org>]
* Re: unshare() pid ns [not found] ` <20070830133422.GA28129-6s5zFf/epYLPQpwDFJZrxKsjOiXwFzmk@public.gmane.org> @ 2007-08-30 14:11 ` Pavel Emelyanov [not found] ` <46D6D00F.7090303-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Pavel Emelyanov @ 2007-08-30 14:11 UTC (permalink / raw) To: Serge E. Hallyn; +Cc: Containers Serge E. Hallyn wrote: > Quoting Pavel Emelyanov (xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org): >> sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org wrote: >>> Pavel, >>> unshare() of pid ns seems to fail with -EINVAL in 2.6.23-rc3-mm1. >>> I thought we supported it in the earlier patchsets. I guess >>> I missed that in the review of recent patchsets. >> I disabled unsharing of pid namespaces because it's almost >> impossible. Look - you have to reattach all the pids to the >> task with saving its ids as seen in previous namespaces. > > We agree, but thought you for some perverse reason preferred unshare to > clone for pidns :) I did that in my first version of patches, but then realized that such problem (the need in reattaching pids) makes the unsharing ugly. BTW, unsharing of a pid namespace is a valid operation, so I think I will enable it in the nearest future. I have some thought on how to make such a reattach ;) > Thanks for clarifying. > > -serge > ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <46D6D00F.7090303-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>]
* Re: unshare() pid ns [not found] ` <46D6D00F.7090303-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org> @ 2007-08-30 14:35 ` Serge E. Hallyn 2007-08-30 16:34 ` Cedric Le Goater 1 sibling, 0 replies; 7+ messages in thread From: Serge E. Hallyn @ 2007-08-30 14:35 UTC (permalink / raw) To: Pavel Emelyanov; +Cc: Containers Quoting Pavel Emelyanov (xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org): > Serge E. Hallyn wrote: > > Quoting Pavel Emelyanov (xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org): > >> sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org wrote: > >>> Pavel, > >>> unshare() of pid ns seems to fail with -EINVAL in 2.6.23-rc3-mm1. > >>> I thought we supported it in the earlier patchsets. I guess > >>> I missed that in the review of recent patchsets. > >> I disabled unsharing of pid namespaces because it's almost > >> impossible. Look - you have to reattach all the pids to the > >> task with saving its ids as seen in previous namespaces. > > > > We agree, but thought you for some perverse reason preferred unshare to > > clone for pidns :) > > I did that in my first version of patches, but then realized > that such problem (the need in reattaching pids) makes the > unsharing ugly. > > BTW, unsharing of a pid namespace is a valid operation, so I > think I will enable it in the nearest future. I have some > thought on how to make such a reattach ;) Alrighty :) Of course it's not just the kernel ugliness, but also the userspace ugliness, for instance the rumored (I haven't looked to confirm) caching of pids by glibc. But in the end if we can achieve symmetry between all the CLONE_NEW* flags all the better. -serge ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: unshare() pid ns [not found] ` <46D6D00F.7090303-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org> 2007-08-30 14:35 ` Serge E. Hallyn @ 2007-08-30 16:34 ` Cedric Le Goater 1 sibling, 0 replies; 7+ messages in thread From: Cedric Le Goater @ 2007-08-30 16:34 UTC (permalink / raw) To: Pavel Emelyanov; +Cc: Containers Hello Pavel ! Pavel Emelyanov wrote: > Serge E. Hallyn wrote: >> Quoting Pavel Emelyanov (xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org): >>> sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org wrote: >>>> Pavel, >>>> unshare() of pid ns seems to fail with -EINVAL in 2.6.23-rc3-mm1. >>>> I thought we supported it in the earlier patchsets. I guess >>>> I missed that in the review of recent patchsets. >>> I disabled unsharing of pid namespaces because it's almost >>> impossible. Look - you have to reattach all the pids to the >>> task with saving its ids as seen in previous namespaces. >> We agree, but thought you for some perverse reason preferred unshare to >> clone for pidns :) > > I did that in my first version of patches, but then realized > that such problem (the need in reattaching pids) makes the > unsharing ugly. > > BTW, unsharing of a pid namespace is a valid operation, so I > think I will enable it in the nearest future. I have some > thought on how to make such a reattach ;) that would be also very useful to 'enter' such a namespace. BTW, did you take a look at the sys_hijack() serge sent ? Thanks, C. ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: unshare() pid ns [not found] ` <46D67B8B.2000606-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org> 2007-08-30 13:34 ` Serge E. Hallyn @ 2007-08-30 14:19 ` sukadev-r/Jw6+rmf7HQT0dZR+AlfA 1 sibling, 0 replies; 7+ messages in thread From: sukadev-r/Jw6+rmf7HQT0dZR+AlfA @ 2007-08-30 14:19 UTC (permalink / raw) To: Pavel Emelyanov; +Cc: Containers Pavel Emelianov [xemul-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org] wrote: | sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org wrote: | >Pavel, | > | >unshare() of pid ns seems to fail with -EINVAL in 2.6.23-rc3-mm1. | >I thought we supported it in the earlier patchsets. I guess | >I missed that in the review of recent patchsets. | | I disabled unsharing of pid namespaces because it's almost | impossible. Look - you have to reattach all the pids to the | task with saving its ids as seen in previous namespaces. Agree. Eric pointed that out early on. | | >Did we remove/disable it on purpose ? I am not particular that we | >support it though. Just want to make sure. | > | >Suka | > ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-08-30 16:34 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-30 5:29 unshare() pid ns sukadev-r/Jw6+rmf7HQT0dZR+AlfA
[not found] ` <20070830052928.GA27864-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2007-08-30 8:10 ` Pavel Emelyanov
[not found] ` <46D67B8B.2000606-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2007-08-30 13:34 ` Serge E. Hallyn
[not found] ` <20070830133422.GA28129-6s5zFf/epYLPQpwDFJZrxKsjOiXwFzmk@public.gmane.org>
2007-08-30 14:11 ` Pavel Emelyanov
[not found] ` <46D6D00F.7090303-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2007-08-30 14:35 ` Serge E. Hallyn
2007-08-30 16:34 ` Cedric Le Goater
2007-08-30 14:19 ` sukadev-r/Jw6+rmf7HQT0dZR+AlfA
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.