Home
last modified time | relevance | path

Searched refs:ucounts (Results 1 – 5 of 5) sorted by relevance

/kernel/
Ducount.c115 static struct ucounts *find_ucounts(struct user_namespace *ns, kuid_t uid, struct hlist_head *hashe… in find_ucounts()
117 struct ucounts *ucounts; in find_ucounts() local
119 hlist_for_each_entry(ucounts, hashent, node) { in find_ucounts()
120 if (uid_eq(ucounts->uid, uid) && (ucounts->ns == ns)) in find_ucounts()
121 return ucounts; in find_ucounts()
126 static struct ucounts *get_ucounts(struct user_namespace *ns, kuid_t uid) in get_ucounts()
129 struct ucounts *ucounts, *new; in get_ucounts() local
132 ucounts = find_ucounts(ns, uid, hashent); in get_ucounts()
133 if (!ucounts) { in get_ucounts()
145 ucounts = find_ucounts(ns, uid, hashent); in get_ucounts()
[all …]
Dutsname.c20 static struct ucounts *inc_uts_namespaces(struct user_namespace *ns) in inc_uts_namespaces()
25 static void dec_uts_namespaces(struct ucounts *ucounts) in dec_uts_namespaces() argument
27 dec_ucount(ucounts, UCOUNT_UTS_NAMESPACES); in dec_uts_namespaces()
49 struct ucounts *ucounts; in clone_uts_ns() local
53 ucounts = inc_uts_namespaces(user_ns); in clone_uts_ns()
54 if (!ucounts) in clone_uts_ns()
66 ns->ucounts = ucounts; in clone_uts_ns()
78 dec_uts_namespaces(ucounts); in clone_uts_ns()
111 dec_uts_namespaces(ns->ucounts); in free_uts_ns()
Dpid_namespace.c82 static struct ucounts *inc_pid_namespaces(struct user_namespace *ns) in inc_pid_namespaces()
87 static void dec_pid_namespaces(struct ucounts *ucounts) in dec_pid_namespaces() argument
89 dec_ucount(ucounts, UCOUNT_PID_NAMESPACES); in dec_pid_namespaces()
97 struct ucounts *ucounts; in create_pid_namespace() local
104 ucounts = inc_pid_namespaces(user_ns); in create_pid_namespace()
105 if (!ucounts) in create_pid_namespace()
130 ns->ucounts = ucounts; in create_pid_namespace()
147 dec_pid_namespaces(ucounts); in create_pid_namespace()
156 dec_pid_namespaces(ns->ucounts); in delayed_free_pidns()
Duser_namespace.c34 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) in inc_user_namespaces()
39 static void dec_user_namespaces(struct ucounts *ucounts) in dec_user_namespaces() argument
41 return dec_ucount(ucounts, UCOUNT_USER_NAMESPACES); in dec_user_namespaces()
76 struct ucounts *ucounts; in create_user_ns() local
83 ucounts = inc_user_namespaces(parent_ns, owner); in create_user_ns()
84 if (!ucounts) in create_user_ns()
126 ns->ucounts = ucounts; in create_user_ns()
150 dec_user_namespaces(ucounts); in create_user_ns()
181 struct ucounts *ucounts = ns->ucounts; in free_user_ns() local
189 dec_user_namespaces(ucounts); in free_user_ns()
Dcgroup.c6365 static struct ucounts *inc_cgroup_namespaces(struct user_namespace *ns) in inc_cgroup_namespaces()
6370 static void dec_cgroup_namespaces(struct ucounts *ucounts) in dec_cgroup_namespaces() argument
6372 dec_ucount(ucounts, UCOUNT_CGROUP_NAMESPACES); in dec_cgroup_namespaces()
6396 dec_cgroup_namespaces(ns->ucounts); in free_cgroup_ns()
6408 struct ucounts *ucounts; in copy_cgroup_ns() local
6422 ucounts = inc_cgroup_namespaces(user_ns); in copy_cgroup_ns()
6423 if (!ucounts) in copy_cgroup_ns()
6435 dec_cgroup_namespaces(ucounts); in copy_cgroup_ns()
6440 new_ns->ucounts = ucounts; in copy_cgroup_ns()