logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

selinux_getpolicytype - get the type of SELinux policy running on the system

Description

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

Name

       selinux_getpolicytype - get the type of SELinux policy running on the system

Return Value

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

See Also

selinux(8)

dwalsh@redhat.com                                  24 Sep 2008                          selinux_getpolicytype(3)

Synopsis

#include<selinux/selinux.h>intselinux_getpolicytype(char**policytype);

See Also