Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
security/selinux/hooks.c __file_has_perm() -> inode_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cred | 4096-ptr_max |
| PARAM_VALUE | 2 | perms | 1-2,4,6,16,32,64,512,514,16384,16386,16388,16390,16896,16898,524288,536870912,536870914,536870916,536870918 |
| PARAM_VALUE | 3 | adp | 455611541965062144 |
| PARAM_VALUE | 3 | adp->type | 1-2,4,7-8,10-14,17 |
| PARAM_VALUE | 3 | adp->u.file | 4096-ptr_max |
| BUF_SIZE | 0 | cred | (-1),8 |
| BUF_SIZE | 0 | cred | (-1),8 |
| DATA_SOURCE | 0 | cred | $0 |
| DATA_SOURCE | 2 | perms | $2 |
| FUZZY_MAX | 2 | perms | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
security/selinux/hooks.c dentry_has_perm() -> inode_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | inode | 4096-ptr_max |
| PARAM_VALUE | 2 | perms | 2,4,16,32,32768,262148 |
| PARAM_VALUE | 3 | adp | 2100404027086237696 |
| PARAM_VALUE | 3 | adp->type | 10 |
| PARAM_VALUE | 3 | adp->u.dentry | 4096-ptr_max |
| DATA_SOURCE | 0 | cred | $0 |
| DATA_SOURCE | 2 | perms | $2 |
| FUZZY_MAX | 2 | perms | 4 |
| BIT_INFO | 2 | perms | 0x0,0x4ffff |
security/selinux/hooks.c file_path_has_perm() -> inode_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | perms | 1-2,4,6,512,514,262145-262146,262148,262150,262656,262658 |
| PARAM_VALUE | 3 | adp | 8409289129115836416 |
| PARAM_VALUE | 3 | adp->type | 12 |
| PARAM_VALUE | 3 | adp->u.file | 4096-ptr_max |
| DATA_SOURCE | 0 | cred | $0 |
| DATA_SOURCE | 2 | perms | $2 |
| PREEMPT_ADD | |||
| HALF_LOCKED2 | &tty->files_lock |
security/selinux/hooks.c path_has_perm() -> inode_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | inode | 4096-ptr_max |
| PARAM_VALUE | 2 | perms | 16,65536,1048576,2097152,4194304,9437184,10485760,12582912,17825792,18874368,20971520,26214400,27262976,29360128,33554432,41943040,50331648,58720256 |
| PARAM_VALUE | 3 | adp | 4739501293627830272 |
| PARAM_VALUE | 3 | adp->type | 1 |
| PARAM_VALUE | 3 | adp->u.path.dentry | 4096-ptr_max |
| DATA_SOURCE | 0 | cred | $0 |
| DATA_SOURCE | 2 | perms | $2 |
| FUZZY_MAX | 2 | perms | 33554432 |
| BIT_INFO | 2 | perms | 0x0,0x3f1ffff |
security/selinux/hooks.c selinux_mmap_file_common() -> inode_has_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | perms | 1024 |
| PARAM_VALUE | 3 | adp | 5752481557733404672 |
| PARAM_VALUE | 3 | adp->type | 12 |
| PARAM_VALUE | 3 | adp->u.file | 4096-ptr_max |