carta
capng_get_rootid(3)

capng_get_rootid3

Get namespace root id

Usage

uid_t capng_get_rootid(void);

Overview

capng_get_rootid gets the rootid for file capabilities operations. The value is a host-endian user ID in the caller's user namespace.

Return value

If V3 file capabilities have not been selected, or the kernel does not support them, it returns CAPNG_UNSET_ROOTID. Otherwise it returns the namespace root user ID.

History

  • Arch Linux 2026-11-01: the text shown here
  • Debian 13 (Trixie) to Debian 12 (Bookworm)

Author

Steve Grubb

From libcap-ng 0.9.6-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.