Copies a capabilities set into a credentials structure.
#include <sys/capabilities.h>
#include <sys/cred.h>
void kcred_setcap ( crp, cap )
struct ucred * cr;
struct __cap_t * cap;
Item | Description |
---|---|
crp | Pointer to a credentials structure |
cap | Capabilities set |
The kcred_setcap kernel service initializes the capability set in the credentials structure referenced by crp with cap. rp must be a valid, referenced credentials structure and must not be the current credentials of any process.
The kcred_setcap kernel service can be called from the process environment only.
The kcred_setcap kernel service has no return values.