summaryrefslogtreecommitdiff
path: root/selinux.h
diff options
context:
space:
mode:
Diffstat (limited to 'selinux.h')
-rw-r--r--selinux.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/selinux.h b/selinux.h
index 53fc155f2..af1d44632 100644
--- a/selinux.h
+++ b/selinux.h
@@ -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
4extern void setup_selinux_pty(const char *, const char *); 6extern void setup_selinux_pty(const char *, const char *);
5extern void setup_selinux_exec_context(const char *); 7extern void setup_selinux_exec_context(const char *);
6 8
9# else
10
11static inline void setup_selinux_pty(const char *name, const char *tty) {}
12static inline void setup_selinux_exec_context(const char *name) {}
13
14#endif /* WITH_SELINUX */
7#endif /* SELINUX_H */ 15#endif /* SELINUX_H */