summaryrefslogtreecommitdiff
path: root/udev/udevd.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-09-10 00:46:17 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-09-10 00:46:17 +0200
commit4f4b12c20388ff2cb158b040e3193f86cf7a3b96 (patch)
tree41449172690d16f6deba140d174343478f806d23 /udev/udevd.c
parent6b12bdb62460a0bdc08d5e020a64c18bc1672bb1 (diff)
libudev: add selinux
Diffstat (limited to 'udev/udevd.c')
-rw-r--r--udev/udevd.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/udev/udevd.c b/udev/udevd.c
index a24ca92517..d24d8430ca 100644
--- a/udev/udevd.c
+++ b/udev/udevd.c
@@ -47,7 +47,6 @@
#include "udev.h"
#include "udev_rules.h"
-#include "udev_selinux.h"
#define UDEVD_PRIORITY -4
#define UDEV_PRIORITY -2
@@ -189,9 +188,9 @@ static void export_event_state(struct udevd_uevent_msg *msg, enum event_state st
unlink(filename_failed);
delete_path(msg->udev, filename_failed);
create_path(msg->udev, filename);
- selinux_setfscreatecon(msg->udev, filename, NULL, S_IFLNK);
+ udev_selinux_setfscreatecon(msg->udev, filename, S_IFLNK);
symlink(msg->devpath, filename);
- selinux_resetfscreatecon(msg->udev);
+ udev_selinux_resetfscreatecon(msg->udev);
break;
case EVENT_FINISHED:
if (msg->devpath_old != NULL) {
@@ -804,8 +803,6 @@ int main(int argc, char *argv[])
logging_init("udevd");
udev_set_log_fn(udev, log_fn);
-
- selinux_init(udev);
dbg(udev, "version %s\n", VERSION);
while (1) {
@@ -1107,7 +1104,6 @@ int main(int argc, char *argv[])
exit:
udev_rules_cleanup(&rules);
sysfs_cleanup();
- selinux_exit(udev);
if (signal_pipe[READ_END] >= 0)
close(signal_pipe[READ_END]);