-
Notifications
You must be signed in to change notification settings - Fork 23
/
apparmor.txt
64 lines (49 loc) · 1.32 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
58
59
60
61
62
63
64
#include <tunables/global>
profile octoprint-next-dev flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/base>
# Capabilities
file,
signal,
# S6-Overlay
/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,
# Access to run scripts
/scripts/** rk,
# Start new profile for service
/data/python/OctoPrint/bin/octoprint cx,
profile /data/python/OctoPrint/bin/octoprint flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/base>
#include <abstractions/nameservice>
# Receive signals from S6-Overlay
signal receive,
file,
# For access to GPIO
/dev/gpiomem rw,
# May be needed for gphoto2
# /dev/sg0 rw,
}
# Start new profile for service
/usr/local/bin/mjpg_streamer cx,
profile /usr/local/bin/mjpg_streamer flags=(attach_disconnected,mediate_deleted) {
#include <abstractions/base>
#include <abstractions/nameservice>
# Receive signals from S6-Overlay
signal receive,
file,
/www_mjpg/** r,
# For access to video
/dev/video* rw,
}
}