summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-04-19 00:07:01 +0200
committerGreg KH <gregkh@suse.de>2005-04-26 23:55:01 -0700
commit024780c2ed8efacb65cc8597b6cf79d54abbd735 (patch)
tree5505114f8459ba64d7629a36b7165e893c2d18f1
parent11a598f7ef4c263a6546b512806358970dfe5010 (diff)
[PATCH] selinux: fix handling during creation of symlinks
Patch from: Dan Walsh <dwalsh@redhat.com>
-rw-r--r--udev_add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_add.c b/udev_add.c
index b1e7265a3c..9764cb9bcd 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)