diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2024-03-30 14:36:28 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2024-03-30 14:36:28 +0200 |
commit | f9cf4c05edd14dedfe63833f8ccbe41b55823b00 (patch) | |
tree | 5a7e190186e3d999f00d82092b20f8e2b87176bc /CMakeLists.txt | |
parent | Docs: Simplify SECURITY.md. (diff) | |
download | xz-f9cf4c05edd14dedfe63833f8ccbe41b55823b00.tar.xz |
CMake: Fix sabotaged Landlock sandbox check.
It never enabled it.
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 2 |
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); |