Documented in 1 files:
Defined in 1 files as a function:
Referenced in 5 files:
- security/apparmor/apparmorfs.c
- security/apparmor/include/cred.h, line 240
- security/apparmor/policy.c
- security/apparmor/policy_ns.c
- security/apparmor/policy_unpack.c, line 136
Smatch caller information:
security/apparmor/apparmorfs.c __aa_fs_create_rawdata() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->dents | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ns->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ns->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | ns->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | ns->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ns->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | ns->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | ns->rawdata_list.next | 4096-ptr_max |
| DATA_SOURCE | 0 | ns | $0 |
| LOCK2 | 0 | &ns->lock | |
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/apparmorfs.c aa_get_current_ns() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &f->lock |
security/apparmor/apparmorfs.c get_ns_common_ref() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
security/apparmor/apparmorfs.c ns_rmdir_op() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 0,4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &parent->lock | ||
| HALF_LOCKED2 | &dentry->d_lockref.lock | ||
| HALF_LOCKED2 | &dentry->d_sb->s_vfs_rename_mutex | ||
| HALF_LOCKED2 | &dir->d_inode->i_rwsem | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/policy.c __create_missing_ancestors() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ns->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ns->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | ns->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | ns->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ns->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | ns->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | ns->rawdata_list.next | 4096-ptr_max |
| DATA_SOURCE | 0 | ns | $0 |
| LOCK2 | 0 | &ns->lock | |
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/policy.c aa_alloc_null() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| HALF_LOCKED2 | &ns->lock |
security/apparmor/policy.c aa_fqlookupn_profile() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|
security/apparmor/policy.c aa_remove_profiles() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|
security/apparmor/policy.c aa_replace_profiles() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|
security/apparmor/policy.c aa_replace_profiles() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ns->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ns->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | ns->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | ns->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ns->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | ns->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | ns->rawdata_list.next | 4096-ptr_max |
| BUF_SIZE | 0 | ns | (-1),568 |
| BUF_SIZE | 0 | ns | (-1),568 |
| CAPPED_DATA | 0 | &ns->lock | 1 |
| CAPPED_DATA | 0 | &ns->rawdata_list | 1 |
| LOCK2 | 0 | &ns->lock | |
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/label.c aa_get_current_ns() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| UNITS | 0 | ns | unit_array_size |
security/apparmor/policy_ns.c __aa_create_ns() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->dents | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->level | s32min-32 |
| PARAM_VALUE | 0 | ns->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ns->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ns->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | ns->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | ns->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ns->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | ns->lock.wait_lock.owner_cpu | u32max |
| DATA_SOURCE | 0 | ns | $0 |
| FUZZY_MAX | 0 | ns->level | 32 |
| HARD_MAX | 0 | ns->level | 32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ns->lock | ||
| LOCK2 | 0 | &ns->lock | |
| HALF_LOCKED2 | &dir->i_rwsem | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/policy_ns.c __aa_create_ns() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.hname | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.name | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.profiles.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.profiles.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.profiles.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.profiles.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.profiles.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->labels.lock.magic | 3736018669 |
| PARAM_VALUE | 0 | ns->labels.lock.owner | (-1) |
| PARAM_VALUE | 0 | ns->labels.lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | ns->level | (-2147483647)-33 |
| PARAM_VALUE | 0 | ns->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ns->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | ns->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | ns->lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | ns->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ns->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | ns->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | ns->parent | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->rawdata_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->rawdata_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->rawdata_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->rawdata_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->rawdata_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->sub_ns.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->sub_ns.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->sub_ns.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->sub_ns.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->sub_ns.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->label.flags | 0,2-s64max |
| PARAM_VALUE | 0 | ns->unconfined->label.proxy | 1-u64max |
| PARAM_VALUE | 0 | ns->unconfined->label.rules | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->label.vec | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->mode | 3 |
| PARAM_VALUE | 0 | ns->unconfined->n_rules | 1 |
| PARAM_VALUE | 0 | ns->unconfined->ns | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->base.hname | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->base.list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->base.list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->base.name | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->base.profiles.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->base.profiles.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->rawdata_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->rawdata_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->sub_ns.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->sub_ns.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->unconfined | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->signal | 9 |
| PARAM_VALUE | 0 | ns->uniq_null.counter | 0 |
| PARAM_VALUE | 0 | ns->wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->wait.head.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->wait.head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->wait.head.prev->prev | 4096-ptr_max |
| BUF_SIZE | 0 | ns | 568 |
| CAPPED_DATA | 0 | &ns->lock | 1 |
| DATA_SOURCE | 0 | ns | r alloc_ns |
| FUZZY_MAX | 0 | ns->level | 33 |
| HARD_MAX | 0 | ns->level | 33 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &parent->lock | ||
| LOCK2 | 0 | &ns->lock | |
| HALF_LOCKED2 | &dir->i_rwsem | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/policy_ns.c __aa_find_or_create_ns() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 0,4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dir->i_rwsem | ||
| LOCK2 | &parent->lock | ||
| HALF_LOCKED2 | &dir->d_lockref.lock | ||
| TYPE_LOCK | (struct aa_ns)->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
security/apparmor/policy_ns.c aa_alloc_root_ns() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.hname | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.name | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.profiles.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.profiles.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.profiles.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.profiles.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->base.profiles.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->labels.lock.magic | 3736018669 |
| PARAM_VALUE | 0 | ns->labels.lock.owner | (-1) |
| PARAM_VALUE | 0 | ns->labels.lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | ns->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | ns->lock.first_waiter | 0 |
| PARAM_VALUE | 0 | ns->lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->lock.osq.tail.counter | 0 |
| PARAM_VALUE | 0 | ns->lock.owner.counter | 0 |
| PARAM_VALUE | 0 | ns->rawdata_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->rawdata_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->rawdata_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->rawdata_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->rawdata_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->sub_ns.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->sub_ns.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->sub_ns.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->sub_ns.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->sub_ns.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->label.flags | 0,2-s64max |
| PARAM_VALUE | 0 | ns->unconfined->label.proxy | 1-u64max |
| PARAM_VALUE | 0 | ns->unconfined->label.rules | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->label.vec | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->mode | 3 |
| PARAM_VALUE | 0 | ns->unconfined->n_rules | 1 |
| PARAM_VALUE | 0 | ns->unconfined->ns | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->base.hname | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->base.list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->base.list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->base.name | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->base.profiles.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->base.profiles.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->rawdata_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->rawdata_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->sub_ns.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->sub_ns.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->unconfined | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->ns->wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->unconfined->signal | 9 |
| PARAM_VALUE | 0 | ns->uniq_null.counter | 0 |
| PARAM_VALUE | 0 | ns->wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->wait.head.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->wait.head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ns->wait.head.prev->prev | 4096-ptr_max |
| BUF_SIZE | 0 | ns | 568 |
| DATA_SOURCE | 0 | ns | r alloc_ns |
| HALF_LOCKED2 | irq |
security/apparmor/policy_ns.c aa_lookupn_ns() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 0,4096-ptr_max |
| LOCK2 | rcu_read |
security/apparmor/policy_ns.c aa_prepare_ns() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ns | 0,4096-ptr_max |
| LOCK2 | &parent->lock | ||
| TYPE_LOCK | (struct aa_ns)->lock |
security/apparmor/procattr.c aa_get_current_ns() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|
security/apparmor/policy_unpack.c do_ploaddata_rmfs() -> aa_get_ns()
| Type | Parameter | Key | Value |
|---|---|---|---|
| HALF_LOCKED2 | &pool->lock |