---
name: "ipc_check_perms"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ipc_check_perms"
---

# ipc\_check\_perms(9)

check security and permissions for an ipc object

## NAME

ipc\_check\_perms - check security and permissions for an ipc object

## SYNOPSIS

**int ipc\_check\_perms(struct ipc\_namespace \*** *ns***, struct kern\_ipc\_perm \*** *ipcp***, const struct ipc\_ops \*** *ops***, struct ipc\_params \*** *params***);**

## ARGUMENTS

*ns*

ipc namespace

*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 ds IDR.

On success, the ipc id is returned.

It is called with ipc\_ids.rwsem and ipcp-\>lock held.

## COPYRIGHT
