summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2008-04-17 16:03:03 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-04-17 19:07:24 +0200
commit6056d9b3400fe0349d86636cbbf93f069bb5639a (patch)
treedde618e113dedd6622a33bb3e52ebc1e25c3bb40 /udevd.c
parente6d70ed63a03f39de148e6b0afb47cbbc5ec78eb (diff)
selinux: more context settings
Signed-off-by: Harald Hoyer <harald@redhat.com>
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) {