2020-02-11 18:13:20 +00:00
|
|
|
policy_module(udev, 1.26.6)
|
2005-05-02 21:01:08 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
2019-03-15 02:27:10 +00:00
|
|
|
attribute_role udevadm_roles;
|
2005-05-02 21:01:08 +00:00
|
|
|
|
2005-09-26 20:26:32 +00:00
|
|
|
type udev_t;
|
2006-10-04 17:25:34 +00:00
|
|
|
type udev_exec_t;
|
2005-04-28 15:45:32 +00:00
|
|
|
type udev_helper_exec_t;
|
2009-06-26 14:40:13 +00:00
|
|
|
kernel_domtrans_to(udev_t, udev_exec_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
domain_obj_id_change_exemption(udev_t)
|
2009-06-26 14:40:13 +00:00
|
|
|
domain_entry_file(udev_t, udev_helper_exec_t)
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_interactive_fd(udev_t)
|
2009-06-26 14:40:13 +00:00
|
|
|
init_daemon_domain(udev_t, udev_exec_t)
|
2019-09-08 20:55:02 +00:00
|
|
|
init_named_socket_activation(udev_t, udev_runtime_t)
|
2005-04-28 15:45:32 +00:00
|
|
|
|
2019-03-15 02:27:10 +00:00
|
|
|
type udevadm_t;
|
|
|
|
type udevadm_exec_t;
|
|
|
|
init_system_domain(udevadm_t, udevadm_exec_t)
|
|
|
|
application_domain(udevadm_t, udevadm_exec_t)
|
|
|
|
role udevadm_roles types udevadm_t;
|
|
|
|
|
2005-04-28 15:45:32 +00:00
|
|
|
type udev_etc_t alias etc_udev_t;
|
2005-10-24 18:40:24 +00:00
|
|
|
files_config_file(udev_etc_t)
|
2005-04-28 15:45:32 +00:00
|
|
|
|
2010-04-16 06:27:36 +00:00
|
|
|
type udev_rules_t;
|
|
|
|
files_type(udev_rules_t)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
type udev_runtime_t alias udev_var_run_t;
|
|
|
|
files_pid_file(udev_runtime_t)
|
|
|
|
init_daemon_pid_file(udev_runtime_t, dir, "udev")
|
2005-05-02 21:01:08 +00:00
|
|
|
|
2019-09-11 00:05:46 +00:00
|
|
|
type udev_tbl_t alias udev_tdb_t;
|
|
|
|
files_type(udev_tbl_t)
|
|
|
|
|
2006-10-04 17:25:34 +00:00
|
|
|
ifdef(`enable_mcs',`
|
2009-06-26 14:40:13 +00:00
|
|
|
kernel_ranged_domtrans_to(udev_t, udev_exec_t, s0 - mcs_systemhigh)
|
|
|
|
init_ranged_daemon_domain(udev_t, udev_exec_t, s0 - mcs_systemhigh)
|
2006-10-04 17:25:34 +00:00
|
|
|
')
|
|
|
|
|
2005-05-02 21:01:08 +00:00
|
|
|
########################################
|
|
|
|
#
|
2019-03-15 02:27:10 +00:00
|
|
|
# udev Local policy
|
2005-05-02 21:01:08 +00:00
|
|
|
#
|
2005-04-28 15:45:32 +00:00
|
|
|
|
2017-02-15 23:47:33 +00:00
|
|
|
allow udev_t self:capability { chown dac_override dac_read_search fowner fsetid mknod net_admin net_raw setgid setuid sys_admin sys_nice sys_nice sys_ptrace sys_rawio sys_resource };
|
2005-10-31 22:19:16 +00:00
|
|
|
dontaudit udev_t self:capability sys_tty_config;
|
2017-04-06 21:37:50 +00:00
|
|
|
allow udev_t self:capability2 { wake_alarm block_suspend };
|
2017-08-13 20:21:44 +00:00
|
|
|
allow udev_t self:process { transition signal_perms ptrace getsched setsched getsession getpgid setpgid getcap setcap share getattr setfscreate noatsecure siginh rlimitinh dyntransition execmem setkeycreate setsockcreate getrlimit };
|
2005-04-28 15:45:32 +00:00
|
|
|
allow udev_t self:fd use;
|
2006-12-12 20:08:08 +00:00
|
|
|
allow udev_t self:fifo_file rw_fifo_file_perms;
|
2008-10-16 16:09:20 +00:00
|
|
|
allow udev_t self:sock_file read_sock_file_perms;
|
2005-06-08 21:07:03 +00:00
|
|
|
allow udev_t self:shm create_shm_perms;
|
|
|
|
allow udev_t self:sem create_sem_perms;
|
|
|
|
allow udev_t self:msgq create_msgq_perms;
|
2005-04-28 15:45:32 +00:00
|
|
|
allow udev_t self:msg { send receive };
|
2005-10-13 20:59:36 +00:00
|
|
|
allow udev_t self:unix_stream_socket { listen accept };
|
|
|
|
allow udev_t self:unix_dgram_socket sendto;
|
|
|
|
allow udev_t self:unix_stream_socket connectto;
|
|
|
|
allow udev_t self:netlink_kobject_uevent_socket create_socket_perms;
|
2015-05-21 17:38:09 +00:00
|
|
|
allow udev_t self:netlink_generic_socket create_socket_perms;
|
2005-06-08 21:07:03 +00:00
|
|
|
allow udev_t self:rawip_socket create_socket_perms;
|
2005-04-28 15:45:32 +00:00
|
|
|
|
2017-04-16 23:48:04 +00:00
|
|
|
# for systemd-udevd to rename interfaces
|
|
|
|
allow udev_t self:netlink_route_socket nlmsg_write;
|
|
|
|
|
2005-06-08 21:07:03 +00:00
|
|
|
can_exec(udev_t, udev_exec_t)
|
2005-05-30 21:17:20 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow udev_t udev_helper_exec_t:dir list_dir_perms;
|
2009-03-19 17:56:10 +00:00
|
|
|
can_exec(udev_t, udev_helper_exec_t)
|
2005-04-28 15:45:32 +00:00
|
|
|
|
|
|
|
# read udev config
|
2006-12-12 20:08:08 +00:00
|
|
|
allow udev_t udev_etc_t:file read_file_perms;
|
2005-04-28 15:45:32 +00:00
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow udev_t udev_tbl_t:file manage_file_perms;
|
2009-06-26 14:40:13 +00:00
|
|
|
dev_filetrans(udev_t, udev_tbl_t, file)
|
2005-04-28 15:45:32 +00:00
|
|
|
|
2010-04-16 06:27:36 +00:00
|
|
|
list_dirs_pattern(udev_t, udev_rules_t, udev_rules_t)
|
2013-12-16 16:08:19 +00:00
|
|
|
manage_files_pattern(udev_t, udev_rules_t, udev_rules_t)
|
|
|
|
manage_lnk_files_pattern(udev_t, udev_rules_t, udev_rules_t)
|
2010-04-16 06:27:36 +00:00
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
manage_dirs_pattern(udev_t, udev_runtime_t, udev_runtime_t)
|
|
|
|
manage_files_pattern(udev_t, udev_runtime_t, udev_runtime_t)
|
|
|
|
manage_lnk_files_pattern(udev_t, udev_runtime_t, udev_runtime_t)
|
|
|
|
manage_sock_files_pattern(udev_t, udev_runtime_t, udev_runtime_t)
|
|
|
|
files_pid_filetrans(udev_t, udev_runtime_t, dir, "udev")
|
2013-09-24 13:39:40 +00:00
|
|
|
|
2016-12-17 18:08:40 +00:00
|
|
|
kernel_load_module(udev_t)
|
2005-04-28 15:45:32 +00:00
|
|
|
kernel_read_system_state(udev_t)
|
2009-11-25 14:44:14 +00:00
|
|
|
kernel_request_load_module(udev_t)
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_getattr_core_if(udev_t)
|
2006-03-02 23:41:11 +00:00
|
|
|
kernel_use_fds(udev_t)
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_device_sysctls(udev_t)
|
|
|
|
kernel_read_hotplug_sysctls(udev_t)
|
|
|
|
kernel_read_modprobe_sysctls(udev_t)
|
|
|
|
kernel_read_kernel_sysctls(udev_t)
|
|
|
|
kernel_rw_hotplug_sysctls(udev_t)
|
|
|
|
kernel_rw_unix_dgram_sockets(udev_t)
|
2005-09-13 13:06:07 +00:00
|
|
|
kernel_signal(udev_t)
|
2009-03-19 17:56:10 +00:00
|
|
|
kernel_search_debugfs(udev_t)
|
2018-04-16 20:08:55 +00:00
|
|
|
kernel_search_key(udev_t)
|
2005-06-16 20:33:51 +00:00
|
|
|
|
2007-09-05 17:55:57 +00:00
|
|
|
#https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=235182
|
|
|
|
kernel_rw_net_sysctls(udev_t)
|
2018-04-16 20:08:55 +00:00
|
|
|
kernel_read_crypto_sysctls(udev_t)
|
2007-09-05 17:55:57 +00:00
|
|
|
kernel_read_network_state(udev_t)
|
2009-03-19 17:56:10 +00:00
|
|
|
kernel_read_software_raid_state(udev_t)
|
2014-01-16 16:24:25 +00:00
|
|
|
kernel_dontaudit_search_unlabeled(udev_t)
|
2007-09-05 17:55:57 +00:00
|
|
|
|
2006-09-01 15:52:05 +00:00
|
|
|
corecmd_exec_all_executables(udev_t)
|
|
|
|
|
2005-09-15 21:03:29 +00:00
|
|
|
dev_rw_sysfs(udev_t)
|
2006-01-31 16:08:56 +00:00
|
|
|
dev_manage_all_dev_nodes(udev_t)
|
|
|
|
dev_rw_generic_files(udev_t)
|
|
|
|
dev_delete_generic_files(udev_t)
|
2007-09-05 17:55:57 +00:00
|
|
|
dev_search_usbfs(udev_t)
|
|
|
|
dev_relabel_all_dev_nodes(udev_t)
|
2007-11-30 15:56:48 +00:00
|
|
|
# udev_node.c/node_symlink() symlink labels are explicitly
|
|
|
|
# preserved, instead of short circuiting the relabel
|
|
|
|
dev_relabel_generic_symlinks(udev_t)
|
2010-03-17 19:17:48 +00:00
|
|
|
dev_manage_generic_symlinks(udev_t)
|
2005-06-16 20:33:51 +00:00
|
|
|
|
2006-09-01 15:52:05 +00:00
|
|
|
domain_read_all_domains_state(udev_t)
|
2009-11-25 14:44:14 +00:00
|
|
|
domain_dontaudit_ptrace_all_domains(udev_t) #pidof triggers these
|
2006-09-01 15:52:05 +00:00
|
|
|
|
2007-09-05 17:55:57 +00:00
|
|
|
files_read_usr_files(udev_t)
|
2006-09-01 15:52:05 +00:00
|
|
|
files_read_etc_runtime_files(udev_t)
|
|
|
|
files_read_etc_files(udev_t)
|
2017-04-06 21:37:50 +00:00
|
|
|
files_read_kernel_modules(udev_t)
|
2006-09-01 15:52:05 +00:00
|
|
|
files_exec_etc_files(udev_t)
|
|
|
|
files_getattr_generic_locks(udev_t)
|
|
|
|
files_search_mnt(udev_t)
|
|
|
|
|
2005-06-16 20:33:51 +00:00
|
|
|
fs_getattr_all_fs(udev_t)
|
2006-02-13 22:05:08 +00:00
|
|
|
fs_list_inotifyfs(udev_t)
|
2017-02-18 14:39:01 +00:00
|
|
|
fs_read_cgroup_files(udev_t)
|
2009-11-25 14:44:14 +00:00
|
|
|
fs_rw_anon_inodefs_files(udev_t)
|
2017-04-16 23:48:04 +00:00
|
|
|
fs_search_tracefs(udev_t)
|
2005-06-16 20:33:51 +00:00
|
|
|
|
2006-09-01 15:52:05 +00:00
|
|
|
mcs_ptrace_all(udev_t)
|
|
|
|
|
2007-08-20 18:26:08 +00:00
|
|
|
mls_file_read_all_levels(udev_t)
|
|
|
|
mls_file_write_all_levels(udev_t)
|
2006-09-01 15:52:05 +00:00
|
|
|
mls_file_upgrade(udev_t)
|
|
|
|
mls_file_downgrade(udev_t)
|
2014-05-23 18:18:10 +00:00
|
|
|
mls_process_write_all_levels(udev_t)
|
2006-09-01 15:52:05 +00:00
|
|
|
|
2005-06-14 20:48:34 +00:00
|
|
|
selinux_get_fs_mount(udev_t)
|
|
|
|
selinux_validate_context(udev_t)
|
|
|
|
selinux_compute_access_vector(udev_t)
|
|
|
|
selinux_compute_create_context(udev_t)
|
|
|
|
selinux_compute_relabel_context(udev_t)
|
|
|
|
selinux_compute_user_contexts(udev_t)
|
2005-05-02 21:01:08 +00:00
|
|
|
|
2006-08-22 19:37:56 +00:00
|
|
|
auth_read_pam_console_data(udev_t)
|
|
|
|
auth_domtrans_pam_console(udev_t)
|
2005-10-13 20:59:36 +00:00
|
|
|
auth_use_nsswitch(udev_t)
|
|
|
|
|
2006-01-18 18:08:39 +00:00
|
|
|
init_read_utmp(udev_t)
|
2017-04-16 23:48:04 +00:00
|
|
|
init_domtrans_script(udev_t)
|
2017-04-06 21:37:50 +00:00
|
|
|
# systemd-udevd searches /run/systemd
|
|
|
|
init_search_run(udev_t)
|
2006-01-18 18:08:39 +00:00
|
|
|
init_dontaudit_write_utmp(udev_t)
|
2007-11-15 16:54:18 +00:00
|
|
|
init_getattr_initctl(udev_t)
|
2017-04-06 21:37:50 +00:00
|
|
|
init_start_all_units(udev_t)
|
|
|
|
init_stop_all_units(udev_t)
|
|
|
|
# for hdparm init script run by udev
|
|
|
|
init_get_script_status(udev_t)
|
2005-04-28 15:45:32 +00:00
|
|
|
|
2005-06-20 17:41:29 +00:00
|
|
|
logging_search_logs(udev_t)
|
2005-06-13 17:35:46 +00:00
|
|
|
logging_send_syslog_msg(udev_t)
|
2009-03-19 17:56:10 +00:00
|
|
|
logging_send_audit_msgs(udev_t)
|
2005-04-28 15:45:32 +00:00
|
|
|
|
2005-05-30 21:17:20 +00:00
|
|
|
miscfiles_read_localization(udev_t)
|
2009-11-25 14:44:14 +00:00
|
|
|
miscfiles_read_hwdata(udev_t)
|
2005-05-30 21:17:20 +00:00
|
|
|
|
2017-02-18 21:35:45 +00:00
|
|
|
modutils_domtrans(udev_t)
|
2013-11-09 09:44:52 +00:00
|
|
|
modutils_read_module_config(udev_t)
|
2006-11-13 03:24:07 +00:00
|
|
|
# read modules.inputmap:
|
|
|
|
modutils_read_module_deps(udev_t)
|
2017-09-15 17:16:12 +00:00
|
|
|
modutils_read_module_objects(udev_t)
|
2005-05-30 21:17:20 +00:00
|
|
|
|
2005-06-14 20:48:34 +00:00
|
|
|
seutil_read_config(udev_t)
|
|
|
|
seutil_read_default_contexts(udev_t)
|
|
|
|
seutil_read_file_contexts(udev_t)
|
2007-05-11 17:10:43 +00:00
|
|
|
seutil_domtrans_setfiles(udev_t)
|
2005-05-30 21:17:20 +00:00
|
|
|
|
2005-06-13 17:35:46 +00:00
|
|
|
sysnet_domtrans_ifconfig(udev_t)
|
2006-08-22 19:37:56 +00:00
|
|
|
sysnet_domtrans_dhcpc(udev_t)
|
2007-09-05 17:55:57 +00:00
|
|
|
sysnet_rw_dhcp_config(udev_t)
|
|
|
|
sysnet_read_dhcpc_pid(udev_t)
|
|
|
|
sysnet_delete_dhcpc_pid(udev_t)
|
|
|
|
sysnet_signal_dhcpc(udev_t)
|
|
|
|
sysnet_manage_config(udev_t)
|
|
|
|
sysnet_etc_filetrans_config(udev_t)
|
2005-05-04 17:01:46 +00:00
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
userdom_dontaudit_search_user_home_content(udev_t)
|
2005-06-30 18:54:08 +00:00
|
|
|
|
2013-09-24 13:40:29 +00:00
|
|
|
ifdef(`distro_debian',`
|
2017-04-16 23:48:04 +00:00
|
|
|
# for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=851933
|
|
|
|
files_read_default_files(udev_t)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
files_pid_filetrans(udev_t, udev_runtime_t, dir, "xen-hotplug")
|
2013-09-27 20:36:52 +00:00
|
|
|
|
2013-09-24 13:40:29 +00:00
|
|
|
optional_policy(`
|
2013-09-26 13:41:09 +00:00
|
|
|
# for /usr/lib/avahi/avahi-daemon-check-dns.sh
|
2013-09-24 13:40:29 +00:00
|
|
|
kernel_read_vm_sysctls(udev_t)
|
|
|
|
corenet_udp_bind_generic_node(udev_t)
|
|
|
|
miscfiles_read_generic_certs(udev_t)
|
2013-09-27 11:35:20 +00:00
|
|
|
avahi_create_pid_dirs(udev_t)
|
2013-09-24 13:40:29 +00:00
|
|
|
avahi_initrc_domtrans(udev_t)
|
|
|
|
avahi_manage_pid_files(udev_t)
|
2013-11-09 09:44:45 +00:00
|
|
|
avahi_setattr_pid_dirs(udev_t)
|
2013-09-27 11:35:20 +00:00
|
|
|
avahi_filetrans_pid(udev_t, dir, "avahi-daemon")
|
2013-09-24 13:40:29 +00:00
|
|
|
')
|
2020-02-01 20:53:36 +00:00
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
consolesetup_exec_conf(udev_t)
|
|
|
|
consolesetup_manage_runtime(udev_t)
|
|
|
|
consolesetup_pid_filetrans_runtime(udev_t)
|
|
|
|
')
|
2013-09-24 13:40:29 +00:00
|
|
|
')
|
|
|
|
|
2006-11-13 03:24:07 +00:00
|
|
|
ifdef(`distro_gentoo',`
|
|
|
|
# during boot, init scripts use /dev/.rcsysinit
|
2014-06-06 08:04:25 +00:00
|
|
|
# existence to determine if we are in early booting
|
2006-11-13 03:24:07 +00:00
|
|
|
init_getattr_script_status_files(udev_t)
|
|
|
|
')
|
|
|
|
|
2005-06-07 18:45:47 +00:00
|
|
|
ifdef(`distro_redhat',`
|
2005-09-15 21:03:29 +00:00
|
|
|
fs_manage_tmpfs_dirs(udev_t)
|
|
|
|
fs_manage_tmpfs_files(udev_t)
|
2005-06-29 20:53:53 +00:00
|
|
|
fs_manage_tmpfs_symlinks(udev_t)
|
|
|
|
fs_manage_tmpfs_sockets(udev_t)
|
2006-01-31 20:29:27 +00:00
|
|
|
fs_manage_tmpfs_blk_files(udev_t)
|
|
|
|
fs_manage_tmpfs_chr_files(udev_t)
|
|
|
|
fs_relabel_tmpfs_blk_file(udev_t)
|
|
|
|
fs_relabel_tmpfs_chr_file(udev_t)
|
2005-05-19 21:06:06 +00:00
|
|
|
|
2007-04-11 17:56:03 +00:00
|
|
|
term_search_ptys(udev_t)
|
|
|
|
|
2005-06-03 12:25:14 +00:00
|
|
|
# for arping used for static IP addresses on PCMCIA ethernet
|
2005-06-13 17:35:46 +00:00
|
|
|
netutils_domtrans(udev_t)
|
2009-04-07 14:09:43 +00:00
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
unconfined_domain(udev_t)
|
|
|
|
')
|
2005-06-07 18:45:47 +00:00
|
|
|
')
|
2005-05-19 21:06:06 +00:00
|
|
|
|
2015-10-20 18:48:38 +00:00
|
|
|
ifdef(`init_systemd',`
|
|
|
|
files_search_kernel_modules(udev_t)
|
|
|
|
|
|
|
|
fs_read_cgroup_files(udev_t)
|
|
|
|
|
|
|
|
init_dgram_send(udev_t)
|
2017-09-06 14:49:36 +00:00
|
|
|
init_get_generic_units_status(udev_t)
|
|
|
|
init_stream_connect(udev_t)
|
2015-10-20 18:48:38 +00:00
|
|
|
|
2019-03-09 03:58:09 +00:00
|
|
|
systemd_map_hwdb(udev_t)
|
2018-06-07 19:19:40 +00:00
|
|
|
systemd_read_hwdb(udev_t)
|
2017-04-06 21:37:50 +00:00
|
|
|
systemd_read_logind_sessions_files(udev_t)
|
2015-10-20 18:48:38 +00:00
|
|
|
systemd_read_logind_pids(udev_t)
|
2017-09-06 14:49:36 +00:00
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
init_dbus_chat(udev_t)
|
|
|
|
')
|
2016-12-18 20:01:56 +00:00
|
|
|
',`
|
|
|
|
fs_manage_tmpfs_dirs(udev_t)
|
|
|
|
fs_manage_tmpfs_files(udev_t)
|
2015-10-20 18:48:38 +00:00
|
|
|
')
|
|
|
|
|
2007-11-15 16:54:18 +00:00
|
|
|
optional_policy(`
|
|
|
|
alsa_domtrans(udev_t)
|
2009-03-19 17:56:10 +00:00
|
|
|
alsa_read_lib(udev_t)
|
2016-08-14 18:34:19 +00:00
|
|
|
alsa_read_config(udev_t)
|
2007-11-15 16:54:18 +00:00
|
|
|
')
|
|
|
|
|
2009-11-25 14:44:14 +00:00
|
|
|
optional_policy(`
|
|
|
|
bluetooth_domtrans(udev_t)
|
|
|
|
')
|
|
|
|
|
2007-09-05 17:55:57 +00:00
|
|
|
optional_policy(`
|
|
|
|
brctl_domtrans(udev_t)
|
|
|
|
')
|
|
|
|
|
2009-03-19 17:56:10 +00:00
|
|
|
optional_policy(`
|
|
|
|
clock_domtrans(udev_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-06-13 17:35:46 +00:00
|
|
|
consoletype_exec(udev_t)
|
2005-04-28 15:45:32 +00:00
|
|
|
')
|
|
|
|
|
2012-12-05 20:39:23 +00:00
|
|
|
optional_policy(`
|
|
|
|
consolekit_read_pid_files(udev_t)
|
|
|
|
')
|
|
|
|
|
2009-11-25 14:44:14 +00:00
|
|
|
optional_policy(`
|
|
|
|
cups_domtrans_config(udev_t)
|
2017-01-20 01:05:30 +00:00
|
|
|
cups_domtrans_hplip(udev_t)
|
2009-11-25 14:44:14 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2008-11-05 16:10:46 +00:00
|
|
|
dbus_system_bus_client(udev_t)
|
2013-09-24 13:39:40 +00:00
|
|
|
dbus_use_system_bus_fds(udev_t)
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
consolekit_dbus_chat(udev_t)
|
|
|
|
')
|
2005-08-31 20:58:12 +00:00
|
|
|
')
|
|
|
|
|
2009-11-25 14:44:14 +00:00
|
|
|
optional_policy(`
|
|
|
|
devicekit_read_pid_files(udev_t)
|
|
|
|
devicekit_dgram_send(udev_t)
|
|
|
|
')
|
|
|
|
|
2007-09-05 17:55:57 +00:00
|
|
|
optional_policy(`
|
|
|
|
fstools_domtrans(udev_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-03-02 23:41:11 +00:00
|
|
|
hal_dgram_send(udev_t)
|
2010-03-17 19:17:48 +00:00
|
|
|
|
|
|
|
ifdef(`hide_broken_symptoms',`
|
|
|
|
hal_dontaudit_rw_dgram_sockets(udev_t)
|
|
|
|
')
|
2005-11-29 21:27:15 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-06-03 12:25:14 +00:00
|
|
|
hotplug_read_config(udev_t)
|
2006-11-13 03:24:07 +00:00
|
|
|
# usb.agent searches /var/run/usb
|
|
|
|
hotplug_search_pids(udev_t)
|
2005-05-04 17:01:46 +00:00
|
|
|
')
|
|
|
|
|
2019-01-04 07:35:03 +00:00
|
|
|
optional_policy(`
|
|
|
|
iptables_domtrans(udev_t)
|
|
|
|
')
|
|
|
|
|
2013-09-24 13:39:40 +00:00
|
|
|
optional_policy(`
|
|
|
|
lvm_domtrans(udev_t)
|
|
|
|
')
|
|
|
|
|
2009-11-25 14:44:14 +00:00
|
|
|
optional_policy(`
|
|
|
|
mount_domtrans(udev_t)
|
|
|
|
')
|
|
|
|
|
2007-09-05 17:55:57 +00:00
|
|
|
optional_policy(`
|
|
|
|
openct_read_pid_files(udev_t)
|
|
|
|
openct_domtrans(udev_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2012-10-17 12:33:39 +00:00
|
|
|
pcscd_read_pid_files(udev_t)
|
2007-09-05 17:55:57 +00:00
|
|
|
pcscd_domtrans(udev_t)
|
|
|
|
')
|
|
|
|
|
2007-11-15 16:54:18 +00:00
|
|
|
optional_policy(`
|
|
|
|
raid_domtrans_mdadm(udev_t)
|
|
|
|
')
|
|
|
|
|
2009-11-25 14:44:14 +00:00
|
|
|
optional_policy(`
|
|
|
|
unconfined_signal(udev_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
vbetool_domtrans(udev_t)
|
|
|
|
')
|
|
|
|
|
2017-04-16 23:48:04 +00:00
|
|
|
optional_policy(`
|
|
|
|
# for systemd-udevd when starting xen domu
|
|
|
|
virt_read_config(udev_t)
|
|
|
|
')
|
|
|
|
|
2007-09-05 17:55:57 +00:00
|
|
|
optional_policy(`
|
|
|
|
kernel_write_xen_state(udev_t)
|
|
|
|
kernel_read_xen_state(udev_t)
|
|
|
|
xen_manage_log(udev_t)
|
|
|
|
xen_read_image_files(udev_t)
|
2017-04-16 23:48:04 +00:00
|
|
|
fs_manage_xenfs_files(udev_t)
|
2007-09-05 17:55:57 +00:00
|
|
|
')
|
|
|
|
|
2006-04-03 19:49:47 +00:00
|
|
|
optional_policy(`
|
|
|
|
xserver_read_xdm_pid(udev_t)
|
|
|
|
')
|
2019-03-15 02:27:10 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# udevadm Local policy
|
|
|
|
#
|
|
|
|
|
2019-09-06 15:54:17 +00:00
|
|
|
allow udevadm_t self:capability dac_read_search;
|
2019-03-15 02:27:10 +00:00
|
|
|
allow udevadm_t self:netlink_kobject_uevent_socket create_socket_perms;
|
|
|
|
allow udevadm_t self:unix_stream_socket create_socket_perms;
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
stream_connect_pattern(udevadm_t, udev_runtime_t, udev_runtime_t, udev_t)
|
2019-03-17 20:25:28 +00:00
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
delete_dirs_pattern(udevadm_t, udev_runtime_t, udev_runtime_t)
|
|
|
|
delete_files_pattern(udevadm_t, udev_runtime_t, udev_runtime_t)
|
|
|
|
delete_lnk_files_pattern(udevadm_t, udev_runtime_t, udev_runtime_t)
|
|
|
|
list_dirs_pattern(udevadm_t, udev_runtime_t, udev_runtime_t)
|
|
|
|
read_files_pattern(udevadm_t, udev_runtime_t, udev_runtime_t)
|
2019-03-15 02:27:10 +00:00
|
|
|
|
2019-12-24 10:10:36 +00:00
|
|
|
list_dirs_pattern(udevadm_t, udev_tbl_t, udev_tbl_t)
|
|
|
|
read_files_pattern(udevadm_t, udev_tbl_t, udev_tbl_t)
|
|
|
|
read_lnk_files_pattern(udevadm_t, udev_tbl_t, udev_tbl_t)
|
|
|
|
|
2019-03-15 02:27:10 +00:00
|
|
|
dev_rw_sysfs(udevadm_t)
|
|
|
|
dev_read_urand(udevadm_t)
|
|
|
|
|
|
|
|
files_read_etc_files(udevadm_t)
|
|
|
|
files_read_usr_files(udevadm_t)
|
|
|
|
|
|
|
|
init_list_pids(udevadm_t)
|
|
|
|
init_read_state(udevadm_t)
|
|
|
|
|
2019-09-14 12:36:13 +00:00
|
|
|
kernel_read_kernel_sysctls(udevadm_t)
|
2019-03-15 02:27:10 +00:00
|
|
|
kernel_read_system_state(udevadm_t)
|
|
|
|
|
|
|
|
seutil_read_file_contexts(udevadm_t)
|
|
|
|
|