Skip to content

Commit

Permalink
landlock: avoid landlock syscalls before ll_restrict
Browse files Browse the repository at this point in the history
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 netblue30#6078.
  • Loading branch information
kmk3 committed Dec 12, 2023
1 parent f0dc85e commit 5679d10
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/firejail/landlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,6 @@ void ll_add_profile(int type, const char *data) {
assert(type < LL_MAX);
assert(data);

if (!ll_is_supported())
return;

while (*data == ' ' || *data == '\t')
data++;

Expand Down

0 comments on commit 5679d10

Please sign in to comment.