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

NAME

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

SYNOPSIS

10       struct kern_ipc_perm *
11                                                     ipcctl_pre_down_nolock(struct ipc_namespace * ns,
12                                                     struct ipc_ids * ids,
13                                                     int id, int cmd,
14                                                     struct ipc64_perm * perm,
15                                                     int extra_perm);
16

ARGUMENTS

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

DESCRIPTION

37       This function does some common audit and permissions check for some
38       IPC_XXX cmd and is called from semctl_down, shmctl_down and
39       msgctl_down. It must be called without any lock held and - retrieves
40       the ipc with the given id in the given table. - performs some audit and
41       permission check, depending on the given cmd - returns a pointer to the
42       ipc object or otherwise, the corresponding error.
43
44       Call holding the both the rwsem and the rcu read lock.
45
47Kernel Hackers Manual 3.10         June 2019           IPCCTL_PRE_DOWN_NOLO(9)
Impressum