macOS
brew install libselinuxlocal Homebrew formula metadata
brew
libselinux のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install libselinuxlocal Homebrew formula metadata
sudo apk add libselinuxAlpine Linux edge package indexes · libselinux · ソース: dl-cdn.alpinelinux.org
sudo dnf install libselinuxFedora Rawhide package metadata · libselinux · ソース: dl.fedoraproject.org
nix profile install nixpkgs#libselinuxnixpkgs package indexes · pkgs/by-name/li/libselinux/package.nix · ソース: api.github.com
sudo apt install libselinux1Debian stable package indexes · libselinux1 · ソース: deb.debian.org
sudo zypper install libselinux-developenSUSE Tumbleweed package metadata · libselinux-devel · ソース: download.opensuse.org
概要
SELinux library and simple utilities
履歴
libselinux is the runtime library and small utility layer used by SELinux-aware programs to talk to SELinux kernel APIs, inspect labels, and perform access-control checks. In package terms it is the userland ABI that turns SELinux from a kernel feature into something daemons, init systems, login tools, package scripts, and administrators can actually use.
SELinux began as a National Security Agency research effort around flexible mandatory access control for Linux. NSA documentation from 2001 describes the original SELinux kernel patch for Linux 2.2 and the later Linux Security Module implementation. The modern SELinuxProject userspace repository collects the libraries and tools that complement the kernel feature, including libselinux, libsepol, libsemanage, policycoreutils, and related utilities.
Within that stack, libselinux became the runtime interface for applications that need SELinux context and policy services. The upstream userspace package notes describe libselinux as providing library functions for SELinux kernel APIs such as getcon(), plus support functions such as getseuserbyname(), and note that it may use libsepol when loading policy.
The upstream SELinux README describes SELinux as present in many major Linux distributions and says the userspace libraries and tools are packaged by Alpine, Debian and Ubuntu, Gentoo, Fedora and RHEL, SLES and openSUSE, Yocto, and others. That made libselinux a quiet but widely depended-on system library rather than an application users install for its own UI.
The userspace packages wiki points to package-manager reverse dependency queries for libselinux as a way to find SELinux-modified programs, and lists init systems, PAM, OpenSSH, cron, sudo, shadow-utils, and other core packages as historical examples of SELinux-aware integration points.
Administrators encounter libselinux through utilities such as getenforce, setenforce, getfilecon, setfilecon, matchpathcon, selinuxenabled, and getsebool. Developers encounter it as the C library used by programs that need to read process and file contexts, ask whether SELinux is enabled, or evaluate an SELinux permission decision.
On macOS via Homebrew it is mainly useful for policy analysis and tooling experiments, not for enabling the Linux kernel SELinux enforcement path.
libselinux is one of those packages whose importance is mostly visible through dependency graphs: if SELinux support is compiled into system software, this library is often the shared object that appears in the linkage. It is also a good example of how Linux security features split across kernel APIs, policy compilers, runtime libraries, and distro packaging.
For Homebrew users, libselinux is interesting because it brings a Linux security userland component onto macOS mostly as a build dependency and analysis library, exposing the portability boundary between SELinux policy tooling and actual SELinux enforcement.
セキュリティ状態
library-like package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
avcstat | cli | グローバル実行可能ファイル | |
compute_av | cli | グローバル実行可能ファイル | |
compute_create | cli | グローバル実行可能ファイル | |
compute_member | cli | グローバル実行可能ファイル | |
compute_relabel | cli | グローバル実行可能ファイル | |
getconlist | cli | グローバル実行可能ファイル | |
getdefaultcon | cli | グローバル実行可能ファイル | |
getenforce | cli | グローバル実行可能ファイル | |
getfilecon | cli | グローバル実行可能ファイル | |
getpidcon | cli | グローバル実行可能ファイル | |
getpidprevcon | cli | グローバル実行可能ファイル | |
getpolicyload | cli | グローバル実行可能ファイル | |
getsebool | cli | グローバル実行可能ファイル | |
getseuser | cli | グローバル実行可能ファイル | |
matchpathcon | cli | グローバル実行可能ファイル | |
policyvers | cli | グローバル実行可能ファイル | |
sefcontext_compile | cli | グローバル実行可能ファイル | |
selabel_compare | cli | グローバル実行可能ファイル | |
selabel_digest | cli | グローバル実行可能ファイル | |
selabel_get_digests_all_partial_matches | cli | グローバル実行可能ファイル | |
selabel_lookup | cli | グローバル実行可能ファイル | |
selabel_lookup_best_match | cli | グローバル実行可能ファイル | |
selabel_partial_match | cli | グローバル実行可能ファイル | |
selinux_check_access | cli | グローバル実行可能ファイル | |
selinux_check_securetty_context | cli | グローバル実行可能ファイル | |
selinuxenabled | cli | グローバル実行可能ファイル | |
selinuxexeccon | cli | グローバル実行可能ファイル | |
setenforce | cli | グローバル実行可能ファイル | |
setfilecon | cli | グローバル実行可能ファイル | |
togglesebool | cli | グローバル実行可能ファイル | |
validatetrans | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/SELinuxProject/selinux
インストールメタデータ
| パッケージキー | brew:libselinux |
|---|---|
| バージョン | 3.11 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/libselinux |
| ホームページ | https://github.com/SELinuxProject/selinux |
| リポジトリ | https://github.com/SELinuxProject/selinux |
| 上流ドキュメント | https://github.com/SELinuxProject/selinux/wiki |
| ライセンス | LicenseRef-Homebrew-public-domain |
| ソースアーカイブ | https://github.com/SELinuxProject/selinux/releases/download/3.11/libselinux-3.11.tar.gz |
| 最終更新 | 2026-07-01T18:24:07Z |
| Pulse | updated |
| 依存関係 | libsepol, pcre2 |
| ビルド依存関係 | pkgconf |
| Bottle | 利用可能 (対象 arm64_linux, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | libselinux |
| Version Scheme | 0 |
| Revision | 0 |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
libselinux1 3.8.1-1
SELinux runtime shared libraries
https://github.com/SELinuxProject
sudo apt install libselinux1libselinux1-dev 3.8.1-1
SELinux development headers
https://github.com/SELinuxProject
sudo apt install libselinux1-devpython3-selinux 3.8.1-1
Python3 bindings to SELinux shared libraries
https://github.com/SELinuxProject
sudo apt install python3-selinuxruby-selinux 3.8.1-1
Ruby bindings to SELinux shared libraries
https://github.com/SELinuxProject
sudo apt install ruby-selinuxselinux-utils 3.8.1-1
SELinux utility programs
https://github.com/SELinuxProject
sudo apt install selinux-utilslibselinux
nix profile install nixpkgs#libselinuxlibselinux1 3.5-2ubuntu2
SELinux runtime shared libraries
sudo apt install libselinux1libselinux1-dev 3.5-2ubuntu2
SELinux development headers
sudo apt install libselinux1-devpython3-selinux 3.5-2ubuntu2
Python3 bindings to SELinux shared libraries
sudo apt install python3-selinuxruby-selinux 3.5-2ubuntu2
Ruby bindings to SELinux shared libraries
sudo apt install ruby-selinuxselinux-utils 3.5-2ubuntu2
SELinux utility programs
sudo apt install selinux-utilslibselinux 3.10-r1
SELinux library and simple utilities
https://github.com/SELinuxProject/selinux/wiki
sudo apk add libselinuxlibselinux-dev 3.10-r1
SELinux library and simple utilities (development files)
https://github.com/SELinuxProject/selinux/wiki
sudo apk add libselinux-devlibselinux-doc 3.10-r1
SELinux library and simple utilities (documentation)
https://github.com/SELinuxProject/selinux/wiki
sudo apk add libselinux-doclibselinux-static 3.10-r1
SELinux library and simple utilities (static library)
https://github.com/SELinuxProject/selinux/wiki
sudo apk add libselinux-staticlibselinux-utils 3.10-r1
SELinux libselinux utilies
https://github.com/SELinuxProject/selinux/wiki
sudo apk add libselinux-utilsソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.