[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, Volume 1

kcred_setcap Kernel Service

Purpose

Copies a capabilities set into a credentials structure.

Syntax

#include <sys/capabilities.h>

#include <sys/cred.h>

int kcred_setcap ( crp, cap )
struct ucred * cr;
struct __cap_t * cap;

Parameters

crp Pointer to a credentials structure
cap Capabilities set

Description

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.

Execution Environment

The kcred_setcap kernel service can be called from the process environment only.

Return Values

0 Success.
-1 An error has occurred.

Related Information

Security Kernel Services in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]