diff options
author | Tad <tad@spotco.us> | 2019-02-26 15:34:21 -0500 |
---|---|---|
committer | Tad <tad@spotco.us> | 2019-02-26 15:34:21 -0500 |
commit | b5e42ddf6e4a6b1717609bf19a7e5f70f8f30ca3 (patch) | |
tree | 4f28c4ad5998166851f9bc94c374f0cd7333f3f9 | |
parent | small profile fixups (diff) | |
download | firejail-b5e42ddf6e4a6b1717609bf19a7e5f70f8f30ca3.tar.gz firejail-b5e42ddf6e4a6b1717609bf19a7e5f70f8f30ca3.tar.zst firejail-b5e42ddf6e4a6b1717609bf19a7e5f70f8f30ca3.zip |
Add a profile for nethack
don't know how to play the game so it isn't fully tested
therefore not enabled by firecfg
but it has been sitting around uncommited for over a year now
-rw-r--r-- | etc/disable-programs.inc | 2 | ||||
-rw-r--r-- | etc/nano.profile | 2 | ||||
-rw-r--r-- | etc/nethack.profile | 47 |
3 files changed, 50 insertions, 1 deletions
diff --git a/etc/disable-programs.inc b/etc/disable-programs.inc index fd27dd7a1..077c2d070 100644 --- a/etc/disable-programs.inc +++ b/etc/disable-programs.inc | |||
@@ -653,3 +653,5 @@ blacklist ${HOME}/.cache/xmms2 | |||
653 | blacklist ${HOME}/.cache/xreader | 653 | blacklist ${HOME}/.cache/xreader |
654 | blacklist ${HOME}/.cache/yandex-browser | 654 | blacklist ${HOME}/.cache/yandex-browser |
655 | blacklist ${HOME}/.cache/yandex-browser-beta | 655 | blacklist ${HOME}/.cache/yandex-browser-beta |
656 | |||
657 | blacklist /var/games/nethack | ||
diff --git a/etc/nano.profile b/etc/nano.profile index d4855a315..ed172b37c 100644 --- a/etc/nano.profile +++ b/etc/nano.profile | |||
@@ -1,5 +1,5 @@ | |||
1 | # Firejail profile for nano | 1 | # Firejail profile for nano |
2 | # Description: nano is a easy text editor for the terminal | 2 | # Description: nano is an easy text editor for the terminal |
3 | # This file is overwritten after every install/update | 3 | # This file is overwritten after every install/update |
4 | # Persistent local customizations | 4 | # Persistent local customizations |
5 | include nano.local | 5 | include nano.local |
diff --git a/etc/nethack.profile b/etc/nethack.profile new file mode 100644 index 000000000..8f63a133a --- /dev/null +++ b/etc/nethack.profile | |||
@@ -0,0 +1,47 @@ | |||
1 | # Firejail profile for nethack | ||
2 | # Description: A rogue-like single player dungeon exploration game | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include nethack.local | ||
6 | # Persistent global definitions | ||
7 | include globals.local | ||
8 | |||
9 | |||
10 | noblacklist /var/games/nethack | ||
11 | |||
12 | include disable-common.inc | ||
13 | include disable-devel.inc | ||
14 | include disable-interpreters.inc | ||
15 | include disable-passwdmgr.inc | ||
16 | include disable-programs.inc | ||
17 | |||
18 | whitelist /var/games/nethack | ||
19 | include whitelist-common.inc | ||
20 | include whitelist-var-common.inc | ||
21 | |||
22 | caps.drop all | ||
23 | ipc-namespace | ||
24 | net none | ||
25 | no3d | ||
26 | nodbus | ||
27 | nodvd | ||
28 | nogroups | ||
29 | #nonewprivs | ||
30 | #noroot | ||
31 | nosound | ||
32 | notv | ||
33 | novideo | ||
34 | #protocol unix,netlink | ||
35 | #seccomp | ||
36 | shell none | ||
37 | |||
38 | disable-mnt | ||
39 | #private | ||
40 | private-cache | ||
41 | private-dev | ||
42 | private-tmp | ||
43 | writable-var | ||
44 | |||
45 | #memory-deny-write-execute | ||
46 | noexec ${HOME} | ||
47 | noexec /tmp | ||