From 024780c2ed8efacb65cc8597b6cf79d54abbd735 Mon Sep 17 00:00:00 2001 From: "kay.sievers@vrfy.org" Date: Tue, 19 Apr 2005 00:07:01 +0200 Subject: [PATCH] [PATCH] selinux: fix handling during creation of symlinks Patch from: Dan Walsh --- udev_add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udev_add.c b/udev_add.c index b1e7265a..9764cb9b 100644 --- a/udev_add.c +++ b/udev_add.c @@ -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) -- 2.39.5