Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 16 files:
- drivers/pci/pci-sysfs.c, line 717
- drivers/pci/proc.c, line 44
- fs/proc/base.c, line 478
- fs/proc/task_mmu.c, line 2328
- kernel/capability.c, line 445
- kernel/cgroup/cgroup-v1.c, line 568
- kernel/resource.c, line 138
- kernel/seccomp.c, line 2538
- kernel/time/namespace.c, line 279
- kernel/user_namespace.c
- net/core/skbuff.c, line 5622
- net/core/sock.c, line 174
- net/netlink/af_netlink.c
- security/ipe/fs.c
- security/ipe/policy_fs.c
- security/safesetid/securityfs.c
Smatch caller information:
security/ipe/policy_fs.c delete_policy() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op->write | 1-u64max |
| PARAM_VALUE | 1 | ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 33 |
| DATA_SOURCE | 0 | file | $0 |
| BIT_INFO | 0 | file->f_mode | 0x40002,0xffffffffffffffff |
security/ipe/policy_fs.c setactive() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op->write | 1-u64max |
| PARAM_VALUE | 1 | ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 33 |
| DATA_SOURCE | 0 | file | $0 |
| BIT_INFO | 0 | file->f_mode | 0x40002,0xffffffffffffffff |
security/ipe/policy_fs.c update_policy() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op->write | 1-u64max |
| PARAM_VALUE | 1 | ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 33 |
| DATA_SOURCE | 0 | file | $0 |
| BIT_INFO | 0 | file->f_mode | 0x40002,0xffffffffffffffff |
fs/proc/base.c proc_pid_stack() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 21 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &m->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
net/core/skbuff.c skb_may_tx_timestamp() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 1-u64max |
| PARAM_VALUE | 1 | ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 13 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read |
fs/proc/task_mmu.c pagemap_read() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op->read | 1-u64max |
| PARAM_VALUE | 0 | file->private_data | 4096-ptr_max |
| PARAM_VALUE | 1 | ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 21 |
| DATA_SOURCE | 0 | file | $0 |
| BIT_INFO | 0 | file->f_mode | 0x20001,0xffffffff |
security/safesetid/securityfs.c safesetid_gid_file_write() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op->write | 1-u64max |
| PARAM_VALUE | 1 | ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 33 |
| DATA_SOURCE | 0 | file | $0 |
| BIT_INFO | 0 | file->f_mode | 0x40002,0xffffffffffffffff |
security/safesetid/securityfs.c safesetid_uid_file_write() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op->write | 1-u64max |
| PARAM_VALUE | 1 | ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 33 |
| DATA_SOURCE | 0 | file | $0 |
| BIT_INFO | 0 | file->f_mode | 0x40002,0xffffffffffffffff |
kernel/resource.c r_show() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 1 | ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 21 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &m->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/pci/proc.c proc_bus_pci_read() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op->read | 1-u64max |
| PARAM_VALUE | 1 | ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 21 |
| DATA_SOURCE | 0 | file | $0 |
| BIT_INFO | 0 | file->f_mode | 0x20001,0xffffffffffffffff |
kernel/time/namespace.c proc_timens_set_offset() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op->write | 1-u64max |
| PARAM_VALUE | 2 | cap | 25 |
| DATA_SOURCE | 0 | file | $0 |
| BIT_INFO | 0 | file->f_mode | 0x40002,0xffffffffffffffff |
kernel/cgroup/cgroup-v1.c cgroup_release_agent_write() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 21 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
net/core/sock.c sk_ns_capable() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 1 | ns | $1 |
| DATA_SOURCE | 2 | cap | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | sk |
kernel/user_namespace.c map_write() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op->write | 1-u64max |
| PARAM_VALUE | 0 | file->private_data | 4096-ptr_max |
| PARAM_VALUE | 2 | cap | 21 |
| BUF_SIZE | 1 | ns | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | ns | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | file | $0 |
| BIT_INFO | 0 | file->f_mode | 0x40002,0xffffffffffffffff |
| UNITS | 1 | ns | unit_array_size |
| LOCK2 | global &userns_state_mutex |
kernel/user_namespace.c new_idmap_permitted() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op->write | 1-u64max |
| PARAM_VALUE | 0 | file->private_data | 4096-ptr_max |
| PARAM_VALUE | 2 | cap | 6-7 |
| DATA_SOURCE | 0 | file | $0 |
| DATA_SOURCE | 2 | cap | $2 |
| FUZZY_MAX | 2 | cap | 7 |
| BIT_INFO | 0 | file->f_mode | 0x40002,0xffffffffffffffff |
| HARD_MAX | 2 | cap | 7 |
| UNITS | 1 | ns | unit_array_size |
| LOCK2 | global &userns_state_mutex |
kernel/user_namespace.c verify_root_map() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_cred | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op->write | 1-u64max |
| PARAM_VALUE | 0 | file->private_data | 4096-ptr_max |
| PARAM_VALUE | 2 | cap | 31 |
| DATA_SOURCE | 0 | file | $0 |
| BIT_INFO | 0 | file->f_mode | 0x40002,0xffffffffffffffff |
| UNITS | 1 | ns | unit_array_size |
| LOCK2 | global &userns_state_mutex |
security/ipe/fs.c new_policy() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op->write | 1-u64max |
| PARAM_VALUE | 1 | ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 33 |
| DATA_SOURCE | 0 | file | $0 |
| BIT_INFO | 0 | file->f_mode | 0x40002,0xffffffffffffffff |
security/ipe/fs.c setaudit() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op->write | 1-u64max |
| PARAM_VALUE | 1 | ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 33 |
| DATA_SOURCE | 0 | file | $0 |
| BIT_INFO | 0 | file->f_mode | 0x40002,0xffffffffffffffff |
security/ipe/fs.c setenforce() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op->write | 1-u64max |
| PARAM_VALUE | 1 | ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 33 |
| DATA_SOURCE | 0 | file | $0 |
| BIT_INFO | 0 | file->f_mode | 0x40002,0xffffffffffffffff |
drivers/pci/pci-sysfs.c pci_read_config() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 1 | ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 21 |
| DATA_SOURCE | 0 | file | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
net/netlink/af_netlink.c __netlink_ns_capable() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | cap | 12,21,29-30 |
| DATA_SOURCE | 1 | ns | $1 |
| DATA_SOURCE | 2 | cap | $2 |
| HARD_MAX | 2 | cap | 30 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &ops->srcu |
net/netlink/af_netlink.c do_one_broadcast() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | cap | 11 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &hsr->list_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | global ðnl_bcast_lock | ||
| HALF_LOCKED2 | global &ovs_mutex | ||
| HALF_LOCKED2 | global &page_pools_lock | ||
| HALF_LOCKED2 | rcu_read |
kernel/seccomp.c proc_pid_seccomp_cache() -> file_ns_capable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ns | 251279612184977408 |
| PARAM_VALUE | 2 | cap | 21 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &m->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |