shmsid2
Find the sid associated with a shared memory segment.
Usage
#include <linux/flask/flask_types.h>
int shmsid(const int id, security_id_t * sid);
Overview
The SID of the shared memory segment given by id is returned by the sid parameter.
Return value
On success, zero is returned. On error, -1 is returned, with errno indicating the error.
Errors
For a failing return, errno will be set to one among the following values:
EACCES
|
The caller lacks permission to read the attributes of the shared memory segment. |
|---|---|
EIDRM
|
The shared memory segment is marked as to be deleted. |
EINVAL
|
The id is not valid. |