selabel_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.
ENOENT 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.
This page is part of the selinux (Security-Enhanced Linux user-space
libraries and tools) project. Information about the project can be
found at ⟨https://github.com/SELinuxProject/selinux/wiki⟩. If you
have a bug report for this manual page, see
page was obtained from the project's upstream Git repository
⟨https://github.com/SELinuxProject/selinux⟩ on 2017-03-13. If you
discover any rendering problems in this HTML version of the page, or
you believe there is a better or more up-to-date source for the page,
or you have corrections or improvements to the information in this
COLOPHON (which is not part of the original manual page), send a mail
18 Jun 2007 selabel_lookup(3)