Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 7 files:
- include/linux/security.h, line 701
- include/trace/events/capability.h, line 26
- security/apparmor/domain.c, line 890
- security/apparmor/policy.c, line 877
- security/commoncap.c
- security/selinux/hooks.c, line 3346
- security/smack/smack_access.c, line 726
Smatch caller information:
security/smack/smack_access.c smack_privileged_cred() -> cap_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cred | 4096-ptr_max |
| PARAM_VALUE | 1 | target_ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 19,32-33 |
| PARAM_VALUE | 3 | opts | 0 |
| DATA_SOURCE | 0 | cred | $1 |
| DATA_SOURCE | 2 | cap | $0 |
| HARD_MAX | 2 | cap | 33 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
security/apparmor/policy.c policy_ns_capable() -> cap_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cred | 4096-ptr_max |
| PARAM_VALUE | 2 | cap | 33 |
| PARAM_VALUE | 3 | opts | 0 |
| DATA_SOURCE | 0 | cred | $0 |
| DATA_SOURCE | 1 | target_ns | $2 |
| DATA_SOURCE | 2 | cap | $3 |
security/apparmor/domain.c is_profile_priv_restricted_to_stack() -> cap_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | target_ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 32 |
| PARAM_VALUE | 3 | opts | 2 |
security/commoncap.c cap_inh_is_capped() -> cap_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | cap | 8 |
| PARAM_VALUE | 3 | opts | 0 |
security/commoncap.c cap_mmap_addr() -> cap_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | target_ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 17 |
| PARAM_VALUE | 3 | opts | 0 |
security/commoncap.c cap_task_prctl() -> cap_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | cap | 8 |
| PARAM_VALUE | 3 | opts | 0 |
security/commoncap.c cap_vm_enough_memory() -> cap_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | target_ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 21 |
| PARAM_VALUE | 3 | opts | 2 |
| 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 |
security/selinux/hooks.c has_cap_mac_admin() -> cap_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | target_ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 33 |
| PARAM_VALUE | 3 | opts | 0,2 |
| FUZZY_MAX | 3 | opts | 2 |
| BIT_INFO | 3 | opts | 0x0,0x2 |
| HARD_MAX | 3 | opts | 2 |