krgcapset

Langue: en

Version: 08/23/2007 (mandriva - 22/10/07)

Autres sections - même nom

Section: 2 (Appels système)

NAME

krgcapset - Set or modify capabilities of a process.

SYNOPSIS

 #include <libkerrighed.h>
 
int krg_capset(struct krg_cap_t *new_caps);

DESCRIPTION

The krg_capset system call modify calling process capabilities using the one passed through new_caps. The krg_cap_t structure contains the following fields:
         struct krg_cap_t {    
           int   krg_cap_effective;    
           int   krg_cap_permitted;
           int   krg_cap_inheritable_permitted;
           int   krg_cap_inheritable_effective ;
         };
       
 

See krg_capabilities(7) for further details.

RETURN VALUE

On success, zero is returned. On error, -1 is returned, and errno is set appropriately.

ERRORS

EPERM

The process does not have the capability to have its permissions changed.

AUTHOR

Renaud Lottiaux <renaud.lottiaux@kerlabs.com>

SEE ALSO

krgcapget (1), kerrighed_capabilities(7)