---
name: "selinux_policyroot"
section: "3"
platform: "linux"
package: "libselinux1-dev"
version: "1.22-1"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/selinux_policyroot"
---

# selinux\_policyroot(3)

return the path of the SELinux policy files for this machine.

## NAME

selinux\_policyroot - return the path of the SELinux policy files for this machine.

## SYNOPSIS

**#include \<selinux/selinux.h\>**

**char \*selinux\_policyroot();**\

## DESCRIPTION

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