SYS_CAPSET

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

sys_capset - set capabilities for a process or a group of processes  

SYNOPSIS

"SYNOPSIS"

long sys_capset (cap_user_header_t header, const cap_user_data_t data);  

ARGUMENTS

header
pointer to struct that contains capability version and target pid data
data
pointer to struct that contains the effective, permitted, and inheritable capabilities
 

DESCRIPTION

Set capabilities for a given process, all processes, or all processes in a given process group.  

THE RESTRICTIONS ON SETTING CAPABILITIES ARE SPECIFIED AS

[pid is for the 'target' task. 'current' is the calling task.]  

I

any raised capabilities must be a subset of the (old current) permitted  

P

any raised capabilities must be a subset of the (old current) permitted  

E

must be set to a subset of (new target) permitted

Returns 0 on success and < 0 on error.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
THE RESTRICTIONS ON SETTING CAPABILITIES ARE SPECIFIED AS
I
P
E

This document was created by man2html, using the manual pages.
Time: 00:02:54 GMT, October 09, 2005