aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-12-11 15:20:09 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-12-11 22:46:10 -0300
commit5679d1028b337afb8b1c22f40b5bc595161b8950 (patch)
treea41cffafb095e4a9eb21755af257f7283b547bf2 /src
parentlandlock: sort --landlock commands (diff)
downloadfirejail-5679d1028b337afb8b1c22f40b5bc595161b8950.tar.gz
firejail-5679d1028b337afb8b1c22f40b5bc595161b8950.tar.zst
firejail-5679d1028b337afb8b1c22f40b5bc595161b8950.zip
landlock: avoid landlock syscalls before ll_restrict
Avoid checking if Landlock is supported in ll_add_profile(), as it may result in a warning being printed in ll_is_supported() in the next commit. Relates to #6078.
Diffstat (limited to 'src')
-rw-r--r--src/firejail/landlock.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/firejail/landlock.c b/src/firejail/landlock.c
index eadce2d97..e93bde402 100644
--- a/src/firejail/landlock.c
+++ b/src/firejail/landlock.c
@@ -301,9 +301,6 @@ void ll_add_profile(int type, const char *data) {
301 assert(type < LL_MAX); 301 assert(type < LL_MAX);
302 assert(data); 302 assert(data);
303 303
304 if (!ll_is_supported())
305 return;
306
307 while (*data == ' ' || *data == '\t') 304 while (*data == ' ' || *data == '\t')
308 data++; 305 data++;
309 306