]> git.ipfire.org Git - people/stevee/selinux-policy.git/blame - policy/modules/services/apache.fc
Lets remove global label for logs directories under /var/www, if we have specific...
[people/stevee/selinux-policy.git] / policy / modules / services / apache.fc
CommitLineData
296273a7 1HOME_DIR/((www)|(web)|(public_html))(/.+)? gen_context(system_u:object_r:httpd_user_content_t,s0)
03db3b52
DG
2HOME_DIR/((www)|(web)|(public_html))/cgi-bin(/.+)? gen_context(system_u:object_r:httpd_user_script_exec_t,s0)
3HOME_DIR/((www)|(web)|(public_html))(/.*)?/\.htaccess -- gen_context(system_u:object_r:httpd_user_htaccess_t,s0)
4HOME_DIR/((www)|(web)|(public_html))(/.*)?/logs(/.*)? gen_context(system_u:object_r:httpd_user_content_ra_t,s0)
a996bdf4 5
e02c61cf
CP
6/etc/apache(2)?(/.*)? gen_context(system_u:object_r:httpd_config_t,s0)
7/etc/apache-ssl(2)?(/.*)? gen_context(system_u:object_r:httpd_config_t,s0)
210e62b8
DW
8/etc/cherokee(/.*)? gen_context(system_u:object_r:httpd_config_t,s0)
9/etc/drupal.* gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
123a990b 10/etc/htdig(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
83caba3e
CP
11/etc/httpd(/.*)? gen_context(system_u:object_r:httpd_config_t,s0)
12/etc/httpd/conf/keytab -- gen_context(system_u:object_r:httpd_keytab_t,s0)
e02c61cf
CP
13/etc/httpd/logs gen_context(system_u:object_r:httpd_log_t,s0)
14/etc/httpd/modules gen_context(system_u:object_r:httpd_modules_t,s0)
347eef6f 15/etc/init\.d/cherokee -- gen_context(system_u:object_r:httpd_initrc_exec_t,s0)
83caba3e
CP
16/etc/lighttpd(/.*)? gen_context(system_u:object_r:httpd_config_t,s0)
17/etc/mock/koji(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
18/etc/rc\.d/init\.d/httpd -- gen_context(system_u:object_r:httpd_initrc_exec_t,s0)
20fa7032 19/etc/rc\.d/init\.d/lighttpd -- gen_context(system_u:object_r:httpd_initrc_exec_t,s0)
83caba3e 20
e02c61cf 21/etc/vhosts -- gen_context(system_u:object_r:httpd_config_t,s0)
20fa7032 22/etc/zabbix/web(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
a996bdf4 23
8149320e 24/lib/systemd/system/httpd.?\.service -- gen_context(system_u:object_r:httpd_unit_file_t,s0)
de8b29a8
DW
25
26/usr/lib/systemd/system/httpd.?\.service -- gen_context(system_u:object_r:httpd_unit_file_t,s0)
395df07f 27/usr/libexec/httpd-ssl-pass-dialog -- gen_context(system_u:object_r:httpd_passwd_exec_t,s0)
eedf23b8 28
e02c61cf 29/srv/([^/]*/)?www(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
a3cf80d8 30/srv/gallery2(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
a996bdf4 31
e02c61cf 32/usr/bin/htsslpass -- gen_context(system_u:object_r:httpd_helper_exec_t,s0)
83caba3e 33/usr/bin/mongrel_rails -- gen_context(system_u:object_r:httpd_exec_t,s0)
a996bdf4 34
e02c61cf
CP
35/usr/lib/apache-ssl/.+ -- gen_context(system_u:object_r:httpd_exec_t,s0)
36/usr/lib/cgi-bin(/.*)? gen_context(system_u:object_r:httpd_sys_script_exec_t,s0)
e43da3a5
MG
37/usr/lib/apache(/.*)? gen_context(system_u:object_r:httpd_modules_t,s0)
38/usr/lib/apache2/modules(/.*)? gen_context(system_u:object_r:httpd_modules_t,s0)
39/usr/lib/apache(2)?/suexec(2)? -- gen_context(system_u:object_r:httpd_suexec_exec_t,s0)
40/usr/lib/cgi-bin/(nph-)?cgiwrap(d)? -- gen_context(system_u:object_r:httpd_suexec_exec_t,s0)
347eef6f 41/usr/lib/cherokee(/.*)? gen_context(system_u:object_r:httpd_modules_t,s0)
e43da3a5
MG
42/usr/lib/httpd(/.*)? gen_context(system_u:object_r:httpd_modules_t,s0)
43/usr/lib/lighttpd(/.*)? gen_context(system_u:object_r:httpd_modules_t,s0)
a996bdf4 44
e02c61cf 45/usr/sbin/apache(2)? -- gen_context(system_u:object_r:httpd_exec_t,s0)
123a990b 46/usr/sbin/apache-ssl(2)? -- gen_context(system_u:object_r:httpd_exec_t,s0)
347eef6f 47/usr/sbin/cherokee -- gen_context(system_u:object_r:httpd_exec_t,s0)
e02c61cf 48/usr/sbin/httpd(\.worker)? -- gen_context(system_u:object_r:httpd_exec_t,s0)
20fa7032 49/usr/sbin/lighttpd -- gen_context(system_u:object_r:httpd_exec_t,s0)
123a990b
CP
50/usr/sbin/rotatelogs -- gen_context(system_u:object_r:httpd_rotatelogs_exec_t,s0)
51/usr/sbin/suexec -- gen_context(system_u:object_r:httpd_suexec_exec_t,s0)
52
a996bdf4 53ifdef(`distro_suse', `
e02c61cf 54/usr/sbin/httpd2-.* -- gen_context(system_u:object_r:httpd_exec_t,s0)
a996bdf4 55')
a996bdf4 56
210e62b8
DW
57/usr/share/drupal.* gen_context(system_u:object_r:httpd_sys_content_t,s0)
58/usr/share/doc/ghc/html(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
8fff5ae7 59
e02c61cf 60/usr/share/htdig(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
83caba3e
CP
61/usr/share/icecast(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
62/usr/share/mythweb(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
63/usr/share/mythweb/mythweb\.pl gen_context(system_u:object_r:httpd_sys_script_exec_t,s0)
64/usr/share/mythtv/mythweather/scripts(/.*)? gen_context(system_u:object_r:httpd_sys_script_exec_t,s0)
65/usr/share/mythtv/data(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
66/usr/share/ntop/html(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
5bd9fd7b 67/usr/share/openca/htdocs(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
ff943a1b 68/usr/share/selinux-policy[^/]*/html(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
11bfa714 69/usr/share/wordpress/.*\.php -- gen_context(system_u:object_r:httpd_sys_script_exec_t,s0)
20fa7032 70/usr/share/wordpress-mu/wp-config\.php -- gen_context(system_u:object_r:httpd_sys_script_exec_t,s0)
83caba3e
CP
71/usr/share/wordpress-mu/wp-content(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
72/usr/share/wordpress/wp-content/uploads(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
11bfa714 73/usr/share/wordpress/wp-content/upgrade(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
a996bdf4 74
e02c61cf 75/var/cache/httpd(/.*)? gen_context(system_u:object_r:httpd_cache_t,s0)
83caba3e 76/var/cache/lighttpd(/.*)? gen_context(system_u:object_r:httpd_cache_t,s0)
95501942 77/var/cache/mason(/.*)? gen_context(system_u:object_r:httpd_cache_t,s0)
83caba3e
CP
78/var/cache/mediawiki(/.*)? gen_context(system_u:object_r:httpd_cache_t,s0)
79/var/cache/mod_.* gen_context(system_u:object_r:httpd_cache_t,s0)
80/var/cache/mod_gnutls(/.*)? gen_context(system_u:object_r:httpd_cache_t,s0)
d6d16b97 81/var/cache/mod_proxy(/.*)? gen_context(system_u:object_r:httpd_cache_t,s0)
123a990b 82/var/cache/mod_ssl(/.*)? gen_context(system_u:object_r:httpd_cache_t,s0)
83caba3e 83/var/cache/php-.* gen_context(system_u:object_r:httpd_cache_t,s0)
e02c61cf
CP
84/var/cache/php-eaccelerator(/.*)? gen_context(system_u:object_r:httpd_cache_t,s0)
85/var/cache/php-mmcache(/.*)? gen_context(system_u:object_r:httpd_cache_t,s0)
95501942 86/var/cache/rt3(/.*)? gen_context(system_u:object_r:httpd_cache_t,s0)
e02c61cf 87/var/cache/ssl.*\.sem -- gen_context(system_u:object_r:httpd_cache_t,s0)
a996bdf4 88
0f27d98d 89/var/lib/cacti/rra(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
347eef6f 90/var/lib/cherokee(/.*)? gen_context(system_u:object_r:httpd_var_lib_t,s0)
65b9361c 91/var/lib/dav(/.*)? gen_context(system_u:object_r:httpd_var_lib_t,s0)
3eaa9939 92/var/lib/dokuwiki(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
210e62b8 93/var/lib/drupal.* gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
e02c61cf
CP
94/var/lib/htdig(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
95/var/lib/httpd(/.*)? gen_context(system_u:object_r:httpd_var_lib_t,s0)
96/var/lib/php/session(/.*)? gen_context(system_u:object_r:httpd_var_run_t,s0)
97/var/lib/squirrelmail/prefs(/.*)? gen_context(system_u:object_r:httpd_squirrelmail_t,s0)
f8d58414
DW
98/var/lib/svn(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
99/var/lib/trac(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
a996bdf4 100
e02c61cf
CP
101/var/log/apache(2)?(/.*)? gen_context(system_u:object_r:httpd_log_t,s0)
102/var/log/apache-ssl(2)?(/.*)? gen_context(system_u:object_r:httpd_log_t,s0)
b0d2243c 103/var/log/cacti(/.*)? gen_context(system_u:object_r:httpd_log_t,s0)
e02c61cf 104/var/log/cgiwrap\.log.* -- gen_context(system_u:object_r:httpd_log_t,s0)
347eef6f 105/var/log/cherokee(/.*)? gen_context(system_u:object_r:httpd_log_t,s0)
e02c61cf 106/var/log/httpd(/.*)? gen_context(system_u:object_r:httpd_log_t,s0)
83caba3e 107/var/log/lighttpd(/.*)? gen_context(system_u:object_r:httpd_log_t,s0)
1032b49d 108/var/log/roundcubemail(/.*)? gen_context(system_u:object_r:httpd_log_t,s0)
4f0620d4 109/var/log/suphp\.log -- gen_context(system_u:object_r:httpd_log_t,s0)
83caba3e 110
a996bdf4 111ifdef(`distro_debian', `
e02c61cf 112/var/log/horde2(/.*)? gen_context(system_u:object_r:httpd_log_t,s0)
a996bdf4
CP
113')
114
e02c61cf
CP
115/var/run/apache.* gen_context(system_u:object_r:httpd_var_run_t,s0)
116/var/run/gcache_port -s gen_context(system_u:object_r:httpd_var_run_t,s0)
123a990b 117/var/run/httpd.* gen_context(system_u:object_r:httpd_var_run_t,s0)
83caba3e
CP
118/var/run/lighttpd(/.*)? gen_context(system_u:object_r:httpd_var_run_t,s0)
119/var/run/mod_.* gen_context(system_u:object_r:httpd_var_run_t,s0)
120/var/run/wsgi.* -s gen_context(system_u:object_r:httpd_var_run_t,s0)
a996bdf4 121
83caba3e 122/var/spool/gosa(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
e02c61cf 123/var/spool/squirrelmail(/.*)? gen_context(system_u:object_r:squirrelmail_spool_t,s0)
20fa7032 124/var/spool/viewvc(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t, s0)
a996bdf4 125
e02c61cf 126/var/www(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
83caba3e 127/var/www/[^/]*/cgi-bin(/.*)? gen_context(system_u:object_r:httpd_sys_script_exec_t,s0)
e02c61cf
CP
128/var/www/cgi-bin(/.*)? gen_context(system_u:object_r:httpd_sys_script_exec_t,s0)
129/var/www/icons(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
130/var/www/perl(/.*)? gen_context(system_u:object_r:httpd_sys_script_exec_t,s0)
3eaa9939
DW
131
132/var/www/html/[^/]*/cgi-bin(/.*)? gen_context(system_u:object_r:httpd_sys_script_exec_t,s0)
133
134/var/www/html/configuration\.php gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
135
136/var/www/gallery/albums(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
137
138/var/lib/koji(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
db879987 139/var/lib/pootle/po(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
3eaa9939
DW
140/var/lib/rt3/data/RT-Shredder(/.*)? gen_context(system_u:object_r:httpd_var_lib_t,s0)
141
142/var/www/svn(/.*)? gen_context(system_u:object_r:httpd_sys_rw_content_t,s0)
143/var/www/svn/hooks(/.*)? gen_context(system_u:object_r:httpd_sys_script_exec_t,s0)
144/var/www/svn/conf(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
97ec2391
DW
145
146/var/log/dirsrv/admin-serv(/.*)? gen_context(system_u:object_r:httpd_log_t,s0)
147
148/var/run/dirsrv/admin-serv.* gen_context(system_u:object_r:httpd_var_run_t,s0)
149/opt/dirsrv/var/run/dirsrv/dsgw/cookies(/.*)? gen_context(system_u:object_r:httpd_var_run_t,s0)