capng_get_rootid(3)

capng_get_rootid3

Get namespace root id

Usage

#include <cap-ng.h>

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.

Releases

3 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12–13
  2. Arch

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.