Skip to content

Commit

Permalink
reorganizing youtube-viewers (#4128)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
pirate486743186 committed May 28, 2021
1 parent 77ebd24 commit 0fd1534
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 93 deletions.
12 changes: 12 additions & 0 deletions etc/profile-a-l/gtk-pipe-viewer.profile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 0 additions & 2 deletions etc/profile-a-l/gtk-straw-viewer.profile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ include gtk-straw-viewer.local

ignore quiet

include whitelist-runuser-common.inc

# Redirect
include straw-viewer.profile
2 changes: 0 additions & 2 deletions etc/profile-a-l/gtk-youtube-viewer.profile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ include gtk-youtube-viewer.local

ignore quiet

include whitelist-runuser-common.inc

# Redirect
include youtube-viewer.profile
21 changes: 21 additions & 0 deletions etc/profile-m-z/pipe-viewer.profile
Original file line number Diff line number Diff line change
@@ -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
51 changes: 4 additions & 47 deletions etc/profile-m-z/straw-viewer.profile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
45 changes: 3 additions & 42 deletions etc/profile-m-z/youtube-viewer.profile
Original file line number Diff line number Diff line change
Expand Up @@ -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
61 changes: 61 additions & 0 deletions etc/profile-m-z/youtube-viewers-common.profile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions src/firecfg/firecfg.config
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ gradio
gramps
gravity-beams-and-evaporating-stars
gthumb
gtk-pipe-viewer
gtk-straw-viewer
gtk-youtube-viewer
gtk2-youtube-viewer
Expand Down Expand Up @@ -627,6 +628,7 @@ pinball
pingus
pinta
pioneer
pipe-viewer
pithos
pitivi
pix
Expand Down

0 comments on commit 0fd1534

Please sign in to comment.