diff options
Diffstat (limited to 'selinux.h')
-rw-r--r-- | selinux.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,7 +1,15 @@ | |||
1 | #ifndef SELINUX_H | 1 | #ifndef SELINUX_H |
2 | #define SELINUX_H | 2 | #define SELINUX_H |
3 | 3 | ||
4 | # ifdef WITH_SELINUX | ||
5 | |||
4 | extern void setup_selinux_pty(const char *, const char *); | 6 | extern void setup_selinux_pty(const char *, const char *); |
5 | extern void setup_selinux_exec_context(const char *); | 7 | extern void setup_selinux_exec_context(const char *); |
6 | 8 | ||
9 | # else | ||
10 | |||
11 | static inline void setup_selinux_pty(const char *name, const char *tty) {} | ||
12 | static inline void setup_selinux_exec_context(const char *name) {} | ||
13 | |||
14 | #endif /* WITH_SELINUX */ | ||
7 | #endif /* SELINUX_H */ | 15 | #endif /* SELINUX_H */ |