diff options
author | Houge Langley | 2021-02-16 14:31:59 +0800 |
---|---|---|
committer | Houge Langley | 2021-02-16 14:31:59 +0800 |
commit | 27b7974b31e850c66214e0d4b455279f5583d4c5 (patch) | |
tree | 1a9d6c37478662159c61ede64d712c662fb267c9 | |
parent | 582d712bf0035d3f2c3d21aa3b1d14314ee2c5f9 (diff) | |
download | aur-27b7974b31e850c66214e0d4b455279f5583d4c5.tar.gz |
Try to fix first
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | 0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-CLONE_NEWUSER.patch | 18 | ||||
-rw-r--r-- | PKGBUILD | 2 |
3 files changed, 11 insertions, 11 deletions
@@ -24,7 +24,7 @@ pkgbase = linux-xanmod-uksm sha256sums = b8bc4f6312bdc086c0fecd1cce1ab1ee12b7b4eff63f88239a65461d9ec5e91b sha256sums = 9d49118bb60c0277ebac5aadd4938eb41561dd3d97c9422832e62d0ffc5c59df sha256sums = e840e41f0f91108f63fd6e085c93b02daa78729268bc31be7be7fb355203e38a - sha256sums = ffd5b4bbb0e9e8306d1ae6faf62f1ef878bfa50ddba4ab959351f3fedc85654a + sha256sums = 01a9b6c45e250e77396d1259c092313bb37b646c112a6cc4e092b6b736918308 sha256sums = 6ae9b0f994c8cea6ddbaaa570a2570d8489643b33b61c68090670c241a0cd3cc pkgname = linux-xanmod-uksm diff --git a/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-CLONE_NEWUSER.patch b/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-CLONE_NEWUSER.patch index 6599906affa2..09c62287cf31 100644 --- a/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-CLONE_NEWUSER.patch +++ b/0001-ZEN-Add-sysctl-and-CONFIG-to-disallow-unprivileged-CLONE_NEWUSER.patch @@ -1,7 +1,7 @@ -From 0ba168ffdb2454672c66eb714c5ed6d452b61d1b Mon Sep 17 00:00:00 2001 +From 68005d101d389407ed3c69ad0e58d2bdf37e20ab 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] ZEN: Add sysctl and CONFIG to disallow unprivileged +Subject: [PATCH 1/2] ZEN: Add sysctl and CONFIG to disallow unprivileged CLONE_NEWUSER Our default behavior continues to match the vanilla kernel. @@ -14,7 +14,7 @@ Our default behavior continues to match the vanilla kernel. 5 files changed, 53 insertions(+) diff --git a/include/linux/user_namespace.h b/include/linux/user_namespace.h -index 64cf8ebdc..bd29529ac 100644 +index 64cf8eb..bd29529 100644 --- a/include/linux/user_namespace.h +++ b/include/linux/user_namespace.h @@ -105,6 +105,8 @@ void dec_ucount(struct ucounts *ucounts, enum ucount_type type); @@ -36,7 +36,7 @@ index 64cf8ebdc..bd29529ac 100644 { return &init_user_ns; diff --git a/init/Kconfig b/init/Kconfig -index 29ad68325..96b79cfb2 100644 +index 29ad683..96b79cf 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1172,6 +1172,22 @@ config USER_NS @@ -63,7 +63,7 @@ index 29ad68325..96b79cfb2 100644 bool "PID Namespaces" default y diff --git a/kernel/fork.c b/kernel/fork.c -index d66cd1014..231a94ffd 100644 +index ff215b3..91f43cf 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -97,6 +97,10 @@ @@ -77,7 +77,7 @@ index d66cd1014..231a94ffd 100644 #include <asm/pgalloc.h> #include <linux/uaccess.h> #include <asm/mmu_context.h> -@@ -1864,6 +1868,10 @@ static __latent_entropy struct task_struct *copy_process( +@@ -1865,6 +1869,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 d66cd1014..231a94ffd 100644 /* * Thread groups must share signals as well, and detached threads * can only be started up within the thread group. -@@ -2933,6 +2941,12 @@ int ksys_unshare(unsigned long unshare_flags) +@@ -2934,6 +2942,12 @@ int ksys_unshare(unsigned long unshare_flags) if (unshare_flags & CLONE_NEWNS) unshare_flags |= CLONE_FS; @@ -102,7 +102,7 @@ index d66cd1014..231a94ffd 100644 if (err) goto bad_unshare_out; diff --git a/kernel/sysctl.c b/kernel/sysctl.c -index c9fbdd848..1fbf5d551 100644 +index c9fbdd8..1fbf5d5 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -103,6 +103,9 @@ @@ -132,7 +132,7 @@ index c9fbdd848..1fbf5d551 100644 { .procname = "tainted", diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c -index af612945a..95c54dae4 100644 +index af61294..95c54da 100644 --- a/kernel/user_namespace.c +++ b/kernel/user_namespace.c @@ -21,6 +21,13 @@ @@ -107,7 +107,7 @@ sha256sums=('04f07b54f0d40adfab02ee6cbd2a942c96728d87c1ef9e120d0cb9ba3fe067b4' 'b8bc4f6312bdc086c0fecd1cce1ab1ee12b7b4eff63f88239a65461d9ec5e91b' '9d49118bb60c0277ebac5aadd4938eb41561dd3d97c9422832e62d0ffc5c59df' 'e840e41f0f91108f63fd6e085c93b02daa78729268bc31be7be7fb355203e38a' - 'ffd5b4bbb0e9e8306d1ae6faf62f1ef878bfa50ddba4ab959351f3fedc85654a' + '01a9b6c45e250e77396d1259c092313bb37b646c112a6cc4e092b6b736918308' '6ae9b0f994c8cea6ddbaaa570a2570d8489643b33b61c68090670c241a0cd3cc') # If use_cachy=y then download cachy patch |