|
Chris PeBenito |
29af4c |
policy_module(hotplug, 1.13.0)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type hotplug_t;
|
|
Chris PeBenito |
17de1b |
type hotplug_exec_t;
|
|
Chris PeBenito |
3f67f7 |
kernel_domtrans_to(hotplug_t, hotplug_exec_t)
|
|
Chris PeBenito |
3f67f7 |
init_daemon_domain(hotplug_t, hotplug_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type hotplug_etc_t;
|
|
Chris PeBenito |
17de1b |
files_config_file(hotplug_etc_t)
|
|
Chris PeBenito |
3f67f7 |
init_daemon_domain(hotplug_t, hotplug_etc_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type hotplug_var_run_t;
|
|
Chris PeBenito |
17de1b |
files_pid_file(hotplug_var_run_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow hotplug_t self:capability { net_admin sys_tty_config mknod sys_rawio };
|
|
Chris PeBenito |
17de1b |
dontaudit hotplug_t self:capability { sys_module sys_admin sys_tty_config };
|
|
Chris PeBenito |
17de1b |
# for access("/etc/bashrc", X_OK) on Red Hat
|
|
Chris PeBenito |
17de1b |
dontaudit hotplug_t self:capability { dac_override dac_read_search };
|
|
Chris PeBenito |
eac818 |
allow hotplug_t self:process { setpgid getsession getattr signal_perms };
|
|
Chris PeBenito |
17de1b |
allow hotplug_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
allow hotplug_t self:netlink_route_socket r_netlink_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow hotplug_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
allow hotplug_t self:tcp_socket connected_stream_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
3f67f7 |
read_files_pattern(hotplug_t, hotplug_etc_t, hotplug_etc_t)
|
|
Chris PeBenito |
3f67f7 |
read_lnk_files_pattern(hotplug_t, hotplug_etc_t, hotplug_etc_t)
|
|
Chris PeBenito |
3f67f7 |
can_exec(hotplug_t, hotplug_etc_t)
|
|
Chris PeBenito |
c0868a |
allow hotplug_t hotplug_etc_t:dir list_dir_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
3f67f7 |
can_exec(hotplug_t, hotplug_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
3f67f7 |
manage_files_pattern(hotplug_t, hotplug_var_run_t, hotplug_var_run_t)
|
|
Chris PeBenito |
3f67f7 |
files_pid_filetrans(hotplug_t, hotplug_var_run_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_sigchld(hotplug_t)
|
|
Chris PeBenito |
17de1b |
kernel_setpgid(hotplug_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(hotplug_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(hotplug_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_net_sysctls(hotplug_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_kernel_modules(hotplug_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(hotplug_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(hotplug_t)
|
|
Chris PeBenito |
668b30 |
corenet_tcp_sendrecv_generic_if(hotplug_t)
|
|
Chris PeBenito |
668b30 |
corenet_udp_sendrecv_generic_if(hotplug_t)
|
|
Chris PeBenito |
c12621 |
corenet_tcp_sendrecv_generic_node(hotplug_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(hotplug_t)
|
|
Chris PeBenito |
17de1b |
corenet_tcp_sendrecv_all_ports(hotplug_t)
|
|
Chris PeBenito |
17de1b |
corenet_udp_sendrecv_all_ports(hotplug_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
dev_rw_sysfs(hotplug_t)
|
|
Chris PeBenito |
17de1b |
dev_read_usbfs(hotplug_t)
|
|
Chris PeBenito |
17de1b |
dev_setattr_printer_dev(hotplug_t)
|
|
Chris PeBenito |
17de1b |
dev_setattr_sound_dev(hotplug_t)
|
|
Chris PeBenito |
17de1b |
# for SSP:
|
|
Chris PeBenito |
17de1b |
dev_read_urand(hotplug_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
fs_getattr_all_fs(hotplug_t)
|
|
Chris PeBenito |
17de1b |
fs_search_auto_mountpoints(hotplug_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
storage_setattr_fixed_disk_dev(hotplug_t)
|
|
Chris PeBenito |
17de1b |
storage_setattr_removable_dev(hotplug_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_exec_bin(hotplug_t)
|
|
Chris PeBenito |
17de1b |
corecmd_exec_shell(hotplug_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(hotplug_t)
|
|
Chris PeBenito |
17de1b |
# for ps
|
|
Chris PeBenito |
17de1b |
domain_dontaudit_read_all_domains_state(hotplug_t)
|
|
Chris PeBenito |
17de1b |
domain_dontaudit_getattr_all_domains(hotplug_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(hotplug_t)
|
|
Chris PeBenito |
17de1b |
files_manage_etc_runtime_files(hotplug_t)
|
|
Chris PeBenito |
3f67f7 |
files_etc_filetrans_etc_runtime(hotplug_t, file)
|
|
Chris PeBenito |
17de1b |
files_exec_etc_files(hotplug_t)
|
|
Chris PeBenito |
17de1b |
# for when filesystems are not mounted early in the boot:
|
|
Chris PeBenito |
17de1b |
files_dontaudit_search_isid_type_dirs(hotplug_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
init_read_script_state(hotplug_t)
|
|
Chris PeBenito |
17de1b |
# Allow hotplug (including /sbin/ifup-local) to start/stop services and
|
|
Chris PeBenito |
17de1b |
# run sendmail -q
|
|
Chris PeBenito |
17de1b |
init_domtrans_script(hotplug_t)
|
|
Chris PeBenito |
17de1b |
# kernel threads inherit from shared descriptor table used by init
|
|
Chris PeBenito |
17de1b |
init_dontaudit_rw_initctl(hotplug_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(hotplug_t)
|
|
Chris PeBenito |
17de1b |
logging_search_logs(hotplug_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# Read /usr/lib/gconv/.*
|
|
Chris PeBenito |
17de1b |
libs_read_lib_files(hotplug_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_hwdata(hotplug_t)
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(hotplug_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
modutils_domtrans_insmod(hotplug_t)
|
|
Chris PeBenito |
17de1b |
modutils_read_module_deps(hotplug_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
seutil_dontaudit_search_config(hotplug_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
sysnet_read_config(hotplug_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
userdom_dontaudit_use_unpriv_user_fds(hotplug_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(hotplug_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`distro_redhat', `
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
# for arping used for static IP addresses on PCMCIA ethernet
|
|
Chris PeBenito |
17de1b |
netutils_domtrans(hotplug_t)
|
|
Chris PeBenito |
8a948c |
netutils_signal(hotplug_t)
|
|
Chris PeBenito |
17de1b |
fs_rw_tmpfs_chr_files(hotplug_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
files_getattr_generic_locks(hotplug_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
d28e52 |
optional_policy(`
|
|
Jeremy Solt |
4d2680 |
brctl_domtrans(hotplug_t)
|
|
Jeremy Solt |
4d2680 |
')
|
|
Jeremy Solt |
4d2680 |
|
|
Jeremy Solt |
4d2680 |
optional_policy(`
|
|
Chris PeBenito |
d28e52 |
consoletype_exec(hotplug_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
296273 |
dbus_system_bus_client(hotplug_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
fstools_domtrans(hotplug_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
hal_dgram_send(hotplug_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
hostname_exec(hotplug_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
iptables_domtrans(hotplug_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
mount_domtrans(hotplug_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
mta_send_mail(hotplug_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nis_use_ypbind(hotplug_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nscd_socket_use(hotplug_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
seutil_sigchld_newrole(hotplug_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
sysnet_domtrans_dhcpc(hotplug_t)
|
|
Chris PeBenito |
17de1b |
sysnet_signal_dhcpc(hotplug_t)
|
|
Chris PeBenito |
17de1b |
sysnet_kill_dhcpc(hotplug_t)
|
|
Chris PeBenito |
17de1b |
sysnet_signull_dhcpc(hotplug_t)
|
|
Chris PeBenito |
17de1b |
sysnet_sigstop_dhcpc(hotplug_t)
|
|
Chris PeBenito |
17de1b |
sysnet_sigchld_dhcpc(hotplug_t)
|
|
Chris PeBenito |
17de1b |
sysnet_read_dhcpc_pid(hotplug_t)
|
|
Chris PeBenito |
17de1b |
sysnet_rw_dhcp_config(hotplug_t)
|
|
Chris PeBenito |
17de1b |
sysnet_domtrans_ifconfig(hotplug_t)
|
|
Chris PeBenito |
e82895 |
sysnet_signal_ifconfig(hotplug_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
udev_domtrans(hotplug_t)
|
|
Chris PeBenito |
17de1b |
udev_helper_domtrans(hotplug_t)
|
|
Chris PeBenito |
17de1b |
udev_read_db(hotplug_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
updfstab_domtrans(hotplug_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
usbmodules_domtrans(hotplug_t)
|
|
Chris PeBenito |
17de1b |
')
|