From 512ed2882e3f04b15f6b78aac806e77e93c9da64 Mon Sep 17 00:00:00 2001 From: rusty-snake Date: Sun, 19 Jan 2020 10:25:50 +0100 Subject: create rtv.profile --- etc/disable-programs.inc | 2 ++ etc/rtv.profile | 56 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 etc/rtv.profile (limited to 'etc') diff --git a/etc/disable-programs.inc b/etc/disable-programs.inc index 25bc37801..f46294a25 100644 --- a/etc/disable-programs.inc +++ b/etc/disable-programs.inc @@ -291,6 +291,7 @@ blacklist ${HOME}/.config/redshift blacklist ${HOME}/.config/redshift.conf blacklist ${HOME}/.config/remmina blacklist ${HOME}/.config/ristretto +blacklist ${HOME}/.config/rtv blacklist ${HOME}/.config/scribus blacklist ${HOME}/.config/scribusrc blacklist ${HOME}/.config/sinew.in @@ -575,6 +576,7 @@ blacklist ${HOME}/.local/share/qpdfview blacklist ${HOME}/.local/share/qutebrowser blacklist ${HOME}/.local/share/remmina blacklist ${HOME}/.local/share/rhythmbox +blacklist ${HOME}/.local/share/rtv blacklist ${HOME}/.local/share/scribus blacklist ${HOME}/.local/share/signal-cli blacklist ${HOME}/.local/share/spotify diff --git a/etc/rtv.profile b/etc/rtv.profile new file mode 100644 index 000000000..af4b7e94b --- /dev/null +++ b/etc/rtv.profile @@ -0,0 +1,56 @@ +# Firejail profile for rtv +# Description: Browse Reddit from your terminal +# This file is overwritten after every install/update +# Persistent local customizations +include rtv.local +# Persistent global definitions +include globals.local + +blacklist /tmp/.X11-unix +blacklist ${RUNUSER}/wayland-* + +noblacklist ${HOME}/.config/rtv +noblacklist ${HOME}/.local/share/rtv + +# Allow python (blacklisted by disable-interpreters.inc) +include allow-python2.inc +include allow-python3.inc + +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}/.config/rtv +mkdir ${HOME}/.local/share/rtv +whitelist ${HOME}/.config/rtv +whitelist ${HOME}/.local/share/rtv +include whitelist-var-common.inc + +apparmor +caps.drop all +machine-id +netfilter +no3d +nodbus +nodvd +nogroups +nonewprivs +noroot +nosound +notv +nou2f +novideo +protocol unix,inet,inet6 +seccomp +shell none +tracelog + +disable-mnt +private-bin python*,rtv,sh,xdg-settings +private-cache +private-dev +private-etc alternatives,ca-certificates,crypto-policies,host.conf,hostname,hosts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,mime.types,nsswitch.conf,pki,protocols,resolv.conf,rpc,services,ssl,terminfo,xdg -- cgit v1.2.3-70-g09d2