table of contents
context_new(3) | SELinux API documentation | context_new(3) |
NAME¶
context_new, context_str, context_free, context_type_get, context_type_set, context_range_get, context_range_set,context_role_get, context_role_set, context_user_get, context_user_set - Routines to manipulate SELinux security contextsSYNOPSIS¶
#include <selinux/context.h>DESCRIPTION¶
These functions allow an application to manipulate the fields of a security context string without requiring it to know the format of the string.Return a new context initialized to a context string
Return a pointer to the string value of the context_t Valid until the next call to context_str or context_free for the same context_t*
Free the storage used by a context
Get a pointer to the string value of a context component
Set a context component
RETURN VALUE¶
On success, zero is returned. On failure, -1 is returned and errno is set appropriately.SEE ALSO¶
selinux(8)20 December 2011 | dwalsh@redhat.com |