Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
security/apparmor/file.c __file_sock_perm() -> aa_sock_file_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | label | 4096-ptr_max |
| PARAM_VALUE | 4 | file | 4096-ptr_max |
| PARAM_VALUE | 4 | file->f_path.dentry | 4096-ptr_max |
| PARAM_VALUE | 4 | file->f_path.dentry->d_sb | 4096-ptr_max |
| BUF_SIZE | 2 | op | (-1),10,13 |
| BUF_SIZE | 2 | op | (-1),10,13 |
| CAPPED_DATA | 1 | label | 1 |
| DATA_SOURCE | 0 | subj_cred | $1 |
| DATA_SOURCE | 1 | label | $2 |
| DATA_SOURCE | 2 | op | $0 |
| DATA_SOURCE | 3 | request | $5 |
| DATA_SOURCE | 4 | file | $4 |
| STR_LEN | 0 | subj_cred | (-1),9,12 |
| STR_LEN | 2 | op | (-1),9,12 |
| BIT_INFO | 1 | label->flags | 0x0,0xfffffffffffffffd |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &files->file_lock | ||
| HALF_LOCKED2 | &tty->files_lock |
security/apparmor/file.c __file_sock_perm() -> aa_sock_file_perm()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 4 | file | 4096-ptr_max |
| PARAM_VALUE | 4 | file->f_path.dentry | 4096-ptr_max |
| PARAM_VALUE | 4 | file->f_path.dentry->d_sb | 4096-ptr_max |
| PARAM_VALUE | 4 | file->private_data | 0,4096-ptr_max |
| PARAM_VALUE | 4 | file->private_data->sk->__sk_common.skc_family | 0-u16max |
| BUF_SIZE | 2 | op | (-1),10,13 |
| BUF_SIZE | 2 | op | (-1),10,13 |
| DATA_SOURCE | 0 | subj_cred | $1 |
| DATA_SOURCE | 1 | label | $3 |
| DATA_SOURCE | 2 | op | $0 |
| DATA_SOURCE | 3 | request | $5 |
| DATA_SOURCE | 4 | file | $4 |
| STR_LEN | 0 | subj_cred | (-1),9,12 |
| STR_LEN | 2 | op | (-1),9,12 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &files->file_lock | ||
| HALF_LOCKED2 | &tty->files_lock |