summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2006-08-18 03:47:59 +0200
committerKay Sievers <kay.sievers@suse.de>2006-08-18 03:47:59 +0200
commiteef7c9a385575375a3e3310900022b37777aeb6c (patch)
treede14e8bd1130e7b539d516b8010168ff3b11df4f /udevd.c
parent36dddd1ca40b4abbe3352b4cb93b465f4038666e (diff)
selinux: init once in the daemon, not in every event process
Diffstat (limited to 'udevd.c')
-rw-r--r--udevd.c2
1 files changed, 2 insertions, 0 deletions
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) {