Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
security/apparmor/net.c aa_profile_af_perm() -> aa_do_perms()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | profile | 4096-ptr_max |
| PARAM_VALUE | 0 | profile->label.rules | 4096-ptr_max |
| PARAM_VALUE | 1 | policy | 4096-ptr_max |
| PARAM_VALUE | 1 | policy->dfa | 4096-ptr_max |
| PARAM_VALUE | 4 | p | 0,4096-ptr_max |
| PARAM_VALUE | 5 | ad->class | 0,2-3,5,7,9-10,14,21-22 |
| PARAM_VALUE | 5 | ad->iface.profile | 0 |
| PARAM_VALUE | 5 | ad->net.addrlen | 0,2-110 |
| PARAM_VALUE | 5 | ad->signal | 0-31,35,128-160 |
| PARAM_VALUE | 5 | *ad->info | 0-255 |
| BUF_SIZE | 5 | ad->common.apparmor_audit_data | (-1),152 |
| BUF_SIZE | 5 | ad->common.u.net | (-1),56 |
| BUF_SIZE | 5 | ad->op | (-1),5,7 |
| DATA_SOURCE | 0 | profile | $0 |
| DATA_SOURCE | 2 | state | r aa_match_to_prot |
| DATA_SOURCE | 3 | request | $2 |
| DATA_SOURCE | 5 | ad | $1 |
| STR_LEN | 5 | ad->common.apparmor_audit_data->op | (-1),4,6 |
| STR_LEN | 5 | ad->op | (-1),4,6 |
security/apparmor/af_unix.c match_label() -> aa_do_perms()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | profile | 4096-ptr_max |
| PARAM_VALUE | 0 | profile->label.rules | 4096-ptr_max |
| PARAM_VALUE | 1 | policy | 4096-ptr_max |
| PARAM_VALUE | 4 | p | 0 |
| PARAM_VALUE | 5 | ad | 2240689271445065728 |
| PARAM_VALUE | 5 | ad->class | 14 |
| PARAM_VALUE | 5 | ad->common.apparmor_audit_data | 2240689271445065728 |
| PARAM_VALUE | 5 | ad->common.selinux_audit_data | 2240689271445065728 |
| PARAM_VALUE | 5 | ad->common.smack_audit_data | 2240689271445065728 |
| PARAM_VALUE | 5 | ad->common.type | 2,7 |
| PARAM_VALUE | 5 | ad->common.u.net | 5607675797041483776 |
| PARAM_VALUE | 5 | ad->error | (-13),(-2),0 |
| PARAM_VALUE | 5 | ad->iface.ns | 0 |
| PARAM_VALUE | 5 | ad->mnt.data | 0 |
| PARAM_VALUE | 5 | ad->mnt.type | 0 |
| PARAM_VALUE | 5 | ad->name | 0 |
| PARAM_VALUE | 5 | ad->net.addr | 0 |
| PARAM_VALUE | 5 | ad->net.protocol | 0-u16max |
| PARAM_VALUE | 5 | ad->net.type | 0-u16max |
| PARAM_VALUE | 5 | ad->peer | 4096-ptr_max |
| PARAM_VALUE | 5 | ad->rlim.max | 0 |
| PARAM_VALUE | 5 | ad->signal | 0 |
| PARAM_VALUE | 5 | ad->tags | 0 |
| PARAM_VALUE | 5 | ad->type | 0 |
| BUF_SIZE | 4 | p | 0 |
| BUF_SIZE | 5 | ad->info | (-1),24 |
| BUF_SIZE | 5 | ad->peer | 104 |
| DATA_SOURCE | 0 | profile | $0 |
| DATA_SOURCE | 2 | state | $2 [m] |
| DATA_SOURCE | 3 | request | $3 |
| DATA_SOURCE | 4 | p | $5 |
| DATA_SOURCE | 5 | ad | $6 |
| STR_LEN | 5 | ad->info | (-1),23 |
security/apparmor/af_unix.c profile_accept_perm() -> aa_do_perms()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | profile | 4096-ptr_max |
| PARAM_VALUE | 0 | profile->label.rules | 4096-ptr_max |
| PARAM_VALUE | 1 | policy | 4096-ptr_max |
| PARAM_VALUE | 1 | policy->dfa | 4096-ptr_max |
| PARAM_VALUE | 3 | request | 1048576 |
| PARAM_VALUE | 4 | p | 0 |
| PARAM_VALUE | 5 | ad | 5934715703172878336 |
| PARAM_VALUE | 5 | ad->class | 14 |
| PARAM_VALUE | 5 | ad->common.apparmor_audit_data | 5934715703172878336 |
| PARAM_VALUE | 5 | ad->common.selinux_audit_data | 5934715703172878336 |
| PARAM_VALUE | 5 | ad->common.smack_audit_data | 5934715703172878336 |
| PARAM_VALUE | 5 | ad->common.type | 2,7 |
| PARAM_VALUE | 5 | ad->common.u.net | 6418292786806345728 |
| PARAM_VALUE | 5 | ad->denied | 0 |
| PARAM_VALUE | 5 | ad->error | 0 |
| PARAM_VALUE | 5 | ad->iface.ns | 0 |
| PARAM_VALUE | 5 | ad->info | 0,1535077631683239936,1641355522271170560,2468596308879671296,4868334955520704512,8630615704476737536 |
| PARAM_VALUE | 5 | ad->mnt.data | 0 |
| PARAM_VALUE | 5 | ad->mnt.type | 0 |
| PARAM_VALUE | 5 | ad->name | 0 |
| PARAM_VALUE | 5 | ad->net.addr | 0 |
| PARAM_VALUE | 5 | ad->net.protocol | 0-u16max |
| PARAM_VALUE | 5 | ad->net.type | 0-u16max |
| PARAM_VALUE | 5 | ad->op | 751892821077909504 |
| PARAM_VALUE | 5 | ad->peer | 0 |
| PARAM_VALUE | 5 | ad->request | 0 |
| PARAM_VALUE | 5 | ad->rlim.max | 0 |
| PARAM_VALUE | 5 | ad->signal | 0 |
| PARAM_VALUE | 5 | ad->tags | 0 |
| PARAM_VALUE | 5 | ad->type | 0 |
| BUF_SIZE | 4 | p | 0 |
| DATA_SOURCE | 0 | profile | $0 |
| DATA_SOURCE | 2 | state | r match_to_sk |
| DATA_SOURCE | 5 | ad | $2 |
security/apparmor/af_unix.c profile_bind_perm() -> aa_do_perms()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | profile | 4096-ptr_max |
| PARAM_VALUE | 0 | profile->label.rules | 4096-ptr_max |
| PARAM_VALUE | 1 | policy | 4096-ptr_max |
| PARAM_VALUE | 1 | policy->dfa | 4096-ptr_max |
| PARAM_VALUE | 3 | request | 2097152 |
| PARAM_VALUE | 4 | p | 0 |
| PARAM_VALUE | 5 | ad | 7395617958887911424 |
| PARAM_VALUE | 5 | ad->class | 14 |
| PARAM_VALUE | 5 | ad->common.apparmor_audit_data | 7395617958887911424 |
| PARAM_VALUE | 5 | ad->common.selinux_audit_data | 7395617958887911424 |
| PARAM_VALUE | 5 | ad->common.smack_audit_data | 7395617958887911424 |
| PARAM_VALUE | 5 | ad->common.type | 2,7 |
| PARAM_VALUE | 5 | ad->common.u.net | 6676370936891600896 |
| PARAM_VALUE | 5 | ad->denied | 0 |
| PARAM_VALUE | 5 | ad->error | 0 |
| PARAM_VALUE | 5 | ad->iface.ns | 0 |
| PARAM_VALUE | 5 | ad->info | 0,1535077631683239936,1641355522271170560,2468596308879671296,4868334955520704512,8630615704476737536 |
| PARAM_VALUE | 5 | ad->mnt.data | 0 |
| PARAM_VALUE | 5 | ad->mnt.type | 0 |
| PARAM_VALUE | 5 | ad->name | 0 |
| PARAM_VALUE | 5 | ad->net.addr | 1-u64max |
| PARAM_VALUE | 5 | ad->net.addrlen | 2-110 |
| PARAM_VALUE | 5 | ad->net.protocol | 0-u16max |
| PARAM_VALUE | 5 | ad->net.type | 0-u16max |
| PARAM_VALUE | 5 | ad->op | 6364703434042474496 |
| PARAM_VALUE | 5 | ad->peer | 0 |
| PARAM_VALUE | 5 | ad->request | 0 |
| PARAM_VALUE | 5 | ad->rlim.max | 0 |
| PARAM_VALUE | 5 | ad->signal | 0 |
| PARAM_VALUE | 5 | ad->tags | 0 |
| PARAM_VALUE | 5 | ad->type | 0 |
| PARAM_VALUE | 5 | *ad->info | 0-255 |
| BUF_SIZE | 4 | p | 0 |
| DATA_SOURCE | 0 | profile | $0 |
| DATA_SOURCE | 2 | state | r match_to_local |
| DATA_SOURCE | 5 | ad | $2 |
| FUZZY_MAX | 5 | ad->net.addrlen | 3 |
security/apparmor/af_unix.c profile_create_perm() -> aa_do_perms()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | profile | 4096-ptr_max |
| PARAM_VALUE | 0 | profile->label.rules | 4096-ptr_max |
| PARAM_VALUE | 1 | policy | 4096-ptr_max |
| PARAM_VALUE | 1 | policy->dfa | 4096-ptr_max |
| PARAM_VALUE | 3 | request | 16 |
| PARAM_VALUE | 4 | p | 0 |
| PARAM_VALUE | 5 | ad | 7191640096643735552 |
| PARAM_VALUE | 5 | ad->class | 14 |
| PARAM_VALUE | 5 | ad->common.apparmor_audit_data | 7191640096643735552 |
| PARAM_VALUE | 5 | ad->common.selinux_audit_data | 7191640096643735552 |
| PARAM_VALUE | 5 | ad->common.smack_audit_data | 7191640096643735552 |
| PARAM_VALUE | 5 | ad->common.type | 7 |
| PARAM_VALUE | 5 | ad->common.u.net | 7735064265332895744 |
| PARAM_VALUE | 5 | ad->iface.ns | 0 |
| PARAM_VALUE | 5 | ad->info | 0,1641355522271170560,4868334955520704512,8630615704476737536 |
| PARAM_VALUE | 5 | ad->mnt.data | 0 |
| PARAM_VALUE | 5 | ad->mnt.type | 0 |
| PARAM_VALUE | 5 | ad->name | 0 |
| PARAM_VALUE | 5 | ad->net.addr | 0 |
| PARAM_VALUE | 5 | ad->op | 204062083093504000 |
| PARAM_VALUE | 5 | ad->peer | 0 |
| PARAM_VALUE | 5 | ad->rlim.max | 0 |
| PARAM_VALUE | 5 | ad->signal | 0 |
| PARAM_VALUE | 5 | ad->tags | 0 |
| PARAM_VALUE | 5 | ad->type | 0 |
| PARAM_VALUE | 5 | *ad->info | 0-255 |
| DATA_SOURCE | 0 | profile | $0 |
| DATA_SOURCE | 2 | state | r aa_match_to_prot |
| DATA_SOURCE | 5 | ad | $4 |
security/apparmor/af_unix.c profile_listen_perm() -> aa_do_perms()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | profile | 4096-ptr_max |
| PARAM_VALUE | 0 | profile->label.rules | 4096-ptr_max |
| PARAM_VALUE | 1 | policy | 4096-ptr_max |
| PARAM_VALUE | 3 | request | 4194304 |
| PARAM_VALUE | 4 | p | 0 |
| PARAM_VALUE | 5 | ad | 8540027098599215104 |
| PARAM_VALUE | 5 | ad->class | 14 |
| PARAM_VALUE | 5 | ad->common.apparmor_audit_data | 8540027098599215104 |
| PARAM_VALUE | 5 | ad->common.selinux_audit_data | 8540027098599215104 |
| PARAM_VALUE | 5 | ad->common.smack_audit_data | 8540027098599215104 |
| PARAM_VALUE | 5 | ad->common.type | 2,7 |
| PARAM_VALUE | 5 | ad->common.u.net | 6755534709152165888 |
| PARAM_VALUE | 5 | ad->denied | 0 |
| PARAM_VALUE | 5 | ad->error | 0 |
| PARAM_VALUE | 5 | ad->iface.ns | 0 |
| PARAM_VALUE | 5 | ad->info | 0,4096-ptr_max |
| PARAM_VALUE | 5 | ad->mnt.data | 0 |
| PARAM_VALUE | 5 | ad->mnt.type | 0 |
| PARAM_VALUE | 5 | ad->name | 0 |
| PARAM_VALUE | 5 | ad->net.addr | 0 |
| PARAM_VALUE | 5 | ad->net.protocol | 0-u16max |
| PARAM_VALUE | 5 | ad->net.type | 0-u16max |
| PARAM_VALUE | 5 | ad->op | 4769769966644432896 |
| PARAM_VALUE | 5 | ad->peer | 0 |
| PARAM_VALUE | 5 | ad->request | 0 |
| PARAM_VALUE | 5 | ad->rlim.max | 0 |
| PARAM_VALUE | 5 | ad->signal | 0 |
| PARAM_VALUE | 5 | ad->tags | 0 |
| PARAM_VALUE | 5 | ad->type | 0 |
| PARAM_VALUE | 5 | *ad->info | 0-255 |
| BUF_SIZE | 4 | p | 0 |
| BUF_SIZE | 5 | ad->info | (-1),28 |
| DATA_SOURCE | 0 | profile | $0 |
| DATA_SOURCE | 5 | ad | $3 |
| STR_LEN | 5 | ad->info | (-1),27 |
| BIT_INFO | 5 | ad->info | 0x0,0x7fffffffffffffff |
security/apparmor/af_unix.c profile_opt_perm() -> aa_do_perms()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | profile | 4096-ptr_max |
| PARAM_VALUE | 0 | profile->label.rules | 4096-ptr_max |
| PARAM_VALUE | 1 | policy | 4096-ptr_max |
| PARAM_VALUE | 3 | request | 16777216,33554432 |
| PARAM_VALUE | 4 | p | 0 |
| PARAM_VALUE | 5 | ad | 5608650315911725056 |
| PARAM_VALUE | 5 | ad->class | 14 |
| PARAM_VALUE | 5 | ad->common.apparmor_audit_data | 5608650315911725056 |
| PARAM_VALUE | 5 | ad->common.selinux_audit_data | 5608650315911725056 |
| PARAM_VALUE | 5 | ad->common.smack_audit_data | 5608650315911725056 |
| PARAM_VALUE | 5 | ad->common.type | 2,7 |
| PARAM_VALUE | 5 | ad->common.u.net | 2510380673666273280 |
| PARAM_VALUE | 5 | ad->denied | 0 |
| PARAM_VALUE | 5 | ad->error | 0 |
| PARAM_VALUE | 5 | ad->iface.ns | 0 |
| PARAM_VALUE | 5 | ad->info | 0,4096-ptr_max |
| PARAM_VALUE | 5 | ad->mnt.data | 0 |
| PARAM_VALUE | 5 | ad->mnt.type | 0 |
| PARAM_VALUE | 5 | ad->name | 0 |
| PARAM_VALUE | 5 | ad->net.addr | 0 |
| PARAM_VALUE | 5 | ad->net.protocol | 0-u16max |
| PARAM_VALUE | 5 | ad->net.type | 0-u16max |
| PARAM_VALUE | 5 | ad->op | 4197275624911224832,7512163014219960320 |
| PARAM_VALUE | 5 | ad->peer | 0 |
| PARAM_VALUE | 5 | ad->request | 0 |
| PARAM_VALUE | 5 | ad->rlim.max | 0 |
| PARAM_VALUE | 5 | ad->signal | 0 |
| PARAM_VALUE | 5 | ad->tags | 0 |
| PARAM_VALUE | 5 | ad->type | 0 |
| PARAM_VALUE | 5 | *ad->info | 0-255 |
| BUF_SIZE | 4 | p | 0 |
| BUF_SIZE | 5 | ad->info | (-1),21 |
| DATA_SOURCE | 0 | profile | $0 |
| DATA_SOURCE | 3 | request | $1 |
| DATA_SOURCE | 5 | ad | $4 |
| STR_LEN | 5 | ad->info | (-1),20 |
| BIT_INFO | 5 | ad->info | 0x0,0x7fffffffffffffff |
| HARD_MAX | 3 | request | 33554432 |
security/apparmor/af_unix.c profile_sk_perm() -> aa_do_perms()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | profile | 4096-ptr_max |
| PARAM_VALUE | 0 | profile->label.rules | 4096-ptr_max |
| PARAM_VALUE | 1 | policy | 4096-ptr_max |
| PARAM_VALUE | 1 | policy->dfa | 4096-ptr_max |
| PARAM_VALUE | 4 | p | 0 |
| PARAM_VALUE | 5 | ad | 4904552531467792384 |
| PARAM_VALUE | 5 | ad->class | 14 |
| PARAM_VALUE | 5 | ad->common.apparmor_audit_data | 4904552531467792384 |
| PARAM_VALUE | 5 | ad->common.selinux_audit_data | 4904552531467792384 |
| PARAM_VALUE | 5 | ad->common.smack_audit_data | 4904552531467792384 |
| PARAM_VALUE | 5 | ad->common.type | 2,7 |
| PARAM_VALUE | 5 | ad->common.u.net | 5220689403408281600 |
| PARAM_VALUE | 5 | ad->denied | 0 |
| PARAM_VALUE | 5 | ad->error | 0 |
| PARAM_VALUE | 5 | ad->iface.ns | 0 |
| PARAM_VALUE | 5 | ad->info | 0,1535077631683239936,1641355522271170560,2468596308879671296,4868334955520704512,8630615704476737536 |
| PARAM_VALUE | 5 | ad->mnt.data | 0 |
| PARAM_VALUE | 5 | ad->mnt.type | 0 |
| PARAM_VALUE | 5 | ad->name | 0 |
| PARAM_VALUE | 5 | ad->net.addr | 0 |
| PARAM_VALUE | 5 | ad->net.protocol | 0-u16max |
| PARAM_VALUE | 5 | ad->net.type | 0-u16max |
| PARAM_VALUE | 5 | ad->peer | 0 |
| PARAM_VALUE | 5 | ad->request | 0 |
| PARAM_VALUE | 5 | ad->rlim.max | 0 |
| PARAM_VALUE | 5 | ad->signal | 0 |
| PARAM_VALUE | 5 | ad->tags | 0 |
| PARAM_VALUE | 5 | ad->type | 0 |
| BUF_SIZE | 4 | p | 0 |
| DATA_SOURCE | 0 | profile | $0 |
| DATA_SOURCE | 2 | state | r match_to_sk |
| DATA_SOURCE | 3 | request | $2 |
| DATA_SOURCE | 5 | ad | $1 |