Skip to content

Commit

Permalink
add sthortwave (#1139) and remove gjs from firecf…
Browse files Browse the repository at this point in the history
…g.config (#3333).
  • Loading branch information
rusty-snake committed Apr 13, 2020
1 parent 58f44a4 commit 2cbdc43
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 2 deletions.
2 changes: 2 additions & 0 deletions etc/disable-programs.inc
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ blacklist ${HOME}/.local/share/QGIS
blacklist ${HOME}/.local/share/QMediathekView
blacklist ${HOME}/.local/share/QuiteRss
blacklist ${HOME}/.local/share/Ricochet
blacklist ${HOME}/.local/share/Shortwave
blacklist ${HOME}/.local/share/Steam
blacklist ${HOME}/.local/share/SuperHexagon
blacklist ${HOME}/.local/share/TelegramDesktop
Expand Down Expand Up @@ -758,6 +759,7 @@ blacklist ${HOME}/.cache/Franz
blacklist ${HOME}/.cache/INRIA
blacklist ${HOME}/.cache/MusicBrainz
blacklist ${HOME}/.cache/QuiteRss
blacklist ${HOME}/.cache/Shortwave
blacklist ${HOME}/.cache/Tox
blacklist ${HOME}/.cache/Zeal
blacklist ${HOME}/.cache/agenda
Expand Down
50 changes: 50 additions & 0 deletions etc/shortwave.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Firejail profile for shortwave
# Description: Listen to internet radio
# This file is overwritten after every install/update
# Persistent local customizations
include shortwave.local
# Persistent global definitions
include globals.local

noblacklist ${HOME}/.cache/Shortwave
noblacklist ${HOME}/.local/share/Shortwave

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/Shortwave
mkdir ${HOME}/.local/share/Shortwave
whitelist ${HOME}/.cache/Shortwave
whitelist ${HOME}/.local/share/Shortwave
whitelist /usr/share/shortwave
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
nonewprivs
noroot
notv
nou2f
novideo
protocol unix,inet,inet6
seccomp
shell none
tracelog

disable-mnt
private-bin shortwave
private-cache
private-dev
private-etc alsa,alternatives,asound.conf,ca-certificates,crypto-policies,dconf,fonts,gconf,group,gtk-2.0,gtk-3.0,host.conf,hostname,hosts,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,machine-id,mime.types,nsswitch.conf,pango,passwd,pki,pulse,resolv.conf,ssl,X11,xdg
private-tmp
2 changes: 1 addition & 1 deletion etc/templates/profile.template
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ include globals.local
##mkfile PATH
#whitelist PATH
#include whitelist-common.inc
#GTK3 only: include whitelist-runuser-common.inc
#include whitelist-runuser-common.inc
#include whitelist-usr-share-common.inc
#include whitelist-var-common.inc

Expand Down
3 changes: 2 additions & 1 deletion src/firecfg/firecfg.config
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ gist-paste
gitg
github-desktop
gitter
gjs
# gjs -- https://github.com/netblue30/firejail/issues/3333#issuecomment-612601102
globaltime
gmpc
gnome-2048
Expand Down Expand Up @@ -601,6 +601,7 @@ seamonkey
seamonkey-bin
secret-tool
shellcheck
shortwave
shotcut
signal-cli
signal-desktop
Expand Down

0 comments on commit 2cbdc43

Please sign in to comment.