getseuserbyname man page on Mageia

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

getseuserbyname(3)	   SELinux API documentation	    getseuserbyname(3)

NAME
       getseuserbyname	-  get	SELinux	 username  and level for a given Linux
       username

SYNOPSIS
       #include <selinux/selinux.h>

       int getseuserbyname(const char  *linuxuser,  char  **selinuxuser,  char
       **level);

DESCRIPTION
       getseuserbyname()  retrieves  the  SELinux  username and security level
       associated with a given Linux username.	The SELinux username and secu‐
       rity  level  can	 then  be passed to other libselinux functions such as
       get_ordered_context_list_with_level(3)				   and
       get_default_context_with_level(3).

       The  returned  SELinux username and level should be freed by the caller
       using free.

RETURN VALUE
       On success, 0 is returned.  On failure, -1 is returned and errno is set
       appropriately.

       The  errors  documented for the stat(2) system call are also applicable
       here.

SEE ALSO
       selinux(8)

dwalsh@redhat.com	       29 September 2005	    getseuserbyname(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