Skip to content

Commit

Permalink
landlock: use PATH macro in landlock-common.inc
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 netblue30#6125.

Relates to netblue30#6078.
  • Loading branch information
kmk3 committed Mar 1, 2024
1 parent df257a8 commit 2964fec
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 2964fec

Please sign in to comment.