mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
landlock: move commands into profile and add landlock.enforce
Changes: * Move commands from --landlock and --landlock.proc= into etc/inc/landlock-common.inc * Remove --landlock and --landlock.proc= * Add --landlock.enforce Instead of hard-coding the default commands (and having a separate command just for /proc), move them into a dedicated profile to make it easier for users to interact with the entries (view, copy, add ignore entries, etc). Only enforce the Landlock commands if --landlock.enforce is supplied. This allows safely adding Landlock commands to (upstream) profiles while keeping their enforcement opt-in. It also makes it simpler to effectively disable all Landlock commands, by using `--ignore=landlock.enforce`. Relates to #6078.
This commit is contained in:
parent
5679d1028b
commit
760f50f78a
15 changed files with 78 additions and 145 deletions
|
|
@ -12,7 +12,7 @@ keep-config-pulse
|
|||
keep-dev-shm
|
||||
keep-shell-rc
|
||||
keep-var-tmp
|
||||
landlock
|
||||
landlock.enforce
|
||||
machine-id
|
||||
memory-deny-write-execute
|
||||
netfilter
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ iprange
|
|||
join-or-start
|
||||
keep-fd
|
||||
landlock.execute
|
||||
landlock.proc
|
||||
landlock.read
|
||||
landlock.special
|
||||
landlock.write
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue