mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-12 00:55:03 +00:00
6ef13eeda7
- Add man page sections '(N)' to external references, and '()' on functions described in the same man page. - Escape minus signs when those are expected to be used on the command line or files. - Mark files and variables in italic; Note headings, function names, constants, program options and man page references in bold. - Do not justify and hyphenate SEE ALSO section, and avoid hyphenation on symbol names by prepending them with \%. - Remove trailing dot from NAME section description. - Split sections with a no-op command '.', to visually distinguish them but to avoid introducing spurious vertical space in the formatted output. - Add explicit .sp commands in the SYNOPSIS section between function prototypes, and fix space placement in function protoypes. - Split header includes with .br (instead of the explicit or implicit .sp) so that they are vertically contiguous. - Add missing {} around SELINUXTYPE and POLICYTYPE variable text in paths. - Remove unneeded formatting commands. - Remove spurious blank lines. Signed-off-by: Guillem Jover <guillem@debian.org> Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
34 lines
968 B
Groff
34 lines
968 B
Groff
.TH "getseuserbyname" "3" "29 September 2005" "dwalsh@redhat.com" "SELinux API documentation"
|
|
.SH "NAME"
|
|
getseuserbyname \- get SELinux username and level for a given Linux username
|
|
.
|
|
.SH "SYNOPSIS"
|
|
.B #include <selinux/selinux.h>
|
|
.sp
|
|
.BI "int getseuserbyname(const char *" linuxuser ", char **" selinuxuser ", char **" level ");
|
|
.
|
|
.SH "DESCRIPTION"
|
|
.BR getseuserbyname ()
|
|
retrieves the SELinux username and security level associated with
|
|
a given Linux username. The SELinux username and security level can
|
|
then be passed to other libselinux functions such as
|
|
.BR \%get_ordered_context_list_with_level (3)
|
|
and
|
|
.BR \%get_default_context_with_level (3).
|
|
|
|
The returned SELinux username and level should be freed by the caller
|
|
using free.
|
|
.
|
|
.SH "RETURN VALUE"
|
|
On success, 0 is returned.
|
|
On failure, \-1 is returned and
|
|
.I errno
|
|
is set appropriately.
|
|
|
|
The errors documented for the
|
|
.BR stat (2)
|
|
system call are also applicable here.
|
|
.
|
|
.SH "SEE ALSO"
|
|
.BR selinux "(8)"
|