commit:     4fe9a0402cb9c9366ec6570ebc12569ac414ca6a
Author:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 15 18:05:20 2015 +0000
Commit:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
CommitDate: Sun Mar 15 18:05:20 2015 +0000
URL:        https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=4fe9a040

Patch to add an option to the Gentoo menu that enables CGROUPS for cgroup, 
IPC_NS for ipc-sandbox, and NET_NS for network-sandbox.

 4567_distro-Gentoo-Kconfig.patch | 38 ++++++++++++++++++++++++++++++--------
 1 file changed, 30 insertions(+), 8 deletions(-)

diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch
index 690454a..c7af596 100644
--- a/4567_distro-Gentoo-Kconfig.patch
+++ b/4567_distro-Gentoo-Kconfig.patch
@@ -1,5 +1,5 @@
---- a/Kconfig  2014-04-02 09:45:05.389224541 -0400
-+++ b/Kconfig  2014-04-02 09:45:39.269224273 -0400
+--- a/Kconfig
++++ b/Kconfig
 @@ -8,4 +8,6 @@ config SRCARCH
        string
        option env="SRCARCH"
@@ -7,9 +7,9 @@
 +source "distro/Kconfig"
 +
  source "arch/$SRCARCH/Kconfig"
---- a/distro/Kconfig   1969-12-31 19:00:00.000000000 -0500
-+++ b/distro/Kconfig   2015-01-02 13:54:45.589830665 -0500
-@@ -0,0 +1,109 @@
+--- /dev/null
++++ b/distro/Kconfig
+@@ -0,0 +1,131 @@
 +menu "Gentoo Linux"
 +
 +config GENTOO_LINUX
@@ -30,7 +30,7 @@
 +
 +      depends on GENTOO_LINUX
 +      default y if GENTOO_LINUX
-+      
++
 +      select DEVTMPFS
 +      select TMPFS
 +
@@ -51,7 +51,29 @@
 +              boot process; if not available, it causes sysfs and udev to 
malfunction.
 +
 +              To ensure Gentoo Linux boots, it is best to leave this setting 
enabled;
-+              if you run a custom setup, you could consider whether to 
disable this. 
++              if you run a custom setup, you could consider whether to 
disable this.
++
++config GENTOO_LINUX_PORTAGE
++      bool "Select options required by Portage features"
++
++      depends on GENTOO_LINUX
++      default y if GENTOO_LINUX
++
++      select CGROUPS
++      select NAMESPACES
++      select IPC_NS
++      select NET_NS
++
++      help
++              This enables options required by various Portage FEATURES.
++              Currently this selects:
++
++              CGROUPS     (required for FEATURES=cgroup)
++              IPC_NS      (required for FEATURES=ipc-sandbox)
++              NET_NS      (required for FEATURES=network-sandbox)
++
++              It is highly recommended that you leave this enabled as these 
FEATURES
++              are, or will soon be, enabled by default.
 +
 +menu "Support for init systems, system and service managers"
 +      visible if GENTOO_LINUX
@@ -93,7 +115,7 @@
 +      select FHANDLE
 +      select INOTIFY_USER
 +      select NET
-+      select NET_NS 
++      select NET_NS
 +      select PROC_FS
 +      select SIGNALFD
 +      select SYSFS

Reply via email to