Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
Smatch caller information:
ipc/util.c ipc_check_perms() -> ipcperms()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns->ids | 4096-ptr_max |
| PARAM_VALUE | 1 | ipcp | 4096-ptr_max |
| PARAM_VALUE | 1 | ipcp->lock.rlock.dep_map->name | 0-255 |
| DATA_SOURCE | 0 | ns | $0 |
| DATA_SOURCE | 1 | ipcp | $1 |
| USER_DATA | 2 | flag | s16min-s16max |
| LOCK2 | &ids->rwsem | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct ipc_ids)->rwsem |
ipc/sem.c __do_semtimedop() -> ipcperms()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->sem_ctls | 4096-ptr_max |
| PARAM_VALUE | 1 | ipcp | 4096-ptr_max |
| PARAM_VALUE | 2 | flag | 146,292 |
| DATA_SOURCE | 0 | ns | $4 |
| FUZZY_MAX | 2 | flag | 292 |
| BIT_INFO | 2 | flag | 0x0,0x1b6 |
| HARD_MAX | 2 | flag | 292 |
| LOCK2 | rcu_read |
ipc/sem.c semctl_main() -> ipcperms()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ipcp | 4096-ptr_max |
| PARAM_VALUE | 2 | flag | 146,292 |
| DATA_SOURCE | 0 | ns | $0 |
| FUZZY_MAX | 2 | flag | 292 |
| BIT_INFO | 2 | flag | 0x0,0x1b6 |
| HARD_MAX | 2 | flag | 292 |
| LOCK2 | rcu_read |
ipc/sem.c semctl_setval() -> ipcperms()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ipcp | 4096-ptr_max |
| PARAM_VALUE | 2 | flag | 146 |
| DATA_SOURCE | 0 | ns | $0 |
| LOCK2 | rcu_read |
ipc/sem.c semctl_stat() -> ipcperms()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ipcp | 4096-ptr_max |
| PARAM_VALUE | 2 | flag | 292 |
| DATA_SOURCE | 0 | ns | $0 |
| LOCK2 | rcu_read |
ipc/msg.c do_msgrcv() -> ipcperms()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ipcp | 4096-ptr_max |
| PARAM_VALUE | 2 | flag | 292 |
| LOCK2 | rcu_read |
ipc/msg.c do_msgsnd() -> ipcperms()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| PARAM_VALUE | 1 | ipcp | 4096-ptr_max |
| PARAM_VALUE | 2 | flag | 146 |
| PREEMPT_ADD | <- disables preempt | ||
| LOCK2 | &msq->q_perm.lock | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct kern_ipc_perm)->lock |
ipc/msg.c msgctl_stat() -> ipcperms()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ipcp | 4096-ptr_max |
| PARAM_VALUE | 2 | flag | 292 |
| DATA_SOURCE | 0 | ns | $0 |
| LOCK2 | rcu_read |
ipc/shm.c do_shmat() -> ipcperms()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ipcp | 4096-ptr_max |
| PARAM_VALUE | 2 | flag | 292,365,438,511 |
| BIT_INFO | 2 | flag | 0x124,0x1ff |
| LOCK2 | rcu_read |
ipc/shm.c shmctl_stat() -> ipcperms()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ipcp | 4096-ptr_max |
| PARAM_VALUE | 2 | flag | 292 |
| DATA_SOURCE | 0 | ns | $0 |
| LOCK2 | rcu_read |