diff options
Diffstat (limited to 'source/a/xz/f9cf4c05edd14dedfe63833f8ccbe41b55823b00.patch')
-rw-r--r-- | source/a/xz/f9cf4c05edd14dedfe63833f8ccbe41b55823b00.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/source/a/xz/f9cf4c05edd14dedfe63833f8ccbe41b55823b00.patch b/source/a/xz/f9cf4c05edd14dedfe63833f8ccbe41b55823b00.patch new file mode 100644 index 000000000..12ce12c41 --- /dev/null +++ b/source/a/xz/f9cf4c05edd14dedfe63833f8ccbe41b55823b00.patch @@ -0,0 +1,25 @@ +From f9cf4c05edd14dedfe63833f8ccbe41b55823b00 Mon Sep 17 00:00:00 2001 +From: Lasse Collin <lasse.collin@tukaani.org> +Date: Sat, 30 Mar 2024 14:36:28 +0200 +Subject: [PATCH] CMake: Fix sabotaged Landlock sandbox check. + +It never enabled it. +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 1f019167..0e4d464f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1001,7 +1001,7 @@ if(NOT SANDBOX_FOUND AND ENABLE_SANDBOX MATCHES "^ON$|^landlock$") + #include <linux/landlock.h> + #include <sys/syscall.h> + #include <sys/prctl.h> +-. ++ + void my_sandbox(void) + { + (void)prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0); +-- +2.20.1 |