• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef SELINUX_CONTEXT_H
2 # define SELINUX_CONTEXT_H
3 
4 # include <errno.h>
5 
6 typedef int context_t;
context_new(char const * s _UNUSED_PARAMETER_)7 static inline context_t context_new (char const *s _UNUSED_PARAMETER_)
8   { errno = ENOTSUP; return 0; }
context_str(context_t con _UNUSED_PARAMETER_)9 static inline char *context_str (context_t con _UNUSED_PARAMETER_)
10   { errno = ENOTSUP; return (void *) 0; }
context_free(context_t c _UNUSED_PARAMETER_)11 static inline void context_free (context_t c _UNUSED_PARAMETER_) {}
12 
context_user_set(context_t sc _UNUSED_PARAMETER_,char const * s _UNUSED_PARAMETER_)13 static inline int context_user_set (context_t sc _UNUSED_PARAMETER_,
14 				    char const *s _UNUSED_PARAMETER_)
15   { errno = ENOTSUP; return -1; }
context_role_set(context_t sc _UNUSED_PARAMETER_,char const * s _UNUSED_PARAMETER_)16 static inline int context_role_set (context_t sc _UNUSED_PARAMETER_,
17 				    char const *s _UNUSED_PARAMETER_)
18   { errno = ENOTSUP; return -1; }
context_range_set(context_t sc _UNUSED_PARAMETER_,char const * s _UNUSED_PARAMETER_)19 static inline int context_range_set (context_t sc _UNUSED_PARAMETER_,
20 				     char const *s _UNUSED_PARAMETER_)
21   { errno = ENOTSUP; return -1; }
context_type_set(context_t sc _UNUSED_PARAMETER_,char const * s _UNUSED_PARAMETER_)22 static inline int context_type_set (context_t sc _UNUSED_PARAMETER_,
23 				    char const *s _UNUSED_PARAMETER_)
24   { errno = ENOTSUP; return -1; }
25 
26 #endif
27