-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
apparmor_stable.txt
92 lines (72 loc) · 1.76 KB
/
apparmor_stable.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#include <tunables/global>
profile hassio-supervisor flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/base>
#include <abstractions/python>
network unix stream,
network inet stream,
network inet6 stream,
network inet dgram,
network inet6 dgram,
network netlink raw,
signal (send) set=(kill,term,int,hup,cont),
capability net_admin,
capability net_bind_service,
capability dac_read_search,
capability dac_override,
capability chown,
/bin/** ix,
/usr/bin/** ix,
/bin/udevadm Ux,
/sbin/udevd Ux,
/usr/local/bin/python* ix,
/usr/bin/git cx,
/usr/bin/gdbus cx,
/usr/lib/bashio/** ix,
/etc/s6/** ix,
/run/{s6,s6-rc*,service}/** ix,
/package/** ix,
/command/** ix,
/etc/services.d/** rwix,
/etc/cont-init.d/** rwix,
/etc/cont-finish.d/** rwix,
deny /proc/** wl,
deny /sys/** wl,
/ r,
/** r,
/tmp/** rwk,
/data/** rw,
/run/{,**} rwk,
/dev/tty rw,
/root/.cas/{,**} rwk,
/etc/resolv.conf rw,
/run/docker.sock rw,
/usr/local/lib/** mr,
profile /usr/bin/gdbus flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/base>
#include <abstractions/dbus>
signal (receive) set=(int),
unix (send, receive) type=stream,
capability sys_nice,
/** r,
/lib/* mr,
/usr/bin/gdbus mr,
/usr/local/lib/** mr,
/run/dbus/system_bus_socket rw,
}
profile /usr/bin/git flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/base>
network,
deny network raw,
signal (receive) set=(term),
/bin/busybox ix,
/usr/bin/git mrix,
/usr/libexec/git-core/* ix,
deny /data/homeassistant rw,
deny /data/ssl rw,
/** r,
/lib/* mr,
/data/addons/** lrw,
/usr/local/lib/** mr,
capability dac_override,
}
}