summaryrefslogtreecommitdiff
path: root/lib/se-context.in.h
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2013-11-27 21:53:19 +0000
committerPádraig Brady <P@draigBrady.com>2013-11-28 00:27:37 +0000
commit647e7023ce05b720e9de6ccd4b8eb62836bcfb7b (patch)
tree6b810a754e7e24cb849f9dc956c081eee32bc4dd /lib/se-context.in.h
parentfd27e50d9f01023121aa5d01fb24d8e7dd39392a (diff)
downloadgnulib-647e7023ce05b720e9de6ccd4b8eb62836bcfb7b.tar.gz
selinux-h: improve stub types and add more stub functions
* lib/se-selinux.in.h: Change security_context_t to a typedef rather than a define, as it's a pointer type and so is better as a typedef to avoid issues declaring multiple variables with the comma operator. Also add stub for string_to_security_class(). * lib/se-context.in.h: Add stub functions for context_{type,range,role,user}_get().
Diffstat (limited to 'lib/se-context.in.h')
-rw-r--r--lib/se-context.in.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/se-context.in.h b/lib/se-context.in.h
index bd586e8b10..c3890a2bf3 100644
--- a/lib/se-context.in.h
+++ b/lib/se-context.in.h
@@ -32,6 +32,14 @@ SE_CONTEXT_INLINE int context_range_set (context_t sc _GL_UNUSED_PARAMETER,
SE_CONTEXT_INLINE int context_type_set (context_t sc _GL_UNUSED_PARAMETER,
char const *s _GL_UNUSED_PARAMETER)
{ errno = ENOTSUP; return -1; }
+SE_CONTEXT_INLINE char *context_type_get (context_t sc _GL_UNUSED_PARAMETER)
+ { errno = ENOTSUP; return (void *) 0; }
+SE_CONTEXT_INLINE char *context_range_get (context_t sc _GL_UNUSED_PARAMETER)
+ { errno = ENOTSUP; return (void *) 0; }
+SE_CONTEXT_INLINE char *context_role_get (context_t sc _GL_UNUSED_PARAMETER)
+ { errno = ENOTSUP; return (void *) 0; }
+SE_CONTEXT_INLINE char *context_user_get (context_t sc _GL_UNUSED_PARAMETER)
+ { errno = ENOTSUP; return (void *) 0; }
_GL_INLINE_HEADER_END