Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
security/selinux/hooks.c has_cap_mac_admin() -> cred_has_capability()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cred | 4096-ptr_max |
| PARAM_VALUE | 1 | cap | 33 |
| PARAM_VALUE | 2 | opts | 0,2 |
| PARAM_VALUE | 3 | initns | 1 |
| CAPPED_DATA | 0 | cred->user_ns | 1 |
| FUZZY_MAX | 2 | opts | 2 |
| BIT_INFO | 2 | opts | 0x0,0x2 |
| HARD_MAX | 2 | opts | 2 |
security/selinux/hooks.c selinux_capable() -> cred_has_capability()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | cred | $0 |
| DATA_SOURCE | 1 | cap | $2 |
| DATA_SOURCE | 2 | opts | $3 |
security/selinux/hooks.c selinux_file_ioctl() -> cred_has_capability()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cap | 26 |
| PARAM_VALUE | 2 | opts | 0 |
| PARAM_VALUE | 3 | initns | 1 |
security/selinux/hooks.c selinux_vm_enough_memory() -> cred_has_capability()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cap | 21 |
| PARAM_VALUE | 2 | opts | 2 |
| PARAM_VALUE | 3 | initns | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &vma->anon_vma->root->rwsem | ||
| HALF_LOCKED2 | global &swap_lock |