Query: selabel_lookup
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
selabel_lookup(3) SELinux API documentation selabel_lookup(3)NAMEselabel_lookup - obtain SELinux security context from a string label.SYNOPSIS#include <selinux/selinux.h> #include <selinux/label.h> int selabel_lookup(struct selabel_handle *hnd, security_context_t *context, const char *key, int type); int selabel_lookup_raw(struct selabel_handle *hnd, security_context_t *context, const char *key, int type);DESCRIPTIONselabel_lookup performs a lookup operation on the handle hnd, returning the result in the memory pointed to by context, which must be freed by the caller using freecon(3). The key and type parameters are the inputs to the lookup operation and are interpreted according to the specific backend that handle is open on. selabel_lookup_raw behaves identically to selabel_lookup but does not perform context translation.RETURN VALUEOn success, zero is returned. On error, -1 is returned and errno is set appropriately.ERRORSENOENT No context corresponding to the input key and type was found. EINVAL The key and/or type inputs are invalid, or the context being returned failed validation. ENOMEM An attempt to allocate memory failed.AUTHOREamon Walsh <ewalsh@tycho.nsa.gov>SEE ALSOselabel_open(3), selabel_stats(3), selinux_set_callback(3), selinux(8) 18 Jun 2007 selabel_lookup(3)
Related Man Pages |
---|
selabel_media(5) - centos |
selabel_x(5) - centos |
selabel_close(3) - debian |
x_contexts(5) - debian |
selabel_close(3) - centos |
Similar Topics in the Unix Linux Community |
---|
Installing Dash Shell on OS X Lion |
awk or sed - Convert 2 lines to 1 line |
Weird 'find' results |
My first PERL incarnation... Audio Oscillograph |