macOS
brew install libcaplocal Homebrew formula metadata
安装
brew install libcaplocal Homebrew formula metadata
sudo apk add libcapAlpine Linux edge package indexes · libcap · 来源: dl-cdn.alpinelinux.org
sudo dnf install libcapFedora Rawhide package metadata · libcap · 来源: dl.fedoraproject.org
nix profile install nixpkgs#libcapnixpkgs package indexes · pkgs/by-name/li/libcap/package.nix · 来源: api.github.com
sudo pacman -S libcapArch Linux sync databases · libcap · 来源: geo.mirror.pkgbuild.com
sudo zypper install libcap-developenSUSE Tumbleweed package metadata · libcap-devel · 来源: download.opensuse.org
概览
User-space interfaces to POSIX 1003.1e capabilities
历史
libcap is Andrew G. Morgan's user-space library and utility suite for Linux capabilities, including setcap, getcap, getpcaps, capsh, pam_cap, and related support libraries.
The upstream README describes libcap as a library for getting and setting POSIX.1e draft 15 capabilities, with native C/C++ and Go support. The Fully Capable site frames Linux capabilities as an alternative to the superuser model of privilege under Linux and notes that the Linux implementation is based on the defunct POSIX.1e draft.
The project grew beyond a C library into a family of privilege-management tools and helper code. The README names capsh, getpcaps, setcap, and getcap as example programs, while the Fully Capable site documents libpsx for POSIX semantics in threaded applications and Go packages for capability manipulation.
libcap became baseline Linux security infrastructure because file capabilities and process capabilities need user-space tooling. Distribution packages expose its command-line tools for administrators and its headers and library for software that must drop root while keeping only specific privileges.
Administrators use setcap and getcap to assign and inspect file capabilities, getpcaps to inspect processes, and capsh to experiment with capability sets and shells. Developers link libcap when applications need direct control over Linux capability state.
libcap is one of the packages that turns a kernel security feature into everyday packaging policy. Without it, downstream maintainers have a harder time replacing setuid-root patterns with smaller capability grants.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
capsh | cli | 全局可执行文件 | |
getcap | cli | 全局可执行文件 | |
getpcaps | cli | 全局可执行文件 | |
setcap | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://sites.google.com/site/fullycapable/
安装元数据
| 软件包键 | brew:libcap |
|---|---|
| 版本 | 2.78 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/libcap |
| 主页 | https://sites.google.com/site/fullycapable/ |
| 仓库 | https://git.kernel.org/pub/scm/libs/libcap/libcap.git |
| 上游文档 | https://sites.google.com/site/fullycapable |
| 许可证 | BSD-3-Clause AND GPL-2.0-or-later |
| 源码归档 | https://mirrors.edge.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.78.tar.xz |
| Bottle | 可用 (于 arm64_linux, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | libcap |
| 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 软件包链接分开显示。
libcap
nix profile install nixpkgs#libcaplibcap 2.78-r0
POSIX 1003.1e capabilities
https://sites.google.com/site/fullycapable/
sudo apk add libcaplibcap-dev 2.78-r0
POSIX 1003.1e capabilities (development files)
https://sites.google.com/site/fullycapable/
sudo apk add libcap-devlibcap-doc 2.78-r0
POSIX 1003.1e capabilities (documentation)
https://sites.google.com/site/fullycapable/
sudo apk add libcap-doclibcap-getcap 2.78-r0
POSIX 1003.1e capabilities (getcap utility)
https://sites.google.com/site/fullycapable/
sudo apk add libcap-getcaplibcap-setcap 2.78-r0
POSIX 1003.1e capabilities (setcap utility)
https://sites.google.com/site/fullycapable/
sudo apk add libcap-setcaplibcap-static 2.78-r0
POSIX 1003.1e capabilities (static library)
https://sites.google.com/site/fullycapable/
sudo apk add libcap-staticlibcap-utils 2.78-r0
POSIX 1003.1e capabilities (extra utils)
https://sites.google.com/site/fullycapable/
sudo apk add libcap-utilslibcap2 2.78-r0
POSIX 1003.1e capabilities (libraries)
https://sites.google.com/site/fullycapable/
sudo apk add libcap2captree 2.78-1.fc45
Capability inspection utility
https://sites.google.com/site/fullycapable/
sudo dnf install captreelibcap 2.78-1.fc45
Library for getting and setting POSIX.1e capabilities
https://sites.google.com/site/fullycapable/
sudo dnf install libcaplibcap-devel 2.78-1.fc45
Development files for libcap
https://sites.google.com/site/fullycapable/
sudo dnf install libcap-devellibcap-static 2.78-1.fc45
Static libraries for libcap development
https://sites.google.com/site/fullycapable/
sudo dnf install libcap-staticlibcap 2.78-1
POSIX 1003.1e capabilities
https://sites.google.com/site/fullycapable/
sudo pacman -S libcaplibcap-devel 2.78-1.2
Development files for libcap
https://sites.google.com/site/fullycapable/
sudo zypper install libcap-devellibcap-progs 2.78-1.2
Libcap utility programs
https://sites.google.com/site/fullycapable/
sudo zypper install libcap-progs来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.