Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
security/selinux/hooks.c match_file() -> file_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | file | 4096-ptr_max |
| PARAM_VALUE | 2 | av | 1-2,4,6,512,514 |
| BUF_SIZE | 0 | cred | (-1),8,16 |
| DATA_SOURCE | 0 | cred | $0 |
| DATA_SOURCE | 1 | file | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &files->file_lock | ||
| HALF_LOCKED2 | &_T->lock->alloc_lock | ||
| HALF_LOCKED2 | &p->alloc_lock | ||
| HALF_LOCKED2 | global &tasklist_lock | ||
| TYPE_LOCK | (struct files_struct)->file_lock |
security/selinux/hooks.c selinux_file_fcntl() -> file_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | file | 4096-ptr_max |
| PARAM_VALUE | 2 | av | 4 |
| DATA_SOURCE | 1 | file | $0 |
| BIT_INFO | 1 | file->f_flags | 0x400,0xffffffff |
security/selinux/hooks.c selinux_file_fcntl() -> file_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | file | 4096-ptr_max |
| PARAM_VALUE | 2 | av | 0 |
| DATA_SOURCE | 1 | file | $0 |
security/selinux/hooks.c selinux_file_fcntl() -> file_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | av | 64 |
| DATA_SOURCE | 1 | file | $0 |
security/selinux/hooks.c selinux_file_ioctl() -> file_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | av | 16 |
| DATA_SOURCE | 1 | file | $0 |
security/selinux/hooks.c selinux_file_ioctl() -> file_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | av | 32 |
| DATA_SOURCE | 1 | file | $0 |
security/selinux/hooks.c selinux_file_ioctl() -> file_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | av | 0 |
| DATA_SOURCE | 1 | file | $0 |
security/selinux/hooks.c selinux_file_lock() -> file_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | av | 64 |
| DATA_SOURCE | 1 | file | $0 |
security/selinux/hooks.c selinux_file_mprotect() -> file_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | file | 4096-ptr_max |
| PARAM_VALUE | 2 | av | 524288 |
| BIT_INFO | 1 | file->f_mode | 0x1000000,0xffffffff |
security/selinux/hooks.c selinux_file_receive() -> file_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | file | 4096-ptr_max |
| PARAM_VALUE | 2 | av | 1-2,4,6,512,514 |
| DATA_SOURCE | 1 | file | $0 |
security/selinux/hooks.c selinux_revalidate_file_permission() -> file_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | file | 4096-ptr_max |
| PARAM_VALUE | 2 | av | 0,2,4,6,512,514,16384,16386,16388,16390,16896,16898,536870912,536870914,536870916,536870918 |
| DATA_SOURCE | 1 | file | $0 |
| BIT_INFO | 1 | file->f_flags | 0x0,0xffffffff |