Query: getseuserbyname
OS: centos
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
getseuserbyname(3) SELinux API documentation getseuserbyname(3)NAMEgetseuserbyname - get SELinux username and level for a given Linux usernameSYNOPSIS#include <selinux/selinux.h> int getseuserbyname(const char *linuxuser, char **selinuxuser, char **level);DESCRIPTIONgetseuserbyname() 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 VALUEOn 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 ALSOselinux(8) dwalsh@redhat.com 29 September 2005 getseuserbyname(3)
Related Man Pages |
---|
get_default_context(3) - debian |
get_default_context_with_rolelevel(3) - debian |
get_default_context(3) - centos |
manual_user_enter_context(3) - centos |
query_user_context(3) - centos |
Similar Topics in the Unix Linux Community |
---|
Best performance UNIX just for HOST Virtualization? |
Docker learning Phase-I |
Shopt -s histappend |
Unsure why access time on a directory change isn't changing |
Controlling user input |