Skip to contentSkip to conversation

unshare behavior when polyinstantiating

DISCUSSION Ted X Toth 2 participants 2 messages May 29, 2007 SELinux security module

lore
Share & tools
lore

Ted X Toth

author
#0 lore raw

I've run into some polyinstantiation bugs but want to make sure I understand what unshare(CLONE_NEWNS) does before I submit a patch. Is it the case that the new namespace created by unshare is related to the current process and when this process exits the namespace is destroyed or is no longer valid? All mounts and unmounts done in the new namespace have no affect on the parent processes namespace, correct?

Ted

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.

#1 lore raw
Quoted 8 lines · Ted X Toth

I've run into some polyinstantiation bugs but want to make sure I understand what unshare(CLONE_NEWNS) does before I submit a patch. Is it the case that the new namespace created by unshare is related to the current process and when this process exits the namespace is destroyed or is no longer valid? All mounts and unmounts done in the new namespace have no affect on the parent processes namespace, correct?

Ted

Signature · 3 lines
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.

That is my understanding.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.