Home | History | Annotate | Download | only in lib
      1 #ifndef SELINUX_CONTEXT_H
      2 # define SELINUX_CONTEXT_H
      3 
      4 # include <errno.h>
      5 
      6 typedef int context_t;
      7 static inline context_t context_new (char const *s _UNUSED_PARAMETER_)
      8   { errno = ENOTSUP; return 0; }
      9 static inline char *context_str (context_t con _UNUSED_PARAMETER_)
     10   { errno = ENOTSUP; return (void *) 0; }
     11 static inline void context_free (context_t c _UNUSED_PARAMETER_) {}
     12 
     13 static inline int context_user_set (context_t sc _UNUSED_PARAMETER_,
     14 				    char const *s _UNUSED_PARAMETER_)
     15   { errno = ENOTSUP; return -1; }
     16 static inline int context_role_set (context_t sc _UNUSED_PARAMETER_,
     17 				    char const *s _UNUSED_PARAMETER_)
     18   { errno = ENOTSUP; return -1; }
     19 static inline int context_range_set (context_t sc _UNUSED_PARAMETER_,
     20 				     char const *s _UNUSED_PARAMETER_)
     21   { errno = ENOTSUP; return -1; }
     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