From ddb9194f8152ef16e3a1e678a976dc7aca10b066 Mon Sep 17 00:00:00 2001 From: kortewegdevries Date: Wed, 18 Nov 2020 16:52:22 +0000 Subject: Add profile for straw-viewer (#3742) * Add profile for straw-viewer * Remove blacklist, fixes --- etc/profile-m-z/straw-viewer.profile | 58 ++++++++++++++++++++++++++++++++++ etc/profile-m-z/youtube-viewer.profile | 8 ++--- 2 files changed, 60 insertions(+), 6 deletions(-) create mode 100644 etc/profile-m-z/straw-viewer.profile (limited to 'etc/profile-m-z') diff --git a/etc/profile-m-z/straw-viewer.profile b/etc/profile-m-z/straw-viewer.profile new file mode 100644 index 000000000..721ad38ee --- /dev/null +++ b/etc/profile-m-z/straw-viewer.profile @@ -0,0 +1,58 @@ +# Firejail profile for straw-viewer +# Description: Fork of youtube-viewer acts like an invidious frontend +quiet +# This file is overwritten after every install/update +# Persistent local customizations +include straw-viewer.local +# Persistent global definitions +include globals.local + +noblacklist ${HOME}/.cache/straw-viewer +noblacklist ${HOME}/.config/straw-viewer + +include allow-lua.inc +include allow-perl.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/straw-viewer +mkdir ${HOME}/.cache/straw-viewer +whitelist ${HOME}/.cache/straw-viewer +whitelist ${HOME}/.config/straw-viewer +whitelist ${DOWNLOADS} +include whitelist-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 bash,ffmpeg,ffprobe,gtk-straw-viewer,mpv,perl,python*,sh,smplayer,straw-viewer,stty,vlc,wget,which,youtube-dl +private-cache +private-dev +private-etc alsa,alternatives,asound.conf,ca-certificates,crypto-policies,fonts,gtk-2.0,gtk-3.0,host.conf,hostname,hosts,machine-id,mime.types,nsswitch.conf,passwd,pki,pulse,resolv.conf,ssl,X11,xdg +private-tmp + +dbus-user none +dbus-system none diff --git a/etc/profile-m-z/youtube-viewer.profile b/etc/profile-m-z/youtube-viewer.profile index 513cb0f6e..a3a2afa29 100644 --- a/etc/profile-m-z/youtube-viewer.profile +++ b/etc/profile-m-z/youtube-viewer.profile @@ -7,10 +7,6 @@ include youtube-viewer.local # Persistent global definitions include globals.local -blacklist /tmp/.X11-unix -blacklist ${RUNUSER}/wayland-* -blacklist ${RUNUSER} - noblacklist ${HOME}/.config/youtube-viewer include allow-perl.inc @@ -47,11 +43,11 @@ shell none tracelog disable-mnt -# private-bin ffmpeg,ffprobe,firefox,gtk-youtube-viewer,gtk2-youtube-viewer,gtk3-youtube-viewer,mpv,python*,smplayer,sh,which,vlc,youtube-dl,youtube-viewer +private-bin ffmpeg,ffprobe,firefox,gtk-youtube-viewer,gtk2-youtube-viewer,gtk3-youtube-viewer,mpv,python*,sh,smplayer,stty,vlc,which,youtube-dl,youtube-viewer private-cache private-dev private-etc alsa,alternatives,asound.conf,ca-certificates,crypto-policies,fonts,gtk-2.0,gtk-3.0,host.conf,hostname,hosts,machine-id,mime.types,nsswitch.conf,passwd,pki,pulse,resolv.conf,ssl,X11,xdg private-tmp dbus-user none -dbus-system none \ No newline at end of file +dbus-system none -- cgit v1.2.3-70-g09d2