diff options
Diffstat (limited to 'src/firejail/profile.c')
-rw-r--r-- | src/firejail/profile.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c index 62d3c78e7..ddcaa5382 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c | |||
@@ -1074,24 +1074,9 @@ int profile_check_line(char *ptr, int lineno, const char *fname) { | |||
1074 | } | 1074 | } |
1075 | 1075 | ||
1076 | #ifdef HAVE_LANDLOCK | 1076 | #ifdef HAVE_LANDLOCK |
1077 | // Landlock ruleset paths | 1077 | if (strncmp(ptr, "landlock.enforce", 16) == 0) { |
1078 | if (strcmp(ptr, "landlock") == 0) { | 1078 | arg_landlock_enforce = 1; |
1079 | arg_landlock = 1; | 1079 | return 0; |
1080 | return 0; | ||
1081 | } | ||
1082 | if (strncmp(ptr, "landlock.proc ", 14) == 0) { | ||
1083 | if (strncmp(ptr + 14, "no", 2) == 0) | ||
1084 | arg_landlock_proc = 0; | ||
1085 | else if (strncmp(ptr + 14, "ro", 2) == 0) | ||
1086 | arg_landlock_proc = 1; | ||
1087 | else if (strncmp(ptr + 14, "rw", 2) == 0) | ||
1088 | arg_landlock_proc = 2; | ||
1089 | else { | ||
1090 | fprintf(stderr, "Error: invalid landlock.proc value: %s\n", | ||
1091 | ptr + 14); | ||
1092 | exit(1); | ||
1093 | } | ||
1094 | return 0; | ||
1095 | } | 1080 | } |
1096 | if (strncmp(ptr, "landlock.read ", 14) == 0) { | 1081 | if (strncmp(ptr, "landlock.read ", 14) == 0) { |
1097 | ll_add_profile(LL_READ, ptr + 14); | 1082 | ll_add_profile(LL_READ, ptr + 14); |