Chris PeBenito f7ffe6
policy_module(pulseaudio, 1.2.3)
Chris PeBenito 9b1907
Chris PeBenito 9b1907
########################################
Chris PeBenito 9b1907
#
Chris PeBenito 9b1907
# Declarations
Chris PeBenito 9b1907
#
Chris PeBenito 9b1907
Chris PeBenito 9b1907
type pulseaudio_t;
Chris PeBenito 9b1907
type pulseaudio_exec_t;
Jeremy Solt 186838
init_daemon_domain(pulseaudio_t, pulseaudio_exec_t)
Chris PeBenito 9b1907
application_domain(pulseaudio_t, pulseaudio_exec_t)
Chris PeBenito f7ffe6
ubac_constrained(pulseaudio_t)
Chris PeBenito 9b1907
role system_r types pulseaudio_t;
Chris PeBenito 9b1907
Jeremy Solt 186838
type pulseaudio_home_t;
Jeremy Solt 186838
userdom_user_home_content(pulseaudio_home_t)
Jeremy Solt 186838
Jeremy Solt 186838
type pulseaudio_tmpfs_t;
Jeremy Solt 186838
files_tmpfs_file(pulseaudio_tmpfs_t)
Chris PeBenito f7ffe6
ubac_constrained(pulseaudio_tmpfs_t)
Jeremy Solt 186838
Jeremy Solt 186838
type pulseaudio_var_lib_t;
Jeremy Solt 186838
files_type(pulseaudio_var_lib_t)
Chris PeBenito f7ffe6
ubac_constrained(pulseaudio_var_lib_t)
Jeremy Solt 186838
Jeremy Solt 186838
type pulseaudio_var_run_t;
Jeremy Solt 186838
files_pid_file(pulseaudio_var_run_t)
Chris PeBenito f7ffe6
ubac_constrained(pulseaudio_var_run_t)
Jeremy Solt 186838
Chris PeBenito 9b1907
########################################
Chris PeBenito 9b1907
#
Chris PeBenito 9b1907
# pulseaudio local policy
Chris PeBenito 9b1907
#
Chris PeBenito ad0071
Jeremy Solt 186838
allow pulseaudio_t self:capability { fowner fsetid chown setgid setuid sys_nice sys_resource sys_tty_config };
Chris PeBenito 9b1907
allow pulseaudio_t self:process { getcap setcap setrlimit setsched getsched signal signull };
Chris PeBenito 9b1907
allow pulseaudio_t self:fifo_file rw_file_perms;
Jeremy Solt 186838
allow pulseaudio_t self:unix_stream_socket { create_stream_socket_perms connectto };
Chris PeBenito 9b1907
allow pulseaudio_t self:unix_dgram_socket { sendto create_socket_perms };
Chris PeBenito 9b1907
allow pulseaudio_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 9b1907
allow pulseaudio_t self:udp_socket create_socket_perms;
Chris PeBenito a3dd14
allow pulseaudio_t self:netlink_kobject_uevent_socket create_socket_perms;
Chris PeBenito 9b1907
Jeremy Solt 186838
manage_dirs_pattern(pulseaudio_t, pulseaudio_home_t, pulseaudio_home_t)
Jeremy Solt 186838
manage_files_pattern(pulseaudio_t, pulseaudio_home_t, pulseaudio_home_t)
Chris PeBenito ad0071
userdom_search_user_home_dirs(pulseaudio_t)
Dan Walsh 3eaa99
userdom_search_admin_dir(pulseaudio_t)
Jeremy Solt 186838
Jeremy Solt 186838
manage_dirs_pattern(pulseaudio_t, pulseaudio_var_lib_t, pulseaudio_var_lib_t)
Jeremy Solt 186838
manage_files_pattern(pulseaudio_t, pulseaudio_var_lib_t, pulseaudio_var_lib_t)
Chris PeBenito 1fd3a8
manage_lnk_files_pattern(pulseaudio_t, pulseaudio_var_lib_t, pulseaudio_var_lib_t)
Jeremy Solt 186838
files_var_lib_filetrans(pulseaudio_t, pulseaudio_var_lib_t, { dir file })
Jeremy Solt 186838
Jeremy Solt 186838
manage_dirs_pattern(pulseaudio_t, pulseaudio_var_run_t, pulseaudio_var_run_t)
Jeremy Solt 186838
manage_files_pattern(pulseaudio_t, pulseaudio_var_run_t, pulseaudio_var_run_t)
Jeremy Solt 186838
manage_sock_files_pattern(pulseaudio_t, pulseaudio_var_run_t, pulseaudio_var_run_t)
Dan Walsh 3eaa99
files_pid_filetrans(pulseaudio_t, pulseaudio_var_run_t, { file dir })
Jeremy Solt 186838
Chris PeBenito a3dd14
can_exec(pulseaudio_t, pulseaudio_exec_t)
Chris PeBenito a3dd14
Jeremy Solt 186838
kernel_getattr_proc(pulseaudio_t)
Chris PeBenito a3dd14
kernel_read_system_state(pulseaudio_t)
Chris PeBenito 9b1907
kernel_read_kernel_sysctls(pulseaudio_t)
Chris PeBenito 9b1907
Chris PeBenito 9b1907
corecmd_exec_bin(pulseaudio_t)
Chris PeBenito 9b1907
Chris PeBenito 9b1907
corenet_all_recvfrom_unlabeled(pulseaudio_t)
Chris PeBenito 9b1907
corenet_all_recvfrom_netlabel(pulseaudio_t)
Chris PeBenito 9b1907
corenet_tcp_bind_pulseaudio_port(pulseaudio_t)
Chris PeBenito 9b1907
corenet_tcp_bind_soundd_port(pulseaudio_t)
Chris PeBenito 9b1907
corenet_tcp_sendrecv_generic_if(pulseaudio_t)
Chris PeBenito 9b1907
corenet_tcp_sendrecv_generic_node(pulseaudio_t)
Chris PeBenito 9b1907
corenet_udp_bind_sap_port(pulseaudio_t)
Chris PeBenito 9b1907
corenet_udp_sendrecv_generic_if(pulseaudio_t)
Chris PeBenito 9b1907
corenet_udp_sendrecv_generic_node(pulseaudio_t)
Chris PeBenito 9b1907
Chris PeBenito 9b1907
dev_read_sound(pulseaudio_t)
Chris PeBenito 9b1907
dev_write_sound(pulseaudio_t)
Chris PeBenito 9b1907
dev_read_sysfs(pulseaudio_t)
Chris PeBenito 9b1907
dev_read_urand(pulseaudio_t)
Chris PeBenito 9b1907
Chris PeBenito 9b1907
files_read_etc_files(pulseaudio_t)
Chris PeBenito 9b1907
files_read_usr_files(pulseaudio_t)
Chris PeBenito 9b1907
Chris PeBenito 9b1907
fs_rw_anon_inodefs_files(pulseaudio_t)
Chris PeBenito 9b1907
fs_getattr_tmpfs(pulseaudio_t)
Chris PeBenito a3dd14
fs_list_inotifyfs(pulseaudio_t)
Chris PeBenito 9b1907
Chris PeBenito c3c753
term_use_all_ttys(pulseaudio_t)
Chris PeBenito c3c753
term_use_all_ptys(pulseaudio_t)
Chris PeBenito 9b1907
Chris PeBenito 9b1907
auth_use_nsswitch(pulseaudio_t)
Chris PeBenito 9b1907
Chris PeBenito 9b1907
logging_send_syslog_msg(pulseaudio_t)
Chris PeBenito 9b1907
Chris PeBenito 9b1907
miscfiles_read_localization(pulseaudio_t)
Chris PeBenito 1db183
Chris PeBenito 9b1907
optional_policy(`
Dan Walsh b36c20
	alsa_read_rw_config(pulseaudio_t)
Dan Walsh b36c20
')
Dan Walsh b36c20
Dan Walsh b36c20
optional_policy(`
Chris PeBenito 6f30d7
	bluetooth_stream_connect(pulseaudio_t)
Chris PeBenito 6f30d7
')
Chris PeBenito 6f30d7
Chris PeBenito 6f30d7
optional_policy(`
Jeremy Solt 186838
	dbus_system_domain(pulseaudio_t, pulseaudio_exec_t)
Chris PeBenito 9b1907
	dbus_system_bus_client(pulseaudio_t)
Chris PeBenito 9b1907
	dbus_session_bus_client(pulseaudio_t)
Chris PeBenito 6f30d7
	dbus_connect_session_bus(pulseaudio_t)
Chris PeBenito 9b1907
Chris PeBenito 9b1907
	optional_policy(`
Chris PeBenito 9b1907
		consolekit_dbus_chat(pulseaudio_t)
Chris PeBenito 9b1907
	')
Chris PeBenito 9b1907
Chris PeBenito 9b1907
	optional_policy(`
Chris PeBenito 9b1907
		hal_dbus_chat(pulseaudio_t)
Chris PeBenito 9b1907
	')
Chris PeBenito a3dd14
Chris PeBenito a3dd14
	optional_policy(`
Chris PeBenito a3dd14
		policykit_dbus_chat(pulseaudio_t)
Chris PeBenito a3dd14
	')
Chris PeBenito a3dd14
Chris PeBenito a3dd14
	optional_policy(`
Chris PeBenito a3dd14
		rpm_dbus_chat(pulseaudio_t)
Chris PeBenito a3dd14
	')
Chris PeBenito 9b1907
')
Chris PeBenito 9b1907
Chris PeBenito 9b1907
optional_policy(`
Jeremy Solt 186838
	rtkit_scheduled(pulseaudio_t)
Jeremy Solt 186838
')
Jeremy Solt 186838
Jeremy Solt 186838
optional_policy(`
Dan Walsh 3eaa99
	mpd_read_tmpfs_files(pulseaudio_t)
Dan Walsh 3eaa99
')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
optional_policy(`
Chris PeBenito 9b1907
	policykit_domtrans_auth(pulseaudio_t)
Chris PeBenito 9b1907
	policykit_read_lib(pulseaudio_t)
Chris PeBenito 9b1907
	policykit_read_reload(pulseaudio_t)
Chris PeBenito 9b1907
')
Chris PeBenito 9b1907
Chris PeBenito 9b1907
optional_policy(`
Chris PeBenito 1fd3a8
	udev_read_state(pulseaudio_t)
Chris PeBenito 9b1907
	udev_read_db(pulseaudio_t)
Chris PeBenito 9b1907
')
Chris PeBenito 9b1907
Chris PeBenito 9b1907
optional_policy(`
Jeremy Solt 186838
	xserver_stream_connect(pulseaudio_t)
Chris PeBenito 9b1907
	xserver_manage_xdm_tmp_files(pulseaudio_t)
Chris PeBenito 9b1907
	xserver_read_xdm_lib_files(pulseaudio_t)
Jeremy Solt 186838
	xserver_read_xdm_pid(pulseaudio_t)
Jeremy Solt 186838
	xserver_user_x_domain_template(pulseaudio, pulseaudio_t, pulseaudio_tmpfs_t)
Chris PeBenito 9b1907
')
Dan Walsh 3eaa99
Dan Walsh 3eaa99
optional_policy(`
Dan Walsh 3eaa99
	sandbox_manage_tmpfs_files(pulseaudio_t)
Dan Walsh 3eaa99
')