'\" t
.\" Title: ipcperms
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
.\" Generator: DocBook XSL Stylesheets v1.79.1
.\" Date: January 2017
.\" Manual: Kernel IPC facilities
.\" Source: Kernel Hackers Manual 4.8.15
.\" Language: English
.\"
.TH "IPCPERMS" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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"
ipcperms \- check ipc permissions
.SH "SYNOPSIS"
.HP \w'int\ ipcperms('u
.BI "int ipcperms(struct\ ipc_namespace\ *\ " "ns" ", struct\ kern_ipc_perm\ *\ " "ipcp" ", short\ " "flag" ");"
.SH "ARGUMENTS"
.PP
\fIns\fR
.RS 4
ipc namespace
.RE
.PP
\fIipcp\fR
.RS 4
ipc permission set
.RE
.PP
\fIflag\fR
.RS 4
desired permission set
.RE
.SH "DESCRIPTION"
.PP
Check user, group, other permissions for access to ipc resources\&. return 0 if allowed
.PP
\fIflag\fR
will most probably be 0 or S_\&.\&.\&.UGO from
.SH "COPYRIGHT"
.br