From 78ab47d65d916207233abbcdb0ccfd6efb946c05 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sat, 30 Mar 2024 14:36:28 +0200 Subject: [PATCH] CMake: Fix sabotaged Landlock sandbox check. It never enabled it. (cherry picked from commit f9cf4c05edd14dedfe63833f8ccbe41b55823b00) --- 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 #include #include -. + void my_sandbox(void) { (void)prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);