2005-11-09 17:12:34 +00:00
|
|
|
|
2006-03-07 14:12:39 +00:00
|
|
|
policy_module(avahi,1.2.0)
|
2005-11-09 17:12:34 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type avahi_t;
|
|
|
|
type avahi_exec_t;
|
|
|
|
init_daemon_domain(avahi_t,avahi_exec_t)
|
|
|
|
|
|
|
|
type avahi_var_run_t;
|
|
|
|
files_pid_file(avahi_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
2005-11-23 19:02:40 +00:00
|
|
|
allow avahi_t self:capability { dac_override setgid chown kill setuid sys_chroot };
|
2005-11-09 17:12:34 +00:00
|
|
|
dontaudit avahi_t self:capability sys_tty_config;
|
2005-11-23 19:02:40 +00:00
|
|
|
allow avahi_t self:process { setrlimit signal_perms setcap };
|
2005-11-09 17:12:34 +00:00
|
|
|
allow avahi_t self:fifo_file { read write };
|
|
|
|
allow avahi_t self:unix_stream_socket { connectto create_stream_socket_perms };
|
|
|
|
allow avahi_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
allow avahi_t self:netlink_route_socket r_netlink_socket_perms;
|
|
|
|
allow avahi_t self:tcp_socket create_stream_socket_perms;
|
|
|
|
allow avahi_t self:udp_socket create_socket_perms;
|
|
|
|
|
|
|
|
allow avahi_t avahi_var_run_t:sock_file create_file_perms;
|
|
|
|
allow avahi_t avahi_var_run_t:file create_file_perms;
|
|
|
|
allow avahi_t avahi_var_run_t:dir { rw_dir_perms setattr };
|
2006-03-02 23:41:11 +00:00
|
|
|
files_pid_filetrans(avahi_t,avahi_var_run_t,file)
|
2005-11-09 17:12:34 +00:00
|
|
|
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(avahi_t)
|
2005-11-09 17:12:34 +00:00
|
|
|
kernel_list_proc(avahi_t)
|
|
|
|
kernel_read_proc_symlinks(avahi_t)
|
|
|
|
kernel_read_network_state(avahi_t)
|
|
|
|
|
|
|
|
corenet_tcp_sendrecv_all_if(avahi_t)
|
|
|
|
corenet_raw_sendrecv_all_if(avahi_t)
|
|
|
|
corenet_udp_sendrecv_all_if(avahi_t)
|
|
|
|
corenet_tcp_sendrecv_all_nodes(avahi_t)
|
|
|
|
corenet_raw_sendrecv_all_nodes(avahi_t)
|
|
|
|
corenet_udp_sendrecv_all_nodes(avahi_t)
|
|
|
|
corenet_tcp_sendrecv_all_ports(avahi_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(avahi_t)
|
2005-12-06 19:59:50 +00:00
|
|
|
corenet_non_ipsec_sendrecv(avahi_t)
|
2005-11-09 17:12:34 +00:00
|
|
|
corenet_tcp_bind_all_nodes(avahi_t)
|
|
|
|
corenet_udp_bind_all_nodes(avahi_t)
|
|
|
|
corenet_tcp_bind_howl_port(avahi_t)
|
|
|
|
corenet_udp_bind_howl_port(avahi_t)
|
|
|
|
|
|
|
|
dev_read_sysfs(avahi_t)
|
|
|
|
dev_read_urand(avahi_t)
|
|
|
|
|
|
|
|
fs_getattr_all_fs(avahi_t)
|
|
|
|
fs_search_auto_mountpoints(avahi_t)
|
|
|
|
|
|
|
|
term_dontaudit_use_console(avahi_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(avahi_t)
|
2005-11-09 17:12:34 +00:00
|
|
|
|
|
|
|
files_read_etc_files(avahi_t)
|
2006-02-20 16:31:54 +00:00
|
|
|
files_read_etc_runtime_files(avahi_t)
|
2005-11-09 17:12:34 +00:00
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
init_use_fds(avahi_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
init_use_script_ptys(avahi_t)
|
2005-11-09 17:12:34 +00:00
|
|
|
init_signal_script(avahi_t)
|
|
|
|
init_signull_script(avahi_t)
|
|
|
|
|
|
|
|
libs_use_ld_so(avahi_t)
|
|
|
|
libs_use_shared_libs(avahi_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(avahi_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(avahi_t)
|
|
|
|
|
|
|
|
sysnet_read_config(avahi_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(avahi_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
userdom_dontaudit_search_sysadm_home_dirs(avahi_t)
|
2005-11-09 17:12:34 +00:00
|
|
|
|
|
|
|
ifdef(`targeted_policy',`
|
2006-02-02 21:08:12 +00:00
|
|
|
term_dontaudit_use_unallocated_ttys(avahi_t)
|
|
|
|
term_dontaudit_use_generic_ptys(avahi_t)
|
2006-01-31 19:21:01 +00:00
|
|
|
files_dontaudit_read_root_files(avahi_t)
|
2005-11-09 17:12:34 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-11-09 17:12:34 +00:00
|
|
|
dbus_system_bus_client_template(avahi,avahi_t)
|
|
|
|
dbus_connect_system_bus(avahi_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
dbus_send_system_bus(avahi_t)
|
2005-11-09 17:12:34 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-11-09 17:12:34 +00:00
|
|
|
nis_use_ypbind(avahi_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-11-09 17:12:34 +00:00
|
|
|
seutil_sigchld_newrole(avahi_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-11-09 17:12:34 +00:00
|
|
|
udev_read_db(avahi_t)
|
|
|
|
')
|