-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6125 from kmk3/landlock-enforce
landlock: move commands into profile and add landlock.enforce
- Loading branch information
Showing
15 changed files
with
91 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This file is overwritten during software install. | ||
# Persistent customizations should go in a .local file. | ||
include landlock-common.local | ||
|
||
landlock.read / # whole system read | ||
landlock.read /proc | ||
landlock.special / # sockets etc. | ||
|
||
# write access | ||
landlock.write ${HOME} | ||
landlock.write ${RUNUSER} | ||
landlock.write /dev | ||
landlock.write /proc | ||
landlock.write /run/shm | ||
landlock.write /tmp | ||
|
||
# exec access | ||
## misc | ||
landlock.execute /opt | ||
landlock.execute /run/firejail # appimage and various firejail features | ||
## bin | ||
landlock.execute /bin | ||
landlock.execute /sbin | ||
landlock.execute /usr/bin | ||
landlock.execute /usr/sbin | ||
landlock.execute /usr/games | ||
landlock.execute /usr/local/bin | ||
landlock.execute /usr/local/sbin | ||
landlock.execute /usr/local/games | ||
## lib | ||
landlock.execute /lib | ||
landlock.execute /lib32 | ||
landlock.execute /libx32 | ||
landlock.execute /lib64 | ||
landlock.execute /usr/lib | ||
landlock.execute /usr/lib32 | ||
landlock.execute /usr/libx32 | ||
landlock.execute /usr/lib64 | ||
landlock.execute /usr/local/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ _firejail() | |
_filedir -d | ||
return 0 | ||
;; | ||
--landlock) | ||
--landlock.enforce) | ||
return 0 | ||
;; | ||
--landlock.read) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.