Skip to contentSkip to conversation

Kconfig : remove pid_ns and net_ns experimental

PATCH In review Daniel Lezcano 5 participants 10 messages Oct 7, 2010 – Oct 15, 2010 8 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Kconfig : remove pid_ns and net_ns experimental

The pid namespace is in the kernel since 2.6.27 and the net_ns since 2.6.29. They are enabled in the distro by default and used by userspace component. They are mature enough to remove the 'experimental' label.

---
 init/Kconfig |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
init/Kconfig +3 -6
index a175935..a52124e 100644
@@ -759,21 +759,18 @@ config USER_NS
 	  If unsure, say N.
 
 config PID_NS
-	bool "PID Namespaces (EXPERIMENTAL)"
+	bool "PID Namespaces"
 	default n
-	depends on NAMESPACES && EXPERIMENTAL
+	depends on NAMESPACES
 	help
 	  Support process id namespaces.  This allows having multiple
 	  processes with the same pid as long as they are in different
 	  pid namespaces.  This is a building block of containers.
 
-	  Unless you want to work with an experimental feature
-	  say N here.
-
 config NET_NS
 	bool "Network namespace"
 	default n
-	depends on NAMESPACES && EXPERIMENTAL && NET
+	depends on NAMESPACES && NET
 	help
 	  Allow user space to create what appear to be multiple instances
 	  of the network stack.
Signature · 1 line
1.7.0.4
#2 lore raw

PATCH 2/2 Kconfig : default all the namespaces to 'yes'

In reply to a message not in the archive

As the different namespaces depend on 'CONFIG_NAMESPACES', it is logical to enable all the namespaces when we enable NAMESPACES.

---
 init/Kconfig |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
init/Kconfig +5 -2
index a52124e..a7fe61e 100644
@@ -739,6 +739,7 @@ config NAMESPACES
 config UTS_NS
 	bool "UTS namespace"
 	depends on NAMESPACES
+	default y
 	help
 	  In this namespace tasks see different info provided with the
 	  uname() system call
@@ -746,6 +747,7 @@ config UTS_NS
 config IPC_NS
 	bool "IPC namespace"
 	depends on NAMESPACES && (SYSVIPC || POSIX_MQUEUE)
+	default y
 	help
 	  In this namespace tasks work with IPC ids which correspond to
 	  different IPC objects in different namespaces.
@@ -753,6 +755,7 @@ config IPC_NS
 config USER_NS
 	bool "User namespace (EXPERIMENTAL)"
 	depends on NAMESPACES && EXPERIMENTAL
+	default y
 	help
 	  This allows containers, i.e. vservers, to use user namespaces
 	  to provide different user info for different servers.
@@ -760,8 +763,8 @@ config USER_NS
 
 config PID_NS
 	bool "PID Namespaces"
-	default n
 	depends on NAMESPACES
+	default y
 	help
 	  Support process id namespaces.  This allows having multiple
 	  processes with the same pid as long as they are in different
@@ -769,8 +772,8 @@ config PID_NS
 
 config NET_NS
 	bool "Network namespace"
-	default n
 	depends on NAMESPACES && NET
+	default y
 	help
 	  Allow user space to create what appear to be multiple instances
 	  of the network stack.
Signature · 1 line
1.7.0.4
Acked-by
#4 lore raw

Re: [PATCH 2/2] Kconfig : default all the namespaces to 'yes'

In reply to a message not in the archive
Quoted 4 lines · Daniel Lezcano

As the different namespaces depend on 'CONFIG_NAMESPACES', it is logical to enable all the namespaces when we enable NAMESPACES.

Subject of the patch email is a little confusing as it's not quite what happens. I'm mostly OK with it but I'm not sure we should enable user-ns by default just yet.

Quoted 59 lines
---
 init/Kconfig |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
init/Kconfig +5 -2
index a52124e..a7fe61e 100644
@@ -739,6 +739,7 @@ config NAMESPACES
 config UTS_NS
 	bool "UTS namespace"
 	depends on NAMESPACES
