macOS
brew install libsepollocal Homebrew formula metadata
安装
brew install libsepollocal Homebrew formula metadata
sudo apk add libsepolAlpine Linux edge package indexes · libsepol · 来源: dl-cdn.alpinelinux.org
sudo dnf install libsepolFedora Rawhide package metadata · libsepol · 来源: dl.fedoraproject.org
nix profile install nixpkgs#libsepolnixpkgs package indexes · pkgs/by-name/li/libsepol/package.nix · 来源: api.github.com
sudo apt install libsepol-devDebian stable package indexes · libsepol-dev · 来源: deb.debian.org
sudo zypper install libsepol-developenSUSE Tumbleweed package metadata · libsepol-devel · 来源: download.opensuse.org
概览
SELinux binary policy manipulation library
历史
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.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
chkcon | cli | 全局可执行文件 | |
sepol_check_access | cli | 全局可执行文件 | |
sepol_compute_av | cli | 全局可执行文件 | |
sepol_compute_member | cli | 全局可执行文件 | |
sepol_compute_relabel | cli | 全局可执行文件 | |
sepol_validate_transition | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/SELinuxProject/selinux
安装元数据
| 软件包键 | brew:libsepol |
|---|---|
| 版本 | 3.11 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/libsepol |
| 主页 | https://github.com/SELinuxProject/selinux |
| 仓库 | https://github.com/SELinuxProject/selinux |
| 上游文档 | https://github.com/SELinuxProject/selinux/wiki |
| 许可证 | LGPL-2.1-or-later |
| 源码归档 | https://github.com/SELinuxProject/selinux/releases/download/3.11/libsepol-3.11.tar.gz |
| 最后更新 | 2026-07-01T18:53:14Z |
| Pulse | updated |
| 构建依赖 | coreutils |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-static来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.