From 54fe4831f48dfb55c860bf900481a8c4d23577e6 Mon Sep 17 00:00:00 2001 From: Tad Date: Mon, 15 Mar 2021 16:33:07 -0400 Subject: Add a profile for pcsxr --- etc/profile-m-z/pcsxr.profile | 57 ++++++++++++++++++++++++++++++++++++++++++ etc/profile-m-z/ppsspp.profile | 10 +++++--- 2 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 etc/profile-m-z/pcsxr.profile (limited to 'etc/profile-m-z') diff --git a/etc/profile-m-z/pcsxr.profile b/etc/profile-m-z/pcsxr.profile new file mode 100644 index 000000000..d247e7c8a --- /dev/null +++ b/etc/profile-m-z/pcsxr.profile @@ -0,0 +1,57 @@ +# Firejail profile for pcsxr +# Description: A PlayStation emulator +# This file is overwritten after every install/update +# Persistent local customizations +include pcsxr.local +# Persistent global definitions +include globals.local + +# Note: you must whitelist your games folder in a pcsxr.local + +noblacklist ${HOME}/.pcsxr + +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-write-mnt.inc +include disable-xdg.inc + +mkdir ${HOME}/.pcsxr +whitelist ${HOME}/.pcsxr +include whitelist-common.inc +include whitelist-runuser-common.inc +include whitelist-usr-share-common.inc +include whitelist-var-common.inc + +apparmor +caps.drop all +ipc-namespace +net none +netfilter +# Uncomment the following line if not loading games from disc +#nodvd +nogroups +nonewprivs +noroot +notv +nou2f +novideo +protocol unix +seccomp +shell none +tracelog + +private-bin pcsxr +private-cache +# uncomment the following line if you do not need controller support +#private-dev +private-etc alsa,alternatives,asound.conf,bumblebee,ca-certificates,crypto-policies,dconf,drirc,fonts,gconf,glvnd,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,nvidia,pango,pki,protocols,pulse,resolv.conf,rpc,services,ssl,X11,xdg +private-opt none +private-tmp + +dbus-user none +dbus-system none diff --git a/etc/profile-m-z/ppsspp.profile b/etc/profile-m-z/ppsspp.profile index af6b0ac2a..263d99c83 100644 --- a/etc/profile-m-z/ppsspp.profile +++ b/etc/profile-m-z/ppsspp.profile @@ -1,11 +1,13 @@ # Firejail profile for ppsspp -# Description: A PSP emulator written in C++ +# Description: A PSP emulator # This file is overwritten after every install/update # Persistent local customizations include ppsspp.local # Persistent global definitions include globals.local +# Note: you must whitelist your games folder in a ppsspp.local + noblacklist ${HOME}/.config/ppsspp include disable-common.inc @@ -17,10 +19,10 @@ include disable-programs.inc include disable-write-mnt.inc include disable-xdg.inc -#mkdir ${HOME}/.config/ppsspp -#whitelist ${HOME}/.config/ppsspp +mkdir ${HOME}/.config/ppsspp +whitelist ${HOME}/.config/ppsspp whitelist /usr/share/ppsspp -#include whitelist-common.inc +include whitelist-common.inc include whitelist-runuser-common.inc include whitelist-usr-share-common.inc include whitelist-var-common.inc -- cgit v1.2.3-54-g00ecf