aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-03-08 13:12:30 +0000
committerLibravatar GitHub <noreply@github.com>2024-03-08 13:12:30 +0000
commit77e75126358013f5cd05c95df499440e3cd0a6b5 (patch)
treef7f9f886d626b1820347129f2055a02773100a62
parentfirecfg.config: add floorp (#6263) (diff)
downloadfirejail-77e75126358013f5cd05c95df499440e3cd0a6b5.tar.gz
firejail-77e75126358013f5cd05c95df499440e3cd0a6b5.tar.zst
firejail-77e75126358013f5cd05c95df499440e3cd0a6b5.zip
landlock: use PATH macro in landlock-common.inc (#6260)
To reduce duplication. Support for it was added on commit bf5a99360 ("landlock: add support for PATH macro", 2023-12-22). See also commit 19e108248 ("landlock: expand simple macros in commands", 2023-11-11) / PR #6125. Relates to #6078.
-rw-r--r--etc/inc/landlock-common.inc10
1 files changed, 1 insertions, 9 deletions
diff --git a/etc/inc/landlock-common.inc b/etc/inc/landlock-common.inc
index e147963a6..7ff6448e2 100644
--- a/etc/inc/landlock-common.inc
+++ b/etc/inc/landlock-common.inc
@@ -16,17 +16,9 @@ landlock.fs.write /tmp
16 16
17# exec access 17# exec access
18## misc 18## misc
19landlock.fs.execute ${PATH}
19landlock.fs.execute /opt 20landlock.fs.execute /opt
20landlock.fs.execute /run/firejail # appimage and various firejail features 21landlock.fs.execute /run/firejail # appimage and various firejail features
21## bin
22landlock.fs.execute /bin
23landlock.fs.execute /sbin
24landlock.fs.execute /usr/bin
25landlock.fs.execute /usr/sbin
26landlock.fs.execute /usr/games
27landlock.fs.execute /usr/local/bin
28landlock.fs.execute /usr/local/sbin
29landlock.fs.execute /usr/local/games
30## lib 22## lib
31landlock.fs.execute /lib 23landlock.fs.execute /lib
32landlock.fs.execute /lib32 24landlock.fs.execute /lib32