diff options
Diffstat (limited to 'udev/udev_selinux.c')
-rw-r--r-- | udev/udev_selinux.c | 11 |
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 |