]> git.ipfire.org Git - people/stevee/selinux-policy.git/blame - policy/modules/services/apache.fc
trunk: additional open fixes.
[people/stevee/selinux-policy.git] / policy / modules / services / apache.fc
CommitLineData
e02c61cf 1HOME_DIR/((www)|(web)|(public_html))(/.+)? gen_context(system_u:object_r:httpd_ROLE_content_t,s0)
a996bdf4 2
e02c61cf
CP
3/etc/apache(2)?(/.*)? gen_context(system_u:object_r:httpd_config_t,s0)
4/etc/apache-ssl(2)?(/.*)? gen_context(system_u:object_r:httpd_config_t,s0)
123a990b 5/etc/htdig(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
e02c61cf
CP
6/etc/httpd -d gen_context(system_u:object_r:httpd_config_t,s0)
7/etc/httpd/conf.* gen_context(system_u:object_r:httpd_config_t,s0)
8/etc/httpd/logs gen_context(system_u:object_r:httpd_log_t,s0)
9/etc/httpd/modules gen_context(system_u:object_r:httpd_modules_t,s0)
10/etc/vhosts -- gen_context(system_u:object_r:httpd_config_t,s0)
a996bdf4 11
e02c61cf 12/srv/([^/]*/)?www(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
a3cf80d8 13/srv/gallery2(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
a996bdf4 14
e02c61cf 15/usr/bin/htsslpass -- gen_context(system_u:object_r:httpd_helper_exec_t,s0)
a996bdf4 16
e02c61cf
CP
17/usr/lib/apache-ssl/.+ -- gen_context(system_u:object_r:httpd_exec_t,s0)
18/usr/lib/cgi-bin(/.*)? gen_context(system_u:object_r:httpd_sys_script_exec_t,s0)
19/usr/lib(64)?/apache(/.*)? gen_context(system_u:object_r:httpd_modules_t,s0)
20/usr/lib(64)?/apache2/modules(/.*)? gen_context(system_u:object_r:httpd_modules_t,s0)
e749cd12 21/usr/lib(64)?/apache(2)?/suexec(2)? -- gen_context(system_u:object_r:httpd_suexec_exec_t,s0)
e02c61cf
CP
22/usr/lib(64)?/cgi-bin/(nph-)?cgiwrap(d)? -- gen_context(system_u:object_r:httpd_suexec_exec_t,s0)
23/usr/lib(64)?/httpd(/.*)? gen_context(system_u:object_r:httpd_modules_t,s0)
a996bdf4 24
e02c61cf 25/usr/sbin/apache(2)? -- gen_context(system_u:object_r:httpd_exec_t,s0)
123a990b 26/usr/sbin/apache-ssl(2)? -- gen_context(system_u:object_r:httpd_exec_t,s0)
e02c61cf 27/usr/sbin/httpd(\.worker)? -- gen_context(system_u:object_r:httpd_exec_t,s0)
123a990b
CP
28/usr/sbin/rotatelogs -- gen_context(system_u:object_r:httpd_rotatelogs_exec_t,s0)
29/usr/sbin/suexec -- gen_context(system_u:object_r:httpd_suexec_exec_t,s0)
30
a996bdf4 31ifdef(`distro_suse', `
e02c61cf 32/usr/sbin/httpd2-.* -- gen_context(system_u:object_r:httpd_exec_t,s0)
a996bdf4 33')
a996bdf4 34
e02c61cf 35/usr/share/htdig(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
5bd9fd7b 36/usr/share/openca/htdocs(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
ff943a1b 37/usr/share/selinux-policy[^/]*/html(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
a996bdf4 38
e02c61cf 39/var/cache/httpd(/.*)? gen_context(system_u:object_r:httpd_cache_t,s0)
95501942 40/var/cache/mason(/.*)? gen_context(system_u:object_r:httpd_cache_t,s0)
d6d16b97 41/var/cache/mod_proxy(/.*)? gen_context(system_u:object_r:httpd_cache_t,s0)
123a990b 42/var/cache/mod_ssl(/.*)? gen_context(system_u:object_r:httpd_cache_t,s0)
e02c61cf
CP
43/var/cache/php-eaccelerator(/.*)? gen_context(system_u:object_r:httpd_cache_t,s0)
44/var/cache/php-mmcache(/.*)? gen_context(system_u:object_r:httpd_cache_t,s0)
95501942 45/var/cache/rt3(/.*)? gen_context(system_u:object_r:httpd_cache_t,s0)
e02c61cf 46/var/cache/ssl.*\.sem -- gen_context(system_u:object_r:httpd_cache_t,s0)
a996bdf4 47
0f27d98d 48/var/lib/cacti/rra(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
65b9361c 49/var/lib/dav(/.*)? gen_context(system_u:object_r:httpd_var_lib_t,s0)
e02c61cf
CP
50/var/lib/htdig(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
51/var/lib/httpd(/.*)? gen_context(system_u:object_r:httpd_var_lib_t,s0)
52/var/lib/php/session(/.*)? gen_context(system_u:object_r:httpd_var_run_t,s0)
53/var/lib/squirrelmail/prefs(/.*)? gen_context(system_u:object_r:httpd_squirrelmail_t,s0)
a996bdf4 54
e02c61cf
CP
55/var/log/apache(2)?(/.*)? gen_context(system_u:object_r:httpd_log_t,s0)
56/var/log/apache-ssl(2)?(/.*)? gen_context(system_u:object_r:httpd_log_t,s0)
b0d2243c 57/var/log/cacti(/.*)? gen_context(system_u:object_r:httpd_log_t,s0)
e02c61cf
CP
58/var/log/cgiwrap\.log.* -- gen_context(system_u:object_r:httpd_log_t,s0)
59/var/log/httpd(/.*)? gen_context(system_u:object_r:httpd_log_t,s0)
a996bdf4 60ifdef(`distro_debian', `
e02c61cf 61/var/log/horde2(/.*)? gen_context(system_u:object_r:httpd_log_t,s0)
a996bdf4
CP
62')
63
e02c61cf
CP
64/var/run/apache.* gen_context(system_u:object_r:httpd_var_run_t,s0)
65/var/run/gcache_port -s gen_context(system_u:object_r:httpd_var_run_t,s0)
123a990b 66/var/run/httpd.* gen_context(system_u:object_r:httpd_var_run_t,s0)
a996bdf4 67
e02c61cf
CP
68/var/spool/gosa(/.*)? gen_context(system_u:object_r:httpd_sys_script_rw_t,s0)
69/var/spool/squirrelmail(/.*)? gen_context(system_u:object_r:squirrelmail_spool_t,s0)
a996bdf4 70
e02c61cf
CP
71/var/www(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
72/var/www/cgi-bin(/.*)? gen_context(system_u:object_r:httpd_sys_script_exec_t,s0)
73/var/www/icons(/.*)? gen_context(system_u:object_r:httpd_sys_content_t,s0)
74/var/www/perl(/.*)? gen_context(system_u:object_r:httpd_sys_script_exec_t,s0)