* restoration creation purposes.
*/
udev->selinux_enabled = (is_selinux_enabled() > 0);
+ info(udev, "selinux=%i\n", udev->selinux_enabled);
if (udev->selinux_enabled) {
matchpathcon_init_prefix(NULL, udev_get_dev_path(udev));
if (getfscreatecon(&udev->selinux_prev_scontext) < 0) {
if (udev == NULL)
return NULL;
memset(udev, 0x00, (sizeof(struct udev)));
-
- selinux_init(udev);
- sysfs_init();
udev->refcount = 1;
udev->log_fn = log_stderr;
udev->log_priority = LOG_ERR;
udev->dev_path = strdup(UDEV_PREFIX "/dev");
udev->sys_path = strdup("/sys");
config_file = strdup(SYSCONFDIR "/udev/udev.conf");
-
if (udev->dev_path == NULL ||
udev->sys_path == NULL ||
config_file == NULL)
if (udev->dev_path == NULL || udev->sys_path == NULL)
goto err;
+ selinux_init(udev);
+ sysfs_init();
+
info(udev, "context %p created\n", udev);
info(udev, "log_priority=%d\n", udev->log_priority);
info(udev, "config_file='%s'\n", config_file);