diff options
author | Daniel Lezcano <daniel.lezcano@free.fr> | 2010-10-27 18:34:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-27 21:03:16 -0400 |
commit | 8dd2a82c29111bb8ad2a2933aa269b49f72d356d (patch) | |
tree | 1b4f303aee710af71aae97de9690a925757f7013 /init | |
parent | 17a6d4411a4dc7e436e1a71c24e10048452edd98 (diff) |
namespaces Kconfig: make namespace a submenu
Make the namespaces config option a submenu.
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: "Serge E. Hallyn" <serue@us.ibm.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Paul Menage <menage@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
-rw-r--r-- | init/Kconfig | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/init/Kconfig b/init/Kconfig index 239fae49750b..5b3a3942a98c 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -734,7 +734,7 @@ config RELAY | |||
734 | 734 | ||
735 | If unsure, say N. | 735 | If unsure, say N. |
736 | 736 | ||
737 | config NAMESPACES | 737 | menuconfig NAMESPACES |
738 | bool "Namespaces support" if EMBEDDED | 738 | bool "Namespaces support" if EMBEDDED |
739 | default !EMBEDDED | 739 | default !EMBEDDED |
740 | help | 740 | help |
@@ -743,9 +743,10 @@ config NAMESPACES | |||
743 | or same user id or pid may refer to different tasks when used in | 743 | or same user id or pid may refer to different tasks when used in |
744 | different namespaces. | 744 | different namespaces. |
745 | 745 | ||
746 | if NAMESPACES | ||
747 | |||
746 | config UTS_NS | 748 | config UTS_NS |
747 | bool "UTS namespace" | 749 | bool "UTS namespace" |
748 | depends on NAMESPACES | ||
749 | default y | 750 | default y |
750 | help | 751 | help |
751 | In this namespace tasks see different info provided with the | 752 | In this namespace tasks see different info provided with the |
@@ -753,7 +754,7 @@ config UTS_NS | |||
753 | 754 | ||
754 | config IPC_NS | 755 | config IPC_NS |
755 | bool "IPC namespace" | 756 | bool "IPC namespace" |
756 | depends on NAMESPACES && (SYSVIPC || POSIX_MQUEUE) | 757 | depends on (SYSVIPC || POSIX_MQUEUE) |
757 | default y | 758 | default y |
758 | help | 759 | help |
759 | In this namespace tasks work with IPC ids which correspond to | 760 | In this namespace tasks work with IPC ids which correspond to |
@@ -761,7 +762,7 @@ config IPC_NS | |||
761 | 762 | ||
762 | config USER_NS | 763 | config USER_NS |
763 | bool "User namespace (EXPERIMENTAL)" | 764 | bool "User namespace (EXPERIMENTAL)" |
764 | depends on NAMESPACES && EXPERIMENTAL | 765 | depends on EXPERIMENTAL |
765 | default y | 766 | default y |
766 | help | 767 | help |
767 | This allows containers, i.e. vservers, to use user namespaces | 768 | This allows containers, i.e. vservers, to use user namespaces |
@@ -770,7 +771,6 @@ config USER_NS | |||
770 | 771 | ||
771 | config PID_NS | 772 | config PID_NS |
772 | bool "PID Namespaces" | 773 | bool "PID Namespaces" |
773 | depends on NAMESPACES | ||
774 | default y | 774 | default y |
775 | help | 775 | help |
776 | Support process id namespaces. This allows having multiple | 776 | Support process id namespaces. This allows having multiple |
@@ -779,12 +779,14 @@ config PID_NS | |||
779 | 779 | ||
780 | config NET_NS | 780 | config NET_NS |
781 | bool "Network namespace" | 781 | bool "Network namespace" |
782 | depends on NAMESPACES && NET | 782 | depends on NET |
783 | default y | 783 | default y |
784 | help | 784 | help |
785 | Allow user space to create what appear to be multiple instances | 785 | Allow user space to create what appear to be multiple instances |
786 | of the network stack. | 786 | of the network stack. |
787 | 787 | ||
788 | endif # NAMESPACES | ||
789 | |||
788 | config BLK_DEV_INITRD | 790 | config BLK_DEV_INITRD |
789 | bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support" | 791 | bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support" |
790 | depends on BROKEN || !FRV | 792 | depends on BROKEN || !FRV |