summaryrefslogtreecommitdiff
path: root/udev/udev_selinux.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-03 14:49:29 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-10-03 14:49:29 +0200
commit7744e869ecbfd2a508dbba46acfc2133a2f8f840 (patch)
treed8052926e17c1048cd8a302a9b4cebbaef3c945d /udev/udev_selinux.c
parent22c89d3fd78d7ef3f231fc837a47860efcc4cc9e (diff)
move selinux noops to udev.h
Diffstat (limited to 'udev/udev_selinux.c')
-rw-r--r--udev/udev_selinux.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/udev/udev_selinux.c b/udev/udev_selinux.c
index 499f53c916..cf7f43496a 100644
--- a/udev/udev_selinux.c
+++ b/udev/udev_selinux.c
@@ -22,18 +22,10 @@
#include <stddef.h>
#include <stdarg.h>
#include <unistd.h>
+#include <selinux/selinux.h>
#include "udev.h"
-#ifndef USE_SELINUX
-void selinux_init(struct udev *udev) {}
-void selinux_exit(struct udev *udev) {}
-void udev_selinux_lsetfilecon(struct udev *udev, const char *file, unsigned int mode) {}
-void udev_selinux_setfscreatecon(struct udev *udev, const char *file, unsigned int mode) {}
-void udev_selinux_resetfscreatecon(struct udev *udev) {}
-#else
-#include <selinux/selinux.h>
-
static int selinux_enabled;
security_context_t selinux_prev_scontext;
@@ -96,4 +88,3 @@ void udev_selinux_resetfscreatecon(struct udev *udev)
if (setfscreatecon(selinux_prev_scontext) < 0)
err(udev, "setfscreatecon failed: %m\n");
}
-#endif