diff options
-rw-r--r-- | src/udev/udevd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c index 1c922ed1f2..ab2aeb7c9f 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -965,11 +965,11 @@ static void static_dev_create_from_modules(struct udev *udev) { strscpyl(filename, sizeof(filename), "/dev/", devname, NULL); mkdir_parents_label(filename, 0755); - label_context_set(filename, mode); + mac_selinux_context_set(filename, mode); log_debug("mknod '%s' %c%u:%u\n", filename, type, maj, min); if (mknod(filename, mode, makedev(maj, min)) < 0 && errno == EEXIST) utimensat(AT_FDCWD, filename, NULL, 0); - label_context_clear(); + mac_selinux_context_clear(); } fclose(f); |