From eef7c9a385575375a3e3310900022b37777aeb6c Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 18 Aug 2006 03:47:59 +0200 Subject: selinux: init once in the daemon, not in every event process --- udevd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'udevd.c') diff --git a/udevd.c b/udevd.c index 5c51beed1e..bec4e3d7b4 100644 --- a/udevd.c +++ b/udevd.c @@ -45,6 +45,7 @@ #include "udev.h" #include "udev_rules.h" #include "udevd.h" +#include "udev_selinux.h" static struct udev_rules rules; static int udevd_sock = -1; @@ -931,6 +932,7 @@ int main(int argc, char *argv[], char *envp[]) err("fatal, could not open /dev/null: %s", strerror(errno)); udev_config_init(); + selinux_init(); dbg("version %s", UDEV_VERSION); if (getuid() != 0) { -- cgit v1.2.3-54-g00ecf