macOS
brew install libsepollocal Homebrew formula metadata
brew
SELinux binary policy manipulation library. Version 3.11 via Homebrew; verified 2026-07-01.
install
brew install libsepollocal Homebrew formula metadata
sudo apk add libsepolAlpine Linux edge package indexes · libsepol · source: dl-cdn.alpinelinux.org
sudo apt install libsepol-devDebian stable package indexes · libsepol-dev · source: deb.debian.org
sudo dnf install libsepolFedora Rawhide package metadata · libsepol · source: dl.fedoraproject.org
nix profile install nixpkgs#libsepolnixpkgs package indexes · pkgs/by-name/li/libsepol/package.nix · source: api.github.com
sudo zypper install libsepol-developenSUSE Tumbleweed package metadata · libsepol-devel · source: download.opensuse.org
overview
SELinux binary policy manipulation library
history
libsepol is the SELinux binary policy manipulation library. It sits below higher-level management tools and policy compilers, handling the compiled policy representation that the kernel consumes.
libsepol grew as part of the SELinux userspace stack, which was separated from the kernel-side mandatory access-control mechanism into libraries, compilers, and administrative tools. The SELinuxProject repository contains libsepol alongside libselinux, libsemanage, policycoreutils, checkpolicy, and secilc.
The upstream userspace package documentation describes secilc and checkpolicy as using libsepol to generate binary policy. It also describes libsemanage as relying on libsepol for binary policy manipulation and on libselinux for interaction with the running SELinux system.
libsepol's adoption followed SELinux adoption in distributions: it is packaged as a base SELinux userspace component rather than as a user-facing application. Systems that build, load, downgrade, inspect, or manage SELinux policy tend to pull in libsepol directly or indirectly.
The library is also useful outside a fully SELinux-enabled Linux system, because policy analysis and compilation workflows can run on systems that are not enforcing SELinux.
Administrators usually touch libsepol indirectly through semodule, semanage, checkpolicy, secilc, load_policy, and related SELinux tools. The Homebrew formula exposes helper commands such as chkcon and sepol_check_access for policy-oriented checks.
For developers, libsepol is the lower-level library to use when the task is reading, writing, checking, or transforming SELinux binary policy rather than asking the running system for a process or file context.
libsepol is the package that reminds distro maintainers that SELinux is not one package: the enforcement model depends on a layered toolchain. libselinux is the runtime-facing layer, libsepol is the binary-policy layer, and libsemanage plus policycoreutils build the administrative experience above them.
Because Homebrew can build libsepol on macOS mainly for policy analysis, it is a neat example of a Linux security component whose most portable part is the file-format and compiler tooling.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
chkcon | cli | global executable | |
sepol_check_access | cli | global executable | |
sepol_compute_av | cli | global executable | |
sepol_compute_member | cli | global executable | |
sepol_compute_relabel | cli | global executable | |
sepol_validate_transition | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/SELinuxProject/selinux
install metadata
| Package key | brew:libsepol |
|---|---|
| Version | 3.11 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/libsepol |
| Homepage | https://github.com/SELinuxProject/selinux |
| Repository | https://github.com/SELinuxProject/selinux |
| Upstream docs | https://github.com/SELinuxProject/selinux/wiki |
| License | LGPL-2.1-or-later |
| Source archive | https://github.com/SELinuxProject/selinux/releases/download/3.11/libsepol-3.11.tar.gz |
| Last updated | 2026-07-01T18:53:14Z |
| Pulse | updated |
| Build dependencies | coreutils |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | libsepol |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libsepol-dev 3.8.1-1
SELinux binary policy manipulation library and development files
sudo apt install libsepol-devlibsepol2 3.8.1-1
SELinux library for manipulating binary security policies
sudo apt install libsepol2sepol-utils 3.8.1-1
Security Enhanced Linux policy utility programs
sudo apt install sepol-utilslibsepol
nix profile install nixpkgs#libsepollibsepol-dev 3.5-2build1
SELinux binary policy manipulation library and development files
sudo apt install libsepol-devlibsepol2 3.5-2build1
SELinux library for manipulating binary security policies
sudo apt install libsepol2sepol-utils 3.5-2build1
Security Enhanced Linux policy utility programs
sudo apt install sepol-utilslibsepol 3.10-r0
SELinux binary policy manipulation library
https://github.com/SELinuxProject/selinux/wiki
sudo apk add libsepollibsepol-dev 3.10-r0
SELinux binary policy manipulation library (development files)
https://github.com/SELinuxProject/selinux/wiki
sudo apk add libsepol-devlibsepol-doc 3.10-r0
SELinux binary policy manipulation library (documentation)
https://github.com/SELinuxProject/selinux/wiki
sudo apk add libsepol-doclibsepol 3.10-1.fc44
SELinux binary policy manipulation library
https://github.com/SELinuxProject/selinux/wiki
sudo dnf install libsepollibsepol-devel 3.10-1.fc44
Header files and libraries used to build policy manipulation tools
https://github.com/SELinuxProject/selinux/wiki
sudo dnf install libsepol-devellibsepol-static 3.10-1.fc44
static libraries used to build policy manipulation tools
https://github.com/SELinuxProject/selinux/wiki
sudo dnf install libsepol-staticlibsepol-utils 3.10-1.fc44
SELinux libsepol utilities
https://github.com/SELinuxProject/selinux/wiki
sudo dnf install libsepol-utilslibsepol-devel 3.10-1.3
Development files for SELinux's binary policy manipulation library
https://github.com/SELinuxProject/selinux/wiki/Releases
sudo zypper install libsepol-devellibsepol-devel-static 3.10-1.3
Static archives for SELinux's binary policy manipulation library
https://github.com/SELinuxProject/selinux/wiki/Releases
sudo zypper install libsepol-devel-staticsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.