Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
security/selinux/hooks.c __file_map_prot_check() -> __file_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | file | 4096-ptr_max |
| PARAM_VALUE | 2 | av | 2,16386,16390 |
| DATA_SOURCE | 1 | file | $0 |
| DATA_SOURCE | 3 | bf_user_file | $4 |
| FUZZY_MAX | 2 | av | 2 |
| BIT_INFO | 2 | av | 0x2,0x4006 |
security/selinux/hooks.c file_has_perm() -> __file_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | av | 0-2,4,6,16,32,64,512,514,16384,16386,16388,16390,16896,16898,524288,536870912,536870914,536870916,536870918 |
| PARAM_VALUE | 3 | bf_user_file | 0 |
| BUF_SIZE | 0 | cred | (-1),8,16 |
| BUF_SIZE | 0 | cred | (-1),8,16 |
| DATA_SOURCE | 0 | cred | $0 |
| DATA_SOURCE | 1 | file | $1 |
| DATA_SOURCE | 2 | av | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &files->file_lock |
security/selinux/hooks.c selinux_file_mprotect() -> __file_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cred | 4096-ptr_max |
| PARAM_VALUE | 1 | file | 4096-ptr_max |
| PARAM_VALUE | 2 | av | 524288 |
| BIT_INFO | 1 | file->f_mode | 0x0,0xffffffff |