summaryrefslogtreecommitdiff
path: root/udev-add.c
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-02-28 00:52:20 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:32:31 -0700
commit8481f8ce2bd2b19ebcf3cb96ac6825093f626b0f (patch)
tree9311b5e7fe1b85b1d5645d1b3dd4a4cfc0ab7737 /udev-add.c
parent89067448b935d580496555f257dd5512c4c39098 (diff)
[PATCH] Add initial SELinux support for udev
Based on a patch from Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'udev-add.c')
-rw-r--r--udev-add.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/udev-add.c b/udev-add.c
index 0d3131300f..2f64b4375a 100644
--- a/udev-add.c
+++ b/udev-add.c
@@ -38,6 +38,7 @@
#include "udev.h"
#include "udev_version.h"
#include "udev_dbus.h"
+#include "udev_selinux.h"
#include "logging.h"
#include "namedev.h"
#include "udevdb.h"
@@ -217,6 +218,9 @@ static int create_node(struct udevice *dev, int fake)
}
}
+ if (!fake)
+ selinux_add_node(filename);
+
/* create symlink if requested */
if (dev->symlink[0] != '\0') {
symlinks = dev->symlink;