selabel_lookup man page on Mageia

Man page or keyword search:  
man Server   17783 pages
apropos Keyword Search (all sections)
Output format
Mageia logo
[printable version]

selabel_lookup(3)	   SELinux API documentation	     selabel_lookup(3)

NAME
       selabel_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);

DESCRIPTION
       selabel_lookup() performs a lookup operation on the handle hnd, returnā€
       ing 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 VALUE
       On success, zero is returned.  On error, -1 is returned	and  errno  is
       set appropriately.

ERRORS
       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.

AUTHOR
       Eamon Walsh <ewalsh@tycho.nsa.gov>

SEE ALSO
       selabel_open(3), selabel_stats(3), selinux_set_callback(3), selinux(8)

				  18 Jun 2007		     selabel_lookup(3)
[top]

List of man pages available for Mageia

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net