diff options
Diffstat (limited to 'src/shared/label.c')
-rw-r--r-- | src/shared/label.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/shared/label.c b/src/shared/label.c index 7aa362106e..2062fc316c 100644 --- a/src/shared/label.c +++ b/src/shared/label.c @@ -31,25 +31,12 @@ #include "path-util.h" #ifdef HAVE_SELINUX +#include "selinux-util.h" #include <selinux/selinux.h> #include <selinux/label.h> static struct selabel_handle *label_hnd = NULL; -static int use_selinux_cached = -1; - -static inline bool use_selinux(void) { - - if (use_selinux_cached < 0) - use_selinux_cached = is_selinux_enabled() > 0; - - return use_selinux_cached; -} - -void label_retest_selinux(void) { - use_selinux_cached = -1; -} - #endif int label_init(const char *prefix) { |