aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2024-03-30 14:36:28 +0200
committerLasse Collin <lasse.collin@tukaani.org>2024-03-30 14:36:28 +0200
commitf9cf4c05edd14dedfe63833f8ccbe41b55823b00 (patch)
tree5a7e190186e3d999f00d82092b20f8e2b87176bc
parentDocs: Simplify SECURITY.md. (diff)
downloadxz-f9cf4c05edd14dedfe63833f8ccbe41b55823b00.tar.xz
CMake: Fix sabotaged Landlock sandbox check.
It never enabled it.
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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);