CAP_DUP(3C) CAP_DUP(3C)
cap_dup - make a copy of a capability
#include <sys/capability.h>
cap_t cap_dup( cap_t cap);
Returns a pointer to an allocated capability that is a copy of the
capability supplied as an argument. The returned capability should be
deallocated using cap_free(3c) when no longer needed.
Returns a pointer or null.
EINVAL cap is null.
ENOMEM allocation of the cap_t failed.
capabilities(4)
PPPPaaaaggggeeee 1111 [ Back ]
|