-
Notifications
You must be signed in to change notification settings - Fork 4
/
usr.sbin.lighttpd
73 lines (63 loc) · 1.68 KB
/
usr.sbin.lighttpd
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
# Last Modified: Wed Jan 18 10:48:17 2012
# ------------------------------------------------------------------
#
# Copyright (C) 2002-2005 Novell/SUSE
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General Public
# License published by the Free Software Foundation.
#
# ------------------------------------------------------------------
#include <tunables/global>
/usr/sbin/lighttpd {
#include <abstractions/base>
#include <abstractions/consoles>
#include <abstractions/nameservice>
#include <abstractions/perl>
#include <abstractions/php5>
#include <abstractions/web-data>
capability dac_override,
capability net_bind_service,
capability setgid,
capability setuid,
capability sys_chroot,
capability sys_resource,
/bin/bash mix,
/bin/cat mix,
/bin/zsh mix,
/etc/lighttpd r,
/etc/lighttpd/*.conf r,
/etc/lighttpd/auth.d/* r,
/etc/lighttpd/conf.d/*.conf r,
/etc/lighttpd/vhosts.d r,
/etc/lighttpd/vhosts.d/* r,
/etc/php/conf.d/ r,
/etc/php/php.ini r,
/etc/ssl/private/*.pem r,
/run/lighttpd/* w,
/srv/http/ r,
/srv/http/** r,
/tmp/* rw,
/usr/bin/php-cgi Cx,
/usr/lib/lighttpd/*.so mr,
/usr/lib64/lighttpd/*.so mr,
/usr/sbin/lighttpd mix,
/var/cache/lighttpd/ r,
/var/cache/lighttpd/** rwl,
/var/lib/lighttpd/ r,
/var/lib/lighttpd/** rwl,
/var/log/lighttpd/*.log rw,
/{,var/}run/lighttpd.pid rwl,
profile /usr/bin/php-cgi {
#include <abstractions/base>
/etc/* r,
/etc/php/** r,
/lib/lib*so* mr,
/srv/http/ r,
/srv/http/** r,
/tmp/* rwk,
/usr/bin/php-cgi r,
/usr/lib/lib*so* mr,
/usr/lib{,32,64}/** mr,
}
}