macOS
brew install libselinuxlocal Homebrew formula metadata
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de libselinux pour les workflows d'agents IA.
installation
brew install libselinuxlocal Homebrew formula metadata
sudo apk add libselinuxAlpine Linux edge package indexes · libselinux · Source: dl-cdn.alpinelinux.org
sudo dnf install libselinuxFedora Rawhide package metadata · libselinux · Source: dl.fedoraproject.org
nix profile install nixpkgs#libselinuxnixpkgs package indexes · pkgs/by-name/li/libselinux/package.nix · Source: api.github.com
sudo apt install libselinux1Debian stable package indexes · libselinux1 · Source: deb.debian.org
sudo zypper install libselinux-developenSUSE Tumbleweed package metadata · libselinux-devel · Source: download.opensuse.org
aperçu
SELinux library and simple utilities
historique
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.
posture de sécurité
library-like package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
avcstat | cli | exécutable global | |
compute_av | cli | exécutable global | |
compute_create | cli | exécutable global | |
compute_member | cli | exécutable global | |
compute_relabel | cli | exécutable global | |
getconlist | cli | exécutable global | |
getdefaultcon | cli | exécutable global | |
getenforce | cli | exécutable global | |
getfilecon | cli | exécutable global | |
getpidcon | cli | exécutable global | |
getpidprevcon | cli | exécutable global | |
getpolicyload | cli | exécutable global | |
getsebool | cli | exécutable global | |
getseuser | cli | exécutable global | |
matchpathcon | cli | exécutable global | |
policyvers | cli | exécutable global | |
sefcontext_compile | cli | exécutable global | |
selabel_compare | cli | exécutable global | |
selabel_digest | cli | exécutable global | |
selabel_get_digests_all_partial_matches | cli | exécutable global | |
selabel_lookup | cli | exécutable global | |
selabel_lookup_best_match | cli | exécutable global | |
selabel_partial_match | cli | exécutable global | |
selinux_check_access | cli | exécutable global | |
selinux_check_securetty_context | cli | exécutable global | |
selinuxenabled | cli | exécutable global | |
selinuxexeccon | cli | exécutable global | |
setenforce | cli | exécutable global | |
setfilecon | cli | exécutable global | |
togglesebool | cli | exécutable global | |
validatetrans | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/SELinuxProject/selinux
métadonnées d'installation
| Clé du paquet | brew:libselinux |
|---|---|
| Version | 3.11 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/libselinux |
| Page d'accueil | https://github.com/SELinuxProject/selinux |
| Dépôt | https://github.com/SELinuxProject/selinux |
| Docs amont | https://github.com/SELinuxProject/selinux/wiki |
| Licence | LicenseRef-Homebrew-public-domain |
| Archive source | https://github.com/SELinuxProject/selinux/releases/download/3.11/libselinux-3.11.tar.gz |
| Dernière mise à jour | 2026-07-01T18:24:07Z |
| Pulse | updated |
| Dépendances | libsepol, pcre2 |
| Dépendances de compilation | pkgconf |
| Bouteille | disponible (sur arm64_linux, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
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-utilspiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.