.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "SYS_CAPSET" "9" "09 October 2005" "" ""
.SH NAME
sys_capset \- set capabilities for a process or a group of processes
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
long sys_capset (cap_user_header_t \fIheader\fB, const cap_user_data_t \fIdata\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIheader\fB\fR
pointer to struct that contains capability version and
target pid data
.TP
\fB\fIdata\fB\fR
pointer to struct that contains the effective, permitted,
and inheritable capabilities
.SH "DESCRIPTION"
.PP
Set capabilities for a given process, all processes, or all
processes in a given process group.
.SH "THE RESTRICTIONS ON SETTING CAPABILITIES ARE SPECIFIED AS"
.PP
.PP
[pid is for the 'target' task. 'current' is the calling task.]
.SH "I"
.PP
any raised capabilities must be a subset of the (old current) permitted
.SH "P"
.PP
any raised capabilities must be a subset of the (old current) permitted
.SH "E"
.PP
must be set to a subset of (new target) permitted
.PP
Returns 0 on success and < 0 on error.