LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: Michael Kerrisk <mtk-manpages@gmx.net>
Cc: Kirill Korotaev <dev@openvz.org>,
lkml <linux-kernel@vger.kernel.org>,
Pavel Emelianov <xemul@openvz.org>,
Cedric Le Goater <clg@fr.ibm.com>
Subject: Re: CLONE_NEWIPC documentation
Date: Sun, 05 Aug 2007 06:24:05 -0600 [thread overview]
Message-ID: <m1ejiikw4a.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <46B599D8.8010003@gmx.net> (Michael Kerrisk's message of "Sun, 05 Aug 2007 11:35:20 +0200")
Michael Kerrisk <mtk-manpages@gmx.net> writes:
> Hello Kirill,
>
> In 2.6.19, your patch to add support for CLONE_NEWIPC was included. Is
> there there some for-userland-programmers documentation of this flag
> somewhere? Would you be able to send some documentation to me (ideally as
> a patch to the clone.2 man page, but otherwise some plain text will do).
>
> If this flag is also supported for unshare(), then could you please send me
> a patch/text for that too?
In case someone else doesn't do better here is a short summary.
CLONE_NEWIPC creates a new ipc namespace for the new child and all
of it's children. So far CAP_SYS_ADMIN is required.
An IPC namespace creates a new context for looking up and listing
SYSV IPC shared memory, message queues, and semaphores. Only allowing
finding of SYSV IPC objects in this namespace.
For most practical purposes two processes in different SYSV IPC
namespaces might as well be on different machines. As they cannot
find each others SYSV IPC resources, and so cannot interact with
each other that way.
The implementation is essentially just a lookup of the objects
in a different table when doing name to object translation so
there should be no measurable overhead.
When the last process in a SYSV IPC namespace exits any remaining
objects in that SYSV IPC namespace are destroyed.
Eric
next prev parent reply other threads:[~2007-08-05 12:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-05 9:35 Michael Kerrisk
2007-08-05 12:24 ` Eric W. Biederman [this message]
2007-08-06 6:36 ` Michael Kerrisk
2008-11-19 19:12 Michael Kerrisk
2008-11-20 1:16 ` Eric W. Biederman
2008-11-20 8:36 ` Cedric Le Goater
2008-11-20 11:28 ` Michael Kerrisk
2008-11-20 12:26 ` Cedric Le Goater
2008-11-20 16:28 ` Michael Kerrisk
2008-11-23 22:48 ` Serge E. Hallyn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1ejiikw4a.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=clg@fr.ibm.com \
--cc=dev@openvz.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mtk-manpages@gmx.net \
--cc=xemul@openvz.org \
--subject='Re: CLONE_NEWIPC documentation' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).