Skip to content

Commit

Permalink
New profiles for alacarte,tootle,photoflare (#3816)
Browse files Browse the repository at this point in the history
* New profiles for alacarte,tootle,photoflare

* Fix dbus

Co-authored-by: kortewegdevries <kortewegdevries@protonmail.ch>
  • Loading branch information
bbhtt and kortewegdevries authored Dec 16, 2020
1 parent 7103d92 commit f3056a8
Show file tree
Hide file tree
Showing 5 changed files with 173 additions and 0 deletions.
1 change: 1 addition & 0 deletions etc/inc/disable-programs.inc
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ blacklist ${HOME}/.config/chromium-flags.conf
blacklist ${HOME}/.config/clipit
blacklist ${HOME}/.config/cliqz
blacklist ${HOME}/.config/cmus
blacklist ${HOME}/.config/com.github.bleakgrey.tootle
blacklist ${HOME}/.config/corebird
blacklist ${HOME}/.config/cower
blacklist ${HOME}/.config/darktable
Expand Down
64 changes: 64 additions & 0 deletions etc/profile-a-l/alacarte.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Firejail profile for alacarte
# Description: Create desktop and menu launchers easily
# This file is overwritten after every install/update
# Persistent local customizations
include alacarte.local
# Persistent global definitions
include globals.local

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-programs.inc
include disable-passwdmgr.inc
include disable-xdg.inc

# Whitelist your system icon directory,varies by distro
whitelist /usr/share/alacarte
whitelist /usr/share/app-info
whitelist /usr/share/desktop-directories
whitelist /usr/share/icons
whitelist /var/lib/app-info/icons
whitelist /var/lib/flatpak/exports/share/applications
whitelist /var/lib/flatpak/exports/share/icons
include whitelist-runuser-common.inc
include whitelist-usr-share-common.inc
include whitelist-var-common.inc

apparmor
caps.drop all
machine-id
net none
nodvd
no3d
nogroups
nonewprivs
noroot
nosound
notv
nou2f
novideo
protocol unix
seccomp
seccomp.block-secondary
shell none
tracelog

disable-mnt
private-bin alacarte,bash,python*,sh
private-cache
private-dev
private-etc alternatives,dconf,fonts,gtk-3.0,locale.alias,locale.conf,login.defs,mime.types,nsswitch.conf,passwd,pki,X11,xdg
private-tmp

dbus-user none
dbus-system none

read-write ${HOME}/.config/menus
read-write ${HOME}/.gnome/apps
read-write ${HOME}/.local/share/applications
read-write ${HOME}/.local/share/flatpak/exports
55 changes: 55 additions & 0 deletions etc/profile-a-l/com.github.bleakgrey.tootle.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Firejail profile for com.github.bleakgrey.tootle
# Description: Gtk Mastodon client
# This file is overwritten after every install/update
# Persistent local customizations
include com.github.bleakgrey.tootle.local
# Persistent global definitions
include globals.local

noblacklist ${HOME}/.config/com.github.bleakgrey.tootle

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-shell.inc
include disable-xdg.inc

mkdir ${HOME}/.config/com.github.bleakgrey.tootle
whitelist ${DOWNLOADS}
whitelist ${HOME}/.config/com.github.bleakgrey.tootle
include whitelist-common.inc
include whitelist-runuser-common.inc
include whitelist-usr-share-common.inc
include whitelist-var-common.inc

apparmor
caps.drop all
machine-id
netfilter
nodvd
nogroups
nonewprivs
noroot
notv
nou2f
novideo
protocol unix,inet,inet6
seccomp
shell none
tracelog

disable-mnt
private-bin com.github.bleakgrey.tootle
private-cache
private-dev
private-etc alsa,alternatives,asound.conf,ca-certificates,crypto-policies,dconf,fonts,gtk-2.0,gtk-3.0,host.conf,hostname,hosts,machine-id mime.types,nsswitch.conf,pki,pulse,resolv.conf,ssl,X11,xdg
private-tmp

# Settings are immutable
# dbus-user filter
# dbus-user.own com.github.bleakgrey.tootle
# dbus-user.talk ca.desrt.dconf
dbus-system none
50 changes: 50 additions & 0 deletions etc/profile-m-z/photoflare.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Firejail profile for photoflare
# Description: Simple painting and editing program
# This file is overwritten after every install/update
# Persistent local customizations
include photoflare.local
# Persistent global definitions
include photoflare.local

noblacklist ${PICTURES}

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-shell.inc
include disable-xdg.inc

include whitelist-runuser-common.inc
include whitelist-usr-share-common.inc
include whitelist-var-common.inc

apparmor
caps.drop all
machine-id
net none
nodvd
no3d
nogroups
nonewprivs
noroot
nosound
notv
nou2f
novideo
protocol unix
seccomp
shell none
tracelog

disable-mnt
private-bin photoflare
private-cache
private-dev
private-etc alternatives,fonts,locale,locale.alias,locale.conf,mime.types,X11
private-tmp

dbus-user none
dbus-system none
3 changes: 3 additions & 0 deletions src/firecfg/firecfg.config
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ abiword
abrowser
akonadi_control
akregator
alacarte
amarok
amule
amuled
Expand Down Expand Up @@ -140,6 +141,7 @@ cmus
code
code-oss
cola
com.github.bleakgrey.tootle
com.github.dahenson.agenda
com.github.johnfactotum.Foliate
com.gitlab.newsflash
Expand Down Expand Up @@ -582,6 +584,7 @@ pdfsam
pdftotext
peek
penguin-command
photoflare
picard
pidgin
#ping - disabled until we fix #1912
Expand Down

0 comments on commit f3056a8

Please sign in to comment.