aboutsummaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-02-10 04:47:11 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-02-27 22:27:46 -0300
commit9cfeb485eb158217e644955bddc42e3bcf42ccbb (patch)
treef15092bed9d126ea3e651726e7215c8b7ee4c4ae /etc/inc
parentlandlock: add _fs prefix to filesystem functions (diff)
downloadfirejail-9cfeb485eb158217e644955bddc42e3bcf42ccbb.tar.gz
firejail-9cfeb485eb158217e644955bddc42e3bcf42ccbb.tar.zst
firejail-9cfeb485eb158217e644955bddc42e3bcf42ccbb.zip
landlock: use "landlock.fs." prefix in filesystem commands
Since Landlock ABI v4 it is possible to restrict actions related to the network and potentially more areas will be added in the future. So use `landlock.fs.` as the prefix in the current filesystem-related commands (and later `landlock.net.` for the network-related commands) to keep them organized and to match what is used in the kernel. Examples of filesystem and network access flags: * `LANDLOCK_ACCESS_FS_EXECUTE`: Execute a file. * `LANDLOCK_ACCESS_FS_READ_DIR`: Open a directory or list its content. * `LANDLOCK_ACCESS_NET_BIND_TCP`: Bind a TCP socket to a local port. * `LANDLOCK_ACCESS_NET_CONNECT_TCP`: Connect an active TCP socket to a remote port. Relates to #6078.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/landlock-common.inc56
1 files changed, 28 insertions, 28 deletions
diff --git a/etc/inc/landlock-common.inc b/etc/inc/landlock-common.inc
index 694d447b5..e147963a6 100644
--- a/etc/inc/landlock-common.inc
+++ b/etc/inc/landlock-common.inc
@@ -2,38 +2,38 @@
2# Persistent customizations should go in a .local file. 2# Persistent customizations should go in a .local file.
3include landlock-common.local 3include landlock-common.local
4 4
5landlock.read / # whole system read 5landlock.fs.read / # whole system read
6landlock.read /proc 6landlock.fs.read /proc
7landlock.makeipc / # sockets etc. 7landlock.fs.makeipc / # sockets etc.
8 8
9# write access 9# write access
10landlock.write ${HOME} 10landlock.fs.write ${HOME}
11landlock.write ${RUNUSER} 11landlock.fs.write ${RUNUSER}
12landlock.write /dev 12landlock.fs.write /dev
13landlock.write /proc 13landlock.fs.write /proc
14landlock.write /run/shm 14landlock.fs.write /run/shm
15landlock.write /tmp 15landlock.fs.write /tmp
16 16
17# exec access 17# exec access
18## misc 18## misc
19landlock.execute /opt 19landlock.fs.execute /opt
20landlock.execute /run/firejail # appimage and various firejail features 20landlock.fs.execute /run/firejail # appimage and various firejail features
21## bin 21## bin
22landlock.execute /bin 22landlock.fs.execute /bin
23landlock.execute /sbin 23landlock.fs.execute /sbin
24landlock.execute /usr/bin 24landlock.fs.execute /usr/bin
25landlock.execute /usr/sbin 25landlock.fs.execute /usr/sbin
26landlock.execute /usr/games 26landlock.fs.execute /usr/games
27landlock.execute /usr/local/bin 27landlock.fs.execute /usr/local/bin
28landlock.execute /usr/local/sbin 28landlock.fs.execute /usr/local/sbin
29landlock.execute /usr/local/games 29landlock.fs.execute /usr/local/games
30## lib 30## lib
31landlock.execute /lib 31landlock.fs.execute /lib
32landlock.execute /lib32 32landlock.fs.execute /lib32
33landlock.execute /libx32 33landlock.fs.execute /libx32
34landlock.execute /lib64 34landlock.fs.execute /lib64
35landlock.execute /usr/lib 35landlock.fs.execute /usr/lib
36landlock.execute /usr/lib32 36landlock.fs.execute /usr/lib32
37landlock.execute /usr/libx32 37landlock.fs.execute /usr/libx32
38landlock.execute /usr/lib64 38landlock.fs.execute /usr/lib64
39landlock.execute /usr/local/lib 39landlock.fs.execute /usr/local/lib