Skip to content

Commit

Permalink
CMake: Fix sabotaged Landlock sandbox check.
Browse files Browse the repository at this point in the history
It never enabled it.
  • Loading branch information
Larhzu committed Mar 30, 2024
1 parent af071ef commit f9cf4c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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>
.

This comment was marked as spam.

Copy link
@nb-programmer

nb-programmer Apr 11, 2024

Sorry, had to do it
image

void my_sandbox(void)
{
(void)prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
Expand Down

2 comments on commit f9cf4c0

@Hnshlr

This comment was marked as spam.

@Mosesofmason

This comment was marked as spam.

Please sign in to comment.