diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2005-04-19 00:07:01 +0200 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:55:01 -0700 |
commit | 024780c2ed8efacb65cc8597b6cf79d54abbd735 (patch) | |
tree | 5505114f8459ba64d7629a36b7165e893c2d18f1 /udev_add.c | |
parent | 11a598f7ef4c263a6546b512806358970dfe5010 (diff) |
[PATCH] selinux: fix handling during creation of symlinks
Patch from: Dan Walsh <dwalsh@redhat.com>
Diffstat (limited to 'udev_add.c')
-rw-r--r-- | udev_add.c | 2 |
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) |