public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Private namespaces
@ 2003-05-05 13:23 Adrian Etchevarne
  2003-04-16 13:23 ` Andries Brouwer
  2003-04-16 13:40 ` Lee Causier
  0 siblings, 2 replies; 8+ messages in thread
From: Adrian Etchevarne @ 2003-05-05 13:23 UTC (permalink / raw)
  To: linux-kernel



Hello,
	I've been looking for instructions to use private namespaces in Linux,
without results. Can anyone tell where is the documentation about it?
(I'm not refering to chroot(), but to /proc/<pid>/mounts). Or the proper
files in the kernel sources?

Thanks,
	Adrian.



^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Private namespaces
@ 2003-04-19 22:18 Andries.Brouwer
  2003-04-19 22:22 ` Andrew Morton
  0 siblings, 1 reply; 8+ messages in thread
From: Andries.Brouwer @ 2003-04-19 22:18 UTC (permalink / raw)
  To: aebr, akpm; +Cc: linux-kernel

> How does this look?

Ach - just a moment ago I submitted only that single
improvement, but you do the whole list.

(It is OK, of course. I looked for a second and concluded that
in all other cases the return value was in fact -ENOMEM, so that
no change was required. Only in the case of security_task_alloc()
is a different value, -EPERM, likely.)

Concerning style - I don't like

	if ((retval = copy_sighand(clone_flags, p)))

very much.

Where there is an if() one expects a boolean condition,
and in superficial reading one can easily mistake = for ==,
in spite of the additional parentheses.

Just

	retval = copy_sighand(clone_flags, p);
	if (retval)

is so much clearer.

Andries

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

end of thread, other threads:[~2003-04-19 22:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-05 13:23 Private namespaces Adrian Etchevarne
2003-04-16 13:23 ` Andries Brouwer
2003-04-19 14:52   ` Florin Iucha
2003-04-19 16:21     ` Andries Brouwer
2003-04-19 21:35       ` Andrew Morton
2003-04-16 13:40 ` Lee Causier
  -- strict thread matches above, loose matches on Subject: below --
2003-04-19 22:18 Andries.Brouwer
2003-04-19 22:22 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox