aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2023-08-11 17:37:00 -0400
committerLibravatar netblue30 <netblue30@protonmail.com>2023-08-11 17:37:00 -0400
commit0e11f39bcb41e8df65b0ba38b276b4e5198ba32a (patch)
tree7f7d1d05fffc1a6a47035df244164dbd905626b9
parentnettrace stats (diff)
parentprofiles: improvements to profiles using private (#5946) (diff)
downloadfirejail-0e11f39bcb41e8df65b0ba38b276b4e5198ba32a.tar.gz
firejail-0e11f39bcb41e8df65b0ba38b276b4e5198ba32a.tar.zst
firejail-0e11f39bcb41e8df65b0ba38b276b4e5198ba32a.zip
Merge branch 'master' of ssh://github.com/netblue30/firejail
-rw-r--r--.github/workflows/build-extra.yml10
-rw-r--r--.github/workflows/build.yml2
-rw-r--r--.github/workflows/codeql-analysis.yml8
-rw-r--r--.github/workflows/profile-checks.yml2
-rw-r--r--Makefile8
-rw-r--r--RELNOTES2
-rwxr-xr-xci/check/profiles/sort-firecfg.config.sh5
-rw-r--r--etc/inc/disable-programs.inc5
-rw-r--r--etc/profile-a-l/0ad.profile3
-rw-r--r--etc/profile-a-l/chatterino.profile2
-rw-r--r--etc/profile-a-l/clac.profile63
-rw-r--r--etc/profile-a-l/daisy.profile63
-rw-r--r--etc/profile-a-l/dbus-send.profile5
-rw-r--r--etc/profile-a-l/drill.profile2
-rw-r--r--etc/profile-a-l/firefox-common-addons.profile4
-rw-r--r--etc/profile-a-l/gapplication.profile2
-rw-r--r--etc/profile-a-l/gnome-calendar.profile2
-rw-r--r--etc/profile-a-l/gnubik.profile2
-rw-r--r--etc/profile-a-l/gramps.profile3
-rw-r--r--etc/profile-a-l/gravity-beams-and-evaporating-stars.profile2
-rw-r--r--etc/profile-a-l/ipcalc.profile2
-rw-r--r--etc/profile-a-l/journal-viewer.profile68
-rw-r--r--etc/profile-m-z/QMediathekView.profile4
-rw-r--r--etc/profile-m-z/Xephyr.profile2
-rw-r--r--etc/profile-m-z/Xvfb.profile2
-rw-r--r--etc/profile-m-z/mediathekview.profile2
-rw-r--r--etc/profile-m-z/mirrormagic.profile1
-rw-r--r--etc/profile-m-z/mpsyt.profile6
-rw-r--r--etc/profile-m-z/mpv.profile6
-rw-r--r--etc/profile-m-z/notify-send.profile2
-rw-r--r--etc/profile-m-z/ping.profile2
-rw-r--r--etc/profile-m-z/reader.profile63
-rw-r--r--etc/profile-m-z/rtv-addons.profile4
-rw-r--r--etc/profile-m-z/seahorse-adventures.profile2
-rw-r--r--etc/profile-m-z/smtube.profile6
-rw-r--r--etc/profile-m-z/thunderbird.profile12
-rw-r--r--etc/profile-m-z/wordwarvi.profile1
-rw-r--r--etc/profile-m-z/xbill.profile2
-rw-r--r--etc/profile-m-z/youtube-viewers-common.profile2
-rwxr-xr-xmkasc.sh2
-rwxr-xr-xplatform/rpm/mkrpm.sh34
-rw-r--r--src/firecfg/firecfg.config104
-rwxr-xr-xtest/compile/compile.sh43
43 files changed, 442 insertions, 125 deletions
diff --git a/.github/workflows/build-extra.yml b/.github/workflows/build-extra.yml
index 8754e7eff..0a9628d31 100644
--- a/.github/workflows/build-extra.yml
+++ b/.github/workflows/build-extra.yml
@@ -54,7 +54,7 @@ jobs:
54 runs-on: ubuntu-22.04 54 runs-on: ubuntu-22.04
55 steps: 55 steps:
56 - name: Harden Runner 56 - name: Harden Runner
57 uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 57 uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604
58 with: 58 with:
59 egress-policy: block 59 egress-policy: block
60 allowed-endpoints: > 60 allowed-endpoints: >
@@ -84,7 +84,7 @@ jobs:
84 runs-on: ubuntu-22.04 84 runs-on: ubuntu-22.04
85 steps: 85 steps:
86 - name: Harden Runner 86 - name: Harden Runner
87 uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 87 uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604
88 with: 88 with:
89 egress-policy: block 89 egress-policy: block
90 allowed-endpoints: > 90 allowed-endpoints: >
@@ -110,7 +110,7 @@ jobs:
110 runs-on: ubuntu-22.04 110 runs-on: ubuntu-22.04
111 steps: 111 steps:
112 - name: Harden Runner 112 - name: Harden Runner
113 uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 113 uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604
114 with: 114 with:
115 egress-policy: block 115 egress-policy: block
116 allowed-endpoints: > 116 allowed-endpoints: >
@@ -132,7 +132,7 @@ jobs:
132 runs-on: ubuntu-20.04 132 runs-on: ubuntu-20.04
133 steps: 133 steps:
134 - name: Harden Runner 134 - name: Harden Runner
135 uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 135 uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604
136 with: 136 with:
137 egress-policy: block 137 egress-policy: block
138 allowed-endpoints: > 138 allowed-endpoints: >
@@ -150,7 +150,7 @@ jobs:
150 runs-on: ubuntu-22.04 150 runs-on: ubuntu-22.04
151 steps: 151 steps:
152 - name: Harden Runner 152 - name: Harden Runner
153 uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 153 uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604
154 with: 154 with:
155 egress-policy: block 155 egress-policy: block
156 allowed-endpoints: > 156 allowed-endpoints: >
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 32dbaf8cc..a53260e64 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -46,7 +46,7 @@ jobs:
46 SHELL: /bin/bash 46 SHELL: /bin/bash
47 steps: 47 steps:
48 - name: Harden Runner 48 - name: Harden Runner
49 uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 49 uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604
50 with: 50 with:
51 egress-policy: block 51 egress-policy: block
52 allowed-endpoints: > 52 allowed-endpoints: >
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 34d5bcc27..4b9aaa7d6 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -75,7 +75,7 @@ jobs:
75 75
76 steps: 76 steps:
77 - name: Harden Runner 77 - name: Harden Runner
78 uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 78 uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604
79 with: 79 with:
80 disable-sudo: true 80 disable-sudo: true
81 egress-policy: block 81 egress-policy: block
@@ -93,7 +93,7 @@ jobs:
93 93
94 # Initializes the CodeQL tools for scanning. 94 # Initializes the CodeQL tools for scanning.
95 - name: Initialize CodeQL 95 - name: Initialize CodeQL
96 uses: github/codeql-action/init@1813ca74c3faaa3a2da2070b9b8a0b3e7373a0d8 96 uses: github/codeql-action/init@0ba4244466797eb048eb91a6cd43d5c03ca8bd05
97 with: 97 with:
98 languages: ${{ matrix.language }} 98 languages: ${{ matrix.language }}
99 # If you wish to specify custom queries, you can do so here or in a config file. 99 # If you wish to specify custom queries, you can do so here or in a config file.
@@ -104,7 +104,7 @@ jobs:
104 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). 104 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
105 # If this step fails, then you should remove it and run the build manually (see below) 105 # If this step fails, then you should remove it and run the build manually (see below)
106 - name: Autobuild 106 - name: Autobuild
107 uses: github/codeql-action/autobuild@1813ca74c3faaa3a2da2070b9b8a0b3e7373a0d8 107 uses: github/codeql-action/autobuild@0ba4244466797eb048eb91a6cd43d5c03ca8bd05
108 108
109 # ℹī¸ Command-line programs to run using the OS shell. 109 # ℹī¸ Command-line programs to run using the OS shell.
110 # 📚 https://git.io/JvXDl 110 # 📚 https://git.io/JvXDl
@@ -118,4 +118,4 @@ jobs:
118 # make release 118 # make release
119 119
120 - name: Perform CodeQL Analysis 120 - name: Perform CodeQL Analysis
121 uses: github/codeql-action/analyze@1813ca74c3faaa3a2da2070b9b8a0b3e7373a0d8 121 uses: github/codeql-action/analyze@0ba4244466797eb048eb91a6cd43d5c03ca8bd05
diff --git a/.github/workflows/profile-checks.yml b/.github/workflows/profile-checks.yml
index 0e7403508..8d4e5ba28 100644
--- a/.github/workflows/profile-checks.yml
+++ b/.github/workflows/profile-checks.yml
@@ -24,7 +24,7 @@ jobs:
24 runs-on: ubuntu-latest 24 runs-on: ubuntu-latest
25 steps: 25 steps:
26 - name: Harden Runner 26 - name: Harden Runner
27 uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 27 uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604
28 with: 28 with:
29 disable-sudo: true 29 disable-sudo: true
30 egress-policy: block 30 egress-policy: block
diff --git a/Makefile b/Makefile
index 03ae71026..3055e226a 100644
--- a/Makefile
+++ b/Makefile
@@ -347,12 +347,12 @@ deb: dist config.sh
347 ./mkdeb.sh 347 ./mkdeb.sh
348 348
349.PHONY: test-compile 349.PHONY: test-compile
350test-compile: dist config.mk 350test-compile: dist config.sh
351 cd test/compile; ./compile.sh $(TARNAME)-$(VERSION) 351 cd test/compile; ./compile.sh
352 352
353.PHONY: rpms 353.PHONY: rpms
354rpms: src/man config.mk 354rpms: src/man config.sh
355 ./platform/rpm/mkrpm.sh $(TARNAME) $(VERSION) 355 ./platform/rpm/mkrpm.sh
356 356
357.PHONY: extras 357.PHONY: extras
358extras: all 358extras: all
diff --git a/RELNOTES b/RELNOTES
index ac0136239..d6ffdc3b2 100644
--- a/RELNOTES
+++ b/RELNOTES
@@ -38,6 +38,8 @@ firejail (0.9.73) baseline; urgency=low
38 make 38 make
39 * build: simplify code related to man pages (#5898) 39 * build: simplify code related to man pages (#5898)
40 * build: fix hardcoded make & remove unnecessary distclean targets (#5911) 40 * build: fix hardcoded make & remove unnecessary distclean targets (#5911)
41 * build: dist and asc improvements (#5916)
42 * build: fix some shellcheck issues & use config.sh in more scripts (#5927)
41 * ci: always update the package db before installing packages (#5742) 43 * ci: always update the package db before installing packages (#5742)
42 * ci: fix codeql unable to download its own bundle (#5783) 44 * ci: fix codeql unable to download its own bundle (#5783)
43 * ci: split configure/build/install commands on gitlab (#5784) 45 * ci: split configure/build/install commands on gitlab (#5784)
diff --git a/ci/check/profiles/sort-firecfg.config.sh b/ci/check/profiles/sort-firecfg.config.sh
index 17a595350..dbfbf24f5 100755
--- a/ci/check/profiles/sort-firecfg.config.sh
+++ b/ci/check/profiles/sort-firecfg.config.sh
@@ -1,2 +1,5 @@
1#!/bin/sh 1#!/bin/sh
2tail -n +4 "$1" | sed 's/^# /#/' | LC_ALL=C sort -c -d 2# See ../../../src/firecfg/firecfg.config
3
4sed -E -e '/^#$/d' -e '/^# /d' -e 's/^#([^ ])/\1/' "$1" |
5LC_ALL=C sort -c -u
diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc
index b0d1b7a66..38ab7221e 100644
--- a/etc/inc/disable-programs.inc
+++ b/etc/inc/disable-programs.inc
@@ -142,6 +142,7 @@ blacklist ${HOME}/.cache/inkscape
142blacklist ${HOME}/.cache/inox 142blacklist ${HOME}/.cache/inox
143blacklist ${HOME}/.cache/io.github.lainsce.Notejot 143blacklist ${HOME}/.cache/io.github.lainsce.Notejot
144blacklist ${HOME}/.cache/iridium 144blacklist ${HOME}/.cache/iridium
145blacklist ${HOME}/.cache/journal-viewer
145blacklist ${HOME}/.cache/kcmshell5 146blacklist ${HOME}/.cache/kcmshell5
146blacklist ${HOME}/.cache/kdenlive 147blacklist ${HOME}/.cache/kdenlive
147blacklist ${HOME}/.cache/keepassxc 148blacklist ${HOME}/.cache/keepassxc
@@ -171,6 +172,7 @@ blacklist ${HOME}/.cache/mirage
171blacklist ${HOME}/.cache/moonchild productions/basilisk 172blacklist ${HOME}/.cache/moonchild productions/basilisk
172blacklist ${HOME}/.cache/moonchild productions/pale moon 173blacklist ${HOME}/.cache/moonchild productions/pale moon
173blacklist ${HOME}/.cache/mozilla 174blacklist ${HOME}/.cache/mozilla
175blacklist ${HOME}/.cache/mpv
174blacklist ${HOME}/.cache/ms-excel-online 176blacklist ${HOME}/.cache/ms-excel-online
175blacklist ${HOME}/.cache/ms-office-online 177blacklist ${HOME}/.cache/ms-office-online
176blacklist ${HOME}/.cache/ms-onenote-online 178blacklist ${HOME}/.cache/ms-onenote-online
@@ -472,6 +474,7 @@ blacklist ${HOME}/.config/google-chrome
472blacklist ${HOME}/.config/google-chrome-beta 474blacklist ${HOME}/.config/google-chrome-beta
473blacklist ${HOME}/.config/google-chrome-unstable 475blacklist ${HOME}/.config/google-chrome-unstable
474blacklist ${HOME}/.config/gpicview 476blacklist ${HOME}/.config/gpicview
477blacklist ${HOME}/.config/gramps
475blacklist ${HOME}/.config/gthumb 478blacklist ${HOME}/.config/gthumb
476blacklist ${HOME}/.config/gummi 479blacklist ${HOME}/.config/gummi
477blacklist ${HOME}/.config/guvcview2 480blacklist ${HOME}/.config/guvcview2
@@ -899,6 +902,7 @@ blacklist ${HOME}/.local/share/cdprojektred
899blacklist ${HOME}/.local/share/chatterino 902blacklist ${HOME}/.local/share/chatterino
900blacklist ${HOME}/.local/share/clipit 903blacklist ${HOME}/.local/share/clipit
901blacklist ${HOME}/.local/share/com.github.johnfactotum.Foliate 904blacklist ${HOME}/.local/share/com.github.johnfactotum.Foliate
905blacklist ${HOME}/.local/share/com.vmingueza.journal-viewer
902blacklist ${HOME}/.local/share/contacts 906blacklist ${HOME}/.local/share/contacts
903blacklist ${HOME}/.local/share/cor-games 907blacklist ${HOME}/.local/share/cor-games
904blacklist ${HOME}/.local/share/data/Mendeley Ltd. 908blacklist ${HOME}/.local/share/data/Mendeley Ltd.
@@ -1046,6 +1050,7 @@ blacklist ${HOME}/.local/share/xreader
1046blacklist ${HOME}/.local/share/zathura 1050blacklist ${HOME}/.local/share/zathura
1047blacklist ${HOME}/.local/state/ani-cli 1051blacklist ${HOME}/.local/state/ani-cli
1048blacklist ${HOME}/.local/state/audacity 1052blacklist ${HOME}/.local/state/audacity
1053blacklist ${HOME}/.local/state/mpv
1049blacklist ${HOME}/.local/state/pipewire 1054blacklist ${HOME}/.local/state/pipewire
1050blacklist ${HOME}/.lv2 1055blacklist ${HOME}/.lv2
1051blacklist ${HOME}/.lyx 1056blacklist ${HOME}/.lyx
diff --git a/etc/profile-a-l/0ad.profile b/etc/profile-a-l/0ad.profile
index 48a2afdf2..9ec2f2ad1 100644
--- a/etc/profile-a-l/0ad.profile
+++ b/etc/profile-a-l/0ad.profile
@@ -10,6 +10,9 @@ noblacklist ${HOME}/.cache/0ad
10noblacklist ${HOME}/.config/0ad 10noblacklist ${HOME}/.config/0ad
11noblacklist ${HOME}/.local/share/0ad 11noblacklist ${HOME}/.local/share/0ad
12 12
13# Allow gjs (blacklisted by disable-interpreters.inc)
14include allow-gjs.inc
15
13blacklist /usr/libexec 16blacklist /usr/libexec
14 17
15include disable-common.inc 18include disable-common.inc
diff --git a/etc/profile-a-l/chatterino.profile b/etc/profile-a-l/chatterino.profile
index 2df03b10b..2a77b6fd6 100644
--- a/etc/profile-a-l/chatterino.profile
+++ b/etc/profile-a-l/chatterino.profile
@@ -12,11 +12,13 @@ include globals.local
12#whitelist ${MUSIC} 12#whitelist ${MUSIC}
13 13
14# Also allow access to mpv/vlc, they're usable via streamlink. 14# Also allow access to mpv/vlc, they're usable via streamlink.
15noblacklist ${HOME}/.cache/mpv
15noblacklist ${HOME}/.config/mpv 16noblacklist ${HOME}/.config/mpv
16noblacklist ${HOME}/.config/pulse 17noblacklist ${HOME}/.config/pulse
17noblacklist ${HOME}/.config/vlc 18noblacklist ${HOME}/.config/vlc
18noblacklist ${HOME}/.local/share/chatterino 19noblacklist ${HOME}/.local/share/chatterino
19noblacklist ${HOME}/.local/share/vlc 20noblacklist ${HOME}/.local/share/vlc
21noblacklist ${HOME}/.local/state/mpv
20 22
21# Allow Lua for mpv (blacklisted by disable-interpreters.inc) 23# Allow Lua for mpv (blacklisted by disable-interpreters.inc)
22include allow-lua.inc 24include allow-lua.inc
diff --git a/etc/profile-a-l/clac.profile b/etc/profile-a-l/clac.profile
new file mode 100644
index 000000000..b654b3890
--- /dev/null
+++ b/etc/profile-a-l/clac.profile
@@ -0,0 +1,63 @@
1# Firejail profile for clac
2# Description: Simple command-line calculator
3# This file is overwritten after every install/update
4quiet
5# Persistent local customizations
6include clac.local
7# Persistent global definitions
8include globals.local
9
10blacklist ${RUNUSER}
11
12include disable-common.inc
13include disable-devel.inc
14include disable-exec.inc
15include disable-interpreters.inc
16include disable-proc.inc
17include disable-programs.inc
18include disable-shell.inc
19#include disable-X11.inc - x11 none
20include disable-xdg.inc
21
22#include whitelist-common.inc - see #903
23include whitelist-run-common.inc
24include whitelist-runuser-common.inc
25include whitelist-usr-share-common.inc
26include whitelist-var-common.inc
27
28apparmor
29caps.drop all
30ipc-namespace
31machine-id
32net none
33no3d
34nodvd
35nogroups
36noinput
37nonewprivs
38noprinters
39noroot
40nosound
41notv
42nou2f
43novideo
44# block socket syscall to simulate empty protocol option (see #639)
45seccomp socket
46seccomp.block-secondary
47tracelog
48x11 none
49
50disable-mnt
51private
52private-bin clac
53#private-cache
54private-dev
55private-etc
56private-tmp
57
58dbus-user none
59dbus-system none
60
61memory-deny-write-execute
62read-only ${HOME}
63restrict-namespaces
diff --git a/etc/profile-a-l/daisy.profile b/etc/profile-a-l/daisy.profile
new file mode 100644
index 000000000..40b29a1f5
--- /dev/null
+++ b/etc/profile-a-l/daisy.profile
@@ -0,0 +1,63 @@
1# Firejail profile for daisy
2# Description: TUI scientific calculator with support for units
3# This file is overwritten after every install/update
4# Persistent local customizations
5include daisy.local
6# Persistent global definitions
7include globals.local
8
9blacklist ${RUNUSER}
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
18#include disable-X11.inc # x11 none
19include disable-xdg.inc
20
21include whitelist-common.inc
22include whitelist-run-common.inc
23include whitelist-runuser-common.inc
24include whitelist-usr-share-common.inc
25include whitelist-var-common.inc
26
27apparmor
28caps.drop all
29ipc-namespace
30machine-id
31net none
32no3d
33nodvd
34nogroups
35noinput
36nonewprivs
37noprinters
38noroot
39nosound
40notv
41nou2f
42novideo
43# block socket syscall to simulate empty protocol option (see #639)
44seccomp socket
45seccomp.block-secondary
46tracelog
47x11 none
48
49disable-mnt
50private-bin daisy
51private-cache
52private-dev
53private-etc
54private-lib
55private-opt none
56private-tmp
57
58dbus-user none
59dbus-system none
60
61memory-deny-write-execute
62read-only ${HOME}
63restrict-namespaces
diff --git a/etc/profile-a-l/dbus-send.profile b/etc/profile-a-l/dbus-send.profile
index 80790bb0c..70bd7370d 100644
--- a/etc/profile-a-l/dbus-send.profile
+++ b/etc/profile-a-l/dbus-send.profile
@@ -19,7 +19,7 @@ include disable-shell.inc
19include disable-write-mnt.inc 19include disable-write-mnt.inc
20include disable-xdg.inc 20include disable-xdg.inc
21 21
22include whitelist-common.inc 22#include whitelist-common.inc # see #903
23include whitelist-runuser-common.inc 23include whitelist-runuser-common.inc
24include whitelist-usr-share-common.inc 24include whitelist-usr-share-common.inc
25include whitelist-var-common.inc 25include whitelist-var-common.inc
@@ -28,8 +28,7 @@ apparmor
28caps.drop all 28caps.drop all
29ipc-namespace 29ipc-namespace
30machine-id 30machine-id
31# Breaks abstract sockets 31#net none # breaks abstract sockets
32#net none
33netfilter 32netfilter
34no3d 33no3d
35nodvd 34nodvd
diff --git a/etc/profile-a-l/drill.profile b/etc/profile-a-l/drill.profile
index bd6fb6dcc..bea114dd6 100644
--- a/etc/profile-a-l/drill.profile
+++ b/etc/profile-a-l/drill.profile
@@ -19,7 +19,7 @@ include disable-exec.inc
19include disable-programs.inc 19include disable-programs.inc
20include disable-xdg.inc 20include disable-xdg.inc
21 21
22include whitelist-common.inc 22#include whitelist-common.inc # see #903
23include whitelist-usr-share-common.inc 23include whitelist-usr-share-common.inc
24include whitelist-var-common.inc 24include whitelist-var-common.inc
25 25
diff --git a/etc/profile-a-l/firefox-common-addons.profile b/etc/profile-a-l/firefox-common-addons.profile
index f12750fda..566e88bf8 100644
--- a/etc/profile-a-l/firefox-common-addons.profile
+++ b/etc/profile-a-l/firefox-common-addons.profile
@@ -11,6 +11,7 @@ ignore include whitelist-runuser-common.inc
11 11
12ignore private-cache 12ignore private-cache
13 13
14noblacklist ${HOME}/.cache/mpv
14noblacklist ${HOME}/.cache/youtube-dl 15noblacklist ${HOME}/.cache/youtube-dl
15noblacklist ${HOME}/.config/kgetrc 16noblacklist ${HOME}/.config/kgetrc
16noblacklist ${HOME}/.config/mpv 17noblacklist ${HOME}/.config/mpv
@@ -32,9 +33,11 @@ noblacklist ${HOME}/.local/share/kget
32noblacklist ${HOME}/.local/share/kxmlgui5/okular 33noblacklist ${HOME}/.local/share/kxmlgui5/okular
33noblacklist ${HOME}/.local/share/okular 34noblacklist ${HOME}/.local/share/okular
34noblacklist ${HOME}/.local/share/qpdfview 35noblacklist ${HOME}/.local/share/qpdfview
36noblacklist ${HOME}/.local/state/mpv
35noblacklist ${HOME}/.netrc 37noblacklist ${HOME}/.netrc
36 38
37whitelist ${HOME}/.cache/gnome-mplayer/plugin 39whitelist ${HOME}/.cache/gnome-mplayer/plugin
40whitelist ${HOME}/.cache/mpv
38whitelist ${HOME}/.cache/youtube-dl/youtube-sigfuncs 41whitelist ${HOME}/.cache/youtube-dl/youtube-sigfuncs
39whitelist ${HOME}/.config/gnome-mplayer 42whitelist ${HOME}/.config/gnome-mplayer
40whitelist ${HOME}/.config/kgetrc 43whitelist ${HOME}/.config/kgetrc
@@ -62,6 +65,7 @@ whitelist ${HOME}/.local/share/kxmlgui5/okular
62whitelist ${HOME}/.local/share/okular 65whitelist ${HOME}/.local/share/okular
63whitelist ${HOME}/.local/share/qpdfview 66whitelist ${HOME}/.local/share/qpdfview
64whitelist ${HOME}/.local/share/tridactyl 67whitelist ${HOME}/.local/share/tridactyl
68whitelist ${HOME}/.local/state/mpv
65whitelist ${HOME}/.netrc 69whitelist ${HOME}/.netrc
66whitelist ${HOME}/.pentadactyl 70whitelist ${HOME}/.pentadactyl
67whitelist ${HOME}/.pentadactylrc 71whitelist ${HOME}/.pentadactylrc
diff --git a/etc/profile-a-l/gapplication.profile b/etc/profile-a-l/gapplication.profile
index baf8f614e..2d0511cf6 100644
--- a/etc/profile-a-l/gapplication.profile
+++ b/etc/profile-a-l/gapplication.profile
@@ -17,7 +17,7 @@ include disable-programs.inc
17include disable-shell.inc 17include disable-shell.inc
18include disable-xdg.inc 18include disable-xdg.inc
19 19
20include whitelist-common.inc 20#include whitelist-common.inc # see #903
21include whitelist-runuser-common.inc 21include whitelist-runuser-common.inc
22include whitelist-usr-share-common.inc 22include whitelist-usr-share-common.inc
23include whitelist-var-common.inc 23include whitelist-var-common.inc
diff --git a/etc/profile-a-l/gnome-calendar.profile b/etc/profile-a-l/gnome-calendar.profile
index ddfe57879..e6fe27774 100644
--- a/etc/profile-a-l/gnome-calendar.profile
+++ b/etc/profile-a-l/gnome-calendar.profile
@@ -15,7 +15,7 @@ include disable-shell.inc
15include disable-xdg.inc 15include disable-xdg.inc
16 16
17whitelist /usr/share/libgweather 17whitelist /usr/share/libgweather
18include whitelist-common.inc 18#include whitelist-common.inc # see #903
19include whitelist-runuser-common.inc 19include whitelist-runuser-common.inc
20include whitelist-usr-share-common.inc 20include whitelist-usr-share-common.inc
21include whitelist-var-common.inc 21include whitelist-var-common.inc
diff --git a/etc/profile-a-l/gnubik.profile b/etc/profile-a-l/gnubik.profile
index 025cb74b6..0c4ca35ac 100644
--- a/etc/profile-a-l/gnubik.profile
+++ b/etc/profile-a-l/gnubik.profile
@@ -15,7 +15,7 @@ include disable-shell.inc
15include disable-xdg.inc 15include disable-xdg.inc
16 16
17whitelist /usr/share/gnubik 17whitelist /usr/share/gnubik
18include whitelist-common.inc 18#include whitelist-common.inc # see #903
19include whitelist-runuser-common.inc 19include whitelist-runuser-common.inc
20include whitelist-usr-share-common.inc 20include whitelist-usr-share-common.inc
21include whitelist-var-common.inc 21include whitelist-var-common.inc
diff --git a/etc/profile-a-l/gramps.profile b/etc/profile-a-l/gramps.profile
index 5073e79c9..4b142e404 100644
--- a/etc/profile-a-l/gramps.profile
+++ b/etc/profile-a-l/gramps.profile
@@ -6,6 +6,7 @@ include gramps.local
6# Persistent global definitions 6# Persistent global definitions
7include globals.local 7include globals.local
8 8
9noblacklist ${HOME}/.config/gramps
9noblacklist ${HOME}/.gramps 10noblacklist ${HOME}/.gramps
10 11
11# Allow python (blacklisted by disable-interpreters.inc) 12# Allow python (blacklisted by disable-interpreters.inc)
@@ -19,7 +20,9 @@ include disable-interpreters.inc
19include disable-programs.inc 20include disable-programs.inc
20include disable-xdg.inc 21include disable-xdg.inc
21 22
23mkdir ${HOME}/.config/gramps
22mkdir ${HOME}/.gramps 24mkdir ${HOME}/.gramps
25whitelist ${HOME}/.config/gramps
23whitelist ${HOME}/.gramps 26whitelist ${HOME}/.gramps
24include whitelist-common.inc 27include whitelist-common.inc
25include whitelist-var-common.inc 28include whitelist-var-common.inc
diff --git a/etc/profile-a-l/gravity-beams-and-evaporating-stars.profile b/etc/profile-a-l/gravity-beams-and-evaporating-stars.profile
index 19af7c0b9..5ccce8447 100644
--- a/etc/profile-a-l/gravity-beams-and-evaporating-stars.profile
+++ b/etc/profile-a-l/gravity-beams-and-evaporating-stars.profile
@@ -15,7 +15,7 @@ include disable-shell.inc
15include disable-xdg.inc 15include disable-xdg.inc
16 16
17whitelist /usr/share/gravity-beams-and-evaporating-stars 17whitelist /usr/share/gravity-beams-and-evaporating-stars
18include whitelist-common.inc 18#include whitelist-common.inc # see #903
19include whitelist-usr-share-common.inc 19include whitelist-usr-share-common.inc
20include whitelist-var-common.inc 20include whitelist-var-common.inc
21 21
diff --git a/etc/profile-a-l/ipcalc.profile b/etc/profile-a-l/ipcalc.profile
index 7eabbca84..e73ca44a8 100644
--- a/etc/profile-a-l/ipcalc.profile
+++ b/etc/profile-a-l/ipcalc.profile
@@ -18,7 +18,7 @@ include disable-programs.inc
18include disable-write-mnt.inc 18include disable-write-mnt.inc
19include disable-xdg.inc 19include disable-xdg.inc
20 20
21# include whitelist-common.inc 21#include whitelist-common.inc # see #903
22include whitelist-runuser-common.inc 22include whitelist-runuser-common.inc
23include whitelist-usr-share-common.inc 23include whitelist-usr-share-common.inc
24include whitelist-var-common.inc 24include whitelist-var-common.inc
diff --git a/etc/profile-a-l/journal-viewer.profile b/etc/profile-a-l/journal-viewer.profile
new file mode 100644
index 000000000..f73595fb1
--- /dev/null
+++ b/etc/profile-a-l/journal-viewer.profile
@@ -0,0 +1,68 @@
1# Firejail profile for journal-viewer
2# Description: Visualize systemd logs
3# This file is overwritten after every install/update
4# Persistent local customizations
5include journal-viewer.local
6# Persistent global definitions
7include globals.local
8
9noblacklist ${HOME}/.cache/journal-viewer
10noblacklist ${HOME}/.local/share/com.vmingueza.journal-viewer
11
12include disable-common.inc
13include disable-devel.inc
14include disable-exec.inc
15include disable-interpreters.inc
16include disable-proc.inc
17include disable-programs.inc
18include disable-shell.inc
19include disable-xdg.inc
20
21mkdir ${HOME}/.cache/journal-viewer
22mkdir ${HOME}/.local/share/com.vmingueza.journal-viewer
23whitelist ${HOME}/.cache/journal-viewer
24whitelist ${HOME}/.local/share/com.vmingueza.journal-viewer
25whitelist /run/log/journal
26whitelist /var/log/journal
27include whitelist-common.inc
28include whitelist-run-common.inc
29include whitelist-runuser-common.inc
30include whitelist-usr-share-common.inc
31include whitelist-var-common.inc
32
33apparmor
34caps.drop all
35ipc-namespace
36net none
37no3d
38nodvd
39nogroups
40noinput
41nonewprivs
42noprinters
43noroot
44nosound
45notv
46nou2f
47novideo
48protocol unix
49seccomp
50seccomp.block-secondary
51tracelog
52
53disable-mnt
54private-bin journal-viewer
55private-cache
56private-dev
57private-etc machine-id
58private-lib webkit2gtk-*
59private-tmp
60
61dbus-user none
62dbus-system none
63
64restrict-namespaces
65read-only ${HOME}
66read-write ${HOME}/.cache/journal-viewer
67read-write ${HOME}/.local/share/com.vmingueza.journal-viewer
68writable-var-log
diff --git a/etc/profile-m-z/QMediathekView.profile b/etc/profile-m-z/QMediathekView.profile
index f8b5cec13..0e18b3cdf 100644
--- a/etc/profile-m-z/QMediathekView.profile
+++ b/etc/profile-m-z/QMediathekView.profile
@@ -9,6 +9,7 @@ include globals.local
9noblacklist ${HOME}/.config/QMediathekView 9noblacklist ${HOME}/.config/QMediathekView
10noblacklist ${HOME}/.local/share/QMediathekView 10noblacklist ${HOME}/.local/share/QMediathekView
11 11
12noblacklist ${HOME}/.cache/mpv
12noblacklist ${HOME}/.config/mpv 13noblacklist ${HOME}/.config/mpv
13noblacklist ${HOME}/.config/smplayer 14noblacklist ${HOME}/.config/smplayer
14noblacklist ${HOME}/.config/totem 15noblacklist ${HOME}/.config/totem
@@ -16,6 +17,7 @@ noblacklist ${HOME}/.config/vlc
16noblacklist ${HOME}/.config/xplayer 17noblacklist ${HOME}/.config/xplayer
17noblacklist ${HOME}/.local/share/totem 18noblacklist ${HOME}/.local/share/totem
18noblacklist ${HOME}/.local/share/xplayer 19noblacklist ${HOME}/.local/share/xplayer
20noblacklist ${HOME}/.local/state/mpv
19noblacklist ${HOME}/.mplayer 21noblacklist ${HOME}/.mplayer
20noblacklist ${VIDEOS} 22noblacklist ${VIDEOS}
21 23
@@ -35,6 +37,7 @@ whitelist ${HOME}/.local/share/QMediathekView
35whitelist ${DOWNLOADS} 37whitelist ${DOWNLOADS}
36whitelist ${VIDEOS} 38whitelist ${VIDEOS}
37 39
40whitelist ${HOME}/.cache/mpv
38whitelist ${HOME}/.config/mpv 41whitelist ${HOME}/.config/mpv
39whitelist ${HOME}/.config/smplayer 42whitelist ${HOME}/.config/smplayer
40whitelist ${HOME}/.config/totem 43whitelist ${HOME}/.config/totem
@@ -42,6 +45,7 @@ whitelist ${HOME}/.config/vlc
42whitelist ${HOME}/.config/xplayer 45whitelist ${HOME}/.config/xplayer
43whitelist ${HOME}/.local/share/totem 46whitelist ${HOME}/.local/share/totem
44whitelist ${HOME}/.local/share/xplayer 47whitelist ${HOME}/.local/share/xplayer
48whitelist ${HOME}/.local/state/mpv
45whitelist ${HOME}/.mplayer 49whitelist ${HOME}/.mplayer
46whitelist /usr/share/qtchooser 50whitelist /usr/share/qtchooser
47include whitelist-common.inc 51include whitelist-common.inc
diff --git a/etc/profile-m-z/Xephyr.profile b/etc/profile-m-z/Xephyr.profile
index 2fc1d1b8a..0c3d4c1da 100644
--- a/etc/profile-m-z/Xephyr.profile
+++ b/etc/profile-m-z/Xephyr.profile
@@ -16,7 +16,7 @@ include globals.local
16# 16#
17 17
18whitelist /var/lib/xkb 18whitelist /var/lib/xkb
19include whitelist-common.inc 19#include whitelist-common.inc # see #903
20 20
21caps.drop all 21caps.drop all
22# Xephyr needs to be allowed access to the abstract Unix socket namespace. 22# Xephyr needs to be allowed access to the abstract Unix socket namespace.
diff --git a/etc/profile-m-z/Xvfb.profile b/etc/profile-m-z/Xvfb.profile
index ee19fa3b0..2bb9f171a 100644
--- a/etc/profile-m-z/Xvfb.profile
+++ b/etc/profile-m-z/Xvfb.profile
@@ -19,7 +19,7 @@ include globals.local
19# 19#
20 20
21whitelist /var/lib/xkb 21whitelist /var/lib/xkb
22include whitelist-common.inc 22#include whitelist-common.inc # see #903
23 23
24caps.drop all 24caps.drop all
25# Xvfb needs to be allowed access to the abstract Unix socket namespace. 25# Xvfb needs to be allowed access to the abstract Unix socket namespace.
diff --git a/etc/profile-m-z/mediathekview.profile b/etc/profile-m-z/mediathekview.profile
index 19ce6fcd1..ef0c8bcc9 100644
--- a/etc/profile-m-z/mediathekview.profile
+++ b/etc/profile-m-z/mediathekview.profile
@@ -6,6 +6,7 @@ include mediathekview.local
6# Persistent global definitions 6# Persistent global definitions
7include globals.local 7include globals.local
8 8
9noblacklist ${HOME}/.cache/mpv
9noblacklist ${HOME}/.config/mpv 10noblacklist ${HOME}/.config/mpv
10noblacklist ${HOME}/.config/smplayer 11noblacklist ${HOME}/.config/smplayer
11noblacklist ${HOME}/.config/totem 12noblacklist ${HOME}/.config/totem
@@ -13,6 +14,7 @@ noblacklist ${HOME}/.config/vlc
13noblacklist ${HOME}/.config/xplayer 14noblacklist ${HOME}/.config/xplayer
14noblacklist ${HOME}/.local/share/totem 15noblacklist ${HOME}/.local/share/totem
15noblacklist ${HOME}/.local/share/xplayer 16noblacklist ${HOME}/.local/share/xplayer
17noblacklist ${HOME}/.local/state/mpv
16noblacklist ${HOME}/.mediathek3 18noblacklist ${HOME}/.mediathek3
17noblacklist ${HOME}/.mplayer 19noblacklist ${HOME}/.mplayer
18noblacklist ${VIDEOS} 20noblacklist ${VIDEOS}
diff --git a/etc/profile-m-z/mirrormagic.profile b/etc/profile-m-z/mirrormagic.profile
index 4943a80af..a8c6e3533 100644
--- a/etc/profile-m-z/mirrormagic.profile
+++ b/etc/profile-m-z/mirrormagic.profile
@@ -39,7 +39,6 @@ seccomp
39tracelog 39tracelog
40 40
41disable-mnt 41disable-mnt
42private
43private-bin mirrormagic 42private-bin mirrormagic
44private-cache 43private-cache
45private-dev 44private-dev
diff --git a/etc/profile-m-z/mpsyt.profile b/etc/profile-m-z/mpsyt.profile
index e73e3142c..e4f76855e 100644
--- a/etc/profile-m-z/mpsyt.profile
+++ b/etc/profile-m-z/mpsyt.profile
@@ -6,9 +6,11 @@ include mpsyt.local
6# Persistent global definitions 6# Persistent global definitions
7include globals.local 7include globals.local
8 8
9noblacklist ${HOME}/.cache/mpv
9noblacklist ${HOME}/.config/mps-youtube 10noblacklist ${HOME}/.config/mps-youtube
10noblacklist ${HOME}/.config/mpv 11noblacklist ${HOME}/.config/mpv
11noblacklist ${HOME}/.config/youtube-dl 12noblacklist ${HOME}/.config/youtube-dl
13noblacklist ${HOME}/.local/state/mpv
12noblacklist ${HOME}/.mplayer 14noblacklist ${HOME}/.mplayer
13noblacklist ${HOME}/.netrc 15noblacklist ${HOME}/.netrc
14noblacklist ${HOME}/mps 16noblacklist ${HOME}/mps
@@ -32,13 +34,13 @@ include disable-shell.inc
32include disable-xdg.inc 34include disable-xdg.inc
33 35
34mkdir ${HOME}/.config/mps-youtube 36mkdir ${HOME}/.config/mps-youtube
35mkdir ${HOME}/.config/mpv
36mkdir ${HOME}/.config/youtube-dl
37mkdir ${HOME}/.mplayer 37mkdir ${HOME}/.mplayer
38mkdir ${HOME}/mps 38mkdir ${HOME}/mps
39whitelist ${HOME}/.cache/mpv
39whitelist ${HOME}/.config/mps-youtube 40whitelist ${HOME}/.config/mps-youtube
40whitelist ${HOME}/.config/mpv 41whitelist ${HOME}/.config/mpv
41whitelist ${HOME}/.config/youtube-dl 42whitelist ${HOME}/.config/youtube-dl
43whitelist ${HOME}/.local/state/mpv
42whitelist ${HOME}/.mplayer 44whitelist ${HOME}/.mplayer
43whitelist ${HOME}/.netrc 45whitelist ${HOME}/.netrc
44whitelist ${HOME}/mps 46whitelist ${HOME}/mps
diff --git a/etc/profile-m-z/mpv.profile b/etc/profile-m-z/mpv.profile
index fd35483be..af8f00c0c 100644
--- a/etc/profile-m-z/mpv.profile
+++ b/etc/profile-m-z/mpv.profile
@@ -24,10 +24,12 @@ include globals.local
24#include allow-bin-sh.inc 24#include allow-bin-sh.inc
25#private-bin sh 25#private-bin sh
26 26
27noblacklist ${HOME}/.cache/mpv
27noblacklist ${HOME}/.config/mpv 28noblacklist ${HOME}/.config/mpv
28noblacklist ${HOME}/.config/youtube-dl 29noblacklist ${HOME}/.config/youtube-dl
29noblacklist ${HOME}/.config/yt-dlp 30noblacklist ${HOME}/.config/yt-dlp
30noblacklist ${HOME}/.config/yt-dlp.conf 31noblacklist ${HOME}/.config/yt-dlp.conf
32noblacklist ${HOME}/.local/state/mpv
31noblacklist ${HOME}/.netrc 33noblacklist ${HOME}/.netrc
32noblacklist ${HOME}/yt-dlp.conf 34noblacklist ${HOME}/yt-dlp.conf
33noblacklist ${HOME}/yt-dlp.conf.txt 35noblacklist ${HOME}/yt-dlp.conf.txt
@@ -49,12 +51,16 @@ include disable-programs.inc
49include disable-shell.inc 51include disable-shell.inc
50 52
51read-only ${DESKTOP} 53read-only ${DESKTOP}
54mkdir ${HOME}/.cache/mpv
52mkdir ${HOME}/.config/mpv 55mkdir ${HOME}/.config/mpv
56mkdir ${HOME}/.local/state/mpv
53mkfile ${HOME}/.netrc 57mkfile ${HOME}/.netrc
58whitelist ${HOME}/.cache/mpv
54whitelist ${HOME}/.config/mpv 59whitelist ${HOME}/.config/mpv
55whitelist ${HOME}/.config/youtube-dl 60whitelist ${HOME}/.config/youtube-dl
56whitelist ${HOME}/.config/yt-dlp 61whitelist ${HOME}/.config/yt-dlp
57whitelist ${HOME}/.config/yt-dlp.conf 62whitelist ${HOME}/.config/yt-dlp.conf
63whitelist ${HOME}/.local/state/mpv
58whitelist ${HOME}/.netrc 64whitelist ${HOME}/.netrc
59whitelist ${HOME}/yt-dlp.conf 65whitelist ${HOME}/yt-dlp.conf
60whitelist ${HOME}/yt-dlp.conf.txt 66whitelist ${HOME}/yt-dlp.conf.txt
diff --git a/etc/profile-m-z/notify-send.profile b/etc/profile-m-z/notify-send.profile
index f0f2cca2e..5ec81c2ac 100644
--- a/etc/profile-m-z/notify-send.profile
+++ b/etc/profile-m-z/notify-send.profile
@@ -18,7 +18,7 @@ include disable-shell.inc
18include disable-write-mnt.inc 18include disable-write-mnt.inc
19include disable-xdg.inc 19include disable-xdg.inc
20 20
21include whitelist-common.inc 21#include whitelist-common.inc # see #903
22include whitelist-runuser-common.inc 22include whitelist-runuser-common.inc
23include whitelist-usr-share-common.inc 23include whitelist-usr-share-common.inc
24include whitelist-var-common.inc 24include whitelist-var-common.inc
diff --git a/etc/profile-m-z/ping.profile b/etc/profile-m-z/ping.profile
index 4520ac2fa..d563064e1 100644
--- a/etc/profile-m-z/ping.profile
+++ b/etc/profile-m-z/ping.profile
@@ -18,7 +18,7 @@ include disable-programs.inc
18include disable-X11.inc 18include disable-X11.inc
19include disable-xdg.inc 19include disable-xdg.inc
20 20
21include whitelist-common.inc 21#include whitelist-common.inc # see #903
22include whitelist-run-common.inc 22include whitelist-run-common.inc
23include whitelist-runuser-common.inc 23include whitelist-runuser-common.inc
24include whitelist-usr-share-common.inc 24include whitelist-usr-share-common.inc
diff --git a/etc/profile-m-z/reader.profile b/etc/profile-m-z/reader.profile
new file mode 100644
index 000000000..31c45fe84
--- /dev/null
+++ b/etc/profile-m-z/reader.profile
@@ -0,0 +1,63 @@
1# Firejail profile for reader
2# Description: Better readability of web pages on the CLI
3# This file is overwritten after every install/update
4# Persistent local customizations
5include reader.local
6# Persistent global definitions
7include globals.local
8
9blacklist ${RUNUSER}
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
20#include whitelist-common.inc # see #903
21include whitelist-run-common.inc
22include whitelist-runuser-common.inc
23include whitelist-usr-share-common.inc
24include whitelist-var-common.inc
25
26apparmor
27caps.drop all
28ipc-namespace
29machine-id
30netfilter
31no3d
32nodvd
33nogroups
34noinput
35nonewprivs
36noprinters
37noroot
38nosound
39notv
40nou2f
41novideo
42protocol inet
43seccomp
44seccomp.block-secondary
45tracelog
46x11 none
47
48disable-mnt
49private
50private-bin reader
51private-cache
52private-dev
53private-etc @network,@tls-ca
54private-lib
55private-opt none
56private-tmp
57
58dbus-user none
59dbus-system none
60
61memory-deny-write-execute
62read-only ${HOME}
63restrict-namespaces
diff --git a/etc/profile-m-z/rtv-addons.profile b/etc/profile-m-z/rtv-addons.profile
index cc6db5043..3098cf0a0 100644
--- a/etc/profile-m-z/rtv-addons.profile
+++ b/etc/profile-m-z/rtv-addons.profile
@@ -11,13 +11,17 @@ ignore nosound
11ignore private-bin 11ignore private-bin
12ignore dbus-user none 12ignore dbus-user none
13 13
14noblacklist ${HOME}/.cache/mpv
14noblacklist ${HOME}/.config/mpv 15noblacklist ${HOME}/.config/mpv
16noblacklist ${HOME}/.local/state/mpv
15noblacklist ${HOME}/.mailcap 17noblacklist ${HOME}/.mailcap
16noblacklist ${HOME}/.netrc 18noblacklist ${HOME}/.netrc
17noblacklist ${HOME}/.w3m 19noblacklist ${HOME}/.w3m
18 20
21whitelist ${HOME}/.cache/mpv
19whitelist ${HOME}/.cache/youtube-dl/youtube-sigfuncs 22whitelist ${HOME}/.cache/youtube-dl/youtube-sigfuncs
20whitelist ${HOME}/.config/mpv 23whitelist ${HOME}/.config/mpv
24whitelist ${HOME}/.local/state/mpv
21whitelist ${HOME}/.mailcap 25whitelist ${HOME}/.mailcap
22whitelist ${HOME}/.netrc 26whitelist ${HOME}/.netrc
23whitelist ${HOME}/.w3m 27whitelist ${HOME}/.w3m
diff --git a/etc/profile-m-z/seahorse-adventures.profile b/etc/profile-m-z/seahorse-adventures.profile
index 5985e0da3..49d98d9f5 100644
--- a/etc/profile-m-z/seahorse-adventures.profile
+++ b/etc/profile-m-z/seahorse-adventures.profile
@@ -23,7 +23,7 @@ include disable-xdg.inc
23 23
24whitelist /usr/share/seahorse-adventures 24whitelist /usr/share/seahorse-adventures
25whitelist /usr/share/games/seahorse-adventures 25whitelist /usr/share/games/seahorse-adventures
26include whitelist-common.inc 26#include whitelist-common.inc # see #903
27include whitelist-usr-share-common.inc 27include whitelist-usr-share-common.inc
28include whitelist-var-common.inc 28include whitelist-var-common.inc
29 29
diff --git a/etc/profile-m-z/smtube.profile b/etc/profile-m-z/smtube.profile
index b617444af..7debd4057 100644
--- a/etc/profile-m-z/smtube.profile
+++ b/etc/profile-m-z/smtube.profile
@@ -6,12 +6,14 @@ include smtube.local
6# Persistent global definitions 6# Persistent global definitions
7include globals.local 7include globals.local
8 8
9noblacklist ${HOME}/.cache/mpv
10noblacklist ${HOME}/.config/mpv
9noblacklist ${HOME}/.config/smplayer 11noblacklist ${HOME}/.config/smplayer
10noblacklist ${HOME}/.config/smtube 12noblacklist ${HOME}/.config/smtube
11noblacklist ${HOME}/.config/mpv
12noblacklist ${HOME}/.mplayer
13noblacklist ${HOME}/.config/vlc 13noblacklist ${HOME}/.config/vlc
14noblacklist ${HOME}/.local/share/vlc 14noblacklist ${HOME}/.local/share/vlc
15noblacklist ${HOME}/.local/state/mpv
16noblacklist ${HOME}/.mplayer
15noblacklist ${MUSIC} 17noblacklist ${MUSIC}
16noblacklist ${VIDEOS} 18noblacklist ${VIDEOS}
17 19
diff --git a/etc/profile-m-z/thunderbird.profile b/etc/profile-m-z/thunderbird.profile
index f2405a7d3..17e2f0856 100644
--- a/etc/profile-m-z/thunderbird.profile
+++ b/etc/profile-m-z/thunderbird.profile
@@ -8,9 +8,17 @@ include globals.local
8 8
9ignore include whitelist-runuser-common.inc 9ignore include whitelist-runuser-common.inc
10 10
11# writable-run-user and dbus are needed by enigmail 11# TB stopped supporting enigmail in 2020 (v78) - let's harden D-Bus
12# https://support.mozilla.org/en-US/kb/openpgp-thunderbird-howto-and-faq
12ignore dbus-user none 13ignore dbus-user none
13ignore dbus-system none 14dbus-user filter
15dbus-user.own org.mozilla.thunderbird.*
16dbus-user.talk ca.desrt.dconf
17dbus-user.talk org.freedesktop.Notifications
18# allow D-Bus communication with firefox for opening links
19dbus-user.talk org.mozilla.*
20# e2ee email needs writable-run-user
21# https://support.mozilla.org/en-US/kb/introduction-to-e2e-encryption
14writable-run-user 22writable-run-user
15 23
16# If you want to read local mail stored in /var/mail edit /etc/apparmor.d/firejail-default accordingly 24# If you want to read local mail stored in /var/mail edit /etc/apparmor.d/firejail-default accordingly
diff --git a/etc/profile-m-z/wordwarvi.profile b/etc/profile-m-z/wordwarvi.profile
index 310e8b470..970063f93 100644
--- a/etc/profile-m-z/wordwarvi.profile
+++ b/etc/profile-m-z/wordwarvi.profile
@@ -40,7 +40,6 @@ seccomp
40tracelog 40tracelog
41 41
42disable-mnt 42disable-mnt
43private
44private-bin wordwarvi 43private-bin wordwarvi
45private-cache 44private-cache
46private-dev 45private-dev
diff --git a/etc/profile-m-z/xbill.profile b/etc/profile-m-z/xbill.profile
index e85bb9f18..46e3e81bc 100644
--- a/etc/profile-m-z/xbill.profile
+++ b/etc/profile-m-z/xbill.profile
@@ -16,7 +16,7 @@ include disable-xdg.inc
16 16
17whitelist /usr/share/xbill 17whitelist /usr/share/xbill
18whitelist /var/games/xbill/scores 18whitelist /var/games/xbill/scores
19include whitelist-common.inc 19#include whitelist-common.inc # see #903
20include whitelist-usr-share-common.inc 20include whitelist-usr-share-common.inc
21include whitelist-var-common.inc 21include whitelist-var-common.inc
22 22
diff --git a/etc/profile-m-z/youtube-viewers-common.profile b/etc/profile-m-z/youtube-viewers-common.profile
index c9d2ea53b..5950c3639 100644
--- a/etc/profile-m-z/youtube-viewers-common.profile
+++ b/etc/profile-m-z/youtube-viewers-common.profile
@@ -7,8 +7,10 @@ include youtube-viewers-common.local
7# added by caller profile 7# added by caller profile
8#include globals.local 8#include globals.local
9 9
10noblacklist ${HOME}/.cache/mpv
10noblacklist ${HOME}/.cache/youtube-dl 11noblacklist ${HOME}/.cache/youtube-dl
11noblacklist ${HOME}/.config/mpv 12noblacklist ${HOME}/.config/mpv
13noblacklist ${HOME}/.local/state/mpv
12 14
13# Allow lua (blacklisted by disable-interpreters.inc) 15# Allow lua (blacklisted by disable-interpreters.inc)
14include allow-lua.inc 16include allow-lua.inc
diff --git a/mkasc.sh b/mkasc.sh
index 62c1b1180..0314c20e5 100755
--- a/mkasc.sh
+++ b/mkasc.sh
@@ -3,7 +3,7 @@
3# Copyright (C) 2014-2023 Firejail Authors 3# Copyright (C) 2014-2023 Firejail Authors
4# License GPL v2 4# License GPL v2
5 5
6. "$(dirname "$0")/config.sh" 6. "$(dirname "$0")/config.sh" || exit 1
7 7
8printf 'Calculating SHA256 for all files in /transfer - %s version %s' "$TARNAME" "$VERSION" 8printf 'Calculating SHA256 for all files in /transfer - %s version %s' "$TARNAME" "$VERSION"
9 9
diff --git a/platform/rpm/mkrpm.sh b/platform/rpm/mkrpm.sh
index d32ccd360..0572480c6 100755
--- a/platform/rpm/mkrpm.sh
+++ b/platform/rpm/mkrpm.sh
@@ -3,23 +3,26 @@
3# Copyright (C) 2014-2023 Firejail Authors 3# Copyright (C) 2014-2023 Firejail Authors
4# License GPL v2 4# License GPL v2
5# 5#
6# Usage: ./platform/rpm/mkrpm.sh firejail <version> "<config options>" 6# Usage: ./platform/rpm/mkrpm.sh <config options>
7# 7#
8# Builds rpms in a temporary directory then places the result in the 8# Builds rpms in a temporary directory then places the result in the
9# current working directory. 9# current working directory.
10 10
11name=$1 11# shellcheck source=config.sh
12. "$(dirname "$0")/../../config.sh" || exit 1
13
14name="$TARNAME"
12# Strip any trailing prefix from the version like -rc1 etc 15# Strip any trailing prefix from the version like -rc1 etc
13version=$(echo "$2" | sed 's/\-.*//g') 16version="$(printf '%s\n' "$VERSION" | sed 's/\-.*//g')"
14config_opt=$3 17config_opt="$*"
15 18
16if [[ ! -f platform/rpm/${name}.spec ]]; then 19if [[ ! -f "platform/rpm/${name}.spec" ]]; then
17 echo error: spec file not found for name \"${name}\" 20 printf 'error: spec file not found for name %s\n' "${name}" >&2
18 exit 1 21 exit 1
19fi 22fi
20 23
21if [[ -z "${version}" ]]; then 24if [[ -z "${version}" ]]; then
22 echo error: version must be given 25 printf 'error: version must be given\n' >&2
23 exit 1 26 exit 1
24fi 27fi
25 28
@@ -28,26 +31,27 @@ if [[ -z "${config_opt}" ]]; then
28fi 31fi
29 32
30# Make a temporary directory and arrange to clean up on exit 33# Make a temporary directory and arrange to clean up on exit
31tmpdir=$(mktemp -d) 34tmpdir="$(mktemp -d)"
32mkdir -p ${tmpdir}/{BUILD,RPMS,SOURCES,SPECS,SRPMS} 35mkdir -p "${tmpdir}"/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
33function cleanup { 36function cleanup {
34 rm -rf ${tmpdir} 37 rm -rf "${tmpdir}"
35} 38}
36trap cleanup EXIT 39trap cleanup EXIT
37 40
38# Create the spec file 41# Create the spec file
39tmp_spec_file=${tmpdir}/SPECS/${name}.spec 42tmp_spec_file="${tmpdir}/SPECS/${name}.spec"
40sed -e "s/__NAME__/${name}/g" \ 43sed -e "s/__NAME__/${name}/g" \
41 -e "s/__VERSION__/${version}/g" \ 44 -e "s/__VERSION__/${version}/g" \
42 -e "s/__CONFIG_OPT__/${config_opt}/g" \ 45 -e "s/__CONFIG_OPT__/${config_opt}/g" \
43 platform/rpm/${name}.spec >${tmp_spec_file} 46 "platform/rpm/${name}.spec" >"${tmp_spec_file}"
44# FIXME: We could parse RELNOTES and create a %changelog section here 47# FIXME: We could parse RELNOTES and create a %changelog section here
45 48
46# Copy the source to build into a tarball 49# Copy the source to build into a tarball
47tar --exclude='./.git*' --transform "s/^./${name}-${version}/" -czf ${tmpdir}/SOURCES/${name}-${version}.tar.gz . 50tar --exclude='./.git*' --transform "s/^./${name}-${version}/" \
51 -czf "${tmpdir}/SOURCES/${name}-${version}.tar.gz" .
48 52
49# Build the files (rpm, debug rpm and source rpm) 53# Build the files (rpm, debug rpm and source rpm)
50rpmbuild --quiet --define "_topdir ${tmpdir}" -ba ${tmp_spec_file} 54rpmbuild --quiet --define "_topdir ${tmpdir}" -ba "${tmp_spec_file}"
51 55
52# Copy the results to cwd 56# Copy the results to cwd
53mv ${tmpdir}/SRPMS/*.rpm ${tmpdir}/RPMS/*/*rpm . 57mv "${tmpdir}/SRPMS"/*.rpm "${tmpdir}/RPMS"/*/*rpm .
diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config
index ce69738eb..7db4480b6 100644
--- a/src/firecfg/firecfg.config
+++ b/src/firecfg/firecfg.config
@@ -1,6 +1,8 @@
1# /etc/firejail/firecfg.config - firecfg utility configuration file 1# /etc/firejail/firecfg.config - firecfg utility configuration file
2# This is the list of programs in alphabetical order handled by firecfg utility 2# This is the list of programs in alphabetical order handled by firecfg utility
3# 3#
4# Note: Normal comment lines should start with `# ` and commented code lines
5# should start with just `#` (no spaces).
40ad 60ad
51password 71password
62048-qt 82048-qt
@@ -51,7 +53,7 @@ ani-cli
51anydesk 53anydesk
52apktool 54apktool
53apostrophe 55apostrophe
54# ar - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 56#ar # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
55arch-audit 57arch-audit
56archaudit-report 58archaudit-report
57ardour4 59ardour4
@@ -63,9 +65,9 @@ arm
63artha 65artha
64assogiate 66assogiate
65asunder 67asunder
66# atom 68#atom
67# atom-beta 69#atom-beta
68# atool - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 70#atool # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
69atril 71atril
70atril-previewer 72atril-previewer
71atril-thumbnailer 73atril-thumbnailer
@@ -112,10 +114,10 @@ brave-browser-beta
112brave-browser-dev 114brave-browser-dev
113brave-browser-nightly 115brave-browser-nightly
114brave-browser-stable 116brave-browser-stable
115# bunzip2 - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 117#bunzip2 # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
116# bzcat - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 118#bzcat # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
117bzflag 119bzflag
118# bzip2 - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 120#bzip2 # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
119cachy-browser 121cachy-browser
120calibre 122calibre
121calligra 123calligra
@@ -145,12 +147,13 @@ chromium-freeworld
145cin 147cin
146cinelerra 148cinelerra
147cinelerra-gg 149cinelerra-gg
150clac
148clamdscan 151clamdscan
149clamdtop 152clamdtop
150clamscan 153clamscan
151clamtk 154clamtk
152clawsker
153claws-mail 155claws-mail
156clawsker
154clementine 157clementine
155clion 158clion
156clion-eap 159clion-eap
@@ -182,6 +185,8 @@ crow
182cryptocat 185cryptocat
183cvlc 186cvlc
184cyberfox 187cyberfox
188d-feet
189daisy
185darktable 190darktable
186dconf-editor 191dconf-editor
187ddgr 192ddgr
@@ -191,7 +196,6 @@ deluge
191desktopeditors 196desktopeditors
192devhelp 197devhelp
193dex2jar 198dex2jar
194d-feet
195dia 199dia
196dig 200dig
197digikam 201digikam
@@ -235,14 +239,14 @@ enpass
235eog 239eog
236eom 240eom
237ephemeral 241ephemeral
238#epiphany - see #2995 242#epiphany # see #2995
239equalx 243equalx
240et 244et
241etr 245etr
242evince 246evince
243evince-previewer 247evince-previewer
244evince-thumbnailer 248evince-thumbnailer
245#evolution - see #3647 249#evolution # see #3647
246exfalso 250exfalso
247exiftool 251exiftool
248falkon 252falkon
@@ -270,8 +274,8 @@ flacsplt
270flameshot 274flameshot
271flashpeak-slimjet 275flashpeak-slimjet
272flowblade 276flowblade
273fontforge
274font-manager 277font-manager
278fontforge
275fossamail 279fossamail
276four-in-a-row 280four-in-a-row
277fractal 281fractal
@@ -318,7 +322,7 @@ git-cola
318gitg 322gitg
319github-desktop 323github-desktop
320gitter 324gitter
321# gjs -- https://github.com/netblue30/firejail/issues/3333#issuecomment-612601102 325#gjs # https://github.com/netblue30/firejail/issues/3333#issuecomment-612601102
322gl-117 326gl-117
323glaxium 327glaxium
324globaltime 328globaltime
@@ -383,12 +387,12 @@ gradio
383gramps 387gramps
384gravity-beams-and-evaporating-stars 388gravity-beams-and-evaporating-stars
385gthumb 389gthumb
386gtk2-youtube-viewer
387gtk3-youtube-viewer
388gtk-lbry-viewer 390gtk-lbry-viewer
389gtk-pipe-viewer 391gtk-pipe-viewer
390gtk-straw-viewer 392gtk-straw-viewer
391gtk-youtube-viewer 393gtk-youtube-viewer
394gtk2-youtube-viewer
395gtk3-youtube-viewer
392guayadeque 396guayadeque
393gucharmap 397gucharmap
394gummi 398gummi
@@ -409,8 +413,8 @@ icecat
409icedove 413icedove
410iceweasel 414iceweasel
411idea 415idea
412ideaIC
413idea.sh 416idea.sh
417ideaIC
414imagej 418imagej
415img2txt 419img2txt
416impressive 420impressive
@@ -429,6 +433,7 @@ jdownloader
429jerry 433jerry
430jitsi 434jitsi
431jitsi-meet-desktop 435jitsi-meet-desktop
436journal-viewer
432jumpnbump 437jumpnbump
433jumpnbump-menu 438jumpnbump-menu
434k3b 439k3b
@@ -439,7 +444,7 @@ karbon
439kate 444kate
440kazam 445kazam
441kcalc 446kcalc
442# kdeinit4 447#kdeinit4
443kdenlive 448kdenlive
444kdiff3 449kdiff3
445keepass 450keepass
@@ -449,7 +454,7 @@ keepassx2
449keepassxc 454keepassxc
450keepassxc-cli 455keepassxc-cli
451keepassxc-proxy 456keepassxc-proxy
452# kfind 457#kfind
453kget 458kget
454kid3 459kid3
455kid3-cli 460kid3-cli
@@ -466,15 +471,15 @@ kodi
466konversation 471konversation
467kopete 472kopete
468krita 473krita
469# krunner 474#krunner
470ktorrent 475ktorrent
471ktouch 476ktouch
472kube 477kube
473# kwin_x11 478#kwin_x11
474kwrite 479kwrite
475lbry-viewer 480lbry-viewer
476leafpad 481leafpad
477# less - breaks man 482#less # breaks man
478librecad 483librecad
479libreoffice 484libreoffice
480librewolf 485librewolf
@@ -499,12 +504,12 @@ lollypop
499lomath 504lomath
500loweb 505loweb
501lowriter 506lowriter
502# lrunzip - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 507#lrunzip # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
503# lrz - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 508#lrz # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
504# lrzcat - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 509#lrzcat # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
505# lrzip - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 510#lrzip # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
506# lrztar - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 511#lrztar # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
507# lrzuntar - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 512#lrzuntar # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
508luminance-hdr 513luminance-hdr
509lximage-qt 514lximage-qt
510lxmusic 515lxmusic
@@ -558,7 +563,6 @@ mp3wrap
558mpDris2 563mpDris2
559mpg123 564mpg123
560mpg123-alsa 565mpg123-alsa
561mpg123.bin
562mpg123-id3dump 566mpg123-id3dump
563mpg123-jack 567mpg123-jack
564mpg123-nas 568mpg123-nas
@@ -567,6 +571,7 @@ mpg123-oss
567mpg123-portaudio 571mpg123-portaudio
568mpg123-pulse 572mpg123-pulse
569mpg123-strip 573mpg123-strip
574mpg123.bin
570mplayer 575mplayer
571mpsyt 576mpsyt
572mpv 577mpv
@@ -635,11 +640,11 @@ onionshare-cli
635onionshare-gui 640onionshare-gui
636ooffice 641ooffice
637ooviewdoc 642ooviewdoc
643open-invaders
638openarena 644openarena
639openarena_ded 645openarena_ded
640opencity 646opencity
641openclonk 647openclonk
642open-invaders
643openmw 648openmw
644openmw-launcher 649openmw-launcher
645openoffice.org 650openoffice.org
@@ -696,9 +701,9 @@ profanity
696psi 701psi
697psi-plus 702psi-plus
698pybitmessage 703pybitmessage
699# pycharm-community - FB note: may enable later 704#pycharm-community # FB note: may enable later
700# pycharm-professional 705#pycharm-professional
701# pzstd - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 706#pzstd # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
702qbittorrent 707qbittorrent
703qcomicbook 708qcomicbook
704qemu-launcher 709qemu-launcher
@@ -720,6 +725,7 @@ qupzilla
720qutebrowser 725qutebrowser
721raincat 726raincat
722rambox 727rambox
728reader
723redeclipse 729redeclipse
724rednotebook 730rednotebook
725redshift 731redshift
@@ -778,22 +784,22 @@ sniffnet
778snox 784snox
779soffice 785soffice
780sol 786sol
781soundconverter
782sound-juicer 787sound-juicer
788soundconverter
783spectacle 789spectacle
784spectral 790spectral
785spotify 791spotify
786sqlitebrowser 792sqlitebrowser
787ssh 793ssh
788# ssh-agent - problems on Arch with Fish shell (#1568) 794#ssh-agent # problems on Arch with Fish shell (#1568)
789standardnotes-desktop 795standardnotes-desktop
790start-tor-browser 796start-tor-browser
791steam 797steam
792steam-native 798steam-native
793steam-runtime 799steam-runtime
794stellarium 800stellarium
795strawberry
796straw-viewer 801straw-viewer
802strawberry
797strings 803strings
798studio.sh 804studio.sh
799subdownloader 805subdownloader
@@ -824,7 +830,6 @@ thunderbird-beta
824thunderbird-wayland 830thunderbird-wayland
825tilp 831tilp
826tor-browser 832tor-browser
827torbrowser
828tor-browser-ar 833tor-browser-ar
829tor-browser-ca 834tor-browser-ca
830tor-browser-cs 835tor-browser-cs
@@ -846,7 +851,6 @@ tor-browser-it
846tor-browser-ja 851tor-browser-ja
847tor-browser-ka 852tor-browser-ka
848tor-browser-ko 853tor-browser-ko
849torbrowser-launcher
850tor-browser-nb 854tor-browser-nb
851tor-browser-nl 855tor-browser-nl
852tor-browser-pl 856tor-browser-pl
@@ -857,6 +861,8 @@ tor-browser-tr
857tor-browser-vi 861tor-browser-vi
858tor-browser-zh-cn 862tor-browser-zh-cn
859tor-browser-zh-tw 863tor-browser-zh-tw
864torbrowser
865torbrowser-launcher
860torcs 866torcs
861totem 867totem
862tracker 868tracker
@@ -886,7 +892,7 @@ uget-gtk
886unbound 892unbound
887unf 893unf
888unknown-horizons 894unknown-horizons
889# unzstd - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 895#unzstd # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
890url-eater 896url-eater
891utox 897utox
892uudeview 898uudeview
@@ -899,10 +905,10 @@ vivaldi-beta
899vivaldi-snapshot 905vivaldi-snapshot
900vivaldi-stable 906vivaldi-stable
901vlc 907vlc
902#vmplayer - unable to install kernel modules (see #5861) 908#vmplayer # unable to install kernel modules (see #5861)
903#vmware - unable to install kernel modules (see #5861) 909#vmware # unable to install kernel modules (see #5861)
904#vmware-player - unable to install kernel modules (see #5861) 910#vmware-player # unable to install kernel modules (see #5861)
905#vmware-workstation - unable to install kernel modules (see #5861) 911#vmware-workstation # unable to install kernel modules (see #5861)
906vscodium 912vscodium
907vulturesclaw 913vulturesclaw
908vultureseye 914vultureseye
@@ -966,8 +972,8 @@ yelp
966youtube 972youtube
967youtube-dl 973youtube-dl
968youtube-dl-gui 974youtube-dl-gui
969youtubemusic-nativefier
970youtube-viewer 975youtube-viewer
976youtubemusic-nativefier
971yt-dlp 977yt-dlp
972ytmdesktop 978ytmdesktop
973zaproxy 979zaproxy
@@ -977,10 +983,10 @@ zeal
977zim 983zim
978zlib-flate 984zlib-flate
979zoom 985zoom
980# zpaq - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 986#zpaq # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
981# zstd - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 987#zstd # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
982# zstdcat - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 988#zstdcat # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
983# zstdgrep - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 989#zstdgrep # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
984# zstdless - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 990#zstdless # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
985# zstdmt - disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095) 991#zstdmt # disable until we fix CLI archivers for makepkg on Arch (see discussion in #3095)
986zulip 992zulip
diff --git a/test/compile/compile.sh b/test/compile/compile.sh
index da6e43a5a..0e3425f8d 100755
--- a/test/compile/compile.sh
+++ b/test/compile/compile.sh
@@ -11,7 +11,8 @@
11# install contrib scripts 11# install contrib scripts
12# --enable-analyzer enable GCC 10 static analyzer 12# --enable-analyzer enable GCC 10 static analyzer
13 13
14 14# shellcheck source=config.sh
15. "$(dirname "$0")/../../config.sh" || exit 1
15 16
16arr[1]="TEST 1: standard compilation" 17arr[1]="TEST 1: standard compilation"
17arr[2]="TEST 2: compile dbus proxy disabled" 18arr[2]="TEST 2: compile dbus proxy disabled"
@@ -51,7 +52,7 @@ print_title() {
51 echo "**************************************************" 52 echo "**************************************************"
52} 53}
53 54
54DIST="$1" 55DIST="$(TARNAME)-$(VERSION)"
55while [[ $# -gt 0 ]]; do # Until you run out of parameters . . . 56while [[ $# -gt 0 ]]; do # Until you run out of parameters . . .
56 case "$1" in 57 case "$1" in
57 --clean) 58 --clean)
@@ -79,7 +80,7 @@ echo "$DIST"
79tar -xJvf ../../"$DIST.tar.xz" 80tar -xJvf ../../"$DIST.tar.xz"
80mv "$DIST" firejail 81mv "$DIST" firejail
81 82
82cd firejail 83cd firejail || exit 1
83./configure --prefix=/usr --enable-fatal-warnings 2>&1 | tee ../output-configure 84./configure --prefix=/usr --enable-fatal-warnings 2>&1 | tee ../output-configure
84make -j4 2>&1 | tee ../output-make 85make -j4 2>&1 | tee ../output-make
85cd .. 86cd ..
@@ -95,7 +96,7 @@ rm output-configure output-make
95# - disable dbus proxy configuration 96# - disable dbus proxy configuration
96#***************************************************************** 97#*****************************************************************
97print_title "${arr[2]}" 98print_title "${arr[2]}"
98cd firejail 99cd firejail || exit 1
99make distclean 100make distclean
100./configure --prefix=/usr --disable-dbusproxy --enable-fatal-warnings 2>&1 | tee ../output-configure 101./configure --prefix=/usr --disable-dbusproxy --enable-fatal-warnings 2>&1 | tee ../output-configure
101make -j4 2>&1 | tee ../output-make 102make -j4 2>&1 | tee ../output-make
@@ -112,7 +113,7 @@ rm output-configure output-make
112# - disable chroot configuration 113# - disable chroot configuration
113#***************************************************************** 114#*****************************************************************
114print_title "${arr[3]}" 115print_title "${arr[3]}"
115cd firejail 116cd firejail || exit 1
116make distclean 117make distclean
117./configure --prefix=/usr --disable-chroot --enable-fatal-warnings 2>&1 | tee ../output-configure 118./configure --prefix=/usr --disable-chroot --enable-fatal-warnings 2>&1 | tee ../output-configure
118make -j4 2>&1 | tee ../output-make 119make -j4 2>&1 | tee ../output-make
@@ -129,7 +130,7 @@ rm output-configure output-make
129# - disable firetunnel configuration 130# - disable firetunnel configuration
130#***************************************************************** 131#*****************************************************************
131print_title "${arr[4]}" 132print_title "${arr[4]}"
132cd firejail 133cd firejail || exit 1
133make distclean 134make distclean
134./configure --prefix=/usr --disable-firetunnel --enable-fatal-warnings 2>&1 | tee ../output-configure 135./configure --prefix=/usr --disable-firetunnel --enable-fatal-warnings 2>&1 | tee ../output-configure
135make -j4 2>&1 | tee ../output-make 136make -j4 2>&1 | tee ../output-make
@@ -146,7 +147,7 @@ rm output-configure output-make
146# - disable user namespace configuration 147# - disable user namespace configuration
147#***************************************************************** 148#*****************************************************************
148print_title "${arr[5]}" 149print_title "${arr[5]}"
149cd firejail 150cd firejail || exit 1
150make distclean 151make distclean
151./configure --prefix=/usr --disable-userns --enable-fatal-warnings 2>&1 | tee ../output-configure 152./configure --prefix=/usr --disable-userns --enable-fatal-warnings 2>&1 | tee ../output-configure
152make -j4 2>&1 | tee ../output-make 153make -j4 2>&1 | tee ../output-make
@@ -164,7 +165,7 @@ rm output-configure output-make
164# - check compilation 165# - check compilation
165#***************************************************************** 166#*****************************************************************
166print_title "${arr[6]}" 167print_title "${arr[6]}"
167cd firejail 168cd firejail || exit 1
168make distclean 169make distclean
169./configure --prefix=/usr --disable-network --enable-fatal-warnings 2>&1 | tee ../output-configure 170./configure --prefix=/usr --disable-network --enable-fatal-warnings 2>&1 | tee ../output-configure
170make -j4 2>&1 | tee ../output-make 171make -j4 2>&1 | tee ../output-make
@@ -181,7 +182,7 @@ rm output-configure output-make
181# - disable X11 support 182# - disable X11 support
182#***************************************************************** 183#*****************************************************************
183print_title "${arr[7]}" 184print_title "${arr[7]}"
184cd firejail 185cd firejail || exit 1
185make distclean 186make distclean
186./configure --prefix=/usr --disable-x11 --enable-fatal-warnings 2>&1 | tee ../output-configure 187./configure --prefix=/usr --disable-x11 --enable-fatal-warnings 2>&1 | tee ../output-configure
187make -j4 2>&1 | tee ../output-make 188make -j4 2>&1 | tee ../output-make
@@ -198,7 +199,7 @@ rm output-configure output-make
198# - enable selinux 199# - enable selinux
199#***************************************************************** 200#*****************************************************************
200print_title "${arr[8]}" 201print_title "${arr[8]}"
201cd firejail 202cd firejail || exit 1
202make distclean 203make distclean
203./configure --prefix=/usr --enable-selinux --enable-fatal-warnings 2>&1 | tee ../output-configure 204./configure --prefix=/usr --enable-selinux --enable-fatal-warnings 2>&1 | tee ../output-configure
204make -j4 2>&1 | tee ../output-make 205make -j4 2>&1 | tee ../output-make
@@ -215,7 +216,7 @@ rm output-configure output-make
215# - disable file transfer 216# - disable file transfer
216#***************************************************************** 217#*****************************************************************
217print_title "${arr[9]}" 218print_title "${arr[9]}"
218cd firejail 219cd firejail || exit 1
219make distclean 220make distclean
220./configure --prefix=/usr --disable-file-transfer --enable-fatal-warnings 2>&1 | tee ../output-configure 221./configure --prefix=/usr --disable-file-transfer --enable-fatal-warnings 2>&1 | tee ../output-configure
221make -j4 2>&1 | tee ../output-make 222make -j4 2>&1 | tee ../output-make
@@ -232,7 +233,7 @@ rm output-configure output-make
232# - disable whitelist 233# - disable whitelist
233#***************************************************************** 234#*****************************************************************
234print_title "${arr[10]}" 235print_title "${arr[10]}"
235cd firejail 236cd firejail || exit 1
236make distclean 237make distclean
237./configure --prefix=/usr --disable-whitelist --enable-fatal-warnings 2>&1 | tee ../output-configure 238./configure --prefix=/usr --disable-whitelist --enable-fatal-warnings 2>&1 | tee ../output-configure
238make -j4 2>&1 | tee ../output-make 239make -j4 2>&1 | tee ../output-make
@@ -249,7 +250,7 @@ rm output-configure output-make
249# - disable global config 250# - disable global config
250#***************************************************************** 251#*****************************************************************
251print_title "${arr[11]}" 252print_title "${arr[11]}"
252cd firejail 253cd firejail || exit 1
253make distclean 254make distclean
254./configure --prefix=/usr --disable-globalcfg --enable-fatal-warnings 2>&1 | tee ../output-configure 255./configure --prefix=/usr --disable-globalcfg --enable-fatal-warnings 2>&1 | tee ../output-configure
255make -j4 2>&1 | tee ../output-make 256make -j4 2>&1 | tee ../output-make
@@ -266,7 +267,7 @@ rm output-configure output-make
266# - enable apparmor 267# - enable apparmor
267#***************************************************************** 268#*****************************************************************
268print_title "${arr[12]}" 269print_title "${arr[12]}"
269cd firejail 270cd firejail || exit 1
270make distclean 271make distclean
271./configure --prefix=/usr --enable-apparmor --enable-fatal-warnings 2>&1 | tee ../output-configure 272./configure --prefix=/usr --enable-apparmor --enable-fatal-warnings 2>&1 | tee ../output-configure
272make -j4 2>&1 | tee ../output-make 273make -j4 2>&1 | tee ../output-make
@@ -283,7 +284,7 @@ rm output-configure output-make
283# - enable busybox workaround 284# - enable busybox workaround
284#***************************************************************** 285#*****************************************************************
285print_title "${arr[13]}" 286print_title "${arr[13]}"
286cd firejail 287cd firejail || exit 1
287make distclean 288make distclean
288./configure --prefix=/usr --enable-busybox-workaround --enable-fatal-warnings 2>&1 | tee ../output-configure 289./configure --prefix=/usr --enable-busybox-workaround --enable-fatal-warnings 2>&1 | tee ../output-configure
289make -j4 2>&1 | tee ../output-make 290make -j4 2>&1 | tee ../output-make
@@ -300,7 +301,7 @@ rm output-configure output-make
300# - disable overlayfs 301# - disable overlayfs
301#***************************************************************** 302#*****************************************************************
302print_title "${arr[14]}" 303print_title "${arr[14]}"
303cd firejail 304cd firejail || exit 1
304make distclean 305make distclean
305./configure --prefix=/usr --disable-overlayfs --enable-fatal-warnings 2>&1 | tee ../output-configure 306./configure --prefix=/usr --disable-overlayfs --enable-fatal-warnings 2>&1 | tee ../output-configure
306make -j4 2>&1 | tee ../output-make 307make -j4 2>&1 | tee ../output-make
@@ -317,7 +318,7 @@ rm output-configure output-make
317# - disable private home 318# - disable private home
318#***************************************************************** 319#*****************************************************************
319print_title "${arr[15]}" 320print_title "${arr[15]}"
320cd firejail 321cd firejail || exit 1
321make distclean 322make distclean
322./configure --prefix=/usr --disable-private-home --enable-fatal-warnings 2>&1 | tee ../output-configure 323./configure --prefix=/usr --disable-private-home --enable-fatal-warnings 2>&1 | tee ../output-configure
323make -j4 2>&1 | tee ../output-make 324make -j4 2>&1 | tee ../output-make
@@ -334,7 +335,7 @@ rm output-configure output-make
334# - disable manpages 335# - disable manpages
335#***************************************************************** 336#*****************************************************************
336print_title "${arr[16]}" 337print_title "${arr[16]}"
337cd firejail 338cd firejail || exit 1
338make distclean 339make distclean
339./configure --prefix=/usr --disable-man --enable-fatal-warnings 2>&1 | tee ../output-configure 340./configure --prefix=/usr --disable-man --enable-fatal-warnings 2>&1 | tee ../output-configure
340make -j4 2>&1 | tee ../output-make 341make -j4 2>&1 | tee ../output-make
@@ -351,7 +352,7 @@ rm output-configure output-make
351# - disable tmpfs as regular user" 352# - disable tmpfs as regular user"
352#***************************************************************** 353#*****************************************************************
353print_title "${arr[17]}" 354print_title "${arr[17]}"
354cd firejail 355cd firejail || exit 1
355make distclean 356make distclean
356./configure --prefix=/usr --disable-usertmpfs --enable-fatal-warnings 2>&1 | tee ../output-configure 357./configure --prefix=/usr --disable-usertmpfs --enable-fatal-warnings 2>&1 | tee ../output-configure
357make -j4 2>&1 | tee ../output-make 358make -j4 2>&1 | tee ../output-make
@@ -368,7 +369,7 @@ rm output-configure output-make
368# - disable private home feature 369# - disable private home feature
369#***************************************************************** 370#*****************************************************************
370print_title "${arr[18]}" 371print_title "${arr[18]}"
371cd firejail 372cd firejail || exit 1
372make distclean 373make distclean
373./configure --prefix=/usr --disable-private-home --enable-fatal-warnings 2>&1 | tee ../output-configure 374./configure --prefix=/usr --disable-private-home --enable-fatal-warnings 2>&1 | tee ../output-configure
374make -j4 2>&1 | tee ../output-make 375make -j4 2>&1 | tee ../output-make
@@ -385,7 +386,7 @@ rm output-configure output-make
385# - enable ids 386# - enable ids
386#***************************************************************** 387#*****************************************************************
387print_title "${arr[19]}" 388print_title "${arr[19]}"
388cd firejail 389cd firejail || exit 1
389make distclean 390make distclean
390./configure --prefix=/usr --enable-ids --enable-fatal-warnings 2>&1 | tee ../output-configure 391./configure --prefix=/usr --enable-ids --enable-fatal-warnings 2>&1 | tee ../output-configure
391make -j4 2>&1 | tee ../output-make 392make -j4 2>&1 | tee ../output-make