#include "udev.h"
#include "udev_version.h"
#include "udev_dbus.h"
+#include "udev_selinux.h"
#include "logging.h"
#include "namedev.h"
#include "udevdb.h"
}
}
+ if (!fake)
+ selinux_add_node(filename);
+
/* create symlink if requested */
if (dev->symlink[0] != '\0') {
symlinks = dev->symlink;
i++;
}
- if (linktarget[0] == '\0')
- strfieldcpy(linktarget, "./");
strfieldcat(linktarget, &dev->name[tail]);
/* unlink existing files to ensure that our symlink is created */