+	default y
 	help
 	  In this namespace tasks see different info provided with the
 	  uname() system call
@@ -746,6 +747,7 @@ config UTS_NS
 config IPC_NS
 	bool "IPC namespace"
 	depends on NAMESPACES && (SYSVIPC || POSIX_MQUEUE)
+	default y
 	help
 	  In this namespace tasks work with IPC ids which correspond to
 	  different IPC objects in different namespaces.
@@ -753,6 +755,7 @@ config IPC_NS
 config USER_NS
 	bool "User namespace (EXPERIMENTAL)"
 	depends on NAMESPACES && EXPERIMENTAL
+	default y
 	help
 	  This allows containers, i.e. vservers, to use user namespaces
 	  to provide different user info for different servers.
@@ -760,8 +763,8 @@ config USER_NS
 
 config PID_NS
 	bool "PID Namespaces"
-	default n
 	depends on NAMESPACES
+	default y
 	help
 	  Support process id namespaces.  This allows having multiple
 	  processes with the same pid as long as they are in different
@@ -769,8 +772,8 @@ config PID_NS
 
 config NET_NS
 	bool "Network namespace"
-	default n
 	depends on NAMESPACES && NET
+	default y
 	help
 	  Allow user space to create what appear to be multiple instances
 	  of the network stack.
Signature · 6 lines
1.7.0.4

_______________________________________________
Containers mailing list
Containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
https://lists.linux-foundation.org/mailman/listinfo/containers
#6 lore raw

Re: [PATCH 2/2] Kconfig : default all the namespaces to 'yes'

In reply to a message not in the archive
Quoted 11 lines · Matt Helsley
Quoted 4 lines · Daniel Lezcano

As the different namespaces depend on 'CONFIG_NAMESPACES', it is logical to enable all the namespaces when we enable NAMESPACES.

Subject of the patch email is a little confusing as it's not quite what happens. I'm mostly OK with it but I'm not sure we should enable user-ns by default just yet.

In fact, perhaps we should keep the experimental tag on user namespaces. If/when I/someone returns to heavy hacking on user namespaces, the changes will be very invasive. (Of course then we get back to questions of the usefulness of experimental tag)

In particular, when we start refusing access for certain accesses between user namespaces, it might confuse userspace.

Definately Ack to the other two.

-serge

#15 lore raw
In reply to a message not in the archive

Daniel,

Maybe you can throw this on in the series as well ?
http://www.mail-archive.com/[email protected]/msg01431.html

It's a one-liner to move the namespaces options into its own sub-menu under 'General Setup'.

Oren.

Quoted 39 lines · Daniel Lezcano

The pid namespace is in the kernel since 2.6.27 and the net_ns since 2.6.29. They are enabled in the distro by default and used by userspace component. They are mature enough to remove the 'experimental' label.

---
  init/Kconfig |    9 +++------
  1 files changed, 3 insertions(+), 6 deletions(-)
init/Kconfig +3 -6
index a175935..a52124e 100644
@@ -759,21 +759,18 @@ config USER_NS
  	  If unsure, say N.
 
  config PID_NS
-	bool "PID Namespaces (EXPERIMENTAL)"
+	bool "PID Namespaces"
  	default n
-	depends on NAMESPACES&&  EXPERIMENTAL
+	depends on NAMESPACES
  	help
  	  Support process id namespaces.  This allows having multiple
  	  processes with the same pid as long as they are in different
  	  pid namespaces.  This is a building block of containers.
 
-	  Unless you want to work with an experimental feature
-	  say N here.
-
  config NET_NS
  	bool "Network namespace"
  	default n
-	depends on NAMESPACES&&  EXPERIMENTAL&&  NET
+	depends on NAMESPACES&&  NET
  	help
  	  Allow user space to create what appear to be multiple instances
  	  of the network stack.
#8 lore raw

Re: [PATCH 2/2] Kconfig : default all the namespaces to 'yes'

