summaryrefslogtreecommitdiff
path: root/lib/se-context.in.h
diff options
context:
space:
mode:
authorClint Adams <schizo@debian.org>2009-07-22 18:08:07 -0500
committerClint Adams <schizo@debian.org>2009-07-22 18:08:07 -0500
commit86bbc911e93efe1f0957ee887182b3d64bb0eec4 (patch)
treeb5396e313f5bdcce6df85c7e787b214d68e715d4 /lib/se-context.in.h
parent47c0ab9528ec53e5a0a6e761ba3789055e048638 (diff)
Imported Upstream version 4.2.1
Diffstat (limited to 'lib/se-context.in.h')
-rw-r--r--lib/se-context.in.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/se-context.in.h b/lib/se-context.in.h
new file mode 100644
index 0000000..5eb95af
--- /dev/null
+++ b/lib/se-context.in.h
@@ -0,0 +1,26 @@
+#ifndef SELINUX_CONTEXT_H
+# define SELINUX_CONTEXT_H
+
+# include <errno.h>
+
+typedef int context_t;
+static inline context_t context_new (char const *s _UNUSED_PARAMETER_)
+ { errno = ENOTSUP; return 0; }
+static inline char *context_str (context_t con _UNUSED_PARAMETER_)
+ { errno = ENOTSUP; return (void *) 0; }
+static inline void context_free (context_t c _UNUSED_PARAMETER_) {}
+
+static inline int context_user_set (context_t sc _UNUSED_PARAMETER_,
+ char const *s _UNUSED_PARAMETER_)
+ { errno = ENOTSUP; return -1; }
+static inline int context_role_set (context_t sc _UNUSED_PARAMETER_,
+ char const *s _UNUSED_PARAMETER_)
+ { errno = ENOTSUP; return -1; }
+static inline int context_range_set (context_t sc _UNUSED_PARAMETER_,
+ char const *s _UNUSED_PARAMETER_)
+ { errno = ENOTSUP; return -1; }
+static inline int context_type_set (context_t sc _UNUSED_PARAMETER_,
+ char const *s _UNUSED_PARAMETER_)
+ { errno = ENOTSUP; return -1; }
+
+#endif