|
Chris PeBenito |
29af4c |
policy_module(devicekit, 1.1.0)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
########################################
|
|
Chris PeBenito |
677c4c |
#
|
|
Chris PeBenito |
677c4c |
# Declarations
|
|
Chris PeBenito |
677c4c |
#
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
type devicekit_t;
|
|
Chris PeBenito |
677c4c |
type devicekit_exec_t;
|
|
Chris PeBenito |
677c4c |
dbus_system_domain(devicekit_t, devicekit_exec_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
type devicekit_power_t;
|
|
Chris PeBenito |
677c4c |
type devicekit_power_exec_t;
|
|
Chris PeBenito |
677c4c |
dbus_system_domain(devicekit_power_t, devicekit_power_exec_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
type devicekit_disk_t;
|
|
Chris PeBenito |
677c4c |
type devicekit_disk_exec_t;
|
|
Chris PeBenito |
677c4c |
dbus_system_domain(devicekit_disk_t, devicekit_disk_exec_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
type devicekit_tmp_t;
|
|
Chris PeBenito |
677c4c |
files_tmp_file(devicekit_tmp_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
type devicekit_var_run_t;
|
|
Chris PeBenito |
677c4c |
files_pid_file(devicekit_var_run_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
type devicekit_var_lib_t;
|
|
Chris PeBenito |
677c4c |
files_type(devicekit_var_lib_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
########################################
|
|
Chris PeBenito |
677c4c |
#
|
|
Chris PeBenito |
677c4c |
# DeviceKit local policy
|
|
Chris PeBenito |
677c4c |
#
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
allow devicekit_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
manage_dirs_pattern(devicekit_t, devicekit_var_run_t, devicekit_var_run_t)
|
|
Chris PeBenito |
677c4c |
manage_files_pattern(devicekit_t, devicekit_var_run_t, devicekit_var_run_t)
|
|
Chris PeBenito |
677c4c |
files_pid_filetrans(devicekit_t, devicekit_var_run_t, { file dir })
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
61738f |
kernel_read_system_state(devicekit_t)
|
|
Chris PeBenito |
61738f |
|
|
Chris PeBenito |
677c4c |
dev_read_sysfs(devicekit_t)
|
|
Chris PeBenito |
677c4c |
dev_read_urand(devicekit_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
files_read_etc_files(devicekit_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
miscfiles_read_localization(devicekit_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
optional_policy(`
|
|
Chris PeBenito |
677c4c |
dbus_system_bus_client(devicekit_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
allow devicekit_t devicekit_disk_t:dbus send_msg;
|
|
Chris PeBenito |
677c4c |
allow devicekit_t devicekit_power_t:dbus send_msg;
|
|
Chris PeBenito |
677c4c |
')
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
optional_policy(`
|
|
Chris PeBenito |
677c4c |
udev_read_db(devicekit_t)
|
|
Chris PeBenito |
677c4c |
')
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
########################################
|
|
Chris PeBenito |
677c4c |
#
|
|
Chris PeBenito |
677c4c |
# DeviceKit disk local policy
|
|
Chris PeBenito |
677c4c |
#
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
61738f |
allow devicekit_disk_t self:capability { chown setuid setgid dac_override fowner fsetid net_admin sys_admin sys_nice sys_ptrace sys_rawio };
|
|
Chris PeBenito |
61738f |
allow devicekit_disk_t self:process { getsched signal_perms };
|
|
Chris PeBenito |
677c4c |
allow devicekit_disk_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
61738f |
allow devicekit_disk_t self:netlink_kobject_uevent_socket create_socket_perms;
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
manage_dirs_pattern(devicekit_disk_t, devicekit_tmp_t, devicekit_tmp_t)
|
|
Chris PeBenito |
677c4c |
manage_files_pattern(devicekit_disk_t, devicekit_tmp_t, devicekit_tmp_t)
|
|
Chris PeBenito |
677c4c |
files_tmp_filetrans(devicekit_disk_t, devicekit_tmp_t, { file dir })
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
manage_dirs_pattern(devicekit_disk_t, devicekit_var_lib_t, devicekit_var_lib_t)
|
|
Chris PeBenito |
677c4c |
manage_files_pattern(devicekit_disk_t, devicekit_var_lib_t, devicekit_var_lib_t)
|
|
Chris PeBenito |
677c4c |
files_var_lib_filetrans(devicekit_disk_t, devicekit_var_lib_t, dir)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
61738f |
manage_dirs_pattern(devicekit_disk_t, devicekit_var_run_t, devicekit_var_run_t)
|
|
Chris PeBenito |
61738f |
manage_files_pattern(devicekit_disk_t, devicekit_var_run_t, devicekit_var_run_t)
|
|
Chris PeBenito |
61738f |
files_pid_filetrans(devicekit_disk_t, devicekit_var_run_t, { file dir })
|
|
Chris PeBenito |
61738f |
|
|
Chris PeBenito |
61738f |
kernel_getattr_message_if(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
kernel_read_fs_sysctls(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
kernel_read_network_state(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
kernel_read_software_raid_state(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
kernel_read_system_state(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
kernel_request_load_module(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
kernel_setsched(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
corecmd_exec_bin(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
corecmd_exec_shell(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
corecmd_getattr_all_executables(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
dev_rw_sysfs(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
dev_read_urand(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
dev_getattr_usbfs_dirs(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
dev_manage_generic_files(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
dev_getattr_all_chr_files(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
dev_getattr_mtrr_dev(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
|
|
Chris PeBenito |
61738f |
domain_getattr_all_pipes(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
domain_getattr_all_sockets(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
domain_getattr_all_stream_sockets(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
domain_read_all_domains_state(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
|
|
Chris PeBenito |
61738f |
files_dontaudit_read_all_symlinks(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
files_getattr_all_sockets(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
files_getattr_all_mountpoints(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
files_getattr_all_files(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
files_manage_isid_type_dirs(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
files_manage_mnt_dirs(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
files_read_etc_files(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
files_read_etc_runtime_files(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
files_read_usr_files(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
61738f |
fs_list_inotifyfs(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
fs_manage_fusefs_dirs(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
fs_mount_all_fs(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
fs_unmount_all_fs(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
fs_search_all(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
|
|
Chris PeBenito |
61738f |
mls_file_read_all_levels(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
mls_file_write_to_clearance(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
storage_raw_read_fixed_disk(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
storage_raw_write_fixed_disk(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
storage_raw_read_removable_device(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
storage_raw_write_removable_device(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
61738f |
term_use_all_terms(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
|
|
Chris PeBenito |
677c4c |
auth_use_nsswitch(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
miscfiles_read_localization(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
userdom_read_all_users_state(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
userdom_search_user_home_dirs(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
optional_policy(`
|
|
Chris PeBenito |
61738f |
dbus_system_bus_client(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
|
|
Chris PeBenito |
61738f |
allow devicekit_disk_t devicekit_t:dbus send_msg;
|
|
Chris PeBenito |
61738f |
|
|
Chris PeBenito |
61738f |
optional_policy(`
|
|
Chris PeBenito |
61738f |
consolekit_dbus_chat(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
')
|
|
Chris PeBenito |
61738f |
')
|
|
Chris PeBenito |
61738f |
|
|
Chris PeBenito |
61738f |
optional_policy(`
|
|
Chris PeBenito |
677c4c |
fstools_domtrans(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
')
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
optional_policy(`
|
|
Chris PeBenito |
677c4c |
lvm_domtrans(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
')
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
optional_policy(`
|
|
Chris PeBenito |
61738f |
mount_domtrans(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
')
|
|
Chris PeBenito |
61738f |
|
|
Chris PeBenito |
61738f |
optional_policy(`
|
|
Chris PeBenito |
61738f |
policykit_dbus_chat(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
policykit_domtrans_auth(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
policykit_read_lib(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
policykit_read_reload(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
')
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
optional_policy(`
|
|
Chris PeBenito |
61738f |
raid_domtrans_mdadm(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
')
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
optional_policy(`
|
|
Chris PeBenito |
61738f |
udev_domtrans(devicekit_disk_t)
|
|
Chris PeBenito |
61738f |
udev_read_db(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
')
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
optional_policy(`
|
|
Chris PeBenito |
61738f |
virt_manage_images(devicekit_disk_t)
|
|
Chris PeBenito |
677c4c |
')
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
########################################
|
|
Chris PeBenito |
677c4c |
#
|
|
Chris PeBenito |
677c4c |
# DeviceKit-Power local policy
|
|
Chris PeBenito |
677c4c |
#
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
61738f |
allow devicekit_power_t self:capability { dac_override net_admin sys_admin sys_tty_config sys_nice sys_ptrace };
|
|
Chris PeBenito |
61738f |
allow devicekit_power_t self:process getsched;
|
|
Chris PeBenito |
677c4c |
allow devicekit_power_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
677c4c |
allow devicekit_power_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
61738f |
allow devicekit_power_t self:netlink_kobject_uevent_socket create_socket_perms;
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
manage_dirs_pattern(devicekit_power_t, devicekit_var_lib_t, devicekit_var_lib_t)
|
|
Chris PeBenito |
677c4c |
manage_files_pattern(devicekit_power_t, devicekit_var_lib_t, devicekit_var_lib_t)
|
|
Chris PeBenito |
677c4c |
files_var_lib_filetrans(devicekit_power_t, devicekit_var_lib_t, dir)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
kernel_read_network_state(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
kernel_read_system_state(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
kernel_rw_hotplug_sysctls(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
kernel_rw_kernel_sysctl(devicekit_power_t)
|
|
Chris PeBenito |
61738f |
kernel_search_debugfs(devicekit_power_t)
|
|
Chris PeBenito |
61738f |
kernel_write_proc_files(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
corecmd_exec_bin(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
corecmd_exec_shell(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
consoletype_exec(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
domain_read_all_domains_state(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
61738f |
dev_read_input(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
dev_rw_generic_usb_dev(devicekit_power_t)
|
|
Chris PeBenito |
61738f |
dev_rw_generic_chr_files(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
dev_rw_netcontrol(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
dev_rw_sysfs(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
files_read_kernel_img(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
files_read_etc_files(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
files_read_usr_files(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
61738f |
fs_list_inotifyfs(devicekit_power_t)
|
|
Chris PeBenito |
61738f |
|
|
Chris PeBenito |
677c4c |
term_use_all_terms(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
auth_use_nsswitch(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
miscfiles_read_localization(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
61738f |
sysnet_read_config(devicekit_power_t)
|
|
Chris PeBenito |
61738f |
sysnet_domtrans_ifconfig(devicekit_power_t)
|
|
Chris PeBenito |
61738f |
|
|
Chris PeBenito |
677c4c |
userdom_read_all_users_state(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
optional_policy(`
|
|
Chris PeBenito |
677c4c |
bootloader_domtrans(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
')
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
optional_policy(`
|
|
Chris PeBenito |
61738f |
cron_initrc_domtrans(devicekit_power_t)
|
|
Chris PeBenito |
61738f |
')
|
|
Chris PeBenito |
61738f |
|
|
Chris PeBenito |
61738f |
optional_policy(`
|
|
Chris PeBenito |
677c4c |
dbus_system_bus_client(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
allow devicekit_power_t devicekit_t:dbus send_msg;
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
optional_policy(`
|
|
Chris PeBenito |
677c4c |
consolekit_dbus_chat(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
')
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
optional_policy(`
|
|
Chris PeBenito |
677c4c |
networkmanager_dbus_chat(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
')
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
optional_policy(`
|
|
Chris PeBenito |
677c4c |
rpm_dbus_chat(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
')
|
|
Chris PeBenito |
677c4c |
')
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
optional_policy(`
|
|
Chris PeBenito |
677c4c |
fstools_domtrans(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
')
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
optional_policy(`
|
|
Chris PeBenito |
677c4c |
hal_domtrans_mac(devicekit_power_t)
|
|
Chris PeBenito |
61738f |
hal_manage_log(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
hal_manage_pid_dirs(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
hal_manage_pid_files(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
hal_dbus_chat(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
')
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
optional_policy(`
|
|
Chris PeBenito |
61738f |
policykit_dbus_chat(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
policykit_domtrans_auth(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
policykit_read_lib(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
policykit_read_reload(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
')
|
|
Chris PeBenito |
677c4c |
|
|
Chris PeBenito |
677c4c |
optional_policy(`
|
|
Chris PeBenito |
61738f |
udev_read_db(devicekit_power_t)
|
|
Chris PeBenito |
61738f |
')
|
|
Chris PeBenito |
61738f |
|
|
Chris PeBenito |
61738f |
optional_policy(`
|
|
Chris PeBenito |
677c4c |
vbetool_domtrans(devicekit_power_t)
|
|
Chris PeBenito |
677c4c |
')
|