-
Notifications
You must be signed in to change notification settings - Fork 0
/
apparmor-profile
80 lines (65 loc) · 1.49 KB
/
apparmor-profile
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
# vim:syntax=apparmor
# https://github.com/AnanasPfirsichSaft/james
#include <tunables/global>
/opt/james/lighttpd flags=(attach_disconnected) {
#include <abstractions/base>
#include <abstractions/nameservice>
#include <abstractions/user-tmp>
ptrace (read,trace),
/ r,
deny / w,
/bin r,
/bin/*sh ixr,
/bin/grep ixr,
/bin/hostname ixr,
/bin/ps ixr,
/bin/ss ixr,
/dev r,
/dev/tty r,
/etc r,
/etc/php r,
/etc/php/** r,
/opt r,
/opt/james r,
/opt/james/** r,
/opt/james/james-server.cgi ix,
/opt/james/lighttpd ix,
/opt/james/mod_*.so m,
# uncomment if you want to make your public folder available
# owner @{HOME}/ r,
# owner @{HOME}/Public/ r,
# owner @{HOME}/Public/** r,
# allow writing in that directory, useful with webdav extension
# owner @{HOME}/Public/* w,
@{PROC}/ r,
@{PROC}/sys/kernel/pid_max r,
@{PROC}/tty r,
@{PROC}/tty/drivers r,
@{PROC}/loadavg r,
@{PROC}/uptime r,
@{PROC}/[0-9]*/cmdline r,
owner @{PROC}/[0-9]*/environ r,
@{PROC}/[0-9]*/stat r,
@{PROC}/[0-9]*/status r,
@{PROC}/[0-9]*/attr/current r,
owner @{PROC}/[0-9]*/fd/ r,
owner @{PROC}/[0-9]*/fd/* r,
/sbin r,
/sbin/killall5 ixr,
/tmp r,
owner /tmp/** rwlk,
/usr r,
/usr/bin r,
/usr/bin/kdialog Uxr,
/usr/bin/notify-send Uxr,
/usr/bin/ogg123 Uxr,
/usr/bin/php-cgi ixr,
/usr/bin/php-cgi[0-9.]* ixrm,
/usr/bin/zenity Uxr,
/usr/lib r,
/usr/lib/php/[0-9.]*/*.so rm,
/var r,
/var/log r,
/var/log/james rw,
/var/log/james/* rw,
}