selabel_lookup - Online Linux Manual PageSection : 3
Updated : 18 Jun 2007
Source :
Note : SELinux API documentation
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, char **context,
const char *key, int type); int selabel_lookup_raw(struct selabel_handle *hnd, char **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) 0
Johanes Gumabo
Data Size : 6,156 byte
man-selabel_lookup.3Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 186,605
Visitor ID : :
Visitor IP : 3.148.105.127 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.