| /Linux-v5.4/ipc/ | 
| D | namespace.c | 22 static struct ucounts *inc_ipc_namespaces(struct user_namespace *ns)  in inc_ipc_namespaces()35 	struct ipc_namespace *ns;  in create_ipc_ns()  local
 80 	struct user_namespace *user_ns, struct ipc_namespace *ns)  in copy_ipcs()
 95 void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids,  in free_ipcs()
 118 static void free_ipc_ns(struct ipc_namespace *ns)  in free_ipc_ns()
 146 void put_ipc_ns(struct ipc_namespace *ns)  in put_ipc_ns()
 156 static inline struct ipc_namespace *to_ipc_ns(struct ns_common *ns)  in to_ipc_ns()
 163 	struct ipc_namespace *ns = NULL;  in ipcns_get()  local
 175 static void ipcns_put(struct ns_common *ns)  in ipcns_put()
 182 	struct ipc_namespace *ns = to_ipc_ns(new);  in ipcns_install()  local
 [all …]
 
 | 
| D | util.h | 61 static inline void mq_clear_sbinfo(struct ipc_namespace *ns) { }  in mq_clear_sbinfo()62 static inline void mq_put_mnt(struct ipc_namespace *ns) { }  in mq_put_mnt()
 74 static inline void sem_init_ns(struct ipc_namespace *ns) { }  in sem_init_ns()
 75 static inline void msg_init_ns(struct ipc_namespace *ns) { }  in msg_init_ns()
 76 static inline void shm_init_ns(struct ipc_namespace *ns) { }  in shm_init_ns()
 78 static inline void sem_exit_ns(struct ipc_namespace *ns) { }  in sem_exit_ns()
 79 static inline void msg_exit_ns(struct ipc_namespace *ns) { }  in msg_exit_ns()
 80 static inline void shm_exit_ns(struct ipc_namespace *ns) { }  in shm_exit_ns()
 246 static inline int sem_check_semmni(struct ipc_namespace *ns) {  in sem_check_semmni()
 
 | 
| D | shm.c | 76 	struct ipc_namespace *ns;  member86 #define shm_ids(ns)	((ns)->ids[IPC_SHM_IDS])  argument
 99 void shm_init_ns(struct ipc_namespace *ns)  in shm_init_ns()
 113 static void do_shm_rmid(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp)  in do_shm_rmid()
 129 void shm_exit_ns(struct ipc_namespace *ns)  in shm_exit_ns()
 156 static inline struct shmid_kernel *shm_obtain_object(struct ipc_namespace *ns, int id)  in shm_obtain_object()
 166 static inline struct shmid_kernel *shm_obtain_object_check(struct ipc_namespace *ns, int id)  in shm_obtain_object_check()
 180 static inline struct shmid_kernel *shm_lock(struct ipc_namespace *ns, int id)  in shm_lock()
 228 static inline void shm_rmid(struct ipc_namespace *ns, struct shmid_kernel *s)  in shm_rmid()
 279 static void shm_destroy(struct ipc_namespace *ns, struct shmid_kernel *shp)  in shm_destroy()
 [all …]
 
 | 
| /Linux-v5.4/security/apparmor/ | 
| D | policy_ns.c | 89 	struct aa_ns *ns;  in alloc_ns()  local137 void aa_free_ns(struct aa_ns *ns)  in aa_free_ns()
 164 	struct aa_ns *ns = NULL;  in aa_findn_ns()  local
 202 	struct aa_ns *ns = view;  in __aa_lookupn_ns()  local
 233 	struct aa_ns *ns = NULL;  in aa_lookupn_ns()  local
 245 	struct aa_ns *ns;  in __aa_create_ns()  local
 285 	struct aa_ns *ns;  in __aa_find_or_create_ns()  local
 310 	struct aa_ns *ns;  in aa_prepare_ns()  local
 330 static void destroy_ns(struct aa_ns *ns)  in destroy_ns()
 360 void __aa_remove_ns(struct aa_ns *ns)  in __aa_remove_ns()
 [all …]
 
 | 
| /Linux-v5.4/drivers/net/netdevsim/ | 
| D | netdev.c | 30 	struct netdevsim *ns = netdev_priv(dev);  in nsim_start_xmit()  local52 	struct netdevsim *ns = netdev_priv(dev);  in nsim_change_mtu()  local
 65 	struct netdevsim *ns = netdev_priv(dev);  in nsim_get_stats64()  local
 83 	struct netdevsim *ns = netdev_priv(dev);  in nsim_set_vf_mac()  local
 97 	struct netdevsim *ns = netdev_priv(dev);  in nsim_set_vf_vlan()  local
 112 	struct netdevsim *ns = netdev_priv(dev);  in nsim_set_vf_rate()  local
 126 	struct netdevsim *ns = netdev_priv(dev);  in nsim_set_vf_spoofchk()  local
 138 	struct netdevsim *ns = netdev_priv(dev);  in nsim_set_vf_rss_query_en()  local
 150 	struct netdevsim *ns = netdev_priv(dev);  in nsim_set_vf_trust()  local
 163 	struct netdevsim *ns = netdev_priv(dev);  in nsim_get_vf_config()  local
 [all …]
 
 | 
| D | ipsec.c | 16 	struct netdevsim *ns = filp->private_data;  in nsim_dbg_netdev_ops_read()  local132 	struct netdevsim *ns;  in nsim_ipsec_add_sa()  local
 197 	struct netdevsim *ns = netdev_priv(xs->xso.dev);  in nsim_ipsec_del_sa()  local
 214 	struct netdevsim *ns = netdev_priv(xs->xso.dev);  in nsim_ipsec_offload_ok()  local
 228 bool nsim_ipsec_tx(struct netdevsim *ns, struct sk_buff *skb)  in nsim_ipsec_tx()
 275 void nsim_ipsec_init(struct netdevsim *ns)  in nsim_ipsec_init()
 291 void nsim_ipsec_teardown(struct netdevsim *ns)  in nsim_ipsec_teardown()
 
 | 
| D | bpf.c | 41 	struct netdevsim *ns;  member82 static bool nsim_xdp_offload_active(struct netdevsim *ns)  in nsim_xdp_offload_active()
 99 nsim_bpf_offload(struct netdevsim *ns, struct bpf_prog *prog, bool oldprog)  in nsim_bpf_offload()
 118 	struct netdevsim *ns = cb_priv;  in nsim_bpf_setup_tc_block_cb()  local
 168 int nsim_bpf_disable_tc(struct netdevsim *ns)  in nsim_bpf_disable_tc()
 175 static int nsim_xdp_offload_prog(struct netdevsim *ns, struct netdev_bpf *bpf)  in nsim_xdp_offload_prog()
 188 nsim_xdp_set_prog(struct netdevsim *ns, struct netdev_bpf *bpf,  in nsim_xdp_set_prog()
 289 static int nsim_setup_prog_checks(struct netdevsim *ns, struct netdev_bpf *bpf)  in nsim_setup_prog_checks()
 303 nsim_setup_prog_hw_checks(struct netdevsim *ns, struct netdev_bpf *bpf)  in nsim_setup_prog_hw_checks()
 482 nsim_bpf_map_alloc(struct netdevsim *ns, struct bpf_offloaded_map *offmap)  in nsim_bpf_map_alloc()
 [all …]
 
 | 
| /Linux-v5.4/kernel/ | 
| D | pid_namespace.c | 64 	struct pid_namespace *ns = container_of(work, struct pid_namespace, proc_work);  in proc_cleanup_work()  local68 static struct ucounts *inc_pid_namespaces(struct user_namespace *ns)  in inc_pid_namespaces()
 81 	struct pid_namespace *ns;  in create_pid_namespace()  local
 134 	struct pid_namespace *ns = container_of(p, struct pid_namespace, rcu);  in delayed_free_pidns()  local
 142 static void destroy_pid_namespace(struct pid_namespace *ns)  in destroy_pid_namespace()
 162 	struct pid_namespace *ns;  in free_pid_ns()  local
 168 void put_pid_ns(struct pid_namespace *ns)  in put_pid_ns()
 337 static inline struct pid_namespace *to_pid_ns(struct ns_common *ns)  in to_pid_ns()
 344 	struct pid_namespace *ns;  in pidns_get()  local
 357 	struct pid_namespace *ns = NULL;  in pidns_for_children_get()  local
 [all …]
 
 | 
| D | utsname.c | 20 static struct ucounts *inc_uts_namespaces(struct user_namespace *ns)  in inc_uts_namespaces()48 	struct uts_namespace *ns;  in clone_uts_ns()  local
 108 	struct uts_namespace *ns;  in free_uts_ns()  local
 117 static inline struct uts_namespace *to_uts_ns(struct ns_common *ns)  in to_uts_ns()
 124 	struct uts_namespace *ns = NULL;  in utsns_get()  local
 138 static void utsns_put(struct ns_common *ns)  in utsns_put()
 145 	struct uts_namespace *ns = to_uts_ns(new);  in utsns_install()  local
 157 static struct user_namespace *utsns_owner(struct ns_common *ns)  in utsns_owner()
 
 | 
| D | user_namespace.c | 32 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid)  in inc_user_namespaces()71 	struct user_namespace *ns, *parent_ns = new->user_ns;  in create_user_ns()  local
 176 	struct user_namespace *parent, *ns =  in free_user_ns()  local
 203 void __put_user_ns(struct user_namespace *ns)  in __put_user_ns()
 386 kuid_t make_kuid(struct user_namespace *ns, uid_t uid)  in make_kuid()
 454 kgid_t make_kgid(struct user_namespace *ns, gid_t gid)  in make_kgid()
 521 kprojid_t make_kprojid(struct user_namespace *ns, projid_t projid)  in make_kprojid()
 579 	struct user_namespace *ns = seq->private;  in uid_m_show()  local
 600 	struct user_namespace *ns = seq->private;  in gid_m_show()  local
 621 	struct user_namespace *ns = seq->private;  in projid_m_show()  local
 [all …]
 
 | 
| D | capability.c | 295 		       struct user_namespace *ns, int cap)  in has_ns_capability()336 			       struct user_namespace *ns, int cap)  in has_ns_capability_noaudit()
 364 static bool ns_capable_common(struct user_namespace *ns,  in ns_capable_common()
 394 bool ns_capable(struct user_namespace *ns, int cap)  in ns_capable()
 412 bool ns_capable_noaudit(struct user_namespace *ns, int cap)  in ns_capable_noaudit()
 431 bool ns_capable_setid(struct user_namespace *ns, int cap)  in ns_capable_setid()
 466 bool file_ns_capable(const struct file *file, struct user_namespace *ns,  in file_ns_capable()
 487 bool privileged_wrt_inode_uidgid(struct user_namespace *ns, const struct inode *inode)  in privileged_wrt_inode_uidgid()
 504 	struct user_namespace *ns = current_user_ns();  in capable_wrt_inode_uidgid()  local
 518 bool ptracer_capable(struct task_struct *tsk, struct user_namespace *ns)  in ptracer_capable()
 
 | 
| D | ucount.c | 15 #define ucounts_hashfn(ns, uid)						\  argument18 #define ucounts_hashentry(ns, uid)	\  argument
 80 bool setup_userns_sysctls(struct user_namespace *ns)  in setup_userns_sysctls()
 102 void retire_userns_sysctls(struct user_namespace *ns)  in retire_userns_sysctls()
 114 static struct ucounts *find_ucounts(struct user_namespace *ns, kuid_t uid, struct hlist_head *hashe…  in find_ucounts()
 125 static struct ucounts *get_ucounts(struct user_namespace *ns, kuid_t uid)  in get_ucounts()
 189 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid,  in inc_ucount()
 
 | 
| D | pid.c | 105 	struct pid_namespace *ns;  in put_pid()  local133 		struct pid_namespace *ns = upid->ns;  in free_pid()  local
 160 struct pid *alloc_pid(struct pid_namespace *ns)  in alloc_pid()
 254 void disable_pid_allocation(struct pid_namespace *ns)  in disable_pid_allocation()
 261 struct pid *find_pid_ns(int nr, struct pid_namespace *ns)  in find_pid_ns()
 346 struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns)  in find_task_by_pid_ns()
 405 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns)  in pid_nr_ns()
 426 			struct pid_namespace *ns)  in __task_pid_nr_ns()
 452 struct pid *find_ge_pid(int nr, struct pid_namespace *ns)  in find_ge_pid()
 
 | 
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ | 
| D | fs_cmd.c | 42 static int mlx5_cmd_stub_update_root_ft(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_stub_update_root_ft()50 static int mlx5_cmd_stub_create_flow_table(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_stub_create_flow_table()
 58 static int mlx5_cmd_stub_destroy_flow_table(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_stub_destroy_flow_table()
 64 static int mlx5_cmd_stub_modify_flow_table(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_stub_modify_flow_table()
 71 static int mlx5_cmd_stub_create_flow_group(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_stub_create_flow_group()
 79 static int mlx5_cmd_stub_destroy_flow_group(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_stub_destroy_flow_group()
 86 static int mlx5_cmd_stub_create_fte(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_stub_create_fte()
 94 static int mlx5_cmd_stub_update_fte(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_stub_update_fte()
 103 static int mlx5_cmd_stub_delete_fte(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_stub_delete_fte()
 110 static int mlx5_cmd_stub_packet_reformat_alloc(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_stub_packet_reformat_alloc()
 [all …]
 
 | 
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/steering/ | 
| D | fs_dr.c | 18 static int mlx5_cmd_dr_update_root_ft(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_dr_update_root_ft()27 static int set_miss_action(struct mlx5_flow_root_namespace *ns,  in set_miss_action()
 63 static int mlx5_cmd_dr_create_flow_table(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_dr_create_flow_table()
 98 static int mlx5_cmd_dr_destroy_flow_table(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_dr_destroy_flow_table()
 125 static int mlx5_cmd_dr_modify_flow_table(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_dr_modify_flow_table()
 132 static int mlx5_cmd_dr_create_flow_group(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_dr_create_flow_group()
 166 static int mlx5_cmd_dr_destroy_flow_group(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_dr_destroy_flow_group()
 210 static int mlx5_cmd_dr_create_fte(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_dr_create_fte()
 433 static int mlx5_cmd_dr_packet_reformat_alloc(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_dr_packet_reformat_alloc()
 476 static void mlx5_cmd_dr_packet_reformat_dealloc(struct mlx5_flow_root_namespace *ns,  in mlx5_cmd_dr_packet_reformat_dealloc()
 [all …]
 
 | 
| /Linux-v5.4/drivers/nvme/host/ | 
| D | multipath.c | 52 void nvme_set_disk_name(char *disk_name, struct nvme_ns *ns,  in nvme_set_disk_name()69 	struct nvme_ns *ns = req->q->queuedata;  in nvme_failover_req()  local
 118 	struct nvme_ns *ns;  in nvme_kick_requeue_lists()  local
 137 bool nvme_mpath_clear_current_path(struct nvme_ns *ns)  in nvme_mpath_clear_current_path()
 158 	struct nvme_ns *ns;  in nvme_mpath_clear_ctrl_paths()  local
 169 static bool nvme_path_is_disabled(struct nvme_ns *ns)  in nvme_path_is_disabled()
 179 	struct nvme_ns *found = NULL, *fallback = NULL, *ns;  in __nvme_find_path()  local
 216 		struct nvme_ns *ns)  in nvme_next_ns()
 228 	struct nvme_ns *ns, *found, *fallback = NULL;  in nvme_round_robin_path()  local
 258 static inline bool nvme_path_is_optimized(struct nvme_ns *ns)  in nvme_path_is_optimized()
 [all …]
 
 | 
| /Linux-v5.4/kernel/cgroup/ | 
| D | namespace.c | 12 static struct ucounts *inc_cgroup_namespaces(struct user_namespace *ns)  in inc_cgroup_namespaces()40 void free_cgroup_ns(struct cgroup_namespace *ns)  in free_cgroup_ns()
 93 static inline struct cgroup_namespace *to_cg_ns(struct ns_common *ns)  in to_cg_ns()
 98 static int cgroupns_install(struct nsproxy *nsproxy, struct ns_common *ns)  in cgroupns_install()
 119 	struct cgroup_namespace *ns = NULL;  in cgroupns_get()  local
 133 static void cgroupns_put(struct ns_common *ns)  in cgroupns_put()
 138 static struct user_namespace *cgroupns_owner(struct ns_common *ns)  in cgroupns_owner()
 
 | 
| /Linux-v5.4/drivers/mtd/nand/raw/ | 
| D | nandsim.c | 190 #define NS_IS_INITIALIZED(ns) ((ns)->geom.totsz != 0)  argument193 #define NS_STATUS_OK(ns) (NAND_STATUS_READY | (NAND_STATUS_WP * ((ns)->lines.wp == 0)))  argument
 196 #define NS_STATUS_FAILED(ns) (NAND_STATUS_FAIL | NS_STATUS_OK(ns))  argument
 199 #define NS_RAW_OFFSET(ns) \  argument
 203 #define NS_RAW_OFFSET_OOB(ns) (NS_RAW_OFFSET(ns) + ns->geom.pgsz)  argument
 527 static int __init alloc_device(struct nandsim *ns)  in alloc_device()
 591 static void free_device(struct nandsim *ns)  in free_device()
 626 	struct nandsim   *ns   = nand_get_controller_data(chip);  in init_nandsim()  local
 760 static void free_nandsim(struct nandsim *ns)  in free_nandsim()
 768 static int parse_badblocks(struct nandsim *ns, struct mtd_info *mtd)  in parse_badblocks()
 [all …]
 
 | 
| /Linux-v5.4/fs/ | 
| D | nsfs.c | 36 		struct ns_common *ns = inode->i_private;  in ns_prune_dentry()  local50 	struct ns_common *ns = inode->i_private;  in nsfs_evict()  local
 55 static void *__ns_get_path(struct path *path, struct ns_common *ns)  in __ns_get_path()
 112 		struct ns_common *ns = ns_get_cb(private_data);  in ns_get_path_cb()  local
 145 int open_related_ns(struct ns_common *ns,  in open_related_ns()
 146 		   struct ns_common *(*get_ns)(struct ns_common *ns))  in open_related_ns()
 190 	struct ns_common *ns = get_proc_ns(file_inode(filp));  in ns_ioctl()  local
 218 	struct ns_common *ns;  in ns_get_name()  local
 
 | 
| /Linux-v5.4/include/linux/ | 
| D | export.h | 97 #define ___EXPORT_SYMBOL_NS(sym,sec,ns)	__GENKSYMS_EXPORT_SYMBOL(sym)  argument109 #define ___EXPORT_SYMBOL_NS(sym, sec, ns)				\  argument
 129 #define __EXPORT_SYMBOL_NS(sym, sec, ns)  argument
 156 #define __EXPORT_SYMBOL_NS(sym, sec, ns)				\  argument
 159 #define __cond_export_ns_sym(sym, sec, ns, conf)			\  argument
 161 #define ___cond_export_ns_sym(sym, sec, ns, enabled)			\  argument
 163 #define __cond_export_ns_sym_1(sym, sec, ns) ___EXPORT_SYMBOL_NS(sym, sec, ns)  argument
 164 #define __cond_export_ns_sym_0(sym, sec, ns) /* nothing */  argument
 168 #define __EXPORT_SYMBOL_NS(sym,sec,ns)	___EXPORT_SYMBOL_NS(sym,sec,ns)  argument
 182 #define EXPORT_SYMBOL_NS(sym, ns)	__EXPORT_SYMBOL_NS(sym, "", ns)  argument
 [all …]
 
 | 
| D | utsname.h | 29 	struct ns_common ns;  member34 static inline void get_uts_ns(struct uts_namespace *ns)  in get_uts_ns()
 43 static inline void put_uts_ns(struct uts_namespace *ns)  in put_uts_ns()
 50 static inline void get_uts_ns(struct uts_namespace *ns)  in get_uts_ns()
 54 static inline void put_uts_ns(struct uts_namespace *ns)  in put_uts_ns()
 
 | 
| D | pid_namespace.h | 47 	struct ns_common ns;  member55 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns)  in get_pid_ns()
 71 static inline struct pid_namespace *get_pid_ns(struct pid_namespace *ns)  in get_pid_ns()
 77 	struct user_namespace *user_ns, struct pid_namespace *ns)  in copy_pid_ns()
 84 static inline void put_pid_ns(struct pid_namespace *ns)  in put_pid_ns()
 88 static inline void zap_pid_ns_processes(struct pid_namespace *ns)  in zap_pid_ns_processes()
 
 | 
| D | user_namespace.h | 64 	struct ns_common	ns;  member93 	struct user_namespace *ns;  member
 108 static inline struct user_namespace *get_user_ns(struct user_namespace *ns)  in get_user_ns()
 119 static inline void put_user_ns(struct user_namespace *ns)  in put_user_ns()
 141 static inline struct user_namespace *get_user_ns(struct user_namespace *ns)  in get_user_ns()
 159 static inline void put_user_ns(struct user_namespace *ns)  in put_user_ns()
 163 static inline bool userns_may_setgroups(const struct user_namespace *ns)  in userns_may_setgroups()
 179 static inline struct ns_common *ns_get_owner(struct ns_common *ns)  in ns_get_owner()
 
 | 
| D | ipc_namespace.h | 71 	struct ns_common ns;  member80 static inline void shm_destroy_orphaned(struct ipc_namespace *ns) {}  in shm_destroy_orphaned()
 119 static inline int mq_init_ns(struct ipc_namespace *ns) { return 0; }  in mq_init_ns()
 126 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns)  in get_ipc_ns()
 136 	struct user_namespace *user_ns, struct ipc_namespace *ns)  in copy_ipcs()
 144 static inline struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns)  in get_ipc_ns()
 149 static inline void put_ipc_ns(struct ipc_namespace *ns)  in put_ipc_ns()
 
 | 
| /Linux-v5.4/security/keys/ | 
| D | persistent.c | 20 static int key_create_persistent_register(struct user_namespace *ns)  in key_create_persistent_register()40 static key_ref_t key_create_persistent(struct user_namespace *ns, kuid_t uid,  in key_create_persistent()
 73 static long key_get_persistent(struct user_namespace *ns, kuid_t uid,  in key_get_persistent()
 131 	struct user_namespace *ns = current_user_ns();  in keyctl_get_persistent()  local
 
 |