2010-05-24 19:32:01 +00:00
|
|
|
policy_module(hal, 1.13.0)
|
2005-09-02 20:29:52 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type hald_t;
|
|
|
|
type hald_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
init_daemon_domain(hald_t, hald_exec_t)
|
2005-09-02 20:29:52 +00:00
|
|
|
|
2007-05-07 17:57:48 +00:00
|
|
|
type hald_acl_t;
|
|
|
|
type hald_acl_exec_t;
|
|
|
|
domain_type(hald_acl_t)
|
2008-07-23 21:38:39 +00:00
|
|
|
domain_entry_file(hald_acl_t, hald_acl_exec_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
role system_r types hald_acl_t;
|
|
|
|
|
|
|
|
type hald_cache_t;
|
|
|
|
files_pid_file(hald_cache_t)
|
|
|
|
|
2009-07-27 14:18:50 +00:00
|
|
|
type hald_dccm_t;
|
|
|
|
type hald_dccm_exec_t;
|
|
|
|
domain_type(hald_dccm_t)
|
|
|
|
domain_entry_file(hald_dccm_t, hald_dccm_exec_t)
|
|
|
|
role system_r types hald_dccm_t;
|
|
|
|
|
2007-09-05 14:48:21 +00:00
|
|
|
type hald_keymap_t;
|
|
|
|
type hald_keymap_exec_t;
|
|
|
|
domain_type(hald_keymap_t)
|
2008-07-23 21:38:39 +00:00
|
|
|
domain_entry_file(hald_keymap_t, hald_keymap_exec_t)
|
2007-09-05 14:48:21 +00:00
|
|
|
role system_r types hald_keymap_t;
|
|
|
|
|
2007-05-07 17:57:48 +00:00
|
|
|
type hald_log_t;
|
2008-04-18 16:04:15 +00:00
|
|
|
logging_log_file(hald_log_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
|
|
|
|
type hald_mac_t;
|
|
|
|
type hald_mac_exec_t;
|
|
|
|
domain_type(hald_mac_t)
|
2008-07-23 21:38:39 +00:00
|
|
|
domain_entry_file(hald_mac_t, hald_mac_exec_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
role system_r types hald_mac_t;
|
|
|
|
|
|
|
|
type hald_sonypic_t;
|
|
|
|
type hald_sonypic_exec_t;
|
|
|
|
domain_type(hald_sonypic_t)
|
2008-07-23 21:38:39 +00:00
|
|
|
domain_entry_file(hald_sonypic_t, hald_sonypic_exec_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
role system_r types hald_sonypic_t;
|
|
|
|
|
2005-09-02 20:29:52 +00:00
|
|
|
type hald_tmp_t;
|
|
|
|
files_tmp_file(hald_tmp_t)
|
|
|
|
|
|
|
|
type hald_var_run_t;
|
|
|
|
files_pid_file(hald_var_run_t)
|
|
|
|
|
2006-12-04 20:10:56 +00:00
|
|
|
type hald_var_lib_t;
|
|
|
|
files_type(hald_var_lib_t)
|
|
|
|
|
2010-08-26 13:41:21 +00:00
|
|
|
typealias hald_log_t alias pmtools_log_t;
|
|
|
|
typealias hald_var_run_t alias pmtools_var_run_t;
|
|
|
|
|
2005-09-19 21:17:45 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
2005-12-13 20:38:19 +00:00
|
|
|
# execute openvt which needs setuid
|
2006-12-12 20:08:08 +00:00
|
|
|
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 };
|
2007-05-07 17:57:48 +00:00
|
|
|
dontaudit hald_t self:capability {sys_ptrace sys_tty_config };
|
2010-05-18 13:06:36 +00:00
|
|
|
allow hald_t self:process { getsched getattr signal_perms };
|
2006-12-12 20:08:08 +00:00
|
|
|
allow hald_t self:fifo_file rw_fifo_file_perms;
|
2005-09-13 13:06:07 +00:00
|
|
|
allow hald_t self:unix_stream_socket { create_stream_socket_perms connectto };
|
2005-09-02 20:29:52 +00:00
|
|
|
allow hald_t self:unix_dgram_socket create_socket_perms;
|
2005-09-13 13:06:07 +00:00
|
|
|
allow hald_t self:netlink_kobject_uevent_socket create_socket_perms;
|
2005-09-02 20:29:52 +00:00
|
|
|
allow hald_t self:tcp_socket create_stream_socket_perms;
|
2005-10-24 17:06:34 +00:00
|
|
|
allow hald_t self:udp_socket create_socket_perms;
|
2005-09-13 13:06:07 +00:00
|
|
|
# For backwards compatibility with older kernels
|
|
|
|
allow hald_t self:netlink_socket create_socket_perms;
|
2005-09-02 20:29:52 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern(hald_t, hald_cache_t, hald_cache_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
|
|
|
|
# log files for hald
|
2008-06-17 14:07:44 +00:00
|
|
|
manage_files_pattern(hald_t, hald_log_t, hald_log_t)
|
2008-07-23 21:38:39 +00:00
|
|
|
logging_log_filetrans(hald_t, hald_log_t, file)
|
2007-05-07 17:57:48 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(hald_t, hald_tmp_t, hald_tmp_t)
|
|
|
|
manage_files_pattern(hald_t, hald_tmp_t, hald_tmp_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
files_tmp_filetrans(hald_t, hald_tmp_t, { file dir })
|
2005-09-02 20:29:52 +00:00
|
|
|
|
2006-12-04 20:10:56 +00:00
|
|
|
# var/lib files for hald
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(hald_t, hald_var_lib_t, hald_var_lib_t)
|
|
|
|
manage_files_pattern(hald_t, hald_var_lib_t, hald_var_lib_t)
|
|
|
|
manage_sock_files_pattern(hald_t, hald_var_lib_t, hald_var_lib_t)
|
2006-12-04 20:10:56 +00:00
|
|
|
|
2008-06-17 14:07:44 +00:00
|
|
|
manage_dirs_pattern(hald_t, hald_var_run_t, hald_var_run_t)
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_files_pattern(hald_t, hald_var_run_t, hald_var_run_t)
|
2008-06-17 14:07:44 +00:00
|
|
|
files_pid_filetrans(hald_t, hald_var_run_t, { dir file })
|
2005-09-02 20:29:52 +00:00
|
|
|
|
|
|
|
kernel_read_system_state(hald_t)
|
|
|
|
kernel_read_network_state(hald_t)
|
2007-09-05 14:48:21 +00:00
|
|
|
kernel_read_software_raid_state(hald_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
kernel_rw_kernel_sysctl(hald_t)
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_fs_sysctls(hald_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
kernel_rw_irq_sysctls(hald_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
kernel_rw_vm_sysctls(hald_t)
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_write_proc_files(hald_t)
|
2010-08-26 13:41:21 +00:00
|
|
|
kernel_rw_net_sysctls(hald_t)
|
2008-06-17 14:07:44 +00:00
|
|
|
kernel_setsched(hald_t)
|
2010-02-11 13:42:00 +00:00
|
|
|
kernel_request_load_module(hald_t)
|
2005-09-02 20:29:52 +00:00
|
|
|
|
2006-04-12 15:04:28 +00:00
|
|
|
auth_read_pam_console_data(hald_t)
|
2006-01-17 17:50:10 +00:00
|
|
|
|
2006-04-19 21:43:02 +00:00
|
|
|
corecmd_exec_all_executables(hald_t)
|
2005-12-09 15:42:39 +00:00
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(hald_t)
|
|
|
|
corenet_all_recvfrom_netlabel(hald_t)
|
2009-01-06 20:24:10 +00:00
|
|
|
corenet_tcp_sendrecv_generic_if(hald_t)
|
|
|
|
corenet_udp_sendrecv_generic_if(hald_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_tcp_sendrecv_generic_node(hald_t)
|
|
|
|
corenet_udp_sendrecv_generic_node(hald_t)
|
2005-09-02 20:29:52 +00:00
|
|
|
corenet_tcp_sendrecv_all_ports(hald_t)
|
2005-10-24 17:06:34 +00:00
|
|
|
corenet_udp_sendrecv_all_ports(hald_t)
|
2005-09-02 20:29:52 +00:00
|
|
|
|
2005-09-19 21:17:45 +00:00
|
|
|
dev_rw_usbfs(hald_t)
|
2010-05-18 13:06:36 +00:00
|
|
|
dev_read_rand(hald_t)
|
2005-09-02 20:29:52 +00:00
|
|
|
dev_read_urand(hald_t)
|
|
|
|
dev_read_input(hald_t)
|
2005-09-16 13:36:26 +00:00
|
|
|
dev_read_mouse(hald_t)
|
2005-09-02 20:29:52 +00:00
|
|
|
dev_rw_printer(hald_t)
|
2005-09-19 21:17:45 +00:00
|
|
|
dev_read_lvm_control(hald_t)
|
2005-09-16 13:36:26 +00:00
|
|
|
dev_getattr_all_chr_files(hald_t)
|
2006-01-31 16:08:56 +00:00
|
|
|
dev_manage_generic_chr_files(hald_t)
|
2010-08-26 13:41:21 +00:00
|
|
|
dev_manage_generic_blk_files(hald_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
dev_rw_generic_usb_dev(hald_t)
|
2006-04-12 16:58:23 +00:00
|
|
|
dev_setattr_generic_usb_dev(hald_t)
|
|
|
|
dev_setattr_usbfs_files(hald_t)
|
2006-10-31 21:01:48 +00:00
|
|
|
dev_rw_power_management(hald_t)
|
2008-06-17 14:07:44 +00:00
|
|
|
dev_read_raw_memory(hald_t)
|
2005-12-09 15:42:39 +00:00
|
|
|
# hal is now execing pm-suspend
|
|
|
|
dev_rw_sysfs(hald_t)
|
2008-06-17 14:07:44 +00:00
|
|
|
dev_read_video_dev(hald_t)
|
2005-12-09 15:42:39 +00:00
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(hald_t)
|
2006-09-04 15:15:35 +00:00
|
|
|
domain_read_all_domains_state(hald_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
domain_dontaudit_ptrace_all_domains(hald_t)
|
2005-12-09 15:42:39 +00:00
|
|
|
|
|
|
|
files_exec_etc_files(hald_t)
|
|
|
|
files_read_etc_files(hald_t)
|
|
|
|
files_rw_etc_runtime_files(hald_t)
|
2006-01-11 15:28:14 +00:00
|
|
|
files_manage_mnt_dirs(hald_t)
|
2006-01-17 17:50:10 +00:00
|
|
|
files_manage_mnt_files(hald_t)
|
2006-10-31 21:01:48 +00:00
|
|
|
files_manage_mnt_symlinks(hald_t)
|
2005-12-09 15:42:39 +00:00
|
|
|
files_search_var_lib(hald_t)
|
|
|
|
files_read_usr_files(hald_t)
|
|
|
|
# hal is now execing pm-suspend
|
|
|
|
files_create_boot_flag(hald_t)
|
2006-05-17 14:50:31 +00:00
|
|
|
files_getattr_all_dirs(hald_t)
|
2009-07-27 14:18:50 +00:00
|
|
|
files_getattr_all_files(hald_t)
|
2006-05-19 14:02:24 +00:00
|
|
|
files_read_kernel_img(hald_t)
|
2007-09-05 14:48:21 +00:00
|
|
|
files_rw_lock_dirs(hald_t)
|
2009-07-27 14:18:50 +00:00
|
|
|
files_read_generic_pids(hald_t)
|
2005-09-02 20:29:52 +00:00
|
|
|
|
|
|
|
fs_getattr_all_fs(hald_t)
|
2005-09-19 21:17:45 +00:00
|
|
|
fs_search_all(hald_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
fs_list_inotifyfs(hald_t)
|
2006-02-27 16:23:39 +00:00
|
|
|
fs_list_auto_mountpoints(hald_t)
|
2010-02-11 13:42:00 +00:00
|
|
|
fs_mount_dos_fs(hald_t)
|
|
|
|
fs_unmount_dos_fs(hald_t)
|
|
|
|
fs_manage_dos_files(hald_t)
|
|
|
|
fs_manage_fusefs_dirs(hald_t)
|
2010-05-18 13:06:36 +00:00
|
|
|
fs_rw_removable_blk_files(hald_t)
|
2010-02-11 13:42:00 +00:00
|
|
|
|
2006-04-17 17:32:54 +00:00
|
|
|
files_getattr_all_mountpoints(hald_t)
|
2005-09-02 20:29:52 +00:00
|
|
|
|
2007-08-20 18:26:08 +00:00
|
|
|
mls_file_read_all_levels(hald_t)
|
2006-01-11 15:28:14 +00:00
|
|
|
|
2005-09-16 13:36:26 +00:00
|
|
|
selinux_get_fs_mount(hald_t)
|
|
|
|
selinux_validate_context(hald_t)
|
|
|
|
selinux_compute_access_vector(hald_t)
|
|
|
|
selinux_compute_create_context(hald_t)
|
|
|
|
selinux_compute_relabel_context(hald_t)
|
|
|
|
selinux_compute_user_contexts(hald_t)
|
|
|
|
|
2005-09-02 20:29:52 +00:00
|
|
|
storage_raw_read_removable_device(hald_t)
|
2005-11-23 19:02:40 +00:00
|
|
|
storage_raw_write_removable_device(hald_t)
|
2005-09-02 20:29:52 +00:00
|
|
|
storage_raw_read_fixed_disk(hald_t)
|
|
|
|
storage_raw_write_fixed_disk(hald_t)
|
|
|
|
|
2006-09-25 18:53:06 +00:00
|
|
|
# hal_probe_serial causes these
|
|
|
|
term_setattr_unallocated_ttys(hald_t)
|
2010-05-18 13:06:36 +00:00
|
|
|
term_use_unallocated_ttys(hald_t)
|
2006-09-25 18:53:06 +00:00
|
|
|
|
2006-06-12 21:36:38 +00:00
|
|
|
auth_use_nsswitch(hald_t)
|
|
|
|
|
2008-06-17 14:07:44 +00:00
|
|
|
fstools_getattr_swap_files(hald_t)
|
|
|
|
|
2005-12-13 20:38:19 +00:00
|
|
|
init_domtrans_script(hald_t)
|
2006-01-27 20:13:08 +00:00
|
|
|
init_read_utmp(hald_t)
|
2006-02-13 22:05:08 +00:00
|
|
|
#hal runs shutdown, probably need a shutdown domain
|
|
|
|
init_rw_utmp(hald_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
init_telinit(hald_t)
|
2005-09-02 20:29:52 +00:00
|
|
|
|
|
|
|
libs_exec_ld_so(hald_t)
|
|
|
|
libs_exec_lib_files(hald_t)
|
|
|
|
|
2007-06-12 18:46:14 +00:00
|
|
|
logging_send_audit_msgs(hald_t)
|
2005-09-02 20:29:52 +00:00
|
|
|
logging_send_syslog_msg(hald_t)
|
2006-02-16 19:32:13 +00:00
|
|
|
logging_search_logs(hald_t)
|
2005-09-02 20:29:52 +00:00
|
|
|
|
|
|
|
miscfiles_read_localization(hald_t)
|
2005-10-13 20:59:36 +00:00
|
|
|
miscfiles_read_hwdata(hald_t)
|
2005-09-02 20:29:52 +00:00
|
|
|
|
2006-02-16 19:32:13 +00:00
|
|
|
modutils_domtrans_insmod(hald_t)
|
2010-02-11 13:42:00 +00:00
|
|
|
modutils_read_module_deps(hald_t)
|
2006-02-16 19:32:13 +00:00
|
|
|
|
2005-09-02 20:29:52 +00:00
|
|
|
seutil_read_config(hald_t)
|
|
|
|
seutil_read_default_contexts(hald_t)
|
2007-09-05 14:48:21 +00:00
|
|
|
seutil_read_file_contexts(hald_t)
|
2005-09-02 20:29:52 +00:00
|
|
|
|
2010-08-26 13:41:21 +00:00
|
|
|
sysnet_delete_dhcpc_pid(hald_t)
|
2009-07-27 14:18:50 +00:00
|
|
|
sysnet_domtrans_dhcpc(hald_t)
|
2010-02-11 13:42:00 +00:00
|
|
|
sysnet_domtrans_ifconfig(hald_t)
|
2010-08-26 13:41:21 +00:00
|
|
|
sysnet_read_config(hald_t)
|
2010-02-11 13:42:00 +00:00
|
|
|
sysnet_read_dhcp_config(hald_t)
|
2010-08-26 13:41:21 +00:00
|
|
|
sysnet_read_dhcpc_pid(hald_t)
|
|
|
|
sysnet_signal_dhcpc(hald_t)
|
2005-09-02 20:29:52 +00:00
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(hald_t)
|
2008-11-05 16:10:46 +00:00
|
|
|
userdom_dontaudit_search_user_home_dirs(hald_t)
|
2005-09-02 20:29:52 +00:00
|
|
|
|
2007-05-07 17:57:48 +00:00
|
|
|
optional_policy(`
|
2007-09-05 14:48:21 +00:00
|
|
|
alsa_domtrans(hald_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
alsa_read_rw_config(hald_t)
|
|
|
|
')
|
|
|
|
|
2006-07-28 15:13:58 +00:00
|
|
|
optional_policy(`
|
|
|
|
bootloader_domtrans(hald_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-11-08 22:00:30 +00:00
|
|
|
# For /usr/libexec/hald-addon-acpi
|
|
|
|
# writes to /var/run/acpid.socket
|
|
|
|
apm_stream_connect(hald_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-01-17 17:50:10 +00:00
|
|
|
bind_search_cache(hald_t)
|
|
|
|
')
|
|
|
|
|
2006-07-28 15:13:58 +00:00
|
|
|
optional_policy(`
|
|
|
|
bluetooth_domtrans(hald_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-12-13 20:38:19 +00:00
|
|
|
clock_domtrans(hald_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-11-08 22:00:30 +00:00
|
|
|
cups_domtrans_config(hald_t)
|
2005-11-29 21:27:15 +00:00
|
|
|
cups_signal_config(hald_t)
|
2005-11-08 22:00:30 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2008-11-05 16:10:46 +00:00
|
|
|
dbus_system_bus_client(hald_t)
|
2005-09-02 20:29:52 +00:00
|
|
|
dbus_connect_system_bus(hald_t)
|
2005-11-25 16:43:03 +00:00
|
|
|
|
2005-12-05 15:00:29 +00:00
|
|
|
init_dbus_chat_script(hald_t)
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-11-25 16:43:03 +00:00
|
|
|
networkmanager_dbus_chat(hald_t)
|
|
|
|
')
|
2005-09-02 20:29:52 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-27 21:24:01 +00:00
|
|
|
# For /usr/libexec/hald-probe-smbios
|
|
|
|
dmidecode_domtrans(hald_t)
|
|
|
|
')
|
|
|
|
|
2010-08-26 13:41:21 +00:00
|
|
|
optional_policy(`
|
|
|
|
gnome_read_config(hald_t)
|
|
|
|
')
|
|
|
|
|
2008-06-17 14:07:44 +00:00
|
|
|
optional_policy(`
|
|
|
|
gpm_dontaudit_getattr_gpmctl(hald_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-02 20:29:52 +00:00
|
|
|
hotplug_read_config(hald_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-03-23 19:19:38 +00:00
|
|
|
lvm_domtrans(hald_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-19 21:17:45 +00:00
|
|
|
mount_domtrans(hald_t)
|
|
|
|
')
|
|
|
|
|
2006-03-30 15:59:39 +00:00
|
|
|
optional_policy(`
|
2008-12-03 18:33:19 +00:00
|
|
|
ntp_domtrans(hald_t)
|
2006-03-30 15:59:39 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-05 18:17:17 +00:00
|
|
|
pcmcia_manage_pid(hald_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
pcmcia_manage_pid_chr_files(hald_t)
|
2005-09-05 18:17:17 +00:00
|
|
|
')
|
|
|
|
|
2008-06-17 14:07:44 +00:00
|
|
|
optional_policy(`
|
|
|
|
podsleuth_domtrans(hald_t)
|
|
|
|
')
|
|
|
|
|
2009-07-27 14:18:50 +00:00
|
|
|
optional_policy(`
|
2010-05-18 13:06:36 +00:00
|
|
|
ppp_domtrans(hald_t)
|
2009-07-27 14:18:50 +00:00
|
|
|
ppp_read_rw_config(hald_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2010-02-11 13:42:00 +00:00
|
|
|
policykit_dbus_chat(hald_t)
|
2009-07-27 14:18:50 +00:00
|
|
|
policykit_domtrans_auth(hald_t)
|
|
|
|
policykit_domtrans_resolve(hald_t)
|
|
|
|
policykit_read_lib(hald_t)
|
|
|
|
policykit_read_reload(hald_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-01-11 15:28:14 +00:00
|
|
|
rpc_search_nfs_state_data(hald_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-02 20:29:52 +00:00
|
|
|
seutil_sigchld_newrole(hald_t)
|
|
|
|
')
|
|
|
|
|
2010-08-26 13:41:21 +00:00
|
|
|
optional_policy(`
|
|
|
|
shutdown_domtrans(hald_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-02 20:29:52 +00:00
|
|
|
udev_domtrans(hald_t)
|
|
|
|
udev_read_db(hald_t)
|
|
|
|
')
|
|
|
|
|
2010-05-18 13:06:36 +00:00
|
|
|
optional_policy(`
|
|
|
|
usbmuxd_stream_connect(hald_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-02 20:29:52 +00:00
|
|
|
updfstab_domtrans(hald_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-12-13 20:38:19 +00:00
|
|
|
vbetool_domtrans(hald_t)
|
|
|
|
')
|
2007-05-07 17:57:48 +00:00
|
|
|
|
2008-11-19 15:24:10 +00:00
|
|
|
optional_policy(`
|
|
|
|
virt_manage_images(hald_t)
|
|
|
|
')
|
|
|
|
|
2010-08-26 13:41:21 +00:00
|
|
|
optional_policy(`
|
|
|
|
xserver_read_pid(hald_t)
|
|
|
|
')
|
|
|
|
|
2007-05-07 17:57:48 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Hal acl local policy
|
|
|
|
#
|
|
|
|
|
2009-07-27 14:18:50 +00:00
|
|
|
allow hald_acl_t self:capability { dac_override fowner sys_resource };
|
2008-06-17 14:07:44 +00:00
|
|
|
allow hald_acl_t self:process { getattr signal };
|
|
|
|
allow hald_acl_t self:fifo_file rw_fifo_file_perms;
|
2007-05-07 17:57:48 +00:00
|
|
|
|
|
|
|
domtrans_pattern(hald_t, hald_acl_exec_t, hald_acl_t)
|
|
|
|
allow hald_t hald_acl_t:process signal;
|
|
|
|
allow hald_acl_t hald_t:unix_stream_socket connectto;
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(hald_acl_t, hald_var_lib_t, hald_var_lib_t)
|
|
|
|
manage_files_pattern(hald_acl_t, hald_var_lib_t, hald_var_lib_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
files_search_var_lib(hald_acl_t)
|
|
|
|
|
2008-06-17 14:07:44 +00:00
|
|
|
manage_dirs_pattern(hald_acl_t, hald_var_run_t, hald_var_run_t)
|
|
|
|
manage_files_pattern(hald_acl_t, hald_var_run_t, hald_var_run_t)
|
|
|
|
files_pid_filetrans(hald_acl_t, hald_var_run_t, { dir file })
|
2010-08-26 13:41:21 +00:00
|
|
|
allow hald_t hald_var_run_t:dir mounton;
|
2008-06-17 14:07:44 +00:00
|
|
|
|
2007-05-07 17:57:48 +00:00
|
|
|
corecmd_exec_bin(hald_acl_t)
|
|
|
|
|
|
|
|
dev_getattr_all_chr_files(hald_acl_t)
|
2008-06-17 14:07:44 +00:00
|
|
|
dev_setattr_all_chr_files(hald_acl_t)
|
2007-09-05 14:48:21 +00:00
|
|
|
dev_getattr_generic_usb_dev(hald_acl_t)
|
|
|
|
dev_getattr_video_dev(hald_acl_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
dev_setattr_video_dev(hald_acl_t)
|
2007-09-05 14:48:21 +00:00
|
|
|
dev_getattr_sound_dev(hald_acl_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
dev_setattr_sound_dev(hald_acl_t)
|
|
|
|
dev_setattr_generic_usb_dev(hald_acl_t)
|
|
|
|
dev_setattr_usbfs_files(hald_acl_t)
|
|
|
|
|
|
|
|
files_read_usr_files(hald_acl_t)
|
|
|
|
files_read_etc_files(hald_acl_t)
|
|
|
|
|
2010-02-11 13:42:00 +00:00
|
|
|
fs_getattr_all_fs(hald_acl_t)
|
|
|
|
|
2007-05-07 17:57:48 +00:00
|
|
|
storage_getattr_removable_dev(hald_acl_t)
|
|
|
|
storage_setattr_removable_dev(hald_acl_t)
|
2009-07-27 14:18:50 +00:00
|
|
|
storage_getattr_fixed_disk_dev(hald_acl_t)
|
|
|
|
storage_setattr_fixed_disk_dev(hald_acl_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
|
|
|
|
auth_use_nsswitch(hald_acl_t)
|
|
|
|
|
2008-11-19 15:24:10 +00:00
|
|
|
logging_send_syslog_msg(hald_acl_t)
|
|
|
|
|
2007-05-07 17:57:48 +00:00
|
|
|
miscfiles_read_localization(hald_acl_t)
|
|
|
|
|
2009-07-27 14:18:50 +00:00
|
|
|
optional_policy(`
|
2010-02-11 13:42:00 +00:00
|
|
|
policykit_dbus_chat(hald_acl_t)
|
2009-07-27 14:18:50 +00:00
|
|
|
policykit_domtrans_auth(hald_acl_t)
|
|
|
|
policykit_read_lib(hald_acl_t)
|
|
|
|
policykit_read_reload(hald_acl_t)
|
|
|
|
')
|
|
|
|
|
2007-05-07 17:57:48 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local hald mac policy
|
|
|
|
#
|
|
|
|
|
2009-07-27 14:18:50 +00:00
|
|
|
allow hald_mac_t self:capability { setgid setuid sys_admin };
|
2008-11-19 15:24:10 +00:00
|
|
|
|
2007-05-07 17:57:48 +00:00
|
|
|
domtrans_pattern(hald_t, hald_mac_exec_t, hald_mac_t)
|
|
|
|
allow hald_t hald_mac_t:process signal;
|
|
|
|
allow hald_mac_t hald_t:unix_stream_socket connectto;
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(hald_mac_t, hald_var_lib_t, hald_var_lib_t)
|
|
|
|
manage_files_pattern(hald_mac_t, hald_var_lib_t, hald_var_lib_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
files_search_var_lib(hald_mac_t)
|
|
|
|
|
2008-11-19 15:24:10 +00:00
|
|
|
write_files_pattern(hald_mac_t, hald_log_t, hald_log_t)
|
|
|
|
|
2008-06-17 14:07:44 +00:00
|
|
|
kernel_read_system_state(hald_mac_t)
|
|
|
|
|
|
|
|
dev_read_raw_memory(hald_mac_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
dev_write_raw_memory(hald_mac_t)
|
2008-06-17 14:07:44 +00:00
|
|
|
dev_read_sysfs(hald_mac_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
|
|
|
|
files_read_usr_files(hald_mac_t)
|
2008-11-19 15:24:10 +00:00
|
|
|
files_read_etc_files(hald_mac_t)
|
|
|
|
|
|
|
|
auth_use_nsswitch(hald_mac_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
|
2009-07-27 14:18:50 +00:00
|
|
|
logging_send_syslog_msg(hald_mac_t)
|
|
|
|
|
2007-05-07 17:57:48 +00:00
|
|
|
miscfiles_read_localization(hald_mac_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local hald sonypic policy
|
|
|
|
#
|
|
|
|
|
|
|
|
domtrans_pattern(hald_t, hald_sonypic_exec_t, hald_sonypic_t)
|
|
|
|
allow hald_t hald_sonypic_t:process signal;
|
|
|
|
allow hald_sonypic_t hald_t:unix_stream_socket connectto;
|
|
|
|
|
|
|
|
dev_read_video_dev(hald_sonypic_t)
|
|
|
|
dev_write_video_dev(hald_sonypic_t)
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(hald_sonypic_t, hald_var_lib_t, hald_var_lib_t)
|
|
|
|
manage_files_pattern(hald_sonypic_t, hald_var_lib_t, hald_var_lib_t)
|
2007-05-07 17:57:48 +00:00
|
|
|
files_search_var_lib(hald_sonypic_t)
|
|
|
|
|
2008-11-19 15:24:10 +00:00
|
|
|
write_files_pattern(hald_sonypic_t, hald_log_t, hald_log_t)
|
|
|
|
|
2007-05-07 17:57:48 +00:00
|
|
|
files_read_usr_files(hald_sonypic_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(hald_sonypic_t)
|
|
|
|
|
2007-09-05 14:48:21 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Hal keymap local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
domtrans_pattern(hald_t, hald_keymap_exec_t, hald_keymap_t)
|
|
|
|
allow hald_t hald_keymap_t:process signal;
|
|
|
|
allow hald_keymap_t hald_t:unix_stream_socket connectto;
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(hald_keymap_t, hald_var_lib_t, hald_var_lib_t)
|
|
|
|
manage_files_pattern(hald_keymap_t, hald_var_lib_t, hald_var_lib_t)
|
2007-09-05 14:48:21 +00:00
|
|
|
files_search_var_lib(hald_keymap_t)
|
|
|
|
|
2008-11-19 15:24:10 +00:00
|
|
|
write_files_pattern(hald_keymap_t, hald_log_t, hald_log_t)
|
|
|
|
|
2007-09-05 14:48:21 +00:00
|
|
|
dev_rw_input_dev(hald_keymap_t)
|
|
|
|
|
2009-07-27 14:18:50 +00:00
|
|
|
files_read_etc_files(hald_keymap_t)
|
2007-09-05 14:48:21 +00:00
|
|
|
files_read_usr_files(hald_keymap_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(hald_keymap_t)
|
2010-08-26 13:41:21 +00:00
|
|
|
|
|
|
|
# This is caused by a bug in hald and PolicyKit.
|
|
|
|
# Should be removed when this is fixed
|
|
|
|
cron_read_system_job_lib_files(hald_t)
|
2009-07-27 14:18:50 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local hald dccm policy
|
|
|
|
#
|
|
|
|
|
2010-02-11 13:42:00 +00:00
|
|
|
allow hald_dccm_t self:capability { chown net_bind_service };
|
2009-07-27 14:18:50 +00:00
|
|
|
allow hald_dccm_t self:process getsched;
|
2010-02-11 13:42:00 +00:00
|
|
|
allow hald_dccm_t self:fifo_file rw_fifo_file_perms;
|
2009-07-27 14:18:50 +00:00
|
|
|
allow hald_dccm_t self:tcp_socket create_stream_socket_perms;
|
|
|
|
allow hald_dccm_t self:udp_socket create_socket_perms;
|
|
|
|
allow hald_dccm_t self:netlink_route_socket rw_netlink_socket_perms;
|
|
|
|
|
|
|
|
domtrans_pattern(hald_t, hald_dccm_exec_t, hald_dccm_t)
|
|
|
|
allow hald_t hald_dccm_t:process signal;
|
|
|
|
allow hald_dccm_t hald_t:unix_stream_socket connectto;
|
|
|
|
|
|
|
|
manage_dirs_pattern(hald_dccm_t, hald_var_lib_t, hald_var_lib_t)
|
|
|
|
manage_files_pattern(hald_dccm_t, hald_var_lib_t, hald_var_lib_t)
|
|
|
|
files_search_var_lib(hald_dccm_t)
|
|
|
|
|
2010-02-11 13:42:00 +00:00
|
|
|
manage_dirs_pattern(hald_dccm_t, hald_var_run_t, hald_var_run_t)
|
|
|
|
manage_files_pattern(hald_dccm_t, hald_var_run_t, hald_var_run_t)
|
|
|
|
manage_sock_files_pattern(hald_dccm_t, hald_var_run_t, hald_var_run_t)
|
|
|
|
files_pid_filetrans(hald_dccm_t, hald_var_run_t, { dir file sock_file })
|
|
|
|
|
|
|
|
manage_sock_files_pattern(hald_dccm_t, hald_tmp_t, hald_tmp_t)
|
|
|
|
files_tmp_filetrans(hald_dccm_t, hald_tmp_t, sock_file)
|
|
|
|
|
2009-07-27 14:18:50 +00:00
|
|
|
write_files_pattern(hald_dccm_t, hald_log_t, hald_log_t)
|
|
|
|
|
|
|
|
kernel_search_network_sysctl(hald_dccm_t)
|
|
|
|
|
2010-02-11 13:42:00 +00:00
|
|
|
dev_read_urand(hald_dccm_t)
|
|
|
|
|
2009-07-27 14:18:50 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(hald_dccm_t)
|
|
|
|
corenet_all_recvfrom_netlabel(hald_dccm_t)
|
|
|
|
corenet_tcp_sendrecv_generic_if(hald_dccm_t)
|
|
|
|
corenet_udp_sendrecv_generic_if(hald_dccm_t)
|
|
|
|
corenet_tcp_sendrecv_generic_node(hald_dccm_t)
|
|
|
|
corenet_udp_sendrecv_generic_node(hald_dccm_t)
|
|
|
|
corenet_tcp_sendrecv_all_ports(hald_dccm_t)
|
|
|
|
corenet_udp_sendrecv_all_ports(hald_dccm_t)
|
|
|
|
corenet_tcp_bind_generic_node(hald_dccm_t)
|
|
|
|
corenet_udp_bind_generic_node(hald_dccm_t)
|
|
|
|
corenet_udp_bind_dhcpc_port(hald_dccm_t)
|
2010-02-11 13:42:00 +00:00
|
|
|
corenet_tcp_bind_ftp_port(hald_dccm_t)
|
2009-07-27 14:18:50 +00:00
|
|
|
corenet_tcp_bind_dccm_port(hald_dccm_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(hald_dccm_t)
|
|
|
|
|
|
|
|
files_read_usr_files(hald_dccm_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(hald_dccm_t)
|
2010-02-11 13:42:00 +00:00
|
|
|
|
|
|
|
hal_dontaudit_rw_dgram_sockets(hald_dccm_t)
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dbus_system_bus_client(hald_dccm_t)
|
|
|
|
')
|