From 2cbdc4399a2a98ee6822ea2512eaaee0c39dac5b Mon Sep 17 00:00:00 2001 From: rusty-snake <41237666+rusty-snake@users.noreply.github.com> Date: Mon, 13 Apr 2020 17:39:20 +0200 Subject: add sthortwave (#1139) and remove gjs from firecf… MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …g.config (#3333). --- etc/disable-programs.inc | 2 ++ etc/shortwave.profile | 50 ++++++++++++++++++++++++++++++++++++++++++ etc/templates/profile.template | 2 +- src/firecfg/firecfg.config | 3 ++- 4 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 etc/shortwave.profile diff --git a/etc/disable-programs.inc b/etc/disable-programs.inc index a0670df80..6a50f8561 100644 --- a/etc/disable-programs.inc +++ b/etc/disable-programs.inc @@ -501,6 +501,7 @@ blacklist ${HOME}/.local/share/QGIS blacklist ${HOME}/.local/share/QMediathekView blacklist ${HOME}/.local/share/QuiteRss blacklist ${HOME}/.local/share/Ricochet +blacklist ${HOME}/.local/share/Shortwave blacklist ${HOME}/.local/share/Steam blacklist ${HOME}/.local/share/SuperHexagon blacklist ${HOME}/.local/share/TelegramDesktop @@ -758,6 +759,7 @@ blacklist ${HOME}/.cache/Franz blacklist ${HOME}/.cache/INRIA blacklist ${HOME}/.cache/MusicBrainz blacklist ${HOME}/.cache/QuiteRss +blacklist ${HOME}/.cache/Shortwave blacklist ${HOME}/.cache/Tox blacklist ${HOME}/.cache/Zeal blacklist ${HOME}/.cache/agenda diff --git a/etc/shortwave.profile b/etc/shortwave.profile new file mode 100644 index 000000000..ee2314833 --- /dev/null +++ b/etc/shortwave.profile @@ -0,0 +1,50 @@ +# Firejail profile for shortwave +# Description: Listen to internet radio +# This file is overwritten after every install/update +# Persistent local customizations +include shortwave.local +# Persistent global definitions +include globals.local + +noblacklist ${HOME}/.cache/Shortwave +noblacklist ${HOME}/.local/share/Shortwave + +include disable-common.inc +include disable-devel.inc +include disable-exec.inc +include disable-interpreters.inc +include disable-passwdmgr.inc +include disable-programs.inc +include disable-xdg.inc + +mkdir ${HOME}/.cache/Shortwave +mkdir ${HOME}/.local/share/Shortwave +whitelist ${HOME}/.cache/Shortwave +whitelist ${HOME}/.local/share/Shortwave +whitelist /usr/share/shortwave +include whitelist-common.inc +include whitelist-runuser-common.inc +include whitelist-usr-share-common.inc +include whitelist-var-common.inc + +apparmor +caps.drop all +netfilter +nodvd +nogroups +nonewprivs +noroot +notv +nou2f +novideo +protocol unix,inet,inet6 +seccomp +shell none +tracelog + +disable-mnt +private-bin shortwave +private-cache +private-dev +private-etc alsa,alternatives,asound.conf,ca-certificates,crypto-policies,dconf,fonts,gconf,group,gtk-2.0,gtk-3.0,host.conf,hostname,hosts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,machine-id,mime.types,nsswitch.conf,pango,passwd,pki,pulse,resolv.conf,ssl,X11,xdg +private-tmp diff --git a/etc/templates/profile.template b/etc/templates/profile.template index b3ebd4996..d339ce476 100644 --- a/etc/templates/profile.template +++ b/etc/templates/profile.template @@ -119,7 +119,7 @@ include globals.local ##mkfile PATH #whitelist PATH #include whitelist-common.inc -#GTK3 only: include whitelist-runuser-common.inc +#include whitelist-runuser-common.inc #include whitelist-usr-share-common.inc #include whitelist-var-common.inc diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config index 2e8e05f8f..a19819552 100644 --- a/src/firecfg/firecfg.config +++ b/src/firecfg/firecfg.config @@ -258,7 +258,7 @@ gist-paste gitg github-desktop gitter -gjs +# gjs -- https://github.com/netblue30/firejail/issues/3333#issuecomment-612601102 globaltime gmpc gnome-2048 @@ -601,6 +601,7 @@ seamonkey seamonkey-bin secret-tool shellcheck +shortwave shotcut signal-cli signal-desktop -- cgit v1.2.3-54-g00ecf