All of lore.kernel.org
 help / color / mirror / Atom feed
* Question: copy_process() and CLONE_NEWNS
@ 2013-02-01  6:24 Kevin Wilson
  2013-02-01 11:58 ` Tobias Boege
  2013-02-01 12:22 ` Denis Kirjanov
  0 siblings, 2 replies; 4+ messages in thread
From: Kevin Wilson @ 2013-02-01  6:24 UTC (permalink / raw)
  To: kernelnewbies

Hi all,
question:

In copy_process() we have:

static struct task_struct *copy_process(unsigned long clone_flags,
                                         unsigned long stack_start,
                                         struct pt_regs *regs,
                                         unsigned long stack_size,
                                         int __user *child_tidptr,
                                         struct pid *pid,
                                         int trace)
 {
         int retval;
         struct task_struct *p;
         int cgroup_callbacks_done = 0;

         if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS))
                 return ERR_PTR(-EINVAL);
 ...
...


see :http://lxr.free-electrons.com/source/kernel/fork.c#L1128

Why is the CLONE_NEWNS, when set, cause an error in copy_process(), as
shown above ?
is it not permitted that CLONE_NEWNS will be set ?

rgs,
Kevin

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-04 16:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-01  6:24 Question: copy_process() and CLONE_NEWNS Kevin Wilson
2013-02-01 11:58 ` Tobias Boege
2013-02-04 16:21   ` Valdis.Kletnieks at vt.edu
2013-02-01 12:22 ` Denis Kirjanov

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.