fee48647ac
67effb0
483be01
c6c63f6
b0d8d59
5b082e4
b8097d6
689d954
5afc3d3
f3c5e77
a59e50c
cf87233
17759c7
dc1db54
e9bf16d
4f95198
bf40792
622c63b
c20842c
dc7cc4d
792d448
50 lines
1.2 KiB
Plaintext
50 lines
1.2 KiB
Plaintext
policy_module(djbdns, 1.4.1)
|
|
|
|
########################################
|
|
#
|
|
# Declarations
|
|
#
|
|
|
|
type djbdns_axfrdns_t;
|
|
type djbdns_axfrdns_exec_t;
|
|
domain_type(djbdns_axfrdns_t)
|
|
domain_entry_file(djbdns_axfrdns_t, djbdns_axfrdns_exec_t)
|
|
role system_r types djbdns_axfrdns_t;
|
|
|
|
type djbdns_axfrdns_conf_t;
|
|
files_config_file(djbdns_axfrdns_conf_t)
|
|
|
|
djbdns_daemontools_domain_template(dnscache)
|
|
|
|
djbdns_daemontools_domain_template(tinydns)
|
|
|
|
########################################
|
|
#
|
|
# Local policy for axfrdns component
|
|
#
|
|
|
|
daemontools_ipc_domain(djbdns_axfrdns_t)
|
|
daemontools_read_svc(djbdns_axfrdns_t)
|
|
|
|
allow djbdns_axfrdns_t self:capability { setuid setgid sys_chroot };
|
|
|
|
allow djbdns_axfrdns_t djbdns_axfrdns_conf_t:dir list_dir_perms;
|
|
allow djbdns_axfrdns_t djbdns_axfrdns_conf_t:file read_file_perms;
|
|
|
|
allow djbdns_axfrdns_t djbdns_tinydns_t:dir list_dir_perms;
|
|
allow djbdns_axfrdns_t djbdns_tinydns_t:file read_file_perms;
|
|
|
|
allow djbdns_axfrdns_t djbdns_tinydns_conf_t:dir list_dir_perms;
|
|
allow djbdns_axfrdns_t djbdns_tinydns_conf_t:file read_file_perms;
|
|
|
|
files_search_var(djbdns_axfrdns_t)
|
|
|
|
ucspitcp_service_domain(djbdns_axfrdns_t, djbdns_axfrdns_exec_t)
|
|
|
|
########################################
|
|
#
|
|
# Local policy for tinydns
|
|
#
|
|
|
|
init_dontaudit_use_script_fds(djbdns_tinydns_t)
|