diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2024-02-10 02:49:46 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2024-02-27 22:27:46 -0300 |
commit | 1758765ca6b0039d6513a802ec791928a7769013 (patch) | |
tree | 1795d97bbd8ab4bf3ff31746e1001f3346ff2f81 /src/firejail/profile.c | |
parent | Merge pull request #6222 from kmk3/build-override-tools (diff) | |
download | firejail-1758765ca6b0039d6513a802ec791928a7769013.tar.gz firejail-1758765ca6b0039d6513a802ec791928a7769013.tar.zst firejail-1758765ca6b0039d6513a802ec791928a7769013.zip |
landlock: add _fs prefix to filesystem functions
Relates to #6078.
Diffstat (limited to 'src/firejail/profile.c')
-rw-r--r-- | src/firejail/profile.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/firejail/profile.c b/src/firejail/profile.c index a5a8393e9..945ed518e 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c | |||
@@ -1079,23 +1079,23 @@ int profile_check_line(char *ptr, int lineno, const char *fname) { | |||
1079 | return 0; | 1079 | return 0; |
1080 | } | 1080 | } |
1081 | if (strncmp(ptr, "landlock.read ", 14) == 0) { | 1081 | if (strncmp(ptr, "landlock.read ", 14) == 0) { |
1082 | ll_add_profile(LL_READ, ptr + 14); | 1082 | ll_add_profile(LL_FS_READ, ptr + 14); |
1083 | return 0; | 1083 | return 0; |
1084 | } | 1084 | } |
1085 | if (strncmp(ptr, "landlock.write ", 15) == 0) { | 1085 | if (strncmp(ptr, "landlock.write ", 15) == 0) { |
1086 | ll_add_profile(LL_WRITE, ptr + 15); | 1086 | ll_add_profile(LL_FS_WRITE, ptr + 15); |
1087 | return 0; | 1087 | return 0; |
1088 | } | 1088 | } |
1089 | if (strncmp(ptr, "landlock.makeipc ", 17) == 0) { | 1089 | if (strncmp(ptr, "landlock.makeipc ", 17) == 0) { |
1090 | ll_add_profile(LL_MAKEIPC, ptr + 17); | 1090 | ll_add_profile(LL_FS_MAKEIPC, ptr + 17); |
1091 | return 0; | 1091 | return 0; |
1092 | } | 1092 | } |
1093 | if (strncmp(ptr, "landlock.makedev ", 17) == 0) { | 1093 | if (strncmp(ptr, "landlock.makedev ", 17) == 0) { |
1094 | ll_add_profile(LL_MAKEDEV, ptr + 17); | 1094 | ll_add_profile(LL_FS_MAKEDEV, ptr + 17); |
1095 | return 0; | 1095 | return 0; |
1096 | } | 1096 | } |
1097 | if (strncmp(ptr, "landlock.execute ", 17) == 0) { | 1097 | if (strncmp(ptr, "landlock.execute ", 17) == 0) { |
1098 | ll_add_profile(LL_EXEC, ptr + 17); | 1098 | ll_add_profile(LL_FS_EXEC, ptr + 17); |
1099 | return 0; | 1099 | return 0; |
1100 | } | 1100 | } |
1101 | #endif | 1101 | #endif |