1selinux_getpolicytype(3)   SELinux API documentation  selinux_getpolicytype(3)
2
3
4

NAME

6       selinux_getpolicytype  -  get the type of SELinux policy running on the
7       system
8

SYNOPSIS

10       #include <selinux/selinux.h>
11
12       int selinux_getpolicytype(char **policytype);
13

DESCRIPTION

15       selinux_getpolicytype() Reads the contents of  the  /etc/selinux/config
16       file  to  determine  the  SELinux  policy  used on the system, and sets
17       policytype accordingly. Free policytype with free(3).
18

RETURN VALUE

20       On success, zero is returned.  On failure, -1 is returned.
21

SEE ALSO

23       selinux(8)
24
25
26
27dwalsh@redhat.com                 24 Sep 2008         selinux_getpolicytype(3)
Impressum