'\" t .\" Title: ipc_check_perms .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Kernel IPC facilities .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "IPC_CHECK_PERMS" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "Kernel IPC facilities" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ipc_check_perms \- check security and permissions for an ipc object .SH "SYNOPSIS" .HP \w'int\ ipc_check_perms('u .BI "int ipc_check_perms(struct\ ipc_namespace\ *\ " "ns" ", struct\ kern_ipc_perm\ *\ " "ipcp" ", const\ struct\ ipc_ops\ *\ " "ops" ", struct\ ipc_params\ *\ " "params" ");" .SH "ARGUMENTS" .PP \fIstruct ipc_namespace * ns\fR .RS 4 ipc namespace .RE .PP \fIstruct kern_ipc_perm * ipcp\fR .RS 4 ipc permission set .RE .PP \fIconst struct ipc_ops * ops\fR .RS 4 the actual security routine to call .RE .PP \fIstruct ipc_params * params\fR .RS 4 its parameters .RE .SH "DESCRIPTION" .PP This routine is called by \fBsys_msgget\fR, \fBsys_semget\fR and \fBsys_shmget\fR when the key is not IPC_PRIVATE and that key already exists in the ds IDR\&. .PP On success, the ipc id is returned\&. .PP It is called with ipc_ids\&.rwsem and ipcp\->lock held\&. .SH "COPYRIGHT" .br