summaryrefslogtreecommitdiff
path: root/src/secontext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/secontext.h')
-rw-r--r--src/secontext.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/secontext.h b/src/secontext.h
index 39222d0c9..c1b915d25 100644
--- a/src/secontext.h
+++ b/src/secontext.h
@@ -11,6 +11,8 @@
# include "defs.h"
+# ifdef ENABLE_SECONTEXT
+
void qualify_secontext(const char *const str);
enum secontext_bits {
@@ -24,9 +26,16 @@ enum secontext_bits {
extern struct number_set *secontext_set;
-int selinux_getfdcon(pid_t pid, int fd, char **context);
-int selinux_getfilecon(struct tcb *tcp, const char *path, char **context);
-int selinux_getpidcon(struct tcb *tcp, char **context);
-void selinux_set_format(const char *optarg);
+void selinux_printfdcon(pid_t pid, int fd);
+void selinux_printfilecon(struct tcb *tcp, const char *path);
+void selinux_printpidcon(struct tcb *tcp);
+
+# else
+
+static inline void selinux_printfdcon(pid_t pid, int fd) {}
+static inline void selinux_printfilecon(struct tcb *tcp, const char *path) {}
+static inline void selinux_printpidcon(struct tcb *tcp) {}
+
+# endif /* ENABLE_SECONTEXT */
#endif /* !STRACE_SECONTEXT_H */