#include "udev.h"
#include "udev_rules.h"
+#include "udev_selinux.h"
static const char *udev_run_str;
static const char *udev_log_str;
/* override built-in sysfs device */
udev->dev = dev;
strcpy(udev->action, "add");
- udev->devt = udev_device_get_devt(udev);
if (strcmp(udev->dev->subsystem, "net") != 0) {
udev->devt = udev_device_get_devt(udev);
goto exit;
}
if (udev->name[0] != '\0')
- retval = udev_add_device(udev);
- else {
+ retval = udev_device_event(&rules, udev);
+ else
info("device node creation supressed");
- goto exit;
- }
- if (retval == 0 && !udev->ignore_device && udev_run) {
+ if (retval == 0 && udev_run) {
struct name_entry *name_loop;
dbg("executing run list");
logging_init("udevstart");
udev_config_init();
+ selinux_init();
dbg("version %s", UDEV_VERSION);
udev_run_str = getenv("UDEV_RUN");