In reply to a message not in the archive
Quoted 9 lines · Serge E. Hallyn
Quoted 7 lines · Matt Helsley
Quoted 5 lines · Daniel Lezcano

As the different namespaces depend on 'CONFIG_NAMESPACES', it is logical to enable all the namespaces when we enable NAMESPACES.

Quoted 8 lines
Quoted 6 lines

Subject of the patch email is a little confusing as it's not quite what happens. I'm mostly OK with it but I'm not sure we should enable user-ns by default just yet.

In fact, perhaps we should keep the experimental tag on user namespaces.

The experimental tag is kept on the user namespace. This one is defaulting to yes when the namespaces and experimental are selected.

#10 lore raw

Re: [PATCH 2/2] Kconfig : default all the namespaces to 'yes'

In reply to a message not in the archive
Quoted 11 lines · Daniel Lezcano
Quoted 10 lines · Serge E. Hallyn
Quoted 9 lines · Matt Helsley
Quoted 4 lines · Daniel Lezcano

As the different namespaces depend on 'CONFIG_NAMESPACES', it is logical to enable all the namespaces when we enable NAMESPACES.

Subject of the patch email is a little confusing as it's not quite what happens. I'm mostly OK with it but I'm not sure we should enable user-ns by default just yet.

Quoted 5 lines
Quoted 2 lines
Quoted 1 line

In fact, perhaps we should keep the experimental tag on user namespaces.

The experimental tag is kept on the user namespace. This one is defaulting to yes when the namespaces and experimental are selected.

Oh, sounds good

-serge

Acked-by Matt Helsley
#12 lore raw

Re: [PATCH 2/2] Kconfig : default all the namespaces to 'yes'

In reply to a message not in the archive
Quoted 12 lines · On Wed, 13 Oct 2010 09:44:30 -0500 "Serge E. Hallyn"…
Quoted 11 lines · Daniel Lezcano
Quoted 10 lines · Serge E. Hallyn
Quoted 9 lines · Matt Helsley
Quoted 4 lines · Daniel Lezcano

As the different namespaces depend on 'CONFIG_NAMESPACES', it is logical to enable all the namespaces when we enable NAMESPACES.

Subject of the patch email is a little confusing as it's not quite what happens. I'm mostly OK with it but I'm not sure we should enable user-ns by default just yet.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Quoted 1 line

In fact, perhaps we should keep the experimental tag on user namespaces.

The experimental tag is kept on the user namespace. This one is defaulting to yes when the namespaces and experimental are selected.

Oh, sounds good

My attention flagged. Can we please confirm that the current patch is still good?

From: Daniel Lezcano <[email protected]>

As the different namespaces depend on 'CONFIG_NAMESPACES', it is logical to enable all the namespaces when we enable NAMESPACES.

Cc "Eric W. Biederman" <ebiederm-aS9lmoZGLiVWk0Htik3J/[email protected]>
Cc David Miller <davem-fT/PcQaiUtIeIZ0/[email protected]>

---

 init/Kconfig |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
init/Kconfig renamed from init/Kconfig~namespaces-default-all-the-namespaces-to-yes-when-config_namespaces-is-selected +5 -2
diff -puN init/Kconfig~namespaces-default-all-the-namespaces-to-yes-when-config_namespaces-is-selected init/Kconfig
@@ -739,6 +739,7 @@ config NAMESPACES
 config UTS_NS
 	bool "UTS namespace"
 	depends on NAMESPACES
+	default y
 	help
 	  In this namespace tasks see different info provided with the
 	  uname() system call
@@ -746,6 +747,7 @@ config UTS_NS
 config IPC_NS
 	bool "IPC namespace"
 	depends on NAMESPACES && (SYSVIPC || POSIX_MQUEUE)
+	default y
 	help
 	  In this namespace tasks work with IPC ids which correspond to
 	  different IPC objects in different namespaces.
@@ -753,6 +755,7 @@ config IPC_NS
 config USER_NS
 	bool "User namespace (EXPERIMENTAL)"
 	depends on NAMESPACES && EXPERIMENTAL
