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