diff options
author | graysky | 2021-09-22 20:12:07 -0400 |
---|---|---|
committer | graysky | 2021-09-22 20:12:07 -0400 |
commit | df318ab1b01591e475d823fc1b47d2646a9c5204 (patch) | |
tree | 1a0dcae3b7286387a384a0f22e9241ceb427c7d5 /0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-C.patch | |
parent | 7e796cd4418da11e84cf18ee0ec8e6ca40dc7de4 (diff) | |
download | aur-df318ab1b01591e475d823fc1b47d2646a9c5204.tar.gz |
Update to 5.14.7-1
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 ac6a0213ab40..368a06fdaf34 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 0735052e6d84964f4c9cef57ea619e40d05832ca Mon Sep 17 00:00:00 2001 +From f33efe28389ec4573fdc6e92c40583a395f38f46 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/3] 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 55f9f7738ebb..33c6a820ac08 100644 bool "PID Namespaces" default y diff --git a/kernel/fork.c b/kernel/fork.c -index 44f4c2d83763..7d4e04e18eef 100644 +index cbba21e3a58d..7267d46c29ea 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -98,6 +98,10 @@ @@ -77,7 +77,7 @@ index 44f4c2d83763..7d4e04e18eef 100644 #include <asm/pgalloc.h> #include <linux/uaccess.h> #include <asm/mmu_context.h> -@@ -1876,6 +1880,10 @@ static __latent_entropy struct task_struct *copy_process( +@@ -1877,6 +1881,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 44f4c2d83763..7d4e04e18eef 100644 /* * Thread groups must share signals as well, and detached threads * can only be started up within the thread group. -@@ -2980,6 +2988,12 @@ int ksys_unshare(unsigned long unshare_flags) +@@ -2981,6 +2989,12 @@ int ksys_unshare(unsigned long unshare_flags) if (unshare_flags & CLONE_NEWNS) unshare_flags |= CLONE_FS; |