+	default y
 	help
 	  This allows containers, i.e. vservers, to use user namespaces
 	  to provide different user info for different servers.
@@ -760,8 +763,8 @@ config USER_NS
 
 config PID_NS
 	bool "PID Namespaces"
-	default n
 	depends on NAMESPACES
+	default y
 	help
 	  Support process id namespaces.  This allows having multiple
 	  processes with the same pid as long as they are in different
@@ -769,8 +772,8 @@ config PID_NS
 
 config NET_NS
 	bool "Network namespace"
-	default n
 	depends on NAMESPACES && NET
+	default y
 	help
 	  Allow user space to create what appear to be multiple instances
 	  of the network stack.

_

Acked-by Serge Hallyn
#14 lore raw

Re: [PATCH 2/2] Kconfig : default all the namespaces to 'yes'

In reply to a message not in the archive
Quoted 18 lines · Andrew Morton
Quoted 15 lines · On Wed, 13 Oct 2010 09:44:30 -0500 "Serge E. Hallyn"…
Quoted 14 lines · Daniel Lezcano
Quoted 12 lines · Serge E. Hallyn
Quoted 10 lines · Matt Helsley
Quoted 4 lines · Daniel Lezcano

As the different namespaces depend on 'CONFIG_NAMESPACES', it is logical to enable all the namespaces when we enable NAMESPACES.

Subject of the patch email is a little confusing as it's not quite what happens. I'm mostly OK with it but I'm not sure we should enable user-ns by default just yet.

In fact, perhaps we should keep the experimental tag on user namespaces.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

The experimental tag is kept on the user namespace. This one is defaulting to yes when the namespaces and experimental are selected.

Oh, sounds good

My attention flagged. Can we please confirm that the current patch is still good?

Yup, the patch below only sets USER_NS=y when EXPERIMENTAL=y, which I'd failed to notice the first time.

Quoted 63 lines

From: Daniel Lezcano <[email protected]>

As the different namespaces depend on 'CONFIG_NAMESPACES', it is logical to enable all the namespaces when we enable NAMESPACES.

Cc "Eric W. Biederman" <ebiederm-aS9lmoZGLiVWk0Htik3J/[email protected]>
Cc David Miller <davem-fT/PcQaiUtIeIZ0/[email protected]>

---

 init/Kconfig |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff -puN init/Kconfig~namespaces-default-all-the-namespaces-to-yes-when-config_namespaces-is-selected init/Kconfig

init/Kconfig renamed from init/Kconfig~namespaces-default-all-the-namespaces-to-yes-when-config_namespaces-is-selected +5 -2
@@ -739,6 +739,7 @@ config NAMESPACES
 config UTS_NS
 	bool "UTS namespace"
 	depends on NAMESPACES
+	default y
 	help
 	  In this namespace tasks see different info provided with the
 	  uname() system call
@@ -746,6 +747,7 @@ config UTS_NS
 config IPC_NS
 	bool "IPC namespace"
 	depends on NAMESPACES && (SYSVIPC || POSIX_MQUEUE)
+	default y
 	help
 	  In this namespace tasks work with IPC ids which correspond to
 	  different IPC objects in different namespaces.
@@ -753,6 +755,7 @@ config IPC_NS
 config USER_NS
 	bool "User namespace (EXPERIMENTAL)"
 	depends on NAMESPACES && EXPERIMENTAL
+	default y
 	help
 	  This allows containers, i.e. vservers, to use user namespaces
 	  to provide different user info for different servers.
@@ -760,8 +763,8 @@ config USER_NS
 
 config PID_NS
 	bool "PID Namespaces"
-	default n
 	depends on NAMESPACES
+	default y
 	help
 	  Support process id namespaces.  This allows having multiple
 	  processes with the same pid as long as they are in different
@@ -769,8 +772,8 @@ config PID_NS
 
 config NET_NS
 	bool "Network namespace"
-	default n
 	depends on NAMESPACES && NET
+	default y
 	help
 	  Allow user space to create what appear to be multiple instances
 	  of the network stack.

_