CAP_DUP(3C)CAP_DUP(3C)NAMEcap_dup - make a copy of a capability
SYNOPSIS
#include <sys/capability.h>
cap_t cap_dup( cap_t cap);
DESCRIPTION
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.
RETURN VALUES
Returns a pointer or null.
ERRORS
EINVAL cap is null.
ENOMEM allocation of the cap_t failed.
SEE ALSOcapabilities(4)
Page 1