Home
last modified time | relevance | path

Searched defs:ns (Results 1 – 21 of 21) sorted by relevance

/kernel/
Dpid_namespace.c78 struct pid_namespace *ns = container_of(work, struct pid_namespace, proc_work); in proc_cleanup_work() local
85 static struct ucounts *inc_pid_namespaces(struct user_namespace *ns) in inc_pid_namespaces()
98 struct pid_namespace *ns; in create_pid_namespace() local
161 struct pid_namespace *ns = container_of(p, struct pid_namespace, rcu); in delayed_free_pidns() local
169 static void destroy_pid_namespace(struct pid_namespace *ns) in destroy_pid_namespace()
191 struct pid_namespace *ns; in free_pid_ns() local
197 void put_pid_ns(struct pid_namespace *ns) in put_pid_ns()
363 static inline struct pid_namespace *to_pid_ns(struct ns_common *ns) in to_pid_ns()
370 struct pid_namespace *ns; in pidns_get() local
383 struct pid_namespace *ns = NULL; in pidns_for_children_get() local
[all …]
Duser_namespace.c35 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) in inc_user_namespaces()
74 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns() local
178 struct user_namespace *parent, *ns = in free_user_ns() local
195 void __put_user_ns(struct user_namespace *ns) in __put_user_ns()
286 kuid_t make_kuid(struct user_namespace *ns, uid_t uid) in make_kuid()
354 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid()
421 kprojid_t make_kprojid(struct user_namespace *ns, projid_t projid) in make_kprojid()
479 struct user_namespace *ns = seq->private; in uid_m_show() local
500 struct user_namespace *ns = seq->private; in gid_m_show() local
521 struct user_namespace *ns = seq->private; in projid_m_show() local
[all …]
Dutsname.c22 static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) in inc_uts_namespaces()
50 struct uts_namespace *ns; in clone_uts_ns() local
110 struct uts_namespace *ns; in free_uts_ns() local
119 static inline struct uts_namespace *to_uts_ns(struct ns_common *ns) in to_uts_ns()
126 struct uts_namespace *ns = NULL; in utsns_get() local
140 static void utsns_put(struct ns_common *ns) in utsns_put()
147 struct uts_namespace *ns = to_uts_ns(new); in utsns_install() local
159 static struct user_namespace *utsns_owner(struct ns_common *ns) in utsns_owner()
Dcapability.c297 struct user_namespace *ns, int cap) in has_ns_capability()
338 struct user_namespace *ns, int cap) in has_ns_capability_noaudit()
366 static bool ns_capable_common(struct user_namespace *ns, int cap, bool audit) in ns_capable_common()
395 bool ns_capable(struct user_namespace *ns, int cap) in ns_capable()
413 bool ns_capable_noaudit(struct user_namespace *ns, int cap) in ns_capable_noaudit()
448 bool file_ns_capable(const struct file *file, struct user_namespace *ns, in file_ns_capable()
468 bool privileged_wrt_inode_uidgid(struct user_namespace *ns, const struct inode *inode) in privileged_wrt_inode_uidgid()
485 struct user_namespace *ns = current_user_ns(); in capable_wrt_inode_uidgid() local
499 bool ptracer_capable(struct task_struct *tsk, struct user_namespace *ns) in ptracer_capable()
Ducount.c19 #define ucounts_hashfn(ns, uid) \ argument
22 #define ucounts_hashentry(ns, uid) \ argument
86 bool setup_userns_sysctls(struct user_namespace *ns) in setup_userns_sysctls()
108 void retire_userns_sysctls(struct user_namespace *ns) in retire_userns_sysctls()
120 static struct ucounts *find_ucounts(struct user_namespace *ns, kuid_t uid, struct hlist_head *hashe… in find_ucounts()
131 static struct ucounts *get_ucounts(struct user_namespace *ns, kuid_t uid) in get_ucounts()
195 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, in inc_ucount()
Dpid.c43 #define pid_hashfn(nr, ns) \ argument
238 struct pid_namespace *ns; in put_pid() local
267 struct pid_namespace *ns = upid->ns; in free_pid() local
296 struct pid *alloc_pid(struct pid_namespace *ns) in alloc_pid()
360 void disable_pid_allocation(struct pid_namespace *ns) in disable_pid_allocation()
367 struct pid *find_pid_ns(int nr, struct pid_namespace *ns) in find_pid_ns()
453 struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns) in find_task_by_pid_ns()
501 pid_t pid_nr_ns(struct pid *pid, struct pid_namespace *ns) in pid_nr_ns()
522 struct pid_namespace *ns) in __task_pid_nr_ns()
554 struct pid *find_ge_pid(int nr, struct pid_namespace *ns) in find_ge_pid()
Dacct.c91 struct pid_namespace *ns; member
144 static struct bsd_acct_struct *acct_get(struct pid_namespace *ns) in acct_get()
197 struct pid_namespace *ns = task_active_pid_ns(current); in acct_on() local
297 void acct_exit_ns(struct pid_namespace *ns) in acct_exit_ns()
504 struct pid_namespace *ns = acct->ns; in do_acct_process() local
574 static void slow_acct_process(struct pid_namespace *ns) in slow_acct_process()
593 struct pid_namespace *ns; in acct_process() local
Dnsproxy.c173 void free_nsproxy(struct nsproxy *ns) in free_nsproxy()
219 struct nsproxy *ns; in switch_task_namespaces() local
242 struct ns_common *ns; in SYSCALL_DEFINE2() local
Dsys.c343 struct user_namespace *ns = current_user_ns(); in SYSCALL_DEFINE2() local
400 struct user_namespace *ns = current_user_ns(); in SYSCALL_DEFINE1() local
476 struct user_namespace *ns = current_user_ns(); in SYSCALL_DEFINE2() local
547 struct user_namespace *ns = current_user_ns(); in SYSCALL_DEFINE1() local
594 struct user_namespace *ns = current_user_ns(); in SYSCALL_DEFINE3() local
681 struct user_namespace *ns = current_user_ns(); in SYSCALL_DEFINE3() local
Ddelayacct.c57 s64 ns = ktime_get_ns() - *start; in delayacct_end() local
Dptrace.c261 static bool ptrace_has_cap(const struct cred *cred, struct user_namespace *ns, in ptrace_has_cap()
/kernel/cgroup/
Dnamespace.c12 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()
Dcgroup-v1.c176 struct { enum cgroup_filetype type; struct pid_namespace *ns; } key; member
298 struct pid_namespace *ns = task_active_pid_ns(current); in cgroup_pidlist_find() local
1124 struct cgroup_namespace *ns) in cgroup1_mount()
Dcgroup.c1948 struct cgroup_namespace *ns) in cgroup_do_mount()
1989 struct cgroup_namespace *ns = current->nsproxy->cgroup_ns; in cgroup_mount() local
2069 struct cgroup_namespace *ns) in cgroup_path_ns_locked()
2077 struct cgroup_namespace *ns) in cgroup_path_ns()
3435 struct cgroup_namespace *ns = current->nsproxy->cgroup_ns; in cgroup_file_write() local
4410 struct cgroup_namespace *ns = current->nsproxy->cgroup_ns; in cgroup_procs_write_permission() local
5489 int proc_cgroup_show(struct seq_file *m, struct pid_namespace *ns, in proc_cgroup_show()
Dcpuset.c2749 int proc_cpuset_show(struct seq_file *m, struct pid_namespace *ns, in proc_cpuset_show()
/kernel/time/
Dsched_clock.c146 u64 ns; in update_sched_clock() local
171 u64 res, wrap, new_mask, new_epoch, cyc, ns; in sched_clock_register() local
Dtimecounter.c85 u64 ns = (u64) cycles; in cc_cyc2ns_backwards() local
/kernel/sched/
Dcputime.c303 u64 ns; in read_sum_exec_runtime() local
Ddebug.c989 void proc_sched_show_task(struct task_struct *p, struct pid_namespace *ns, in proc_sched_show_task()
Dcore.c3041 u64 ns; in task_sched_runtime() local
Dfair.c1468 static void update_numa_stats(struct numa_stats *ns, int nid) in update_numa_stats()