From 5679d1028b337afb8b1c22f40b5bc595161b8950 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Mon, 11 Dec 2023 15:20:09 -0300 Subject: 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. --- src/firejail/landlock.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') 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) { assert(type < LL_MAX); assert(data); - if (!ll_is_supported()) - return; - while (*data == ' ' || *data == '\t') data++; -- cgit v1.2.3-70-g09d2