Skip to content

Commit

Permalink
Add a profile for openmw
Browse files Browse the repository at this point in the history
  • Loading branch information
SkewedZeppelin committed Mar 15, 2021
1 parent ce6925c commit e5aab2a
Show file tree
Hide file tree
Showing 3 changed files with 69 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 @@ -347,6 +347,7 @@ blacklist ${HOME}/.config/okularrc
blacklist ${HOME}/.config/onboard
blacklist ${HOME}/.config/onionshare
blacklist ${HOME}/.config/onlyoffice
blacklist ${HOME}/.config/openmw
blacklist ${HOME}/.config/opera
blacklist ${HOME}/.config/opera-beta
blacklist ${HOME}/.config/orage
Expand Down Expand Up @@ -713,6 +714,7 @@ blacklist ${HOME}/.local/share/notes
blacklist ${HOME}/.local/share/ocenaudio
blacklist ${HOME}/.local/share/okular
blacklist ${HOME}/.local/share/onlyoffice
blacklist ${HOME}/.local/share/openmw
blacklist ${HOME}/.local/share/orage
blacklist ${HOME}/.local/share/org.kde.gwenview
blacklist ${HOME}/.local/share/Paradox Interactive
Expand Down
7 changes: 7 additions & 0 deletions etc/profile-m-z/openmw-launcher.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Firejail profile for openmw-launcher
# This file is overwritten after every install/update
# Persistent local customizations
include openmw-launcher.local

# Redirect
include openmw.profile
60 changes: 60 additions & 0 deletions etc/profile-m-z/openmw.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Firejail profile for openmw
# Description: Open source engine re-implementation for Morrowind
# This file is overwritten after every install/update
# Persistent local customizations
include openmw.local
# Persistent global definitions
include globals.local

noblacklist ${HOME}/.config/openmw
noblacklist ${HOME}/.local/share/openmw

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}/.config/openmw
mkdir ${HOME}/.local/share/openmw
whitelist ${HOME}/Downloads/Morrowind
whitelist ${HOME}/.config/openmw
whitelist ${HOME}/.local/share/openmw
whitelist /usr/share/openmw
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 installing from disc
nodvd
nogroups
nonewprivs
noroot
notv
nou2f
novideo
protocol unix,netlink
seccomp
seccomp.block-secondary
shell none
tracelog

private-bin bsatool,esmtool,niftest,openmw*
private-cache
private-dev
private-etc alsa,alternatives,asound.conf,bumblebee,drirc,fonts,glvnd,ld.so.cache,ld.so.conf,ld.so.conf.d,ld.so.preload,locale,locale.alias,locale.conf,localtime,machine-id,mime.types,nvidia,openmw,pango,pulse,Trolltech.conf,X11,xdg
private-opt none
private-tmp

dbus-user none
dbus-system none

0 comments on commit e5aab2a

Please sign in to comment.