aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar glitsj16 <glitsj16@users.noreply.github.com>2023-08-10 09:09:53 +0000
committerLibravatar GitHub <noreply@github.com>2023-08-10 09:09:53 +0000
commit3a088f1e6941bdf4cd89c140cd0fdd4070bbc5fe (patch)
tree9a83d0d9b881c4631c20a3407176441906f0f4c0
parentMerge pull request #5942 from kmk3/build-firecfg-improvements (diff)
downloadfirejail-3a088f1e6941bdf4cd89c140cd0fdd4070bbc5fe.tar.gz
firejail-3a088f1e6941bdf4cd89c140cd0fdd4070bbc5fe.tar.zst
firejail-3a088f1e6941bdf4cd89c140cd0fdd4070bbc5fe.zip
New profile: journal-viewer (#5943)
-rw-r--r--etc/inc/disable-programs.inc2
-rw-r--r--etc/profile-a-l/journal-viewer.profile68
-rw-r--r--src/firecfg/firecfg.config1
3 files changed, 71 insertions, 0 deletions
diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc
index 4dac9e3e4..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
@@ -901,6 +902,7 @@ blacklist ${HOME}/.local/share/cdprojektred
901blacklist ${HOME}/.local/share/chatterino 902blacklist ${HOME}/.local/share/chatterino
902blacklist ${HOME}/.local/share/clipit 903blacklist ${HOME}/.local/share/clipit
903blacklist ${HOME}/.local/share/com.github.johnfactotum.Foliate 904blacklist ${HOME}/.local/share/com.github.johnfactotum.Foliate
905blacklist ${HOME}/.local/share/com.vmingueza.journal-viewer
904blacklist ${HOME}/.local/share/contacts 906blacklist ${HOME}/.local/share/contacts
905blacklist ${HOME}/.local/share/cor-games 907blacklist ${HOME}/.local/share/cor-games
906blacklist ${HOME}/.local/share/data/Mendeley Ltd. 908blacklist ${HOME}/.local/share/data/Mendeley Ltd.
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/src/firecfg/firecfg.config b/src/firecfg/firecfg.config
index 968ba7bf5..71c03a5e6 100644
--- a/src/firecfg/firecfg.config
+++ b/src/firecfg/firecfg.config
@@ -432,6 +432,7 @@ jdownloader
432jerry 432jerry
433jitsi 433jitsi
434jitsi-meet-desktop 434jitsi-meet-desktop
435journal-viewer
435jumpnbump 436jumpnbump
436jumpnbump-menu 437jumpnbump-menu
437k3b 438k3b