selinux_policyroot(3)

selinux_policyroot3

Return the path of the selinux policy files for this machine.

Usage

#include <selinux/selinux.h>

char *selinux_policyroot();

Overview

selinux_policyroot Reads the contents of the /etc/selinux/config file to determine which policy files should be used for this machine.

Return value

On success, returns a directory path containing the SELinux policy files. On failure, NULL is returned.

From libselinux1-dev 1.22-1 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.