Defined in 1 files as a function:
Referenced in 12 files:
- fs/open.c
- fs/udf/file.c, line 135
- fs/verity/enable.c, line 358
- include/linux/lsm_hook_defs.h, line 190
- kernel/sys.c, line 1985
- mm/filemap.c, line 4725
- mm/madvise.c, line 340
- mm/memcontrol-v1.c, line 1155
- mm/mincore.c, line 230
- security/apparmor/lsm.c, line 1792
- security/security.c, line 2392
- security/selinux/hooks.c, line 7635
Smatch caller information:
mm/madvise.c can_do_file_pageout() -> file_permission()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 1 | mask | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/verity/enable.c fsverity_ioctl_enable() -> file_permission()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 1 | mask | 2 |
| DATA_SOURCE | 0 | file | $0 |
mm/filemap.c can_do_cachestat() -> file_permission()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 1 | mask | 2 |
| DATA_SOURCE | 0 | file | $0 |
| BIT_INFO | 0 | file->f_mode | 0x0,0xfffffffd |
fs/udf/file.c udf_ioctl() -> file_permission()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 1 | mask | 4 |
| DATA_SOURCE | 0 | file | $0 |
mm/mincore.c can_do_mincore() -> file_permission()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 1 | mask | 2 |
kernel/sys.c prctl_set_mm_exe_file() -> file_permission()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 0,4-u64max |
| PARAM_VALUE | 1 | mask | 1 |
fs/open.c __do_sys_fchdir() -> file_permission()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 0,4-u64max |
| PARAM_VALUE | 1 | mask | 65 |
fs/open.c __do_sys_fchdir() -> file_permission()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 0,4-u64max |
| PARAM_VALUE | 1 | mask | 65 |
fs/open.c __do_sys_fchroot() -> file_permission()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 0,4-u64max |
| PARAM_VALUE | 1 | mask | 65 |
fs/open.c __do_sys_fchroot() -> file_permission()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 0,4-u64max |
| PARAM_VALUE | 1 | mask | 65 |
mm/memcontrol-v1.c memcg_write_event_control() -> file_permission()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 0,4-u64max |
| PARAM_VALUE | 1 | mask | 4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |