Skip to content

Commit

Permalink
landlock: use PATH macro in landlock-common.inc (#6260)
Browse files Browse the repository at this point in the history
To reduce duplication.

Support for it was added on commit bf5a993 ("landlock: add support for
PATH macro", 2023-12-22).

See also commit 19e1082 ("landlock: expand simple macros in commands",
2023-11-11) / PR #6125.

Relates to #6078.
  • Loading branch information
kmk3 authored Mar 8, 2024
1 parent 9150c1e commit 77e7512
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions etc/inc/landlock-common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,9 @@ landlock.fs.write /tmp

# exec access
## misc
landlock.fs.execute ${PATH}
landlock.fs.execute /opt
landlock.fs.execute /run/firejail # appimage and various firejail features
## bin
landlock.fs.execute /bin
landlock.fs.execute /sbin
landlock.fs.execute /usr/bin
landlock.fs.execute /usr/sbin
landlock.fs.execute /usr/games
landlock.fs.execute /usr/local/bin
landlock.fs.execute /usr/local/sbin
landlock.fs.execute /usr/local/games
## lib
landlock.fs.execute /lib
landlock.fs.execute /lib32
Expand Down

0 comments on commit 77e7512

Please sign in to comment.