2010-05-24 19:32:01 +00:00
|
|
|
policy_module(avahi, 1.12.0)
|
2005-11-09 17:12:34 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type avahi_t;
|
|
|
|
type avahi_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
init_daemon_domain(avahi_t, avahi_exec_t)
|
2005-11-09 17:12:34 +00:00
|
|
|
|
2008-11-19 15:24:10 +00:00
|
|
|
type avahi_initrc_exec_t;
|
|
|
|
init_script_file(avahi_initrc_exec_t)
|
|
|
|
|
|
|
|
type avahi_var_lib_t;
|
|
|
|
files_pid_file(avahi_var_lib_t)
|
|
|
|
|
2005-11-09 17:12:34 +00:00
|
|
|
type avahi_var_run_t;
|
|
|
|
files_pid_file(avahi_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
2010-03-24 18:19:30 +00:00
|
|
|
allow avahi_t self:capability { dac_override setgid chown fowner kill net_admin net_raw setuid sys_chroot };
|
2005-11-09 17:12:34 +00:00
|
|
|
dontaudit avahi_t self:capability sys_tty_config;
|
2008-11-19 15:24:10 +00:00
|
|
|
allow avahi_t self:process { setrlimit signal_perms getcap setcap };
|
2008-10-16 16:09:20 +00:00
|
|
|
allow avahi_t self:fifo_file rw_fifo_file_perms;
|
2005-11-09 17:12:34 +00:00
|
|
|
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:tcp_socket create_stream_socket_perms;
|
|
|
|
allow avahi_t self:udp_socket create_socket_perms;
|
2010-03-24 18:19:30 +00:00
|
|
|
allow avahi_t self:packet_socket create_socket_perms;
|
2005-11-09 17:12:34 +00:00
|
|
|
|
2008-11-19 15:24:10 +00:00
|
|
|
manage_dirs_pattern(avahi_t, avahi_var_lib_t, avahi_var_lib_t)
|
|
|
|
manage_files_pattern(avahi_t, avahi_var_lib_t, avahi_var_lib_t)
|
|
|
|
files_var_lib_filetrans(avahi_t, avahi_var_lib_t, { dir file })
|
|
|
|
|
2010-08-26 13:41:21 +00:00
|
|
|
manage_dirs_pattern(avahi_t, avahi_var_run_t, avahi_var_run_t)
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern(avahi_t, avahi_var_run_t, avahi_var_run_t)
|
|
|
|
manage_sock_files_pattern(avahi_t, avahi_var_run_t, avahi_var_run_t)
|
2006-12-12 20:08:08 +00:00
|
|
|
allow avahi_t avahi_var_run_t:dir setattr;
|
2010-08-26 13:41:21 +00:00
|
|
|
files_pid_filetrans(avahi_t, avahi_var_run_t, { dir file })
|
2005-11-09 17:12:34 +00:00
|
|
|
|
2010-03-24 18:19:30 +00:00
|
|
|
kernel_read_system_state(avahi_t)
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(avahi_t)
|
2005-11-09 17:12:34 +00:00
|
|
|
kernel_read_network_state(avahi_t)
|
|
|
|
|
2010-03-24 18:19:30 +00:00
|
|
|
corecmd_exec_bin(avahi_t)
|
|
|
|
corecmd_exec_shell(avahi_t)
|
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(avahi_t)
|
|
|
|
corenet_all_recvfrom_netlabel(avahi_t)
|
2009-01-06 20:24:10 +00:00
|
|
|
corenet_tcp_sendrecv_generic_if(avahi_t)
|
|
|
|
corenet_udp_sendrecv_generic_if(avahi_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_tcp_sendrecv_generic_node(avahi_t)
|
|
|
|
corenet_udp_sendrecv_generic_node(avahi_t)
|
2005-11-09 17:12:34 +00:00
|
|
|
corenet_tcp_sendrecv_all_ports(avahi_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(avahi_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_tcp_bind_generic_node(avahi_t)
|
|
|
|
corenet_udp_bind_generic_node(avahi_t)
|
2005-11-09 17:12:34 +00:00
|
|
|
corenet_tcp_bind_howl_port(avahi_t)
|
|
|
|
corenet_udp_bind_howl_port(avahi_t)
|
2006-05-25 17:56:07 +00:00
|
|
|
corenet_send_howl_client_packets(avahi_t)
|
|
|
|
corenet_receive_howl_server_packets(avahi_t)
|
2005-11-09 17:12:34 +00:00
|
|
|
|
|
|
|
dev_read_sysfs(avahi_t)
|
|
|
|
dev_read_urand(avahi_t)
|
|
|
|
|
|
|
|
fs_getattr_all_fs(avahi_t)
|
|
|
|
fs_search_auto_mountpoints(avahi_t)
|
2007-08-22 20:02:41 +00:00
|
|
|
fs_list_inotifyfs(avahi_t)
|
2005-11-09 17:12:34 +00:00
|
|
|
|
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)
|
2006-08-29 02:41:00 +00:00
|
|
|
files_read_usr_files(avahi_t)
|
2005-11-09 17:12:34 +00:00
|
|
|
|
2007-05-03 12:45:28 +00:00
|
|
|
auth_use_nsswitch(avahi_t)
|
|
|
|
|
2005-11-09 17:12:34 +00:00
|
|
|
init_signal_script(avahi_t)
|
|
|
|
init_signull_script(avahi_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(avahi_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(avahi_t)
|
2008-11-19 15:24:10 +00:00
|
|
|
miscfiles_read_certs(avahi_t)
|
2005-11-09 17:12:34 +00:00
|
|
|
|
2010-03-24 18:19:30 +00:00
|
|
|
sysnet_domtrans_ifconfig(avahi_t)
|
|
|
|
sysnet_manage_config(avahi_t)
|
|
|
|
sysnet_etc_filetrans_config(avahi_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(avahi_t)
|
2008-11-05 16:10:46 +00:00
|
|
|
userdom_dontaudit_search_user_home_dirs(avahi_t)
|
2005-11-09 17:12:34 +00:00
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2009-07-27 13:57:20 +00:00
|
|
|
dbus_system_domain(avahi_t, avahi_exec_t)
|
2008-11-05 16:10:46 +00:00
|
|
|
dbus_system_bus_client(avahi_t)
|
2005-11-09 17:12:34 +00:00
|
|
|
dbus_connect_system_bus(avahi_t)
|
2007-10-26 18:04:38 +00:00
|
|
|
|
2006-04-17 17:32:54 +00:00
|
|
|
init_dbus_chat_script(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
|
|
|
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)
|
|
|
|
')
|