diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2024-04-08 11:22:15 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2024-04-10 02:42:17 -0300 |
commit | a05ae97af2a52b8349d732fecbc4343c86222400 (patch) | |
tree | bc45372e0ee230bd5bcebd06eedc1473556a9b94 /etc/profile-a-l/atril-thumbnailer.profile | |
parent | landlock fix for old kernel versions (diff) | |
download | firejail-a05ae97af2a52b8349d732fecbc4343c86222400.tar.gz firejail-a05ae97af2a52b8349d732fecbc4343c86222400.tar.zst firejail-a05ae97af2a52b8349d732fecbc4343c86222400.zip |
landlock: amend empty functions and comments
Changes:
* Always declare public landlock functions, regardless of
`HAVE_LANDLOCK`
* Make the other public landlock functions (besides `ll_add_profile`)
also be empty when `HAVE_LANDLOCK` is not defined
* Clarify related comments
This amends commit 8259f66e1 ("landlock fix for old kernel versions",
2024-04-06).
For clarity, landlock-common.inc is included by default.profile and the
issue that the aforementioned commit fixes is that if profile.c is built
without the part that parses landlock commands (that is, when
`HAVE_LANDLOCK` is not defined), using default.profile would cause
firejail to abort due to "invalid lines".
Note that the issue would only occur when firejail is built with an
older kernel (or with --disable-landlock), not when simply running on an
older kernel.
See also commit b02a7a337 ("landlock: remove empty functions",
2023-12-07).
Relates to #6078.
Diffstat (limited to 'etc/profile-a-l/atril-thumbnailer.profile')
0 files changed, 0 insertions, 0 deletions