diff options
Diffstat (limited to 'src/rc/rc-selinux.h')
-rw-r--r-- | src/rc/rc-selinux.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/rc/rc-selinux.h b/src/rc/rc-selinux.h index e28f3339..039890b7 100644 --- a/src/rc/rc-selinux.h +++ b/src/rc/rc-selinux.h @@ -26,10 +26,24 @@ #ifndef RC_SELINUX_UTIL_H #define RC_SELINUX_UTIL_H +#ifdef HAVE_SELINUX + int selinux_util_open(void); int selinux_util_label(const char *path); int selinux_util_close(void); void selinux_setup(char **argv); +#else + +/* always return false for selinux_util_open() */ +#define selinux_util_open() (0) +#define selinux_util_label(x) do { } while(0) +#define selinux_util_close() do { } while(0) + +#define selinux_setup(x) do { } while(0) + +#endif + + #endif |