summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
Diffstat (limited to 'udevd.c')
-rw-r--r--udevd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/udevd.c b/udevd.c
index 530fc59a36..7786ae6b8d 100644
--- a/udevd.c
+++ b/udevd.c
@@ -168,7 +168,9 @@ static void export_event_state(struct udevd_uevent_msg *msg, enum event_state st
delete_path(filename_failed);
create_path(filename);
+ selinux_setfscreatecon(filename, NULL, S_IFLNK);
symlink(msg->devpath, filename);
+ selinux_resetfscreatecon();
break;
case EVENT_FINISHED:
if (msg->devpath_old != NULL) {