security\_policyvers(3) SELinux API documentation security\_policyvers(3)

# [NAME](#NAME)

security\_policyvers - get the version of the SELinux policy

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;selinux/selinux.h&gt;**

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

# [DESCRIPTION](#DESCRIPTION)

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

# [SEE ALSO](#SEE_ALSO)

[**selinux**(8)](/man/os/libselinux/selinux.8)

1 January 2004 russell@coker.com.au

---

Document: security_policyvers(3) from libselinux 3.11-r2 (Chainguard OS)
Source: https://github.com/SELinuxProject/selinux.git
