aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/check-c.yml4
-rw-r--r--.github/workflows/check-python.yml4
-rw-r--r--etc/inc/disable-programs.inc2
-rw-r--r--etc/inc/landlock-common.inc10
-rw-r--r--etc/profile-a-l/archiver-common.profile2
-rw-r--r--etc/profile-a-l/atool.profile2
-rw-r--r--etc/profile-a-l/bsdtar.profile2
-rw-r--r--etc/profile-a-l/enchant-2.profile1
-rw-r--r--etc/profile-a-l/gnome-boxes.profile2
-rw-r--r--etc/profile-a-l/green-recoder.profile72
-rw-r--r--etc/profile-a-l/iagno.profile5
-rw-r--r--etc/profile-a-l/lz4.profile11
-rw-r--r--etc/profile-a-l/lz4c.profile11
-rw-r--r--etc/profile-a-l/lz4cat.profile11
-rw-r--r--etc/profile-m-z/makepkg.profile2
-rw-r--r--etc/profile-m-z/qt5ct.profile65
-rw-r--r--etc/profile-m-z/qt6ct.profile65
-rw-r--r--etc/profile-m-z/ssh.profile1
-rw-r--r--etc/profile-m-z/tar.profile1
-rw-r--r--etc/profile-m-z/unlz4.profile11
-rw-r--r--etc/profile-m-z/unrar.profile1
-rw-r--r--etc/profile-m-z/unzip.profile2
-rw-r--r--etc/profile-m-z/virt-manager.profile2
-rw-r--r--src/firecfg/firecfg.config8
24 files changed, 271 insertions, 26 deletions
diff --git a/.github/workflows/check-c.yml b/.github/workflows/check-c.yml
index 49c9b38a7..3fd8a3051 100644
--- a/.github/workflows/check-c.yml
+++ b/.github/workflows/check-c.yml
@@ -161,7 +161,7 @@ jobs:
161 161
162 # Initializes the CodeQL tools for scanning. 162 # Initializes the CodeQL tools for scanning.
163 - name: Initialize CodeQL 163 - name: Initialize CodeQL
164 uses: github/codeql-action/init@47b3d888fe66b639e431abf22ebca059152f1eea 164 uses: github/codeql-action/init@8a470fddafa5cbb6266ee11b37ef4d8aae19c571
165 with: 165 with:
166 languages: cpp 166 languages: cpp
167 167
@@ -172,4 +172,4 @@ jobs:
172 run: make -j "$(nproc)" 172 run: make -j "$(nproc)"
173 173
174 - name: Perform CodeQL Analysis 174 - name: Perform CodeQL Analysis
175 uses: github/codeql-action/analyze@47b3d888fe66b639e431abf22ebca059152f1eea 175 uses: github/codeql-action/analyze@8a470fddafa5cbb6266ee11b37ef4d8aae19c571
diff --git a/.github/workflows/check-python.yml b/.github/workflows/check-python.yml
index 85b75a126..54145e49a 100644
--- a/.github/workflows/check-python.yml
+++ b/.github/workflows/check-python.yml
@@ -51,9 +51,9 @@ jobs:
51 51
52 # Initializes the CodeQL tools for scanning. 52 # Initializes the CodeQL tools for scanning.
53 - name: Initialize CodeQL 53 - name: Initialize CodeQL
54 uses: github/codeql-action/init@47b3d888fe66b639e431abf22ebca059152f1eea 54 uses: github/codeql-action/init@8a470fddafa5cbb6266ee11b37ef4d8aae19c571
55 with: 55 with:
56 languages: python 56 languages: python
57 57
58 - name: Perform CodeQL Analysis 58 - name: Perform CodeQL Analysis
59 uses: github/codeql-action/analyze@47b3d888fe66b639e431abf22ebca059152f1eea 59 uses: github/codeql-action/analyze@8a470fddafa5cbb6266ee11b37ef4d8aae19c571
diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc
index aa83691eb..047c8441d 100644
--- a/etc/inc/disable-programs.inc
+++ b/etc/inc/disable-programs.inc
@@ -482,6 +482,7 @@ blacklist ${HOME}/.config/google-chrome-beta
482blacklist ${HOME}/.config/google-chrome-unstable 482blacklist ${HOME}/.config/google-chrome-unstable
483blacklist ${HOME}/.config/gpicview 483blacklist ${HOME}/.config/gpicview
484blacklist ${HOME}/.config/gramps 484blacklist ${HOME}/.config/gramps
485blacklist ${HOME}/.config/green-recorder
485blacklist ${HOME}/.config/gthumb 486blacklist ${HOME}/.config/gthumb
486blacklist ${HOME}/.config/gummi 487blacklist ${HOME}/.config/gummi
487blacklist ${HOME}/.config/guvcview2 488blacklist ${HOME}/.config/guvcview2
@@ -1239,6 +1240,7 @@ blacklist ${RUNUSER}/qutebrowser
1239blacklist /etc/ssmtp 1240blacklist /etc/ssmtp
1240blacklist /tmp/.wine-* 1241blacklist /tmp/.wine-*
1241blacklist /tmp/akonadi-* 1242blacklist /tmp/akonadi-*
1243blacklist /tmp/lwjgl_*
1242blacklist /var/games/nethack 1244blacklist /var/games/nethack
1243blacklist /var/games/slashem 1245blacklist /var/games/slashem
1244blacklist /var/games/vulturesclaw 1246blacklist /var/games/vulturesclaw
diff --git a/etc/inc/landlock-common.inc b/etc/inc/landlock-common.inc
index e147963a6..7ff6448e2 100644
--- a/etc/inc/landlock-common.inc
+++ b/etc/inc/landlock-common.inc
@@ -16,17 +16,9 @@ landlock.fs.write /tmp
16 16
17# exec access 17# exec access
18## misc 18## misc
19landlock.fs.execute ${PATH}
19landlock.fs.execute /opt 20landlock.fs.execute /opt
20landlock.fs.execute /run/firejail # appimage and various firejail features 21landlock.fs.execute /run/firejail # appimage and various firejail features
21## bin
22landlock.fs.execute /bin
23landlock.fs.execute /sbin
24landlock.fs.execute /usr/bin
25landlock.fs.execute /usr/sbin
26landlock.fs.execute /usr/games
27landlock.fs.execute /usr/local/bin
28landlock.fs.execute /usr/local/sbin
29landlock.fs.execute /usr/local/games
30## lib 22## lib
31landlock.fs.execute /lib 23landlock.fs.execute /lib
32landlock.fs.execute /lib32 24landlock.fs.execute /lib32
diff --git a/etc/profile-a-l/archiver-common.profile b/etc/profile-a-l/archiver-common.profile
index 487e0c5f8..deaf5df4c 100644
--- a/etc/profile-a-l/archiver-common.profile
+++ b/etc/profile-a-l/archiver-common.profile
@@ -43,7 +43,7 @@ x11 none
43 43
44private-cache 44private-cache
45private-dev 45private-dev
46private-etc 46private-etc mkinitcpio*
47 47
48dbus-user none 48dbus-user none
49dbus-system none 49dbus-system none
diff --git a/etc/profile-a-l/atool.profile b/etc/profile-a-l/atool.profile
index 672286087..091a2f59f 100644
--- a/etc/profile-a-l/atool.profile
+++ b/etc/profile-a-l/atool.profile
@@ -12,8 +12,6 @@ include allow-perl.inc
12 12
13noroot 13noroot
14 14
15# without login.defs atool complains and uses UID/GID 1000 by default
16private-etc
17private-tmp 15private-tmp
18 16
19# Redirect 17# Redirect
diff --git a/etc/profile-a-l/bsdtar.profile b/etc/profile-a-l/bsdtar.profile
index c5c2e33eb..f78d4bdff 100644
--- a/etc/profile-a-l/bsdtar.profile
+++ b/etc/profile-a-l/bsdtar.profile
@@ -6,7 +6,5 @@ include bsdtar.local
6# Persistent global definitions 6# Persistent global definitions
7include globals.local 7include globals.local
8 8
9private-etc
10
11# Redirect 9# Redirect
12include archiver-common.profile 10include archiver-common.profile
diff --git a/etc/profile-a-l/enchant-2.profile b/etc/profile-a-l/enchant-2.profile
index 32cc0e691..c87dbd948 100644
--- a/etc/profile-a-l/enchant-2.profile
+++ b/etc/profile-a-l/enchant-2.profile
@@ -1,5 +1,6 @@
1# Firejail profile for enchant-2 1# Firejail profile for enchant-2
2# This file is overwritten after every install/update 2# This file is overwritten after every install/update
3quiet
3# Persistent local customizations 4# Persistent local customizations
4include enchant-2.local 5include enchant-2.local
5# Persistent global definitions 6# Persistent global definitions
diff --git a/etc/profile-a-l/gnome-boxes.profile b/etc/profile-a-l/gnome-boxes.profile
index b16ffa142..d026fec88 100644
--- a/etc/profile-a-l/gnome-boxes.profile
+++ b/etc/profile-a-l/gnome-boxes.profile
@@ -6,6 +6,8 @@ include gnome-boxes.local
6# Persistent global definitions 6# Persistent global definitions
7include globals.local 7include globals.local
8 8
9blacklist /usr/libexec
10
9noblacklist ${HOME}/.cache/gnome-boxes 11noblacklist ${HOME}/.cache/gnome-boxes
10noblacklist ${HOME}/.config/gnome-boxes 12noblacklist ${HOME}/.config/gnome-boxes
11noblacklist ${HOME}/.local/share/gnome-boxes 13noblacklist ${HOME}/.local/share/gnome-boxes
diff --git a/etc/profile-a-l/green-recoder.profile b/etc/profile-a-l/green-recoder.profile
new file mode 100644
index 000000000..77c980daa
--- /dev/null
+++ b/etc/profile-a-l/green-recoder.profile
@@ -0,0 +1,72 @@
1# Firejail profile for green-recorder
2# Description: A simple screen recorder for Linux desktop (supports Wayland & Xorg)
3# This file is overwritten after every install/update
4# Persistent local customizations
5include green-recorder.local
6# Persistent global definitions
7include globals.local
8
9blacklist /usr/libexec
10
11noblacklist ${HOME}/.config/green-recorder
12
13# Allow python 3 (blacklisted by disable-interpreters.inc)
14include allow-python3.inc
15
16# Allow /bin/sh (blacklisted by disable-shell.inc)
17include allow-bin-sh.inc
18
19noblacklist ${VIDEOS}
20
21include disable-common.inc
22include disable-devel.inc
23include disable-exec.inc
24include disable-interpreters.inc
25include disable-programs.inc
26include disable-shell.inc
27include disable-xdg.inc
28
29mkdir ${HOME}/.config/green-recorder
30whitelist ${HOME}/.config/green-recorder
31whitelist ${DOWNLOADS}
32whitelist ${VIDEOS}
33whitelist /usr/share/ffmpeg
34whitelist /usr/share/green-recorder
35include whitelist-common.inc
36include whitelist-run-common.inc
37include whitelist-runuser-common.inc
38include whitelist-usr-share-common.inc
39include whitelist-var-common.inc
40
41apparmor
42caps.drop all
43net none
44nodvd
45nogroups
46noinput
47nonewprivs
48noprinters
49noroot
50notv
51nou2f
52novideo
53protocol unix
54# allow set_mempolicy, which is required to encode using libx265
55seccomp !set_mempolicy
56seccomp.block-secondary
57tracelog
58
59disable-mnt
60private-bin awk,bash,convert,ffmpeg,green-recorder,grep,mv,pactl,ps,python*,sh,sleep,xdg-open,xdpyinfo,xwininfo
61private-cache
62private-dev
63private-etc @x11
64private-tmp
65
66dbus-user filter
67dbus-user.talk org.freedesktop.Notifications
68dbus-user.talk org.gnome.Shell.*
69?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher
70dbus-system none
71
72restrict-namespaces
diff --git a/etc/profile-a-l/iagno.profile b/etc/profile-a-l/iagno.profile
index 47c341333..7129c70bb 100644
--- a/etc/profile-a-l/iagno.profile
+++ b/etc/profile-a-l/iagno.profile
@@ -14,11 +14,10 @@ include disable-programs.inc
14include disable-shell.inc 14include disable-shell.inc
15 15
16whitelist ${HOME}/.local/share/glib-2.0/schemas 16whitelist ${HOME}/.local/share/glib-2.0/schemas
17whitelist /usr/share/gdm
18whitelist /usr/share/iagno
17include whitelist-common.inc 19include whitelist-common.inc
18
19include whitelist-runuser-common.inc 20include whitelist-runuser-common.inc
20whitelist /usr/share/iagno
21whitelist /usr/share/gdm
22include whitelist-usr-share-common.inc 21include whitelist-usr-share-common.inc
23include whitelist-var-common.inc 22include whitelist-var-common.inc
24 23
diff --git a/etc/profile-a-l/lz4.profile b/etc/profile-a-l/lz4.profile
new file mode 100644
index 000000000..5e4e416f1
--- /dev/null
+++ b/etc/profile-a-l/lz4.profile
@@ -0,0 +1,11 @@
1# Firejail profile for lz4
2# Description: Compress or decompress .lz4 files
3# This file is overwritten after every install/update
4quiet
5# Persistent local customizations
6include lz4.local
7# Persistent global definitions
8include globals.local
9
10# Redirect
11include archiver-common.profile
diff --git a/etc/profile-a-l/lz4c.profile b/etc/profile-a-l/lz4c.profile
new file mode 100644
index 000000000..b05a81de1
--- /dev/null
+++ b/etc/profile-a-l/lz4c.profile
@@ -0,0 +1,11 @@
1# Firejail profile for lz4c
2# This file is overwritten after every install/update
3quiet
4# Persistent local customizations
5include lz4c.local
6# Persistent global definitions
7# added by included profile
8#include globals.local
9
10# Redirect
11include lz4.profile
diff --git a/etc/profile-a-l/lz4cat.profile b/etc/profile-a-l/lz4cat.profile
new file mode 100644
index 000000000..90e056b1b
--- /dev/null
+++ b/etc/profile-a-l/lz4cat.profile
@@ -0,0 +1,11 @@
1# Firejail profile for lz4cat
2# This file is overwritten after every install/update
3quiet
4# Persistent local customizations
5include lz4cat.local
6# Persistent global definitions
7# added by included profile
8#include globals.local
9
10# Redirect
11include lz4.profile
diff --git a/etc/profile-m-z/makepkg.profile b/etc/profile-m-z/makepkg.profile
index b6afbad59..49e84dedb 100644
--- a/etc/profile-m-z/makepkg.profile
+++ b/etc/profile-m-z/makepkg.profile
@@ -35,8 +35,8 @@ include disable-exec.inc
35include disable-programs.inc 35include disable-programs.inc
36 36
37caps.drop all 37caps.drop all
38machine-id
39ipc-namespace 38ipc-namespace
39machine-id
40netfilter 40netfilter
41no3d 41no3d
42nodvd 42nodvd
diff --git a/etc/profile-m-z/qt5ct.profile b/etc/profile-m-z/qt5ct.profile
new file mode 100644
index 000000000..83d22c2cd
--- /dev/null
+++ b/etc/profile-m-z/qt5ct.profile
@@ -0,0 +1,65 @@
1# Firejail profile for qt5ct
2# Description: Qt5 Configuration Utility
3# This file is overwritten after every install/update
4# Persistent local customizations
5include qt5ct.local
6# Persistent global definitions
7include globals.local
8
9blacklist /usr/libexec
10
11include disable-common.inc
12include disable-devel.inc
13include disable-exec.inc
14include disable-interpreters.inc
15include disable-proc.inc
16include disable-programs.inc
17include disable-shell.inc
18include disable-xdg.inc
19
20mkdir ${HOME}/.config/qt5ct
21mkdir ${HOME}/.local/share/qt5ct
22whitelist ${HOME}/.config/qt5ct
23whitelist ${HOME}/.local/share/qt5ct
24
25include whitelist-common.inc
26include whitelist-run-common.inc
27include whitelist-runuser-common.inc
28include whitelist-usr-share-common.inc
29include whitelist-var-common.inc
30
31apparmor
32caps.drop all
33machine-id
34net none
35no3d
36nodvd
37nogroups
38noinput
39nonewprivs
40noprinters
41noroot
42nosound
43notv
44nou2f
45novideo
46protocol unix
47seccomp
48seccomp.block-secondary
49tracelog
50
51disable-mnt
52private-bin qt5ct
53private-cache
54private-dev
55private-etc dbus-1,machine-id
56private-tmp
57
58dbus-user none
59dbus-system none
60
61memory-deny-write-execute
62read-only ${HOME}
63read-write ${HOME}/.config/qt5ct
64read-write ${HOME}/.local/share/qt5ct
65restrict-namespaces
diff --git a/etc/profile-m-z/qt6ct.profile b/etc/profile-m-z/qt6ct.profile
new file mode 100644
index 000000000..5667c98a3
--- /dev/null
+++ b/etc/profile-m-z/qt6ct.profile
@@ -0,0 +1,65 @@
1# Firejail profile for qt6ct
2# Description: Qt6 Configuration Utility
3# This file is overwritten after every install/update
4# Persistent local customizations
5include qt6ct.local
6# Persistent global definitions
7include globals.local
8
9blacklist /usr/libexec
10
11include disable-common.inc
12include disable-devel.inc
13include disable-exec.inc
14include disable-interpreters.inc
15include disable-proc.inc
16include disable-programs.inc
17include disable-shell.inc
18include disable-xdg.inc
19
20mkdir ${HOME}/.config/qt6ct
21mkdir ${HOME}/.local/share/qt6ct
22whitelist ${HOME}/.config/qt6ct
23whitelist ${HOME}/.local/share/qt6ct
24
25include whitelist-common.inc
26include whitelist-run-common.inc
27include whitelist-runuser-common.inc
28include whitelist-usr-share-common.inc
29include whitelist-var-common.inc
30
31apparmor
32caps.drop all
33machine-id
34net none
35no3d
36nodvd
37nogroups
38noinput
39nonewprivs
40noprinters
41noroot
42nosound
43notv
44nou2f
45novideo
46protocol unix
47seccomp
48seccomp.block-secondary
49tracelog
50
51disable-mnt
52private-bin qt6ct
53private-cache
54private-dev
55private-etc dbus-1,machine-id
56private-tmp
57
58dbus-user none
59dbus-system none
60
61memory-deny-write-execute
62read-only ${HOME}
63read-write ${HOME}/.config/qt6ct
64read-write ${HOME}/.local/share/qt6ct
65restrict-namespaces
diff --git a/etc/profile-m-z/ssh.profile b/etc/profile-m-z/ssh.profile
index fde85be64..62efa28db 100644
--- a/etc/profile-m-z/ssh.profile
+++ b/etc/profile-m-z/ssh.profile
@@ -18,6 +18,7 @@ include disable-common.inc
18include disable-exec.inc 18include disable-exec.inc
19include disable-programs.inc 19include disable-programs.inc
20 20
21whitelist ${RUNUSER}/gcr/ssh
21whitelist ${RUNUSER}/gnupg/S.gpg-agent.ssh 22whitelist ${RUNUSER}/gnupg/S.gpg-agent.ssh
22whitelist ${RUNUSER}/keyring/ssh 23whitelist ${RUNUSER}/keyring/ssh
23include whitelist-usr-share-common.inc 24include whitelist-usr-share-common.inc
diff --git a/etc/profile-m-z/tar.profile b/etc/profile-m-z/tar.profile
index da3b4f782..ca1234db0 100644
--- a/etc/profile-m-z/tar.profile
+++ b/etc/profile-m-z/tar.profile
@@ -17,7 +17,6 @@ ignore include disable-shell.inc
17# all capabilities this is automatically read-only. 17# all capabilities this is automatically read-only.
18noblacklist /var/lib/pacman 18noblacklist /var/lib/pacman
19 19
20private-etc
21#private-lib libfakeroot,liblzma.so.*,libreadline.so.* 20#private-lib libfakeroot,liblzma.so.*,libreadline.so.*
22# Debian based distributions need this for 'dpkg --unpack' (incl. synaptic) 21# Debian based distributions need this for 'dpkg --unpack' (incl. synaptic)
23writable-var 22writable-var
diff --git a/etc/profile-m-z/unlz4.profile b/etc/profile-m-z/unlz4.profile
new file mode 100644
index 000000000..00e7496e4
--- /dev/null
+++ b/etc/profile-m-z/unlz4.profile
@@ -0,0 +1,11 @@
1# Firejail profile for unlz4
2# This file is overwritten after every install/update
3quiet
4# Persistent local customizations
5include unlz4.local
6# Persistent global definitions
7# added by included profile
8#include globals.local
9
10# Redirect
11include lz4.profile
diff --git a/etc/profile-m-z/unrar.profile b/etc/profile-m-z/unrar.profile
index 43d5dae5e..ed2acb12d 100644
--- a/etc/profile-m-z/unrar.profile
+++ b/etc/profile-m-z/unrar.profile
@@ -8,7 +8,6 @@ include unrar.local
8include globals.local 8include globals.local
9 9
10private-bin unrar 10private-bin unrar
11private-etc
12private-tmp 11private-tmp
13 12
14# Redirect 13# Redirect
diff --git a/etc/profile-m-z/unzip.profile b/etc/profile-m-z/unzip.profile
index 9fefe6ad3..88341a3ad 100644
--- a/etc/profile-m-z/unzip.profile
+++ b/etc/profile-m-z/unzip.profile
@@ -10,7 +10,5 @@ include globals.local
10# GNOME Shell integration (chrome-gnome-shell) 10# GNOME Shell integration (chrome-gnome-shell)
11noblacklist ${HOME}/.local/share/gnome-shell 11noblacklist ${HOME}/.local/share/gnome-shell
12 12
13private-etc
14
15# Redirect 13# Redirect
16include archiver-common.profile 14include archiver-common.profile
diff --git a/etc/profile-m-z/virt-manager.profile b/etc/profile-m-z/virt-manager.profile
index 86fe63ef9..a93d873a8 100644
--- a/etc/profile-m-z/virt-manager.profile
+++ b/etc/profile-m-z/virt-manager.profile
@@ -6,6 +6,8 @@ include virt-manager.local
6# Persistent global definitions 6# Persistent global definitions
7include globals.local 7include globals.local
8 8
9blacklist /usr/libexec
10
9noblacklist ${HOME}/.cache/virt-manager 11noblacklist ${HOME}/.cache/virt-manager
10noblacklist ${RUNUSER}/libvirt 12noblacklist ${RUNUSER}/libvirt
11 13
diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config
index abaec3036..78f41e0a6 100644
--- a/src/firecfg/firecfg.config
+++ b/src/firecfg/firecfg.config
@@ -274,6 +274,7 @@ fix-qdf
274flacsplt 274flacsplt
275flameshot 275flameshot
276flashpeak-slimjet 276flashpeak-slimjet
277floorp
277flowblade 278flowblade
278fluffychat 279fluffychat
279font-manager 280font-manager
@@ -391,6 +392,7 @@ gpredict
391gradio 392gradio
392gramps 393gramps
393gravity-beams-and-evaporating-stars 394gravity-beams-and-evaporating-stars
395green-recorder
394gthumb 396gthumb
395gtk-lbry-viewer 397gtk-lbry-viewer
396gtk-pipe-viewer 398gtk-pipe-viewer
@@ -522,6 +524,9 @@ lximage-qt
522lxmusic 524lxmusic
523lynx 525lynx
524lyx 526lyx
527#lz4 # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
528#lz4c # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
529#lz4cat # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
525macrofusion 530macrofusion
526magicor 531magicor
527man 532man
@@ -724,6 +729,8 @@ qpdf
724qpdfview 729qpdfview
725qq 730qq
726qt-faststart 731qt-faststart
732qt5ct
733qt6ct
727qtox 734qtox
728quadrapassel 735quadrapassel
729quassel 736quassel
@@ -903,6 +910,7 @@ uget-gtk
903unbound 910unbound
904unf 911unf
905unknown-horizons 912unknown-horizons
913#unlz4 # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
906#unzstd # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 914#unzstd # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
907url-eater 915url-eater
908utox 916utox