Skip to content

Commit

Permalink
Add rpcs3 profile
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlshaw committed Jan 6, 2022
1 parent 341f587 commit d417615
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etc/inc/disable-programs.inc
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ blacklist ${HOME}/.cache/qupzilla
blacklist ${HOME}/.cache/qutebrowser
blacklist ${HOME}/.cache/rednotebook
blacklist ${HOME}/.cache/rhythmbox
blacklist ${HOME}/.cache/rpcs3
blacklist ${HOME}/.cache/shotwell
blacklist ${HOME}/.cache/simple-scan
blacklist ${HOME}/.cache/slimjet
Expand Down Expand Up @@ -573,6 +574,7 @@ blacklist ${HOME}/.config/redshift
blacklist ${HOME}/.config/redshift.conf
blacklist ${HOME}/.config/remmina
blacklist ${HOME}/.config/ristretto
blacklist ${HOME}/.config/rpcs3
blacklist ${HOME}/.config/rtv
blacklist ${HOME}/.config/scribus
blacklist ${HOME}/.config/scribusrc
Expand Down
62 changes: 62 additions & 0 deletions etc/profile-m-z/rpcs3.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Firejail profile for RPCS3 emulator
# Description: RPCS3 emulator
# This file is overwritten after every install/update
# Persistent local customizations
include rpcs3.local
# Persistent global definitions
include globals.local

noblacklist ${HOME}/.config/rpcs3
noblacklist ${HOME}/.cache/rpcs3
# Don't block access to /sbin and /usr/sbin to allow using ldconfig. Otherwise
# won't even start.
noblacklist /sbin
noblacklist /usr/sbin

blacklist /usr/libexec

include disable-common.inc
include disable-devel.inc
include disable-exec.inc
include disable-interpreters.inc
include disable-programs.inc # disable if PPU compilation crashes
include disable-shell.inc
include disable-xdg.inc

mkdir ${HOME}/.cache/rpcs3
mkdir ${HOME}/.config/rpcs3
whitelist ${HOME}/.cache/rpcs3
whitelist ${HOME}/.config/rpcs3
whitelist ${DOWNLOADS}
include whitelist-common.inc
include whitelist-run-common.inc
include whitelist-runuser-common.inc
include whitelist-usr-share-common.inc
include whitelist-var-common.inc

apparmor
caps.drop all
net none
netfilter
nodvd
nogroups
#noinput
nonewprivs
noroot
noprinters
notv
nou2f
novideo
protocol unix,netlink
seccomp
seccomp.block-secondary
shell none
tracelog

disable-mnt
#private-cache
#private-etc ca-certificates,crypto-policies,machine-id,pki,resolv.conf,ssl # seems to need awk
private-tmp

dbus-user none
dbus-system none
1 change: 1 addition & 0 deletions src/firecfg/firecfg.config
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,7 @@ riot-web
ripperx
ristretto
rocketchat
rpcs3
rtorrent
runenpass.sh
sayonara
Expand Down

0 comments on commit d417615

Please sign in to comment.