Re: [PATCH 1/5] The config option itself

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Serge E. Hallyn <serue@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>, Eric W. Biederman <ebiederm@...>, Linux Containers <containers@...>, Pavel Emelyanov <xemul@...>
Date: Wednesday, September 26, 2007 - 10:30 pm

Serge E. Hallyn [serue@us.ibm.com] wrote:
| Quoting Serge E. Hallyn (serue@us.ibm.com):
| > Quoting Pavel Emelyanov (xemul@openvz.org):
| > > The option is called NAMESPACES. It can be selectable only
| > > if EMBEDDED is chosen (this was Eric's requisition). When
| > > the EMBEDDED is off namespaces will be on automatically.
| > > 
| > > One more option (NAMESPACES_EXPERIMENTAL) was added by 
| > > Serge's request to move there all the namespaces that are 
| > > not finished yet. Currently only the user and the network
| > > namespaces are such.
| > > 
| > > Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
| > > 
| > > ---
| > > 
| > > diff --git a/init/Kconfig b/init/Kconfig
| > > index 684ccfb..05a71d7 100644
| > > --- a/init/Kconfig
| > > +++ b/init/Kconfig
| > > @@ -369,6 +360,23 @@ config RELAY
| > > 
| > >  	  If unsure, say N.
| > > 
| > > +config NAMESPACES
| > > +	bool "The namespaces support" if EMBEDDED
| > > +	default !EMBEDDED
| > > +	help
| > > +	  Provides the way to make tasks work with different objects using
| > > +	  the same id. For example same IPC id may refer to different objects
| > > +	  or same user id or pid may refer to different tasks when used in
| > > +	  different namespaces.
| > > +
| > > +config NAMESPACES_EXPERIMENTAL
| > > +	bool "Add the experimantal namespaces support" if EMBEDDED
| > 
| > Hi Pavel,
| > 
| > Overall this patchset looks good.
| > 
| > However the NAMESPACES_EXPERIMENTAL option should not have the
| > 'if EMBEDDED', right?  This is about EXPERIMENTAL, not about
| > EMBEDDED, unlike the plain NAMESPACES option.
| > 
| > -serge
| 
| Actually that doesn't seem to work either.  Even though
| SECURITY_NAMESPACES=y, the config system seems to infer that
| since NAMESPACES is not user-selectable, NAMESPACES_EXPERIMENTAL
| shouldn't be either.  So we end up with NAMESPACES_EXPERIMENTAL
| being on and not un-selectable if !EMBEDDED.

Yes. Given that NAMESPACES depends on EMBEDDED, NAMESPACES_EXPERIMENTAL
can simply depend on NAMESPACES and EXPERIMENTAL with a default of N.

BTW, does the position of 'config NAMESPACES' in init/Kconfig file
matter ?  If it is dependent on EMBEDDED, should it not come later
in the file, after 'config EMBEDDED' ?

| 
| > > +	depends on NAMESPACES && EXPERIMENTAL
| > > +	default !EMBEDDED
| > > +	help
| > > +	  Also include the support for the namespaces that are not fnished
| > > +	  or well developed yet
| > > +
| > >  config BLK_DEV_INITRD
| > >  	bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support"
| > >  	depends on BROKEN || !FRV
| _______________________________________________
| Containers mailing list
| Containers@lists.linux-foundation.org
| https://lists.linux-foundation.org/mailman/listinfo/containers
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 3/5] Move the IPC namespace under the option, Pavel Emelyanov, (Wed Sep 26, 11:51 am)
Re: [PATCH 3/5] Move the IPC namespace under the option, Cedric Le Goater, (Thu Sep 27, 8:38 am)
Re: [PATCH 3/5] Move the IPC namespace under the option, Pavel Emelyanov, (Mon Oct 1, 3:52 am)
[PATCH 5/5] Move the PID namespace under the option, Pavel Emelyanov, (Wed Sep 26, 11:58 am)
[PATCH 4/5] Move the user namespace under the option, Pavel Emelyanov, (Wed Sep 26, 11:53 am)
Re: [PATCH 4/5] Move the user namespace under the option, Cedric Le Goater, (Thu Sep 27, 8:31 am)
Re: [PATCH 4/5] Move the user namespace under the option, Robert P. J. Day, (Thu Sep 27, 8:38 am)
Re: [PATCH 4/5] Move the user namespace under the option, Pavel Emelyanov, (Mon Oct 1, 3:54 am)
Re: [PATCH 4/5] Move the user namespace under the option, Robert P. J. Day, (Mon Oct 1, 4:42 am)
Re: [PATCH 4/5] Move the user namespace under the option, Serge E. Hallyn, (Mon Oct 1, 10:14 am)
[PATCH 1/5] The config option itself, Pavel Emelyanov, (Wed Sep 26, 11:43 am)
Re: [PATCH 1/5] The config option itself, Cedric Le Goater, (Thu Sep 27, 8:28 am)
Re: [PATCH 1/5] The config option itself, Serge E. Hallyn, (Wed Sep 26, 12:34 pm)
Re: [PATCH 1/5] The config option itself, Serge E. Hallyn, (Wed Sep 26, 1:06 pm)
Re: [PATCH 1/5] The config option itself, , (Wed Sep 26, 10:30 pm)
Re: [PATCH 1/5] The config option itself, Pavel Emelyanov, (Thu Sep 27, 4:22 am)
Re: [PATCH 1/5] The config option itself, Serge E. Hallyn, (Mon Oct 1, 10:27 am)
Re: [PATCH 1/5] The config option itself, Pavel Emelyanov, (Mon Oct 1, 10:28 am)
Re: [PATCH 1/5] The config option itself, Randy Dunlap, (Wed Sep 26, 12:30 pm)
[PATCH 2/5] Move the UST namespace under the option, Pavel Emelyanov, (Wed Sep 26, 11:46 am)
Re: [PATCH 2/5] Move the UST namespace under the option, Cedric Le Goater, (Thu Sep 27, 8:29 am)