aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-11-18 16:59:11 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-12-05 11:41:13 -0300
commitd551bfceebcb2243d94c5332d14fd5d1580b2289 (patch)
tree5081c6b6c547c3276b0c75a33ec0d2e221abbbcb /src
parentlandlock: add missing empty function ll_is_supported (diff)
downloadfirejail-d551bfceebcb2243d94c5332d14fd5d1580b2289.tar.gz
firejail-d551bfceebcb2243d94c5332d14fd5d1580b2289.tar.zst
firejail-d551bfceebcb2243d94c5332d14fd5d1580b2289.zip
landlock: fix misc messages in ll_is_supported
This amends commit d10bf154a ("landlock: detect support at runtime", 2023-11-06) / PR #6078.
Diffstat (limited to 'src')
-rw-r--r--src/firejail/landlock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/firejail/landlock.c b/src/firejail/landlock.c
index 27fc1d748..52a562d6e 100644
--- a/src/firejail/landlock.c
+++ b/src/firejail/landlock.c
@@ -70,12 +70,12 @@ int ll_is_supported(void) {
70 ll_abi = 0; 70 ll_abi = 0;
71 fprintf(stderr, "Warning: Landlock is disabled or not supported: %s, " 71 fprintf(stderr, "Warning: Landlock is disabled or not supported: %s, "
72 "ignoring landlock commands\n", 72 "ignoring landlock commands\n",
73 strerror(errno)); 73 strerror(errno));
74 goto out; 74 goto out;
75 } 75 }
76 if (arg_debug) { 76
77 if (arg_debug)
77 printf("Detected Landlock ABI version %d\n", ll_abi); 78 printf("Detected Landlock ABI version %d\n", ll_abi);
78 }
79out: 79out:
80 return ll_abi; 80 return ll_abi;
81} 81}