capng_get_rootid - Man Page
get namespace root id
Synopsis
#include <cap-ng.h>
uid_t capng_get_rootid(void);
Description
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.
See Also
Author
Steve Grubb
Info
Sept 2020 Red Hat Libcap-ng API