From 3a088f1e6941bdf4cd89c140cd0fdd4070bbc5fe Mon Sep 17 00:00:00 2001 From: glitsj16 Date: Thu, 10 Aug 2023 09:09:53 +0000 Subject: New profile: journal-viewer (#5943) --- etc/inc/disable-programs.inc | 2 + etc/profile-a-l/journal-viewer.profile | 68 ++++++++++++++++++++++++++++++++++ src/firecfg/firecfg.config | 1 + 3 files changed, 71 insertions(+) create mode 100644 etc/profile-a-l/journal-viewer.profile 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 blacklist ${HOME}/.cache/inox blacklist ${HOME}/.cache/io.github.lainsce.Notejot blacklist ${HOME}/.cache/iridium +blacklist ${HOME}/.cache/journal-viewer blacklist ${HOME}/.cache/kcmshell5 blacklist ${HOME}/.cache/kdenlive blacklist ${HOME}/.cache/keepassxc @@ -901,6 +902,7 @@ blacklist ${HOME}/.local/share/cdprojektred blacklist ${HOME}/.local/share/chatterino blacklist ${HOME}/.local/share/clipit blacklist ${HOME}/.local/share/com.github.johnfactotum.Foliate +blacklist ${HOME}/.local/share/com.vmingueza.journal-viewer blacklist ${HOME}/.local/share/contacts blacklist ${HOME}/.local/share/cor-games blacklist ${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 @@ +# Firejail profile for journal-viewer +# Description: Visualize systemd logs +# This file is overwritten after every install/update +# Persistent local customizations +include journal-viewer.local +# Persistent global definitions +include globals.local + +noblacklist ${HOME}/.cache/journal-viewer +noblacklist ${HOME}/.local/share/com.vmingueza.journal-viewer + +include disable-common.inc +include disable-devel.inc +include disable-exec.inc +include disable-interpreters.inc +include disable-proc.inc +include disable-programs.inc +include disable-shell.inc +include disable-xdg.inc + +mkdir ${HOME}/.cache/journal-viewer +mkdir ${HOME}/.local/share/com.vmingueza.journal-viewer +whitelist ${HOME}/.cache/journal-viewer +whitelist ${HOME}/.local/share/com.vmingueza.journal-viewer +whitelist /run/log/journal +whitelist /var/log/journal +include whitelist-common.inc +include whitelist-run-common.inc +include whitelist-runuser-common.inc +include whitelist-usr-share-common.inc +include whitelist-var-common.inc + +apparmor +caps.drop all +ipc-namespace +net none +no3d +nodvd +nogroups +noinput +nonewprivs +noprinters +noroot +nosound +notv +nou2f +novideo +protocol unix +seccomp +seccomp.block-secondary +tracelog + +disable-mnt +private-bin journal-viewer +private-cache +private-dev +private-etc machine-id +private-lib webkit2gtk-* +private-tmp + +dbus-user none +dbus-system none + +restrict-namespaces +read-only ${HOME} +read-write ${HOME}/.cache/journal-viewer +read-write ${HOME}/.local/share/com.vmingueza.journal-viewer +writable-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 jerry jitsi jitsi-meet-desktop +journal-viewer jumpnbump jumpnbump-menu k3b -- cgit v1.2.3-54-g00ecf