2009-12-16 15:04:06 -06:00
|
|
|
module ipa_httpd 1.2;
|
2009-08-24 12:42:48 -05:00
|
|
|
|
|
|
|
require {
|
|
|
|
type httpd_t;
|
2010-01-27 13:51:53 -06:00
|
|
|
type named_t;
|
2009-08-28 12:10:41 -05:00
|
|
|
type initrc_t;
|
2009-08-28 17:01:02 -05:00
|
|
|
type var_run_t;
|
|
|
|
type krb5kdc_t;
|
2009-09-10 15:15:14 -05:00
|
|
|
type cert_t;
|
2009-08-28 17:01:02 -05:00
|
|
|
class sock_file write;
|
2009-08-28 12:10:41 -05:00
|
|
|
class unix_stream_socket connectto;
|
2009-09-10 15:15:14 -05:00
|
|
|
class file write;
|
2009-08-24 12:42:48 -05:00
|
|
|
}
|
|
|
|
|
2010-01-27 13:51:53 -06:00
|
|
|
# Let Apache, bind and the KDC talk to DS over ldapi
|
2009-08-28 17:01:02 -05:00
|
|
|
allow httpd_t var_run_t:sock_file write;
|
2009-08-28 12:10:41 -05:00
|
|
|
allow httpd_t initrc_t:unix_stream_socket connectto;
|
2009-08-28 17:01:02 -05:00
|
|
|
allow krb5kdc_t var_run_t:sock_file write;
|
|
|
|
allow krb5kdc_t initrc_t:unix_stream_socket connectto;
|
2010-01-27 13:51:53 -06:00
|
|
|
allow named_t var_run_t:sock_file write;
|
|
|
|
allow named_t initrc_t:unix_stream_socket connectto;
|
2009-09-10 15:15:14 -05:00
|
|
|
|
|
|
|
# Let Apache access the NSS certificate database so it can issue certs
|
|
|
|
# See ipa_httpd.fe for the list of files that are granted write access
|
|
|
|
allow httpd_t cert_t:file write;
|