sys_capget  [kernel/capability.c]


Gets the capabilities of a given process.

Arguments

eax 184
ebx Pointer to cap_user_header_t structure that contains capability version and target PID data:
struc cap_user_header_t
{
.version        rd 1
.pid            rd 1
}
ecx Pointer to cap_user_data_t structure that will be filled with the effective, permitted, and inheritable capabilities:
struc cap_user_data_t
{
.effective      rd 1
.permitted      rd 1
.inheritable    rd 1
}

Return values

If the system call succeeds the return value is 0.
If the system call fails the return value is one of the following errno values:

-EINVAL One of the arguments was invalid.
-EFAULT *to be documented*
-ESRCH *to be documented*

Remarks

n/a

Compatibility

n/a