mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-16 03:27:49 +07:00
[PATCH] selinux: fix handling during creation of symlinks
Patch from: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
11a598f7ef
commit
024780c2ed
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user