macOS
brew install libselinuxlocal Homebrew formula metadata
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für libselinux in AI-Agent-Workflows.
Installation
brew install libselinuxlocal Homebrew formula metadata
sudo apk add libselinuxAlpine Linux edge package indexes · libselinux · Quelle: dl-cdn.alpinelinux.org
sudo dnf install libselinuxFedora Rawhide package metadata · libselinux · Quelle: dl.fedoraproject.org
nix profile install nixpkgs#libselinuxnixpkgs package indexes · pkgs/by-name/li/libselinux/package.nix · Quelle: api.github.com
sudo apt install libselinux1Debian stable package indexes · libselinux1 · Quelle: deb.debian.org
sudo zypper install libselinux-developenSUSE Tumbleweed package metadata · libselinux-devel · Quelle: download.opensuse.org
Überblick
SELinux library and simple utilities
Verlauf
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.
Sicherheitslage
library-like package without higher-risk signals.
grün Risiko · niedrig Konfidenz · appliance
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
Executables
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
avcstat | cli | globales Executable | |
compute_av | cli | globales Executable | |
compute_create | cli | globales Executable | |
compute_member | cli | globales Executable | |
compute_relabel | cli | globales Executable | |
getconlist | cli | globales Executable | |
getdefaultcon | cli | globales Executable | |
getenforce | cli | globales Executable | |
getfilecon | cli | globales Executable | |
getpidcon | cli | globales Executable | |
getpidprevcon | cli | globales Executable | |
getpolicyload | cli | globales Executable | |
getsebool | cli | globales Executable | |
getseuser | cli | globales Executable | |
matchpathcon | cli | globales Executable | |
policyvers | cli | globales Executable | |
sefcontext_compile | cli | globales Executable | |
selabel_compare | cli | globales Executable | |
selabel_digest | cli | globales Executable | |
selabel_get_digests_all_partial_matches | cli | globales Executable | |
selabel_lookup | cli | globales Executable | |
selabel_lookup_best_match | cli | globales Executable | |
selabel_partial_match | cli | globales Executable | |
selinux_check_access | cli | globales Executable | |
selinux_check_securetty_context | cli | globales Executable | |
selinuxenabled | cli | globales Executable | |
selinuxexeccon | cli | globales Executable | |
setenforce | cli | globales Executable | |
setfilecon | cli | globales Executable | |
togglesebool | cli | globales Executable | |
validatetrans | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://github.com/SELinuxProject/selinux
Installationsmetadaten
| Paketschlüssel | brew:libselinux |
|---|---|
| Version | 3.11 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/libselinux |
| Homepage | https://github.com/SELinuxProject/selinux |
| Repository | https://github.com/SELinuxProject/selinux |
| Upstream-Dokumentation | https://github.com/SELinuxProject/selinux/wiki |
| Lizenz | LicenseRef-Homebrew-public-domain |
| Quellarchiv | https://github.com/SELinuxProject/selinux/releases/download/3.11/libselinux-3.11.tar.gz |
| Zuletzt aktualisiert | 2026-07-01T18:24:07Z |
| Pulse | updated |
| Abhängigkeiten | libsepol, pcre2 |
| Build-Abhängigkeiten | pkgconf |
| Bottle | verfügbar (auf arm64_linux, x86_64_linux) |
| Homebrew post-install | nicht definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| 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 |
|
Source-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
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-utilsQuellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.