CAP_GET_PROC(3)

NAME
cap_get_proc, cap_set_proc - get/set capabilities of the process

SYNOPSIS
#include <sys/capability.h>

cap_t cap_get_proc(void);

int cap_set_proc(cap_t caps);

DESCRIPTION
cap_get_proc returns the capability sets of the process. The returned value must later be disposed of by passing it to cap_free.

cap_set_proc sets the capabilities of the process to caps.

RETURN VALUE
cap_get_proc returns a non-NULL value on success, and NULL on failure.

cap_set_proc returns zero on success, and -1 on failure.

CONFORMING TO
These functions are specified by POSIX.1e.

SEE ALSO
cap_clear(3), cap_copy_ext(3), cap_from_text(3), cap_get_file(3), cap_init(3)