pub/scm/libs/libcap/libcap.git  about / heads / tags
capability library: includes libcap2 file caps, setcap, getcap and capsh
$ git log --pretty=format:'%h %s (%cs)%d'
542d7d8 Revert "libcap: Add build ldflags to _makenames rule" (2025-11-10)
	(HEAD -> master)
d628b3b Do not cross compile mknames.go (2025-11-10)
3b2513a Up the release version to 2.77 (2025-10-26)
	(tag: v1.2.77, tag: sig-libcap-2.77, tag: psx/v1.2.77, tag: libcap-korg-2.77, tag: libcap-2.77, tag: cap/v1.2.77)
c3ddf45 libcap: Add build ldflags to _makenames rule (2025-10-21)
2d744fb libcap: Improve raw container calculation (2025-08-10)
da06dc9 Fix bug in IABGetPID (2025-08-06)
a37b302 Make.Rules: Fix broken link to the sendmail issue (2025-07-07)
a5753d0 Fix bugs in setcap.c error strings. (2025-06-18)
53b369b Make the kdebug test use the terminal output. (2025-05-06)
9a84906 Add some C++ protection to the libcap/execable.* code. (2025-05-05)
...

$ git cat-file blob HEAD:README
This is a library for getting and setting POSIX.1e (formerly POSIX 6)
draft 15 capabilities.

Natively supported languages are C/C++ and Go.

This library would not have been possible without the help of 

    Aleph1, Roland Buresund and Andrew Main, Alexander Kjeldaas.

More information on capabilities in the Linux kernel, links to the
official git repository for libcap, release notes and how to report
bugs can be found at:

    http://sites.google.com/site/fullycapable/

The primary upstream git repository is this one:

    https://git.kernel.org/pub/scm/libs/libcap/libcap.git/

# BUILDING AND INSTALLATION

    $ make

       builds the library and the programs that are expected to work
       on your system. For example, if you have Linux-PAM installed,
       pam_cap is built. A golang installation is required to build
       the Go packages.

    $ make test

       runs all of the tests not requiring privilege

    $ make sudotest

       runs all of the tests including those that require privilege.

    $ sudo make install

       default installs the library libcap.XX.Y in /lib[64]/
       the binaries in /sbin/
       the header files in /usr/include
       the {libcap,libpsx}.pc files in /usr/lib[64]/pkgconfig
       the Go packages (if built) under /usr/share/gocode/src

For some example C programs look in the progs/ directory.
Specifically, capsh, getpcaps, setcap and getcap. There are some C
tests in the tests/ directory.

Go example programs are to be found in the goapps/ directory. There
are also some more complicated integration tests in the go/ directory.

There are also some oddball experimental things in the contrib/
directory, but they are mostly curiosities.

Cheers

Andrew G. Morgan <morgan@kernel.org>

# heads (aka `branches'):
$ git for-each-ref --sort=-creatordate refs/heads \
	--format='%(HEAD) %(refname:short) %(subject) (%(creatordate:short))'
* master       Revert "libcap: Add build ldflags to _makenames rule" (2025-11-10)

# tags:
$ git for-each-ref --sort=-creatordate refs/tags \
	--format='%(refname:short) %(subject) (%(creatordate:short))'
cap/v1.2.77  stable version tag for the 'cap' Go package associated with libcap-2.77 (2025-10-26) tar.gz
psx/v1.2.77  stable version tag for the 'psx' Go package associated with libcap-2.77 (2025-10-26) tar.gz
libcap-2.77  legacy tag for libcap-2.77 (2025-10-26) tar.gz
libcap-korg-2.77 kernel.org automation tag for libcap-2.77 (2025-10-26) tar.gz
v1.2.77      version tag for the 'libcap' Go base directory associated with libcap-2.77 (2025-10-26) tar.gz
sig-libcap-2.77 official tag for libcap-2.77 (2025-10-26) tar.gz
cap/v1.2.76  stable version tag for the 'cap' Go package associated with libcap-2.76 (2025-04-13) tar.gz
libcap-korg-2.76 kernel.org automation tag for libcap-2.76 (2025-04-13) tar.gz
psx/v1.2.76  stable version tag for the 'psx' Go package associated with libcap-2.76 (2025-04-13) tar.gz
v1.2.76      version tag for the 'libcap' Go base directory associated with libcap-2.76 (2025-04-13) tar.gz
...

