From 7f43d7015b5e1516be7298f13d6e2ec73f99aec7 Mon Sep 17 00:00:00 2001 From: rusty-snake Date: Sun, 17 Feb 2019 11:07:17 +0100 Subject: Add profiles for mypaint & mypaint-ora-thumbnailer --- etc/disable-programs.inc | 3 +++ etc/mypaint-ora-thumbnailer.profile | 5 ++++ etc/mypaint.profile | 51 +++++++++++++++++++++++++++++++++++++ src/firecfg/firecfg.config | 2 ++ 4 files changed, 61 insertions(+) create mode 100644 etc/mypaint-ora-thumbnailer.profile create mode 100644 etc/mypaint.profile diff --git a/etc/disable-programs.inc b/etc/disable-programs.inc index 32c3ddb07..39aab61c1 100644 --- a/etc/disable-programs.inc +++ b/etc/disable-programs.inc @@ -201,6 +201,7 @@ blacklist ${HOME}/.config/mono blacklist ${HOME}/.config/mpd blacklist ${HOME}/.config/mpv blacklist ${HOME}/.config/mupen64plus +blacklist ${HOME}/.config/mypaint blacklist ${HOME}/.config/nautilus blacklist ${HOME}/.config/nemo blacklist ${HOME}/.config/netsurf @@ -450,6 +451,7 @@ blacklist ${HOME}/.local/share/midori blacklist ${HOME}/.local/share/multimc blacklist ${HOME}/.local/share/multimc5 blacklist ${HOME}/.local/share/mupen64plus +blacklist ${HOME}/.local/share/mypaint blacklist ${HOME}/.local/share/nautilus blacklist ${HOME}/.local/share/nautilus-python blacklist ${HOME}/.local/share/nemo @@ -612,6 +614,7 @@ blacklist ${HOME}/.cache/moonchild productions/basilisk blacklist ${HOME}/.cache/moonchild productions/pale moon blacklist ${HOME}/.cache/mozilla blacklist ${HOME}/.cache/mutt +blacklist ${HOME}/.cache/mypaint blacklist ${HOME}/.cache/nheko/nheko blacklist ${HOME}/.cache/netsurf blacklist ${HOME}/.cache/okular diff --git a/etc/mypaint-ora-thumbnailer.profile b/etc/mypaint-ora-thumbnailer.profile new file mode 100644 index 000000000..59b3024ed --- /dev/null +++ b/etc/mypaint-ora-thumbnailer.profile @@ -0,0 +1,5 @@ +# Firejail profile alias for mypaint-ora-thumbnailer +# This file is overwritten after every install/update + +# Redirect +include mypaint.profile diff --git a/etc/mypaint.profile b/etc/mypaint.profile new file mode 100644 index 000000000..1af6f3026 --- /dev/null +++ b/etc/mypaint.profile @@ -0,0 +1,51 @@ +# Firejail profile for mypaint +# Description: A fast and easy graphics application for digital painters +# This file is overwritten after every install/update +# Persistent local customizations +include mypaint.local +# Persistent global definitions +include globals.local + +noblacklist ${HOME}/.cache/mypaint +noblacklist ${HOME}/.config/mypaint +noblacklist ${HOME}/.local/share/mypaint +noblacklist ${PATH}/python2* +noblacklist /usr/lib/python2* +noblacklist ${PICTURES} + +include disable-common.inc +include disable-devel.inc +include disable-interpreters.inc +include disable-passwdmgr.inc +include disable-programs.inc +include disable-xdg.inc + +apparmor +caps.drop all +machine-id +net none +no3d +nodbus +nodvd +nogroups +nonewprivs +noroot +nosound +notv +nou2f +novideo +protocol unix +seccomp +shell none +tracelog + +disable-mnt +private-cache +private-dev +private-etc fonts,gtk-3.0,dconf +private-tmp + +noexec ${HOME} +noexec /tmp + +# vim:set syntax=sh: diff --git a/src/firecfg/firecfg.config b/src/firecfg/firecfg.config index 041ff1256..47b20006d 100644 --- a/src/firecfg/firecfg.config +++ b/src/firecfg/firecfg.config @@ -312,6 +312,8 @@ mupen64plus musescore musixmatch mutt +mypaint +mypaint-ora-thumbnailer natron #nautilus - removed in order to let the application start in a new sandbox when clicking on icons in the file manager ncdu -- cgit v1.2.3-54-g00ecf From ace75d7788a37ae2232380888e2c47f1a24c3623 Mon Sep 17 00:00:00 2001 From: rusty-snake Date: Sun, 17 Feb 2019 11:35:41 +0100 Subject: Review mypaint.profile --- etc/mypaint.profile | 3 --- 1 file changed, 3 deletions(-) diff --git a/etc/mypaint.profile b/etc/mypaint.profile index 1af6f3026..acec61816 100644 --- a/etc/mypaint.profile +++ b/etc/mypaint.profile @@ -39,7 +39,6 @@ seccomp shell none tracelog -disable-mnt private-cache private-dev private-etc fonts,gtk-3.0,dconf @@ -47,5 +46,3 @@ private-tmp noexec ${HOME} noexec /tmp - -# vim:set syntax=sh: -- cgit v1.2.3-54-g00ecf