Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
policy_module(djbdns,1.0.0)
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
########################################
Chris PeBenito 44d5d9
#
Chris PeBenito 44d5d9
# Declarations
Chris PeBenito 44d5d9
#
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
type djbdns_axfrdns_t;
Chris PeBenito 44d5d9
type djbdns_axfrdns_exec_t;
Chris PeBenito 44d5d9
type djbdns_axfrdns_conf_t;
Chris PeBenito 44d5d9
domain_type(djbdns_axfrdns_t)
Chris PeBenito 44d5d9
domain_entry_file(djbdns_axfrdns_t,djbdns_axfrdns_exec_t)
Chris PeBenito 44d5d9
role system_r types djbdns_axfrdns_t;
Chris PeBenito 44d5d9
files_config_file(djbdns_axfrdns_conf_t)
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
djbdns_daemontools_domain_template(dnscache)
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
djbdns_daemontools_domain_template(tinydns)
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
########################################
Chris PeBenito 44d5d9
#
Chris PeBenito 44d5d9
# Local policy for axfrdns component
Chris PeBenito 44d5d9
#
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
files_config_file(djbdns_axfrdns_conf_t)
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
daemontools_ipc_domain(djbdns_axfrdns_t)
Chris PeBenito 44d5d9
daemontools_read_svc(djbdns_axfrdns_t)
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
allow djbdns_axfrdns_t self:capability { setuid setgid sys_chroot };
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
allow djbdns_axfrdns_t djbdns_axfrdns_conf_t:dir r_dir_perms;
Chris PeBenito 44d5d9
allow djbdns_axfrdns_t djbdns_axfrdns_conf_t:file r_file_perms;
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
allow djbdns_axfrdns_t djbdns_tinydns_t:dir r_dir_perms;
Chris PeBenito 44d5d9
allow djbdns_axfrdns_t djbdns_tinydns_t:file r_file_perms;
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
allow djbdns_axfrdns_t djbdns_tinydns_conf_t:dir r_dir_perms;
Chris PeBenito 44d5d9
allow djbdns_axfrdns_t djbdns_tinydns_conf_t:file r_file_perms;
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
files_search_var(djbdns_axfrdns_t)
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
libs_use_ld_so(djbdns_axfrdns_t)
Chris PeBenito 44d5d9
libs_use_shared_libs(djbdns_axfrdns_t)
Chris PeBenito 44d5d9
Chris PeBenito 44d5d9
ucspitcp_service_domain(djbdns_axfrdns_t, djbdns_axfrdns_exec_t)