From: Sukadev Bhattiprolu <sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
To: Oren Laadan <orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
Cc: Linux Containers
<containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>,
Oleg Nesterov <oleg-6lXkIZvqkOAvJsYlp49lxw@public.gmane.org>,
"Eric W. Biederman"
<ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org>
Subject: Re: CLONE_PARENT in a container
Date: Thu, 19 Mar 2009 19:07:49 -0700 [thread overview]
Message-ID: <20090320020749.GA31179@us.ibm.com> (raw)
In-Reply-To: <49C2C819.4070802-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
Cc: Oleg, Eric
Oren Laadan [orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org] wrote:
|
| What happens when a container-init calls clone() with the
| CLONE_PARENT flag set ?
|
| Since CLONE_PARENT can be used to create a sibling, I'd
| think that this will create a sibling, in particular, a
| new task in the same container whose parent is the parent
| of the container. From a quick look in the code I can't
| see why this would be impossible.
|
| Is this so ? Is this the desired behavior ?
Good question. CLONE_PARENT was discussed recently on lkml but did
not look obvious to me who uses it or what the semantics are.
Some observations.
- the "reaper" for this sibling would be the reaper of the
parent container, not the init of the new container.
- if container-init exits, this sibling will also be killed since
it has a pid in this container.
Not sure if it needs to be prevented though. An using CLONE_PARENT
may want to run as a container-init :-) And if CLONE_PARENT is used
with CLONE_THREAD, we don't want to preclude threaded container-inits.
Sukadev
next prev parent reply other threads:[~2009-03-20 2:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-19 22:32 CLONE_PARENT in a container Oren Laadan
[not found] ` <49C2C819.4070802-eQaUEPhvms7ENvBUuze7eA@public.gmane.org>
2009-03-20 2:07 ` Sukadev Bhattiprolu [this message]
[not found] ` <20090320020749.GA31179-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2009-03-20 3:25 ` Eric W. Biederman
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=20090320020749.GA31179@us.ibm.com \
--to=sukadev-23vcf4htsmix0ybbhkvfkdbpr1lh4cv8@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org \
--cc=oleg-6lXkIZvqkOAvJsYlp49lxw@public.gmane.org \
--cc=orenl-eQaUEPhvms7ENvBUuze7eA@public.gmane.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.