Lines 33-42
Link Here
|
33 |
#include <shadow.h> |
33 |
#include <shadow.h> |
34 |
#include <signal.h> |
34 |
#include <signal.h> |
35 |
#include <time.h> |
35 |
#include <time.h> |
36 |
static int selinux_enabled=-1; |
|
|
37 |
#ifdef WITH_SELINUX |
36 |
#ifdef WITH_SELINUX |
38 |
#include <selinux/selinux.h> |
37 |
#include <selinux/selinux.h> |
39 |
#define SELINUX_ENABLED (selinux_enabled!=-1 ? selinux_enabled : selinux_enabled=is_selinux_enabled()>0) |
38 |
#define SELINUX_ENABLED (is_selinux_enabled() == 1) |
40 |
static security_context_t prev_context=NULL; |
39 |
static security_context_t prev_context=NULL; |
41 |
#else |
40 |
#else |
42 |
#define SELINUX_ENABLED 0 |
41 |
#define SELINUX_ENABLED 0 |