Chris PeBenito 17de1b7
Chris PeBenito 21673b2
policy_module(hal, 1.12.1)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
########################################
Chris PeBenito 17de1b7
#
Chris PeBenito 17de1b7
# Declarations
Chris PeBenito 17de1b7
#
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
type hald_t;
Chris PeBenito 17de1b7
type hald_exec_t;
Chris PeBenito 0bfccda
init_daemon_domain(hald_t, hald_exec_t)
Chris PeBenito 17de1b7
Chris PeBenito 12217cc
type hald_acl_t;
Chris PeBenito 12217cc
type hald_acl_exec_t;
Chris PeBenito 12217cc
domain_type(hald_acl_t)
Chris PeBenito 0bfccda
domain_entry_file(hald_acl_t, hald_acl_exec_t)
Chris PeBenito 12217cc
role system_r types hald_acl_t;
Chris PeBenito 12217cc
Chris PeBenito 12217cc
type hald_cache_t;
Chris PeBenito 12217cc
files_pid_file(hald_cache_t)
Chris PeBenito 12217cc
Chris PeBenito 9de7c17
type hald_dccm_t;
Chris PeBenito 9de7c17
type hald_dccm_exec_t;
Chris PeBenito 9de7c17
domain_type(hald_dccm_t)
Chris PeBenito 9de7c17
domain_entry_file(hald_dccm_t, hald_dccm_exec_t)
Chris PeBenito 9de7c17
role system_r types hald_dccm_t;
Chris PeBenito 9de7c17
Chris PeBenito 016e5c5
type hald_keymap_t;
Chris PeBenito 016e5c5
type hald_keymap_exec_t;
Chris PeBenito 016e5c5
domain_type(hald_keymap_t)
Chris PeBenito 0bfccda
domain_entry_file(hald_keymap_t, hald_keymap_exec_t)
Chris PeBenito 016e5c5
role system_r types hald_keymap_t;
Chris PeBenito 016e5c5
Chris PeBenito 12217cc
type hald_log_t;
Chris PeBenito 7e11b74
logging_log_file(hald_log_t)
Chris PeBenito 12217cc
Chris PeBenito 12217cc
type hald_mac_t;
Chris PeBenito 12217cc
type hald_mac_exec_t;
Chris PeBenito 12217cc
domain_type(hald_mac_t)
Chris PeBenito 0bfccda
domain_entry_file(hald_mac_t, hald_mac_exec_t)
Chris PeBenito 12217cc
role system_r types hald_mac_t;
Chris PeBenito 12217cc
Chris PeBenito 12217cc
type hald_sonypic_t;
Chris PeBenito 12217cc
type hald_sonypic_exec_t;
Chris PeBenito 12217cc
domain_type(hald_sonypic_t)
Chris PeBenito 0bfccda
domain_entry_file(hald_sonypic_t, hald_sonypic_exec_t)
Chris PeBenito 12217cc
role system_r types hald_sonypic_t;
Chris PeBenito 12217cc
Chris PeBenito 17de1b7
type hald_tmp_t;
Chris PeBenito 17de1b7
files_tmp_file(hald_tmp_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
type hald_var_run_t;
Chris PeBenito 17de1b7
files_pid_file(hald_var_run_t)
Chris PeBenito 17de1b7
Chris PeBenito d6d16b9
type hald_var_lib_t;
Chris PeBenito d6d16b9
files_type(hald_var_lib_t)
Chris PeBenito d6d16b9
Chris PeBenito 17de1b7
########################################
Chris PeBenito 17de1b7
#
Chris PeBenito 17de1b7
# Local policy
Chris PeBenito 17de1b7
#
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
# execute openvt which needs setuid
Chris PeBenito c0868a7
allow hald_t self:capability { chown setuid setgid kill net_admin sys_admin sys_nice dac_override dac_read_search mknod sys_rawio sys_tty_config };
Chris PeBenito 12217cc
dontaudit hald_t self:capability {sys_ptrace sys_tty_config };
Chris PeBenito 131634a
allow hald_t self:process { getattr signal_perms };
Chris PeBenito c0868a7
allow hald_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito 17de1b7
allow hald_t self:unix_stream_socket { create_stream_socket_perms connectto };
Chris PeBenito 17de1b7
allow hald_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 17de1b7
allow hald_t self:netlink_kobject_uevent_socket create_socket_perms;
Chris PeBenito 17de1b7
allow hald_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 17de1b7
allow hald_t self:udp_socket create_socket_perms;
Chris PeBenito 17de1b7
# For backwards compatibility with older kernels
Chris PeBenito 17de1b7
allow hald_t self:netlink_socket create_socket_perms;
Chris PeBenito 17de1b7
Chris PeBenito 0bfccda
manage_files_pattern(hald_t, hald_cache_t, hald_cache_t)
Chris PeBenito 12217cc
Chris PeBenito 12217cc
# log files for hald
Chris PeBenito 131634a
manage_files_pattern(hald_t, hald_log_t, hald_log_t)
Chris PeBenito 0bfccda
logging_log_filetrans(hald_t, hald_log_t, file)
Chris PeBenito 12217cc
Chris PeBenito 0bfccda
manage_dirs_pattern(hald_t, hald_tmp_t, hald_tmp_t)
Chris PeBenito 0bfccda
manage_files_pattern(hald_t, hald_tmp_t, hald_tmp_t)
Chris PeBenito 17de1b7
files_tmp_filetrans(hald_t, hald_tmp_t, { file dir })
Chris PeBenito 17de1b7
Chris PeBenito d6d16b9
# var/lib files for hald
Chris PeBenito 0bfccda
manage_dirs_pattern(hald_t, hald_var_lib_t, hald_var_lib_t)
Chris PeBenito 0bfccda
manage_files_pattern(hald_t, hald_var_lib_t, hald_var_lib_t)
Chris PeBenito 0bfccda
manage_sock_files_pattern(hald_t, hald_var_lib_t, hald_var_lib_t)
Chris PeBenito d6d16b9
Chris PeBenito 131634a
manage_dirs_pattern(hald_t, hald_var_run_t, hald_var_run_t)
Chris PeBenito 0bfccda
manage_files_pattern(hald_t, hald_var_run_t, hald_var_run_t)
Chris PeBenito 131634a
files_pid_filetrans(hald_t, hald_var_run_t, { dir file })
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
kernel_read_system_state(hald_t)
Chris PeBenito 17de1b7
kernel_read_network_state(hald_t)
Chris PeBenito 016e5c5
kernel_read_software_raid_state(hald_t)
Chris PeBenito 12217cc
kernel_rw_kernel_sysctl(hald_t)
Chris PeBenito 17de1b7
kernel_read_fs_sysctls(hald_t)
Chris PeBenito 12217cc
kernel_rw_irq_sysctls(hald_t)
Chris PeBenito 17de1b7
kernel_rw_vm_sysctls(hald_t)
Chris PeBenito 17de1b7
kernel_write_proc_files(hald_t)
Chris PeBenito 131634a
kernel_setsched(hald_t)
Chris PeBenito 21673b2
kernel_request_load_module(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
auth_read_pam_console_data(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
corecmd_exec_all_executables(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 1900668
corenet_all_recvfrom_unlabeled(hald_t)
Chris PeBenito 1900668
corenet_all_recvfrom_netlabel(hald_t)
Chris PeBenito 668b309
corenet_tcp_sendrecv_generic_if(hald_t)
Chris PeBenito 668b309
corenet_udp_sendrecv_generic_if(hald_t)
Chris PeBenito c126214
corenet_tcp_sendrecv_generic_node(hald_t)
Chris PeBenito c126214
corenet_udp_sendrecv_generic_node(hald_t)
Chris PeBenito 17de1b7
corenet_tcp_sendrecv_all_ports(hald_t)
Chris PeBenito 17de1b7
corenet_udp_sendrecv_all_ports(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
dev_rw_usbfs(hald_t)
Chris PeBenito 17de1b7
dev_read_urand(hald_t)
Chris PeBenito 17de1b7
dev_read_input(hald_t)
Chris PeBenito 17de1b7
dev_read_mouse(hald_t)
Chris PeBenito 17de1b7
dev_rw_printer(hald_t)
Chris PeBenito 17de1b7
dev_read_lvm_control(hald_t)
Chris PeBenito 17de1b7
dev_getattr_all_chr_files(hald_t)
Chris PeBenito 17de1b7
dev_manage_generic_chr_files(hald_t)
Chris PeBenito 17de1b7
dev_rw_generic_usb_dev(hald_t)
Chris PeBenito 17de1b7
dev_setattr_generic_usb_dev(hald_t)
Chris PeBenito 17de1b7
dev_setattr_usbfs_files(hald_t)
Chris PeBenito d9845ae
dev_rw_power_management(hald_t)
Chris PeBenito 131634a
dev_read_raw_memory(hald_t)
Chris PeBenito 17de1b7
# hal is now execing pm-suspend
Chris PeBenito 17de1b7
dev_rw_sysfs(hald_t)
Chris PeBenito 131634a
dev_read_video_dev(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
domain_use_interactive_fds(hald_t)
Chris PeBenito 5dbda55
domain_read_all_domains_state(hald_t)
Chris PeBenito 12217cc
domain_dontaudit_ptrace_all_domains(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
files_exec_etc_files(hald_t)
Chris PeBenito 17de1b7
files_read_etc_files(hald_t)
Chris PeBenito 17de1b7
files_rw_etc_runtime_files(hald_t)
Chris PeBenito 17de1b7
files_manage_mnt_dirs(hald_t)
Chris PeBenito 17de1b7
files_manage_mnt_files(hald_t)
Chris PeBenito d9845ae
files_manage_mnt_symlinks(hald_t)
Chris PeBenito 17de1b7
files_search_var_lib(hald_t)
Chris PeBenito 17de1b7
files_read_usr_files(hald_t)
Chris PeBenito 17de1b7
# hal is now execing pm-suspend
Chris PeBenito 17de1b7
files_create_boot_flag(hald_t)
Chris PeBenito 17de1b7
files_getattr_all_dirs(hald_t)
Chris PeBenito 9de7c17
files_getattr_all_files(hald_t)
Chris PeBenito 17de1b7
files_read_kernel_img(hald_t)
Chris PeBenito 016e5c5
files_rw_lock_dirs(hald_t)
Chris PeBenito 9de7c17
files_read_generic_pids(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
fs_getattr_all_fs(hald_t)
Chris PeBenito 17de1b7
fs_search_all(hald_t)
Chris PeBenito 12217cc
fs_list_inotifyfs(hald_t)
Chris PeBenito 17de1b7
fs_list_auto_mountpoints(hald_t)
Chris PeBenito 21673b2
fs_mount_dos_fs(hald_t)
Chris PeBenito 21673b2
fs_unmount_dos_fs(hald_t)
Chris PeBenito 21673b2
fs_manage_dos_files(hald_t)
Chris PeBenito 21673b2
fs_manage_fusefs_dirs(hald_t)
Chris PeBenito 21673b2
Chris PeBenito 17de1b7
files_getattr_all_mountpoints(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito f8233ab
mls_file_read_all_levels(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
selinux_get_fs_mount(hald_t)
Chris PeBenito 17de1b7
selinux_validate_context(hald_t)
Chris PeBenito 17de1b7
selinux_compute_access_vector(hald_t)
Chris PeBenito 17de1b7
selinux_compute_create_context(hald_t)
Chris PeBenito 17de1b7
selinux_compute_relabel_context(hald_t)
Chris PeBenito 17de1b7
selinux_compute_user_contexts(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
storage_raw_read_removable_device(hald_t)
Chris PeBenito 17de1b7
storage_raw_write_removable_device(hald_t)
Chris PeBenito 17de1b7
storage_raw_read_fixed_disk(hald_t)
Chris PeBenito 17de1b7
storage_raw_write_fixed_disk(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 693d4ae
# hal_probe_serial causes these
Chris PeBenito 693d4ae
term_setattr_unallocated_ttys(hald_t)
Chris PeBenito 693d4ae
term_dontaudit_use_unallocated_ttys(hald_t)
Chris PeBenito 693d4ae
Chris PeBenito 17de1b7
auth_use_nsswitch(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 131634a
fstools_getattr_swap_files(hald_t)
Chris PeBenito 131634a
Chris PeBenito 17de1b7
init_domtrans_script(hald_t)
Chris PeBenito 17de1b7
init_read_utmp(hald_t)
Chris PeBenito 17de1b7
#hal runs shutdown, probably need a shutdown domain
Chris PeBenito 17de1b7
init_rw_utmp(hald_t)
Chris PeBenito 12217cc
init_telinit(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
libs_exec_ld_so(hald_t)
Chris PeBenito 17de1b7
libs_exec_lib_files(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito d5b81a8
logging_send_audit_msgs(hald_t)
Chris PeBenito 17de1b7
logging_send_syslog_msg(hald_t)
Chris PeBenito 17de1b7
logging_search_logs(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
miscfiles_read_localization(hald_t)
Chris PeBenito 17de1b7
miscfiles_read_hwdata(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
modutils_domtrans_insmod(hald_t)
Chris PeBenito 21673b2
modutils_read_module_deps(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
seutil_read_config(hald_t)
Chris PeBenito 17de1b7
seutil_read_default_contexts(hald_t)
Chris PeBenito 016e5c5
seutil_read_file_contexts(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
sysnet_read_config(hald_t)
Chris PeBenito 9de7c17
sysnet_domtrans_dhcpc(hald_t)
Chris PeBenito 21673b2
sysnet_domtrans_ifconfig(hald_t)
Chris PeBenito 21673b2
sysnet_read_dhcp_config(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
userdom_dontaudit_use_unpriv_user_fds(hald_t)
Chris PeBenito 296273a
userdom_dontaudit_search_user_home_dirs(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 016e5c5
	alsa_domtrans(hald_t)
Chris PeBenito 12217cc
	alsa_read_rw_config(hald_t)
Chris PeBenito 12217cc
')
Chris PeBenito 12217cc
Chris PeBenito 12217cc
optional_policy(`
Chris PeBenito 4655103
	bootloader_domtrans(hald_t)
Chris PeBenito 4655103
')
Chris PeBenito 4655103
Chris PeBenito 4655103
optional_policy(`
Chris PeBenito 17de1b7
	# For /usr/libexec/hald-addon-acpi
Chris PeBenito 17de1b7
	# writes to /var/run/acpid.socket
Chris PeBenito 17de1b7
	apm_stream_connect(hald_t)
Chris PeBenito 17de1b7
')
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 17de1b7
	bind_search_cache(hald_t)
Chris PeBenito 17de1b7
')
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 4655103
	bluetooth_domtrans(hald_t)
Chris PeBenito 4655103
')
Chris PeBenito 4655103
Chris PeBenito 4655103
optional_policy(`
Chris PeBenito 17de1b7
	clock_domtrans(hald_t)
Chris PeBenito 17de1b7
')
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 17de1b7
	cups_domtrans_config(hald_t)
Chris PeBenito 17de1b7
	cups_signal_config(hald_t)
Chris PeBenito 17de1b7
')
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 296273a
	dbus_system_bus_client(hald_t)
Chris PeBenito 17de1b7
	dbus_connect_system_bus(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
	init_dbus_chat_script(hald_t)
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
	optional_policy(`
Chris PeBenito 17de1b7
		networkmanager_dbus_chat(hald_t)
Chris PeBenito 17de1b7
	')
Chris PeBenito 17de1b7
')
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 17de1b7
	# For /usr/libexec/hald-probe-smbios
Chris PeBenito 17de1b7
	dmidecode_domtrans(hald_t)
Chris PeBenito 17de1b7
')
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 131634a
	gpm_dontaudit_getattr_gpmctl(hald_t)
Chris PeBenito 131634a
')
Chris PeBenito 131634a
Chris PeBenito 131634a
optional_policy(`
Chris PeBenito 17de1b7
	hotplug_read_config(hald_t)
Chris PeBenito 17de1b7
')
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 17de1b7
	lvm_domtrans(hald_t)
Chris PeBenito 17de1b7
')
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 17de1b7
	mount_domtrans(hald_t)
Chris PeBenito 17de1b7
')
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 6073ea1
	ntp_domtrans(hald_t)
Chris PeBenito 17de1b7
')
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 17de1b7
	pcmcia_manage_pid(hald_t)
Chris PeBenito 17de1b7
	pcmcia_manage_pid_chr_files(hald_t)
Chris PeBenito 17de1b7
')
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 131634a
	podsleuth_domtrans(hald_t)
Chris PeBenito 131634a
')
Chris PeBenito 131634a
Chris PeBenito 131634a
optional_policy(`
Chris PeBenito 9de7c17
	ppp_read_rw_config(hald_t)
Chris PeBenito 9de7c17
')
Chris PeBenito 9de7c17
Chris PeBenito 9de7c17
optional_policy(`
Chris PeBenito 21673b2
        policykit_dbus_chat(hald_t)
Chris PeBenito 9de7c17
	policykit_domtrans_auth(hald_t)
Chris PeBenito 9de7c17
	policykit_domtrans_resolve(hald_t)
Chris PeBenito 9de7c17
	policykit_read_lib(hald_t)
Chris PeBenito 9de7c17
	policykit_read_reload(hald_t)
Chris PeBenito 9de7c17
')
Chris PeBenito 9de7c17
Chris PeBenito 9de7c17
optional_policy(`
Chris PeBenito 17de1b7
	rpc_search_nfs_state_data(hald_t)
Chris PeBenito 17de1b7
')
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 17de1b7
	seutil_sigchld_newrole(hald_t)
Chris PeBenito 17de1b7
')
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 17de1b7
	udev_domtrans(hald_t)
Chris PeBenito 17de1b7
	udev_read_db(hald_t)
Chris PeBenito 17de1b7
')
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 17de1b7
	updfstab_domtrans(hald_t)
Chris PeBenito 17de1b7
')
Chris PeBenito 17de1b7
Chris PeBenito 17de1b7
optional_policy(`
Chris PeBenito 17de1b7
	vbetool_domtrans(hald_t)
Chris PeBenito 17de1b7
')
Chris PeBenito 12217cc
Chris PeBenito fcee22a
optional_policy(`
Chris PeBenito fcee22a
	virt_manage_images(hald_t)
Chris PeBenito fcee22a
')
Chris PeBenito fcee22a
Chris PeBenito 12217cc
########################################
Chris PeBenito 12217cc
#
Chris PeBenito 12217cc
# Hal acl local policy
Chris PeBenito 12217cc
#
Chris PeBenito 12217cc
Chris PeBenito 9de7c17
allow hald_acl_t self:capability { dac_override fowner sys_resource };
Chris PeBenito 131634a
allow hald_acl_t self:process { getattr signal };
Chris PeBenito 131634a
allow hald_acl_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito 12217cc
Chris PeBenito 12217cc
domtrans_pattern(hald_t, hald_acl_exec_t, hald_acl_t)
Chris PeBenito 12217cc
allow hald_t hald_acl_t:process signal;
Chris PeBenito 12217cc
allow hald_acl_t hald_t:unix_stream_socket connectto;
Chris PeBenito 12217cc
Chris PeBenito 0bfccda
manage_dirs_pattern(hald_acl_t, hald_var_lib_t, hald_var_lib_t)
Chris PeBenito 0bfccda
manage_files_pattern(hald_acl_t, hald_var_lib_t, hald_var_lib_t)
Chris PeBenito 12217cc
files_search_var_lib(hald_acl_t)
Chris PeBenito 12217cc
Chris PeBenito 131634a
manage_dirs_pattern(hald_acl_t, hald_var_run_t, hald_var_run_t)
Chris PeBenito 131634a
manage_files_pattern(hald_acl_t, hald_var_run_t, hald_var_run_t)
Chris PeBenito 131634a
files_pid_filetrans(hald_acl_t, hald_var_run_t, { dir file })
Chris PeBenito 131634a
Chris PeBenito 12217cc
corecmd_exec_bin(hald_acl_t)
Chris PeBenito 12217cc
Chris PeBenito 12217cc
dev_getattr_all_chr_files(hald_acl_t)
Chris PeBenito 131634a
dev_setattr_all_chr_files(hald_acl_t)
Chris PeBenito 016e5c5
dev_getattr_generic_usb_dev(hald_acl_t)
Chris PeBenito 016e5c5
dev_getattr_video_dev(hald_acl_t)
Chris PeBenito 12217cc
dev_setattr_video_dev(hald_acl_t)
Chris PeBenito 016e5c5
dev_getattr_sound_dev(hald_acl_t)
Chris PeBenito 12217cc
dev_setattr_sound_dev(hald_acl_t)
Chris PeBenito 12217cc
dev_setattr_generic_usb_dev(hald_acl_t)
Chris PeBenito 12217cc
dev_setattr_usbfs_files(hald_acl_t)
Chris PeBenito 12217cc
Chris PeBenito 12217cc
files_read_usr_files(hald_acl_t)
Chris PeBenito 12217cc
files_read_etc_files(hald_acl_t)
Chris PeBenito 12217cc
Chris PeBenito 21673b2
fs_getattr_all_fs(hald_acl_t)
Chris PeBenito 21673b2
Chris PeBenito 12217cc
storage_getattr_removable_dev(hald_acl_t)
Chris PeBenito 12217cc
storage_setattr_removable_dev(hald_acl_t)
Chris PeBenito 9de7c17
storage_getattr_fixed_disk_dev(hald_acl_t)
Chris PeBenito 9de7c17
storage_setattr_fixed_disk_dev(hald_acl_t)
Chris PeBenito 12217cc
Chris PeBenito 12217cc
auth_use_nsswitch(hald_acl_t)
Chris PeBenito 12217cc
Chris PeBenito fcee22a
logging_send_syslog_msg(hald_acl_t)
Chris PeBenito fcee22a
Chris PeBenito 12217cc
miscfiles_read_localization(hald_acl_t)
Chris PeBenito 12217cc
Chris PeBenito 9de7c17
optional_policy(`
Chris PeBenito 21673b2
        policykit_dbus_chat(hald_acl_t)
Chris PeBenito 9de7c17
	policykit_domtrans_auth(hald_acl_t)
Chris PeBenito 9de7c17
	policykit_read_lib(hald_acl_t)
Chris PeBenito 9de7c17
	policykit_read_reload(hald_acl_t)
Chris PeBenito 9de7c17
')
Chris PeBenito 9de7c17
Chris PeBenito 12217cc
########################################
Chris PeBenito 12217cc
#
Chris PeBenito 12217cc
# Local hald mac policy
Chris PeBenito 12217cc
#
Chris PeBenito 12217cc
Chris PeBenito 9de7c17
allow hald_mac_t self:capability { setgid setuid sys_admin };
Chris PeBenito fcee22a
Chris PeBenito 12217cc
domtrans_pattern(hald_t, hald_mac_exec_t, hald_mac_t)
Chris PeBenito 12217cc
allow hald_t hald_mac_t:process signal;
Chris PeBenito 12217cc
allow hald_mac_t hald_t:unix_stream_socket connectto;
Chris PeBenito 12217cc
Chris PeBenito 0bfccda
manage_dirs_pattern(hald_mac_t, hald_var_lib_t, hald_var_lib_t)
Chris PeBenito 0bfccda
manage_files_pattern(hald_mac_t, hald_var_lib_t, hald_var_lib_t)
Chris PeBenito 12217cc
files_search_var_lib(hald_mac_t)
Chris PeBenito 12217cc
Chris PeBenito fcee22a
write_files_pattern(hald_mac_t, hald_log_t, hald_log_t)
Chris PeBenito fcee22a
Chris PeBenito 131634a
kernel_read_system_state(hald_mac_t)
Chris PeBenito 131634a
Chris PeBenito 131634a
dev_read_raw_memory(hald_mac_t)
Chris PeBenito 12217cc
dev_write_raw_memory(hald_mac_t)
Chris PeBenito 131634a
dev_read_sysfs(hald_mac_t)
Chris PeBenito 12217cc
Chris PeBenito 12217cc
files_read_usr_files(hald_mac_t)
Chris PeBenito fcee22a
files_read_etc_files(hald_mac_t)
Chris PeBenito fcee22a
Chris PeBenito fcee22a
auth_use_nsswitch(hald_mac_t)
Chris PeBenito 12217cc
Chris PeBenito 9de7c17
logging_send_syslog_msg(hald_mac_t)
Chris PeBenito 9de7c17
Chris PeBenito 12217cc
miscfiles_read_localization(hald_mac_t)
Chris PeBenito 12217cc
Chris PeBenito 12217cc
########################################
Chris PeBenito 12217cc
#
Chris PeBenito 12217cc
# Local hald sonypic policy
Chris PeBenito 12217cc
#
Chris PeBenito 12217cc
Chris PeBenito 12217cc
domtrans_pattern(hald_t, hald_sonypic_exec_t, hald_sonypic_t)
Chris PeBenito 12217cc
allow hald_t hald_sonypic_t:process signal;
Chris PeBenito 12217cc
allow hald_sonypic_t hald_t:unix_stream_socket connectto;
Chris PeBenito 12217cc
Chris PeBenito 12217cc
dev_read_video_dev(hald_sonypic_t)
Chris PeBenito 12217cc
dev_write_video_dev(hald_sonypic_t)
Chris PeBenito 12217cc
Chris PeBenito 0bfccda
manage_dirs_pattern(hald_sonypic_t, hald_var_lib_t, hald_var_lib_t)
Chris PeBenito 0bfccda
manage_files_pattern(hald_sonypic_t, hald_var_lib_t, hald_var_lib_t)
Chris PeBenito 12217cc
files_search_var_lib(hald_sonypic_t)
Chris PeBenito 12217cc
Chris PeBenito fcee22a
write_files_pattern(hald_sonypic_t, hald_log_t, hald_log_t)
Chris PeBenito fcee22a
Chris PeBenito 12217cc
files_read_usr_files(hald_sonypic_t)
Chris PeBenito 12217cc
Chris PeBenito 12217cc
miscfiles_read_localization(hald_sonypic_t)
Chris PeBenito 12217cc
Chris PeBenito 016e5c5
########################################
Chris PeBenito 016e5c5
#
Chris PeBenito 016e5c5
# Hal keymap local policy
Chris PeBenito 016e5c5
#
Chris PeBenito 016e5c5
Chris PeBenito 016e5c5
domtrans_pattern(hald_t, hald_keymap_exec_t, hald_keymap_t)
Chris PeBenito 016e5c5
allow hald_t hald_keymap_t:process signal;
Chris PeBenito 016e5c5
allow hald_keymap_t hald_t:unix_stream_socket connectto;
Chris PeBenito 016e5c5
Chris PeBenito 0bfccda
manage_dirs_pattern(hald_keymap_t, hald_var_lib_t, hald_var_lib_t)
Chris PeBenito 0bfccda
manage_files_pattern(hald_keymap_t, hald_var_lib_t, hald_var_lib_t)
Chris PeBenito 016e5c5
files_search_var_lib(hald_keymap_t)
Chris PeBenito 016e5c5
Chris PeBenito fcee22a
write_files_pattern(hald_keymap_t, hald_log_t, hald_log_t)
Chris PeBenito fcee22a
Chris PeBenito 016e5c5
dev_rw_input_dev(hald_keymap_t)
Chris PeBenito 016e5c5
Chris PeBenito 9de7c17
files_read_etc_files(hald_keymap_t)
Chris PeBenito 016e5c5
files_read_usr_files(hald_keymap_t)
Chris PeBenito 016e5c5
Chris PeBenito 016e5c5
miscfiles_read_localization(hald_keymap_t)
Chris PeBenito 9de7c17
Chris PeBenito 9de7c17
########################################
Chris PeBenito 9de7c17
#
Chris PeBenito 9de7c17
# Local hald dccm policy
Chris PeBenito 9de7c17
#
Chris PeBenito 9de7c17
Chris PeBenito 21673b2
allow hald_dccm_t self:capability { chown net_bind_service };
Chris PeBenito 9de7c17
allow hald_dccm_t self:process getsched;
Chris PeBenito 21673b2
allow hald_dccm_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito 9de7c17
allow hald_dccm_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 9de7c17
allow hald_dccm_t self:udp_socket create_socket_perms;
Chris PeBenito 9de7c17
allow hald_dccm_t self:netlink_route_socket rw_netlink_socket_perms;
Chris PeBenito 9de7c17
Chris PeBenito 9de7c17
domtrans_pattern(hald_t, hald_dccm_exec_t, hald_dccm_t)
Chris PeBenito 9de7c17
allow hald_t hald_dccm_t:process signal;
Chris PeBenito 9de7c17
allow hald_dccm_t hald_t:unix_stream_socket connectto;
Chris PeBenito 9de7c17
Chris PeBenito 9de7c17
manage_dirs_pattern(hald_dccm_t, hald_var_lib_t, hald_var_lib_t)
Chris PeBenito 9de7c17
manage_files_pattern(hald_dccm_t, hald_var_lib_t, hald_var_lib_t)
Chris PeBenito 9de7c17
files_search_var_lib(hald_dccm_t)
Chris PeBenito 9de7c17
Chris PeBenito 21673b2
manage_dirs_pattern(hald_dccm_t, hald_var_run_t, hald_var_run_t)
Chris PeBenito 21673b2
manage_files_pattern(hald_dccm_t, hald_var_run_t, hald_var_run_t)
Chris PeBenito 21673b2
manage_sock_files_pattern(hald_dccm_t, hald_var_run_t, hald_var_run_t)
Chris PeBenito 21673b2
files_pid_filetrans(hald_dccm_t, hald_var_run_t, { dir file sock_file })
Chris PeBenito 21673b2
Chris PeBenito 21673b2
manage_sock_files_pattern(hald_dccm_t, hald_tmp_t, hald_tmp_t)
Chris PeBenito 21673b2
files_tmp_filetrans(hald_dccm_t, hald_tmp_t, sock_file)
Chris PeBenito 21673b2
Chris PeBenito 9de7c17
write_files_pattern(hald_dccm_t, hald_log_t, hald_log_t)
Chris PeBenito 9de7c17
Chris PeBenito 9de7c17
kernel_search_network_sysctl(hald_dccm_t)
Chris PeBenito 9de7c17
Chris PeBenito 21673b2
dev_read_urand(hald_dccm_t)
Chris PeBenito 21673b2
Chris PeBenito 9de7c17
corenet_all_recvfrom_unlabeled(hald_dccm_t)
Chris PeBenito 9de7c17
corenet_all_recvfrom_netlabel(hald_dccm_t)
Chris PeBenito 9de7c17
corenet_tcp_sendrecv_generic_if(hald_dccm_t)
Chris PeBenito 9de7c17
corenet_udp_sendrecv_generic_if(hald_dccm_t)
Chris PeBenito 9de7c17
corenet_tcp_sendrecv_generic_node(hald_dccm_t)
Chris PeBenito 9de7c17
corenet_udp_sendrecv_generic_node(hald_dccm_t)
Chris PeBenito 9de7c17
corenet_tcp_sendrecv_all_ports(hald_dccm_t)
Chris PeBenito 9de7c17
corenet_udp_sendrecv_all_ports(hald_dccm_t)
Chris PeBenito 9de7c17
corenet_tcp_bind_generic_node(hald_dccm_t)
Chris PeBenito 9de7c17
corenet_udp_bind_generic_node(hald_dccm_t)
Chris PeBenito 9de7c17
corenet_udp_bind_dhcpc_port(hald_dccm_t)
Chris PeBenito 21673b2
corenet_tcp_bind_ftp_port(hald_dccm_t)
Chris PeBenito 9de7c17
corenet_tcp_bind_dccm_port(hald_dccm_t)
Chris PeBenito 9de7c17
Chris PeBenito 9de7c17
logging_send_syslog_msg(hald_dccm_t)
Chris PeBenito 9de7c17
Chris PeBenito 9de7c17
files_read_usr_files(hald_dccm_t)
Chris PeBenito 9de7c17
Chris PeBenito 9de7c17
miscfiles_read_localization(hald_dccm_t)
Chris PeBenito 21673b2
Chris PeBenito 21673b2
hal_dontaudit_rw_dgram_sockets(hald_dccm_t)
Chris PeBenito 21673b2
Chris PeBenito 21673b2
optional_policy(`
Chris PeBenito 21673b2
	dbus_system_bus_client(hald_dccm_t)
Chris PeBenito 21673b2
')