diff options
author | 2023-12-21 09:50:22 -0500 | |
---|---|---|
committer | 2023-12-21 09:50:22 -0500 | |
commit | c245fec2d475b86c03fd8c8a6b9013ed5bdab91b (patch) | |
tree | 5f76b7f8ec59519d15c40f5260fb7e8711f847f4 /etc/inc/landlock-common.inc | |
parent | Merge pull request #6118 from NetSysFire/patch-4 (diff) | |
parent | landlock: move commands into profile and add landlock.enforce (diff) | |
download | firejail-c245fec2d475b86c03fd8c8a6b9013ed5bdab91b.tar.gz firejail-c245fec2d475b86c03fd8c8a6b9013ed5bdab91b.tar.zst firejail-c245fec2d475b86c03fd8c8a6b9013ed5bdab91b.zip |
Merge pull request #6125 from kmk3/landlock-enforce
landlock: move commands into profile and add landlock.enforce
Diffstat (limited to 'etc/inc/landlock-common.inc')
-rw-r--r-- | etc/inc/landlock-common.inc | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/etc/inc/landlock-common.inc b/etc/inc/landlock-common.inc new file mode 100644 index 000000000..ebe9f98dc --- /dev/null +++ b/etc/inc/landlock-common.inc | |||
@@ -0,0 +1,39 @@ | |||
1 | # This file is overwritten during software install. | ||
2 | # Persistent customizations should go in a .local file. | ||
3 | include landlock-common.local | ||
4 | |||
5 | landlock.read / # whole system read | ||
6 | landlock.read /proc | ||
7 | landlock.special / # sockets etc. | ||
8 | |||
9 | # write access | ||
10 | landlock.write ${HOME} | ||
11 | landlock.write ${RUNUSER} | ||
12 | landlock.write /dev | ||
13 | landlock.write /proc | ||
14 | landlock.write /run/shm | ||
15 | landlock.write /tmp | ||
16 | |||
17 | # exec access | ||
18 | ## misc | ||
19 | landlock.execute /opt | ||
20 | landlock.execute /run/firejail # appimage and various firejail features | ||
21 | ## bin | ||
22 | landlock.execute /bin | ||
23 | landlock.execute /sbin | ||
24 | landlock.execute /usr/bin | ||
25 | landlock.execute /usr/sbin | ||
26 | landlock.execute /usr/games | ||
27 | landlock.execute /usr/local/bin | ||
28 | landlock.execute /usr/local/sbin | ||
29 | landlock.execute /usr/local/games | ||
30 | ## lib | ||
31 | landlock.execute /lib | ||
32 | landlock.execute /lib32 | ||
33 | landlock.execute /libx32 | ||
34 | landlock.execute /lib64 | ||
35 | landlock.execute /usr/lib | ||
36 | landlock.execute /usr/lib32 | ||
37 | landlock.execute /usr/libx32 | ||
38 | landlock.execute /usr/lib64 | ||
39 | landlock.execute /usr/local/lib | ||