The typedef security_context_t is deprecated, see
https://github.com/SELinuxProject/selinux/commit/
9eb9c9327563014ad6a807814e7975424642d5b9
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Acked-by: James Carter <jwcart2@gmail.com>
#ifndef COMMONIO_H
#define COMMONIO_H
-#ifdef WITH_SELINUX
-#include <selinux/selinux.h>
-#endif
-
#include "defines.h" /* bool */
/*
/*@dependent@*/ /*@null@*/FILE *fp;
#ifdef WITH_SELINUX
- /*@null@*/security_context_t scontext;
+ /*@null@*/char *scontext;
#endif
/*
* Default permissions and owner for newly created data file.
#include "sgroupio.h"
#endif
#include "shadowio.h"
+#ifdef WITH_SELINUX
+#include <selinux/selinux.h>
+#endif /* WITH_SELINUX */
#ifdef ENABLE_SUBIDS
#include "subordinateio.h"
#endif /* ENABLE_SUBIDS */
#ifdef SHADOWGRP
#include "sgroupio.h"
#endif /* SHADOWGRP */
+#ifdef WITH_SELINUX
+#include <selinux/selinux.h>
+#endif /* WITH_SELINUX */
#ifdef WITH_TCB
#include <tcb.h>
#include "tcbfuncs.h"
#ifdef ENABLE_SUBIDS
#include "subordinateio.h"
#endif /* ENABLE_SUBIDS */
+#ifdef WITH_SELINUX
+#include <selinux/selinux.h>
+#endif /* WITH_SELINUX */
#ifdef WITH_TCB
#include "tcbfuncs.h"
#endif