From 0fd1534952bf9f98d69d5aeee2c0c58d4d59746f Mon Sep 17 00:00:00 2001 From: pirate486743186 Date: Fri, 28 May 2021 13:52:19 +0200 Subject: reorganizing youtube-viewers (#4128) * Create youtube-viewers-common.profile * reorganising youtube viewers * rm globals * reorganise youtube viewers * adding pipe-viewer * adding gtk-pipe-viewer * xterm and youtube-dl cache * sort * Update youtube-viewers-common.profile * quiet * quiet * quiet * Update firecfg.config * rm vlc * rm invalid binary * noinput * rm whitelist-runuser-common.inc * rm whitelist-runuser-common.inc * rm whitelist-runuser-common.inc * whitelist-runuser-common.inc --- etc/profile-a-l/gtk-pipe-viewer.profile | 12 +++++ etc/profile-a-l/gtk-straw-viewer.profile | 2 - etc/profile-a-l/gtk-youtube-viewer.profile | 2 - etc/profile-m-z/pipe-viewer.profile | 21 +++++++++ etc/profile-m-z/straw-viewer.profile | 51 ++------------------- etc/profile-m-z/youtube-viewer.profile | 45 ++----------------- etc/profile-m-z/youtube-viewers-common.profile | 61 ++++++++++++++++++++++++++ 7 files changed, 101 insertions(+), 93 deletions(-) create mode 100644 etc/profile-a-l/gtk-pipe-viewer.profile create mode 100644 etc/profile-m-z/pipe-viewer.profile create mode 100644 etc/profile-m-z/youtube-viewers-common.profile (limited to 'etc') diff --git a/etc/profile-a-l/gtk-pipe-viewer.profile b/etc/profile-a-l/gtk-pipe-viewer.profile new file mode 100644 index 000000000..9c212ff6e --- /dev/null +++ b/etc/profile-a-l/gtk-pipe-viewer.profile @@ -0,0 +1,12 @@ +# Firejail profile for gtk-pipe-viewer +# Description: Gtk front-end to pipe-viewer +# This file is overwritten after every install/update +# Persistent local customizations +include gtk-pipe-viewer.local +# added by included profile +#include globals.local + +ignore quiet + +# Redirect +include pipe-viewer.profile diff --git a/etc/profile-a-l/gtk-straw-viewer.profile b/etc/profile-a-l/gtk-straw-viewer.profile index e2721360b..978b3d896 100644 --- a/etc/profile-a-l/gtk-straw-viewer.profile +++ b/etc/profile-a-l/gtk-straw-viewer.profile @@ -8,7 +8,5 @@ include gtk-straw-viewer.local ignore quiet -include whitelist-runuser-common.inc - # Redirect include straw-viewer.profile diff --git a/etc/profile-a-l/gtk-youtube-viewer.profile b/etc/profile-a-l/gtk-youtube-viewer.profile index 848979b52..c814f0fef 100644 --- a/etc/profile-a-l/gtk-youtube-viewer.profile +++ b/etc/profile-a-l/gtk-youtube-viewer.profile @@ -8,7 +8,5 @@ include gtk-youtube-viewer.local ignore quiet -include whitelist-runuser-common.inc - # Redirect include youtube-viewer.profile diff --git a/etc/profile-m-z/pipe-viewer.profile b/etc/profile-m-z/pipe-viewer.profile new file mode 100644 index 000000000..3de064311 --- /dev/null +++ b/etc/profile-m-z/pipe-viewer.profile @@ -0,0 +1,21 @@ +# Firejail profile for pipe-viewer +# Description: Fork of youtube-viewer, scrapes youtube directly and with invidious +# This file is overwritten after every install/update +quiet +# Persistent local customizations +include pipe-viewer.local +# Persistent global definitions +include globals.local + +noblacklist ${HOME}/.cache/pipe-viewer +noblacklist ${HOME}/.config/pipe-viewer + +mkdir ${HOME}/.config/pipe-viewer +mkdir ${HOME}/.cache/pipe-viewer +whitelist ${HOME}/.cache/pipe-viewer +whitelist ${HOME}/.config/pipe-viewer + +private-bin gtk-pipe-viewer,pipe-viewer + +# Redirect +include youtube-viewers-common.profile diff --git a/etc/profile-m-z/straw-viewer.profile b/etc/profile-m-z/straw-viewer.profile index f8108c9d6..d73927f2a 100644 --- a/etc/profile-m-z/straw-viewer.profile +++ b/etc/profile-m-z/straw-viewer.profile @@ -1,7 +1,7 @@ # Firejail profile for straw-viewer # Description: Fork of youtube-viewer acts like an invidious frontend -quiet # This file is overwritten after every install/update +quiet # Persistent local customizations include straw-viewer.local # Persistent global definitions @@ -10,55 +10,12 @@ include globals.local noblacklist ${HOME}/.cache/straw-viewer noblacklist ${HOME}/.config/straw-viewer -# Allow lua (blacklisted by disable-interpreters.inc) -include allow-lua.inc - -# Allow perl (blacklisted by disable-interpreters.inc) -include allow-perl.inc - -# 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/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 -noinput -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 +private-bin gtk-straw-viewer,straw-viewer -dbus-user none -dbus-system none +# Redirect +include youtube-viewers-common.profile \ No newline at end of file diff --git a/etc/profile-m-z/youtube-viewer.profile b/etc/profile-m-z/youtube-viewer.profile index 7d6e9b0eb..b54dd37ad 100644 --- a/etc/profile-m-z/youtube-viewer.profile +++ b/etc/profile-m-z/youtube-viewer.profile @@ -10,51 +10,12 @@ include globals.local noblacklist ${HOME}/.cache/youtube-viewer noblacklist ${HOME}/.config/youtube-viewer -# Allow perl (blacklisted by disable-interpreters.inc) -include allow-perl.inc - -# 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}/.cache/youtube-viewer mkdir ${HOME}/.config/youtube-viewer whitelist ${HOME}/.cache/youtube-viewer whitelist ${HOME}/.config/youtube-viewer -include whitelist-common.inc -include whitelist-usr-share-common.inc -include whitelist-var-common.inc - -apparmor -caps.drop all -netfilter -nodvd -nogroups -noinput -nonewprivs -noroot -notv -nou2f -novideo -protocol unix,inet,inet6 -seccomp -shell none -tracelog -disable-mnt -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 +private-bin gtk-youtube-viewer,gtk2-youtube-viewer,gtk3-youtube-viewer,youtube-viewer -dbus-user none -dbus-system none +# Redirect +include youtube-viewers-common.profile \ No newline at end of file diff --git a/etc/profile-m-z/youtube-viewers-common.profile b/etc/profile-m-z/youtube-viewers-common.profile new file mode 100644 index 000000000..25a073d4a --- /dev/null +++ b/etc/profile-m-z/youtube-viewers-common.profile @@ -0,0 +1,61 @@ +# Firejail profile for youtube-viewer clones +# Description: common profile for Trizen's Youtube viewers +# This file is overwritten after every install/update +# Persistent local customizations +include youtube-viewers-common.local +# Persistent global definitions +# added by caller profile +#include globals.local + +noblacklist ${HOME}/.cache/youtube-dl + +# Allow lua (blacklisted by disable-interpreters.inc) +include allow-lua.inc + +# Allow perl (blacklisted by disable-interpreters.inc) +include allow-perl.inc + +# 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 + +whitelist ${DOWNLOADS} +whitelist ${HOME}/.cache/youtube-dl/youtube-sigfuncs +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 +noinput +nonewprivs +noroot +notv +nou2f +novideo +protocol unix,inet,inet6 +seccomp +shell none +tracelog + +disable-mnt +private-bin bash,ffmpeg,ffprobe,firefox,mpv,perl,python*,sh,smplayer,stty,wget,which,xterm,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 -- cgit v1.2.3-54-g00ecf