Reference

msgsid(2)

find the sid associated with a message queue

NAME

msgsid - find the sid associated with a message queue

SYNOPSIS

#include <linux/flask/flask_types.h>

int msgsid(const int id, security_id_t * sid);

DESCRIPTION

The SID of the message queue 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 message queue.

EIDRM

The message queue is marked as to be deleted.

EINVAL

The id is not valid.

SEE ALSO

ipc(5), msgget(2), msgop(2), msgget_secure(2), msgctl(2), msgsnd(2), msgsnd_secure(2), msgrcv(2), msgrcv_secure(2).