udev: always enable kernel module loading

The udev daemon should be able to load kernel modules not only on
systems using systemd but also on systems using former versions of
the udev daemon.

Signed-off-by: Guido Trentalancia <guido@trentalancia.net>
This commit is contained in:
Guido Trentalancia 2016-12-17 19:08:40 +01:00 committed by Chris PeBenito
parent 89c838db66
commit 3c6530cbdd
1 changed files with 1 additions and 2 deletions

View File

@ -79,6 +79,7 @@ manage_lnk_files_pattern(udev_t, udev_var_run_t, udev_var_run_t)
manage_sock_files_pattern(udev_t, udev_var_run_t, udev_var_run_t) manage_sock_files_pattern(udev_t, udev_var_run_t, udev_var_run_t)
files_pid_filetrans(udev_t, udev_var_run_t, dir, "udev") files_pid_filetrans(udev_t, udev_var_run_t, dir, "udev")
kernel_load_module(udev_t)
kernel_read_system_state(udev_t) kernel_read_system_state(udev_t)
kernel_request_load_module(udev_t) kernel_request_load_module(udev_t)
kernel_getattr_core_if(udev_t) kernel_getattr_core_if(udev_t)
@ -220,8 +221,6 @@ ifdef(`distro_redhat',`
') ')
ifdef(`init_systemd',` ifdef(`init_systemd',`
kernel_load_module(udev_t)
files_search_kernel_modules(udev_t) files_search_kernel_modules(udev_t)
fs_read_cgroup_files(udev_t) fs_read_cgroup_files(udev_t)