Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added youtube-viewer profile with Gtk frontends #3542

Merged
merged 1 commit into from
Aug 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions etc/inc/disable-programs.inc
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ blacklist ${HOME}/.config/yandex-browser
blacklist ${HOME}/.config/yandex-browser-beta
blacklist ${HOME}/.config/yelp
blacklist ${HOME}/.config/youtube-dl
blacklist ${HOME}/.config/youtube-viewer
blacklist ${HOME}/.config/zathura
blacklist ${HOME}/.config/zoomus.conf
blacklist ${HOME}/.config/Zulip
Expand Down
2 changes: 2 additions & 0 deletions etc/inc/whitelist-usr-share-common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ whitelist /usr/share/misc
whitelist /usr/share/Modules
whitelist /usr/share/myspell
whitelist /usr/share/p11-kit
whitelist /usr/share/perl
whitelist /usr/share/perl5
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot profiles has whitelist /usr/share/perl5. I'm not sure whether we should move it to wusc or keep it in profiles.

Copy link
Contributor Author

@bbhtt bbhtt Jul 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want me to add it in the youtube-viewer profile or keep it open for discussion? Edit. Around 18-20 counting perl,per5,perl*

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

open for discussion

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we go with this, whitelist /usr/share/perl* should be removed from profiles. @Others opinions?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say, add perl to wusc and remove the whitelist from profiles using it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

disable-interpreters.inc blacklists /usr/share/perl*, should be fine to allow it in wusc.

whitelist /usr/share/pixmaps
whitelist /usr/share/pki
whitelist /usr/share/plasma
Expand Down
18 changes: 18 additions & 0 deletions etc/profile-a-l/gtk-youtube-viewer
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Firejail profile for gtk-youtube-viewer
# Description: Gtk front-end to youtube-viewer
# This file is overwritten after every install/update
# Persistent local customizations
include gtk-youtube-viewer.local
# Persistent global definitions
# include globals.local

ignore quiet

noblacklist /tmp/.X11-unix
noblacklist ${RUNUSER}/wayland-*
noblacklist ${RUNUSER}

include whitelist-runuser-common.inc

# Redirect
include youtube-viewer.profile
18 changes: 18 additions & 0 deletions etc/profile-a-l/gtk2-youtube-viewer
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Firejail profile for gtk2-youtube-viewer
# Description: Gtk front-end to youtube-viewer
# This file is overwritten after every install/update
# Persistent local customizations
include gtk2-youtube-viewer.local
# Persistent global definitions
# include globals.local

ignore quiet

noblacklist /tmp/.X11-unix
noblacklist ${RUNUSER}/wayland-*
noblacklist ${RUNUSER}

include whitelist-runuser-common.inc

# Redirect
include youtube-viewer.profile
18 changes: 18 additions & 0 deletions etc/profile-a-l/gtk3-youtube-viewer
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Firejail profile for gtk3-youtube-viewer
# Description: Gtk front-end to youtube-viewer
# This file is overwritten after every install/update
# Persistent local customizations
include gtk3-youtube-viewer.local
# Persistent global definitions
# include globals.local

ignore quiet

noblacklist /tmp/.X11-unix
noblacklist ${RUNUSER}/wayland-*
noblacklist ${RUNUSER}

include whitelist-runuser-common.inc

# Redirect
include youtube-viewer.profile
57 changes: 57 additions & 0 deletions etc/profile-m-z/youtube-viewer.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Firejail profile for youtube-viewer
# Description: Trizen's CLI Youtube viewer with login support
# This file is overwritten after every install/update
quiet
# Persistent local customizations
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
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/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
nonewprivs
noroot
notv
nou2f
rusty-snake marked this conversation as resolved.
Show resolved Hide resolved
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*,smplayer,sh,which,vlc,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
4 changes: 4 additions & 0 deletions src/firecfg/firecfg.config
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ gradio
gramps
gravity-beams-and-evaporating-stars
gthumb
gtk-youtube-viewer
gtk2-youtube-viewer
gtk3-youtube-viewer
guayadeque
gucharmap
gummi
Expand Down Expand Up @@ -803,6 +806,7 @@ xviewer
yandex-browser
yelp
youtube-dl
youtube-viewer
zaproxy
zart
zathura
Expand Down