forked from alexbelgium/hassio-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apparmor.txt
58 lines (49 loc) · 1.08 KB
/
apparmor.txt
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
#include <tunables/global>
profile addon_updater flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/base>
# Capabilities
file,
signal,
network udp,
network tcp,
network dgram,
network stream,
network inet,
network inet6,
network netlink raw,
network unix dgram,
# S6-Overlay
/init ix,
/run/{s6,s6-rc*,service}/** ix,
/package/** ix,
/command/** ix,
/run/{,**} rwk,
/dev/tty rw,
/init rix,
/bin/** ix,
/usr/bin/** ix,
/etc/s6/** rix,
/run/s6/** rwix,
/etc/services.d/** rwix,
/etc/cont-init.d/** rwix,
/etc/cont-finish.d/** rwix,
/run/** rwk,
/dev/fuse mrwkl,
/dev/sda1 mrwkl,
/dev/sdb1 mrwkl,
/dev/nvme0 mrwkl,
/dev/nvme1 mrwkl,
/dev/mmcblk0p1 mrwkl,
# bashio
/usr/lib/bashio/** ix,
/tmp/** rw,
# Access to Options.json and other files within your addon
/data/** rw,
# Start new profile for service
/usr/bin/myprogram cx,
profile usr/bin/myprogram flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/base>
# Receive signals from S6-Overlay
signal receive,
}
}