ipc_check_perms

Langue: en

Autres versions - même langue

Version: June 2009 (debian - 07/07/09)

Section: 9 (Appels noyau Linux)

NAME

ipc_check_perms - check security and permissions for an IPC

SYNOPSIS

int ipc_check_perms(struct kern_ipc_perm * ipcp, struct ipc_ops * ops, struct ipc_params * params);

ARGUMENTS

ipcp

ipc permission set

ops

the actual security routine to call

params

its parameters

DESCRIPTION

This routine is called by sys_msgget, sys_semget and sys_shmget when the key is not IPC_PRIVATE and that key already exists in the ids IDR.

On success, the IPC id is returned.

It is called with ipc_ids.rw_mutex and ipcp->lock held.