]> err.no Git - systemd/commitdiff
[PATCH] selinux: fix handling during creation of symlinks
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Mon, 18 Apr 2005 22:07:01 +0000 (00:07 +0200)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 06:55:01 +0000 (23:55 -0700)
Patch from: Dan Walsh <dwalsh@redhat.com>

udev_add.c

index b1e7265a3c381bc60fe23cf2f462e67b53252c20..9764cb9bcd6c07aabbe625ca07d8b6ebddde0d78 100644 (file)
@@ -221,7 +221,7 @@ static int create_node(struct udevice *udev, struct sysfs_class_device *class_de
                dbg("symlink(%s, %s)", linktarget, filename);
                if (!udev->test_run) {
                        unlink(filename);
-                       selinux_setfscreatecon(filename, udev->kernel_name, S_IFLNK);
+                       selinux_setfscreatecon(filename, NULL, S_IFLNK);
                        retval = symlink(linktarget, filename);
                        selinux_resetfscreatecon();
                        if (retval != 0)