1IPCCTL_PRE_DOWN(9)           Kernel IPC facilities          IPCCTL_PRE_DOWN(9)
2
3
4

NAME

6       ipcctl_pre_down - retrieve an ipc and check permissions for some
7       IPC_XXX cmd
8

SYNOPSIS

10       struct kern_ipc_perm * ipcctl_pre_down(struct ipc_ids * ids, int id,
11                                              int cmd,
12                                              struct ipc64_perm * perm,
13                                              int extra_perm);
14

ARGUMENTS

16       ids
17           the table of ids where to look for the ipc
18
19       id
20           the id of the ipc to retrieve
21
22       cmd
23           the cmd to check
24
25       perm
26           the permission to set
27
28       extra_perm
29           one extra permission parameter used by msq
30

DESCRIPTION

32       This function does some common audit and permissions check for some
33       IPC_XXX cmd and is called from semctl_down, shmctl_down and
34       msgctl_down. It must be called without any lock held and - retrieves
35       the ipc with the given id in the given table. - performs some audit and
36       permission check, depending on the given cmd - returns the ipc with
37       both ipc and rw_mutex locks held in case of success or an err-code
38       without any lock held otherwise.
39
41Kernel Hackers Manual 2.6.         June 2019                IPCCTL_PRE_DOWN(9)
Impressum