summarylogtreecommitdiffstats
path: root/dreamfinity.profile
blob: ef4e91fcda5525fc7c795fa00440e5e2ef6501fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Firejail profile for Dreamfinity
# Description: Dreamfinity is a minecraft servers project.
# This file is overwritten after every install/update
# Persistent local customizations
include dreamfinity.local
# Persistent global definitions
include globals.local

# Idk what does it execute in these directories
ignore noexec ${HOME}
ignore noexec /tmp

noblacklist ${HOME}/.minecraftlauncher/Dreamfinity
# TODO these don't work
# ignore blacklist ${PATH}/sh
# noblacklist ${PATH}/sh


include allow-java.inc

# Disable HWID collection
blacklist /sys

include disable-common.inc
include disable-devel.inc
include disable-exec.inc
include disable-interpreters.inc
include disable-proc.inc
include disable-programs.inc
# TODO either fix noblacklist or compile dreamfinity to binary (so that it doesn't need shell at all)
# include disable-shell.inc
include disable-xdg.inc

mkdir ${HOME}/.minecraftlauncher/Dreamfinity
whitelist ${HOME}/.minecraftlauncher/Dreamfinity
include whitelist-common.inc

apparmor
caps.drop all
machine-id
nodvd
protocol unix,inet,inet6

disable-mnt
private-dev
private-opt Dreamfinity
private-tmp

# If you came here with an idea to ignore these to allow launcher to place game files in another directory, STOP
# Add this to your dreamfinity.local: 
# noblacklist /path/to/game/files
# read-write /path/to/game/files
# whitelist /path/to/game/files
#
# Also consider using symlinks as launcher won't move settings.bin (because it stores selected directory there)
read-only ${HOME}
read-write ${HOME}/.minecraftlauncher/Dreamfinity