Chris PeBenito 9570b2
policy_module(soundserver, 1.8.0)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type soundd_t;
Chris PeBenito 17de1b
type soundd_exec_t;
Chris PeBenito 0bfccd
init_daemon_domain(soundd_t, soundd_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type soundd_etc_t alias etc_soundd_t;
Chris PeBenito e87221
files_config_file(soundd_etc_t)
Chris PeBenito e87221
Chris PeBenito e87221
type soundd_initrc_exec_t;
Chris PeBenito e87221
init_script_file(soundd_initrc_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type soundd_state_t;
Chris PeBenito 17de1b
files_type(soundd_state_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type soundd_tmp_t;
Chris PeBenito 17de1b
files_tmp_file(soundd_tmp_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# for yiff - probably need some rules for the client support too
Chris PeBenito 17de1b
type soundd_tmpfs_t;
Chris PeBenito 17de1b
files_tmpfs_file(soundd_tmpfs_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type soundd_var_run_t;
Chris PeBenito 17de1b
files_pid_file(soundd_var_run_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito e87221
allow soundd_t self:capability dac_override;
Chris PeBenito 17de1b
dontaudit soundd_t self:capability sys_tty_config;
Chris PeBenito 17de1b
allow soundd_t self:process { setpgid signal_perms };
Chris PeBenito 17de1b
allow soundd_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 17de1b
allow soundd_t self:udp_socket create_socket_perms;
Chris PeBenito e87221
allow soundd_t self:unix_stream_socket { connectto create_stream_socket_perms };
Chris PeBenito e87221
Chris PeBenito 17de1b
# for yiff
Chris PeBenito 17de1b
allow soundd_t self:shm create_shm_perms;
Chris PeBenito 17de1b
Chris PeBenito e87221
read_files_pattern(soundd_t, soundd_etc_t, soundd_etc_t)
Chris PeBenito e87221
read_lnk_files_pattern(soundd_t, soundd_etc_t, soundd_etc_t)
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
manage_files_pattern(soundd_t, soundd_state_t, soundd_state_t)
Chris PeBenito 0bfccd
manage_lnk_files_pattern(soundd_t, soundd_state_t, soundd_state_t)
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
manage_dirs_pattern(soundd_t, soundd_tmp_t, soundd_tmp_t)
Chris PeBenito 0bfccd
manage_files_pattern(soundd_t, soundd_tmp_t, soundd_tmp_t)
Chris PeBenito 17de1b
files_tmp_filetrans(soundd_t, soundd_tmp_t, { file dir })
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
manage_files_pattern(soundd_t, soundd_tmpfs_t, soundd_tmpfs_t)
Chris PeBenito 0bfccd
manage_lnk_files_pattern(soundd_t, soundd_tmpfs_t, soundd_tmpfs_t)
Chris PeBenito 0bfccd
manage_fifo_files_pattern(soundd_t, soundd_tmpfs_t, soundd_tmpfs_t)
Chris PeBenito 0bfccd
manage_sock_files_pattern(soundd_t, soundd_tmpfs_t, soundd_tmpfs_t)
Chris PeBenito 0bfccd
fs_tmpfs_filetrans(soundd_t, soundd_tmpfs_t, { dir file lnk_file sock_file fifo_file })
Chris PeBenito 17de1b
Chris PeBenito e87221
manage_sock_files_pattern(soundd_t, soundd_var_run_t, soundd_var_run_t)
Chris PeBenito 0bfccd
manage_files_pattern(soundd_t, soundd_var_run_t, soundd_var_run_t)
Chris PeBenito e87221
manage_dirs_pattern(soundd_t, soundd_var_run_t, soundd_var_run_t)
Chris PeBenito e87221
files_pid_filetrans(soundd_t, soundd_var_run_t, { file dir })
Chris PeBenito 17de1b
Chris PeBenito 17de1b
kernel_read_kernel_sysctls(soundd_t)
Chris PeBenito 17de1b
kernel_list_proc(soundd_t)
Chris PeBenito 17de1b
kernel_read_proc_symlinks(soundd_t)
Chris PeBenito 17de1b
Chris PeBenito 190066
corenet_all_recvfrom_unlabeled(soundd_t)
Chris PeBenito 190066
corenet_all_recvfrom_netlabel(soundd_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_generic_if(soundd_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_generic_if(soundd_t)
Chris PeBenito c12621
corenet_tcp_sendrecv_generic_node(soundd_t)
Chris PeBenito c12621
corenet_udp_sendrecv_generic_node(soundd_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_ports(soundd_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_ports(soundd_t)
Chris PeBenito c12621
corenet_tcp_bind_generic_node(soundd_t)
Chris PeBenito 17de1b
corenet_tcp_bind_soundd_port(soundd_t)
Chris PeBenito 17de1b
corenet_sendrecv_soundd_server_packets(soundd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dev_read_sysfs(soundd_t)
Chris PeBenito 17de1b
dev_read_sound(soundd_t)
Chris PeBenito 17de1b
dev_write_sound(soundd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
domain_use_interactive_fds(soundd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_read_etc_files(soundd_t)
Chris PeBenito 17de1b
files_read_etc_runtime_files(soundd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
fs_getattr_all_fs(soundd_t)
Chris PeBenito 17de1b
fs_search_auto_mountpoints(soundd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
logging_send_syslog_msg(soundd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(soundd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
sysnet_read_config(soundd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
userdom_dontaudit_use_unpriv_user_fds(soundd_t)
Chris PeBenito 296273
userdom_dontaudit_search_user_home_dirs(soundd_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito e87221
	alsa_domtrans(soundd_t)
Chris PeBenito e87221
')
Chris PeBenito e87221
Chris PeBenito e87221
optional_policy(`
Chris PeBenito 17de1b
	seutil_sigchld_newrole(soundd_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	udev_read_db(soundd_t)
Chris PeBenito 17de1b
')