diff options
author | 2024-03-08 13:12:30 +0000 | |
---|---|---|
committer | 2024-03-08 13:12:30 +0000 | |
commit | 77e75126358013f5cd05c95df499440e3cd0a6b5 (patch) | |
tree | f7f9f886d626b1820347129f2055a02773100a62 /etc/inc | |
parent | firecfg.config: add floorp (#6263) (diff) | |
download | firejail-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.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/landlock-common.inc | 10 |
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 |
19 | landlock.fs.execute ${PATH} | ||
19 | landlock.fs.execute /opt | 20 | landlock.fs.execute /opt |
20 | landlock.fs.execute /run/firejail # appimage and various firejail features | 21 | landlock.fs.execute /run/firejail # appimage and various firejail features |
21 | ## bin | ||
22 | landlock.fs.execute /bin | ||
23 | landlock.fs.execute /sbin | ||
24 | landlock.fs.execute /usr/bin | ||
25 | landlock.fs.execute /usr/sbin | ||
26 | landlock.fs.execute /usr/games | ||
27 | landlock.fs.execute /usr/local/bin | ||
28 | landlock.fs.execute /usr/local/sbin | ||
29 | landlock.fs.execute /usr/local/games | ||
30 | ## lib | 22 | ## lib |
31 | landlock.fs.execute /lib | 23 | landlock.fs.execute /lib |
32 | landlock.fs.execute /lib32 | 24 | landlock.fs.execute /lib32 |