From ad82a1113a715e15a02ffd8ecdc1faffc94e28f6 Mon Sep 17 00:00:00 2001 From: glitsj16 Date: Tue, 19 Feb 2019 05:59:37 +0000 Subject: Create mpDris2.profile --- etc/mpDris2.profile | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 etc/mpDris2.profile (limited to 'etc/mpDris2.profile') diff --git a/etc/mpDris2.profile b/etc/mpDris2.profile new file mode 100644 index 000000000..7d551a96f --- /dev/null +++ b/etc/mpDris2.profile @@ -0,0 +1,53 @@ +# Firejail profile for mpDris2 +# Description: MPRIS2 support for MPD +# This file is overwritten after every install/update +# Persistent local customizations +include mpDris2.local +# Persistent global definitions +include globals.local + +noblacklist ${HOME}/.config/mpDris2 + +# Allow python (blacklisted by disable-interpreters.inc) +noblacklist ${PATH}/python2* +noblacklist ${PATH}/python3* +noblacklist /usr/lib/python2* +noblacklist /usr/lib/python3* + +include disable-common.inc +include disable-devel.inc +include disable-interpreters.inc +include disable-passwdmgr.inc +include disable-programs.inc +include disable-xdg.inc + +caps.drop all +# machine-id breaks audio; it should work fine in setups where sound is not required +machine-id +netfilter +no3d +nodvd +nogroups +nonewprivs +noroot +nosound +notv +nou2f +novideo +protocol unix,inet,inet6 +seccomp +shell none + +private-bin mpDris2,notify-send,python* +private-cache +private-dev +private-etc alternatives,hosts,nsswitch.conf +private-lib libgirepository-1.0.so.*,libnotify.so.*,libpython*,python2*,python3* +private-tmp + +# memory-deny-write-execute - Breaks on Arch +noexec ${HOME} +noexec /tmp + +# mpDris2 will never write anything +read-only ${HOME} -- cgit v1.2.3-54-g00ecf