# associated public inboxes:
# (number on the left is used for dev purposes)
         54 linux-security-module
         37 lkml
          7 stable
          6 qemu-devel
          6 linux-api
          5 linux-scsi
          5 linux-arm-kernel
          5 intel-gfx
          5 containers
          4 linux-devicetree
          4 netdev
          4 buildroot
          3 dpdk-dev
          3 linuxppc-dev
          3 kvm
          3 git
          3 amd-gfx
          3 u-boot
          2 linux-mtd
          2 linux-nvme
          2 linux-xfs
          2 bpf
          2 linux-nfs
          2 linux-mediatek
          2 linux-acpi
          2 linux-amlogic
          2 linux-erofs
          2 linux-mm
          2 linux-media
          2 xen-devel
          2 linux-mips
          2 linux-pm
          2 kvmarm
          2 linux-usb
          2 linux-kselftest
          2 selinux
          2 linux-rdma
          2 linux-pci
          2 linux-bluetooth
          2 linux-ide
          2 linux-serial
          2 dri-devel
          2 cip-dev
          2 linux-omap
          2 linux-remoteproc
          2 linux-arch
          2 openbmc
          2 linux-perf-users
          2 ath11k
          2 linux-s390
          2 kernel-janitors
          2 ofono
          2 ltp
          2 openembedded-core
          2 linux-patches
          2 yocto-meta-arago
          2 batman
          2 linux-um
          2 kvm-ppc
          1 linux-samsung-soc
          1 linux-fscrypt
          1 linux-wireless
          1 cocci
          1 linux-block
          1 linux-riscv
          1 live-patching
          1 linux-crypto
          1 linux-efi
          1 netfilter-devel
          1 linux-integrity
          1 linux-fsdevel
          1 linux-edac
          1 linux-cifs
          1 linux-arm-msm
          1 linux-nvdimm
          1 linux-iommu
          1 linux-snps-arc
          1 fstests
          1 linux-hwmon
          1 linux-rtc
          1 linux-input
          1 alsa-devel
          1 linux-btrfs
          1 driverdev-devel
          1 linux-renesas-soc
          1 kernel-hardening
          1 linux-clk
          1 linux-iio
          1 linux-gpio
          1 dmaengine
          1 linux-next
          1 linux-parisc
          1 linux-ext4
          1 linux-leds
          1 linux-f2fs-devel
          1 linux-modules
          1 kernelnewbies
          1 linux-rt-users
          1 linux-sgx
          1 linux-watchdog
          1 linux-trace-devel
          1 linux-hyperv
          1 workflows
          1 rcu
          1 linux-m68k
          1 linux-i3c
          1 util-linux
          1 linux-spdx
          1 linux-wpan
          1 ksummit-discuss
          1 wireguard
          1 backports
          1 io-uring
          1 linux-kernel-mentees
          1 linux-doc
          1 linux-csky
          1 linux-man
          1 linux-mmc
          1 tpmdd-devel
          1 linux-unionfs
          1 linux-firmware
          1 linux-audit
          1 linux-spi
          1 linux-i2c
          1 linux-dash
          1 linux-bcache
          1 linux-sparse
          1 mm-commits
          1 linux-pwm
          1 linux-tegra
          1 lttng-dev
          1 virtualization
          1 linux-kbuild
          1 linux-fpga
          1 ceph-devel
          1 linux-can
          1 linux-rockchip
          1 linux-raid
          1 xdp-newbies
          1 platform-driver-x86
          1 phone-devel
          1 linux-hardening
          1 dash
          1 dm-devel
          1 keyrings
          1 linux-fbdev
          1 linux-sctp
          1 linux-cxl
          1 target-devel
          1 lustre-devel
          1 linux-sh
          1 soc
          1 ocfs2-devel
          1 rust-for-linux
          1 ath10k
          1 nouveau
          1 linux-phy
          1 sparclinux
          1 linux-staging
          1 linux-sunxi
          1 mptcp
          1 linux-coco
          1 regressions
          1 ksummit
          1 b43-dev
          1 nvdimm
          1 linux-nfc
          1 linux-bcachefs
          1 ath9k-devel
          1 ntfs3
          1 llvm
          1 fio
          1 iwd
          1 ell
          1 yocto
          1 yocto-meta-freescale
          1 yocto-toaster
          1 yocto-meta-arm
          1 yocto-docs
          1 openembedded-devel
          1 bitbake-devel
          1 yocto-meta-virtualization
          1 chrome-platform
          1 ntb
          1 yocto-meta-ti
          1 outreachy
          1 xenomai
          1 damon
          1 asahi
          1 openrisc
          1 intel-wired-lan
          1 kexec
          1 loongarch
          1 imx
          1 ath12k
          1 b4-sent
          1 linux-trace-kernel
          1 oe-linux-nfc
          1 oe-kbuild-all
          1 oe-chipsec
          1 intel-xe
          1 virtio-dev
          1 virtio-comment
          1 v9fs
          1 ecryptfs
          1 poky
          1 qemu-riscv
          1 linux-ia64
          1 cluster-devel
          1 grub-devel
          1 kbd
          1 autofs
          1 cpufreq
          1 dccp
          1 cgroups
          1 devicetree-spec
          1 devicetree-compiler
          1 initramfs
          1 hail-devel
          1 kvm-ia64
          1 linux-8086
          1 kernel-testers
          1 linux-alpha
          1 linux-btrace
          1 linux-embedded
          1 linux-hams
          1 linux-hexagon
          1 linux-hotplug
          1 linux-laptop
          1 linux-sound
          1 trinity
          1 reiserfs-devel
          1 linux-metag
          1 linux-x25
          1 linux-nilfs
          1 lvs-devel
          1 netfilter
          1 linux-oxnas
          1 u-boot-amlogic
          1 lm-sensors
          1 lvm-devel
          1 acpica-devel
          1 perfbook
          1 virtio-fs
          1 smatch
          1 fuego
          1 wireless-regdb
          1 igt-dev
          1 powertop

git clone https://yhbt.net/lore/pub/scm/libs/libcap/libcap.git