sysdecode_cap_rights(3)

sysdecode_cap_rights3

Output list of capability rights

Usage

#include <sysdecode.h>

void

sysdecode_cap_rights(FILE *fp, cap_rights_t *rightsp);

Library

library “libsysdecode”

Overview

The sysdecode_cap_rights() function outputs a comma-separated list of capability rights at rightsp to the stream fp.

Note that some capability rights are supersets of others; for example, CAP_PREAD is the union of CAP_READ and CAP_SEEK. sysdecode_cap_rights() emits a minimal list of rights whose union is equal to *rightsp. For example, if both CAP_READ and CAP_SEEK are set in *rightsp, then sysdecode_cap_rights() will include only CAP_PREAD in the output list.

Releases

24 releases since FreeBSD 11.1-RELEASE; the text changed 11 times.

  1. 11.1
  2. 11.2
  3. 11.3
  4. 11.4
  5. 12.0
  6. 12.1
  7. 12.2
  8. 12.3
  9. 12.4
  10. 13.0–13.1
  11. 13.2
  12. 13.3–16.0

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.