---
name: "security_policyvers"
section: "3"
platform: "linux"
package: "libselinux1-dev"
version: "3.8.1-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/security_policyvers"
---

# security\_policyvers(3)

get the version of the SELinux policy

## NAME

security\_policyvers - get the version of the SELinux policy

## SYNOPSIS

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

**int security\_policyvers(void);**

## DESCRIPTION

**security\_policyvers**() returns the version of the policy (a positive integer) on success, or -1 on error.

## SEE ALSO

[**selinux**(8)](/selinux/8.md)
