diff options
Diffstat (limited to '0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch')
-rw-r--r-- | 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch b/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch index 9a1d231..b1bfa40 100644 --- a/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch +++ b/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch @@ -1,7 +1,7 @@ -From 94b991f547408a533740c69260971d38cfb01075 Mon Sep 17 00:00:00 2001 +From dd8fc5a102fde53524319e0753af627393db1257 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com> Date: Mon, 16 Sep 2019 04:53:20 +0200 -Subject: [PATCH 1/7] ZEN: Add sysctl and CONFIG to disallow unprivileged +Subject: [PATCH 1/8] ZEN: Add sysctl and CONFIG to disallow unprivileged CLONE_NEWUSER Our default behavior continues to match the vanilla kernel. @@ -63,7 +63,7 @@ index c7900e8975f1..ca4e43b7f31f 100644 bool "PID Namespaces" default y diff --git a/kernel/fork.c b/kernel/fork.c -index 9d44f2d46c69..e5ba00a7e3b2 100644 +index d587c85f35b1..3d8e44ef18e5 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -99,6 +99,10 @@ @@ -77,7 +77,7 @@ index 9d44f2d46c69..e5ba00a7e3b2 100644 #include <asm/pgalloc.h> #include <linux/uaccess.h> #include <asm/mmu_context.h> -@@ -1995,6 +1999,10 @@ static __latent_entropy struct task_struct *copy_process( +@@ -1996,6 +2000,10 @@ static __latent_entropy struct task_struct *copy_process( if ((clone_flags & (CLONE_NEWUSER|CLONE_FS)) == (CLONE_NEWUSER|CLONE_FS)) return ERR_PTR(-EINVAL); @@ -88,7 +88,7 @@ index 9d44f2d46c69..e5ba00a7e3b2 100644 /* * Thread groups must share signals as well, and detached threads * can only be started up within the thread group. -@@ -3143,6 +3151,12 @@ int ksys_unshare(unsigned long unshare_flags) +@@ -3144,6 +3152,12 @@ int ksys_unshare(unsigned long unshare_flags) if (unshare_flags & CLONE_NEWNS) unshare_flags |= CLONE_FS; |