forked from home-assistant/addons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apparmor.txt
51 lines (40 loc) · 985 Bytes
/
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
#include <tunables/global>
profile dnsmasq flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/base>
file,
signal,
# S6-Overlay & Bashio
/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,
# Bashio
/usr/lib/bashio/** ix,
/tmp/** rw,
# Access to Options.json and other files within your addon
/data/** rw,
# Execution program
/usr/sbin/dnsmasq cx,
profile /usr/sbin/dnsmasq flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/base>
#include <abstractions/nameservice>
signal receive,
capability net_bind_service,
capability setgid,
capability setuid,
capability dac_override,
network inet raw,
network inet6 raw,
/usr/sbin/dnsmasq rm,
/etc/dnsmasq.conf rw,
/run/*dnsmasq*.pid w,
/run/dnsmasq/** rw,
/tmp/* rw,
/proc/* r,
}
}