selinux_getpolicytype(3)

selinux_getpolicytype3

Get the type of selinux policy running on the system

Usage

#include <selinux/selinux.h>

int selinux_getpolicytype(char **policytype);

Overview

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).

Return value

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

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0–7
  2. 8
  3. 9–13

From libselinux1-dev 3.8.1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.