[PATCH] selinux: fix handling during creation of symlinks

Patch from: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
kay.sievers@vrfy.org 2005-04-19 00:07:01 +02:00 committed by Greg KH
parent 11a598f7ef
commit 024780c2ed

View 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)