Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- fs/exec.c, line 1285
- kernel/cred.c, line 294
- kernel/fork.c, line 3297
- kernel/sys.c
- kernel/user_namespace.c, line 1371
Smatch caller information:
kernel/fork.c ksys_unshare() -> set_cred_ucounts()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | new | 4096-ptr_max |
| PARAM_VALUE | 0 | new->non_rcu | 0 |
| PARAM_VALUE | 0 | new->request_key_auth | 0 |
| PARAM_VALUE | 0 | new->securebits | 0 |
| PARAM_VALUE | 0 | new->usage.counter | 1 |
kernel/user_namespace.c userns_install() -> set_cred_ucounts()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | new | 4096-ptr_max |
| PARAM_VALUE | 0 | new->request_key_auth | 0 |
| PARAM_VALUE | 0 | new->securebits | 0 |
| PARAM_VALUE | 0 | new->user_ns | 4096-ptr_max |
| NS_CAPABLE | 0 | 21 |
kernel/sys.c __sys_setresuid() -> set_cred_ucounts()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | new | 4096-ptr_max |
| PARAM_VALUE | 0 | new->group_info | 4096-ptr_max |
| PARAM_VALUE | 0 | new->non_rcu | 0 |
| PARAM_VALUE | 0 | new->process_keyring | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->request_key_auth | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->security | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->session_keyring | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->thread_keyring | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->ucounts | 4096-ptr_max |
| PARAM_VALUE | 0 | new->usage.counter | 1 |
| PARAM_VALUE | 0 | new->user | 4096-ptr_max |
| DATA_SOURCE | 0 | new | r prepare_creds |
kernel/sys.c __sys_setreuid() -> set_cred_ucounts()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | new | 4096-ptr_max |
| PARAM_VALUE | 0 | new->group_info | 4096-ptr_max |
| PARAM_VALUE | 0 | new->non_rcu | 0 |
| PARAM_VALUE | 0 | new->process_keyring | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->request_key_auth | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->security | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->session_keyring | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->thread_keyring | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->ucounts | 4096-ptr_max |
| PARAM_VALUE | 0 | new->usage.counter | 1 |
| PARAM_VALUE | 0 | new->user | 4096-ptr_max |
| DATA_SOURCE | 0 | new | r prepare_creds |
kernel/sys.c __sys_setuid() -> set_cred_ucounts()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | new | 4096-ptr_max |
| PARAM_VALUE | 0 | new->group_info | 4096-ptr_max |
| PARAM_VALUE | 0 | new->non_rcu | 0 |
| PARAM_VALUE | 0 | new->process_keyring | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->request_key_auth | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->security | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->session_keyring | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->thread_keyring | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->ucounts | 4096-ptr_max |
| PARAM_VALUE | 0 | new->usage.counter | 1 |
| PARAM_VALUE | 0 | new->user | 4096-ptr_max |
| DATA_SOURCE | 0 | new | r prepare_creds |
| BIT_INFO | 0 | new->euid | 0x0,0x7fffffff |
kernel/cred.c copy_creds() -> set_cred_ucounts()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | new | 4096-ptr_max |
| PARAM_VALUE | 0 | new->group_info | 4096-ptr_max |
| PARAM_VALUE | 0 | new->non_rcu | 0 |
| PARAM_VALUE | 0 | new->process_keyring | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->request_key_auth | 0 |
| PARAM_VALUE | 0 | new->securebits | 0 |
| PARAM_VALUE | 0 | new->security | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->session_keyring | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->thread_keyring | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->ucounts | 4096-ptr_max |
| PARAM_VALUE | 0 | new->usage.counter | 1 |
| PARAM_VALUE | 0 | new->user | 4096-ptr_max |
| PARAM_VALUE | 0 | new->user_ns | 4096-ptr_max |
| PARAM_VALUE | 0 | new->user_ns->keyring_name_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | new->user_ns->keyring_name_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | new->user_ns->keyring_sem.count.counter | 0 |
| PARAM_VALUE | 0 | new->user_ns->keyring_sem.first_waiter | 0 |
| PARAM_VALUE | 0 | new->user_ns->keyring_sem.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | new->user_ns->keyring_sem.owner.counter | 0 |
| PARAM_VALUE | 0 | new->user_ns->level | (-2147483647)-33 |
| PARAM_VALUE | 0 | new->user_ns->ns.__ns_ref.refs.counter | 1 |
| PARAM_VALUE | 0 | new->user_ns->ns.__ns_ref_active.counter | 0-1 |
| PARAM_VALUE | 0 | new->user_ns->ns.ns_id | 0 |
| PARAM_VALUE | 0 | new->user_ns->ns.ns_owner_node.ns_list_entry.next | 4096-ptr_max |
| PARAM_VALUE | 0 | new->user_ns->ns.ns_owner_node.ns_list_entry.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | new->user_ns->ns.ns_owner_root.ns_list_head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | new->user_ns->ns.ns_owner_root.ns_list_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | new->user_ns->ns.ns_tree_node.ns_list_entry.next | 4096-ptr_max |
| PARAM_VALUE | 0 | new->user_ns->ns.ns_tree_node.ns_list_entry.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | new->user_ns->ns.ns_unified_node.ns_list_entry.next | 4096-ptr_max |
| PARAM_VALUE | 0 | new->user_ns->ns.ns_unified_node.ns_list_entry.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | new->user_ns->ns.stashed | 0 |
| PARAM_VALUE | 0 | new->user_ns->parent | 4096-ptr_max |
| PARAM_VALUE | 0 | new->user_ns->set.dir.header.parent | 0 |
| PARAM_VALUE | 0 | new->user_ns->set.dir.header.type | 0-1 |
| PARAM_VALUE | 0 | new->user_ns->set.dir.header.used | 0 |
| PARAM_VALUE | 0 | new->user_ns->set.is_seen | 4181673230635741184 |
| PARAM_VALUE | 0 | new->user_ns->sysctls | 4096-ptr_max |
| PARAM_VALUE | 0 | new->user_ns->ucounts | 4096-ptr_max |
| DATA_SOURCE | 0 | new | r prepare_creds |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/exec.c begin_new_exec() -> set_cred_ucounts()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | new->group_info | 4096-ptr_max |
| PARAM_VALUE | 0 | new->non_rcu | 0 |
| PARAM_VALUE | 0 | new->process_keyring | 0 |
| PARAM_VALUE | 0 | new->request_key_auth | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->security | 0 |
| PARAM_VALUE | 0 | new->session_keyring | 0,4096-ptr_max |
| PARAM_VALUE | 0 | new->thread_keyring | 0 |
| PARAM_VALUE | 0 | new->ucounts | 4096-ptr_max |
| PARAM_VALUE | 0 | new->usage.counter | 1 |
| PARAM_VALUE | 0 | new->user | 4096-ptr_max |
| LOCK2 | &tsk->signal->exec_update_lock |