Skip to contentSkip to conversation

unshare() pid ns

DISCUSSION sukadev-r/[email protected] 4 participants 7 messages Aug 30, 2007 4 messages not in the archive

lore
Share & tools
lore
#0 lore raw

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

A message that is not in the archive (sent off-list or not yet received): 20070830052928.GA27864-r/[email protected]

#2 lore raw
Quoted 5 lines · sukadev-r/[email protected] 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.

Quoted 5 lines

Did we remove/disable it on purpose ? I am not particular that we support it though. Just want to make sure.

Suka

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 9 lines · Pavel Emelyanov
Quoted 4 lines · sukadev-r/[email protected] 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

A message that is not in the archive (sent off-list or not yet received): 20070830133422.GA28129-6s5zFf/[email protected]

#6 lore raw
Quoted 6 lines · Serge E. Hallyn
Quoted 5 lines · Pavel Emelyanov
Quoted 4 lines · sukadev-r/[email protected] 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.

Quoted 6 lines
Quoted 3 lines

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 ;)

Quoted 4 lines

Thanks for clarifying.

-serge

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw
Quoted 14 lines · Pavel Emelyanov
Quoted 6 lines · Serge E. Hallyn
Quoted 5 lines · Pavel Emelyanov
Quoted 4 lines · sukadev-r/[email protected] 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.

Quoted 6 lines
Quoted 3 lines

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 :)

Quoted 7 lines

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

#9 lore raw
In reply to a message not in the archive

Hello Pavel !

Quoted 13 lines · Pavel Emelyanov
Quoted 11 lines · Serge E. Hallyn
Quoted 8 lines · Pavel Emelyanov
Quoted 4 lines · sukadev-r/[email protected] 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 :)

Quoted 7 lines

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.

#10 lore raw
In reply to a message not in the archive

Pavel Emelianov [[email protected]] wrote:

| sukadev-r/[email protected] 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
| >