Searched refs:user_ns (Results 1 – 4 of 4) sorted by relevance
/DragonOS/kernel/src/namespaces/ |
H A D | ucount.rs | 72 user_ns: ns.clone(), in alloc_ucounts() 98 user_ns: Arc<UserNamespace>, in inc_ucounts() 103 let uc = self.alloc_ucounts(user_ns, uid); in inc_ucounts() 121 fn find_ucounts(user_ns: Arc<UserNamespace>, uid: usize) -> Option<Arc<UCounts>> { in find_ucounts() 123 let key = UKey { user_ns, uid }; in find_ucounts() 130 user_ns: uc.ns.clone(), in get_ucounts() 152 user_ns: uc.ns.clone(), in put_ucounts() 159 user_ns: Arc<UserNamespace>, field 165 let user_ns_ptr = Arc::as_ptr(&self.user_ns); in hash() 173 Arc::ptr_eq(&self.user_ns, &other.user_ns) && self.uid == other.uid in eq()
|
H A D | mnt_namespace.rs | 34 user_ns: Arc<UserNamespace>, field 135 mnt_ns.user_ns.clone() in owner() 149 user_ns: Arc::new(UserNamespace::new()), in new() 162 user_ns: Arc<UserNamespace>, in create_mnt_namespace() 165 let ucounts = self.inc_mnt_namespace(user_ns.clone())?; in create_mnt_namespace() 179 user_ns, in create_mnt_namespace() 192 user_ns: Arc<UserNamespace>, in inc_mnt_namespace() 196 .inc_ucounts(user_ns, Syscall::geteuid()?, MntNamespaces)) in inc_mnt_namespace()
|
H A D | pid_namespace.rs | 41 user_ns: Arc<UserNamespace>, field 168 pid_ns.user_ns.clone() in owner() 222 user_ns: Arc::new(UserNamespace::new()), in new() 232 user_ns: Arc<UserNamespace>, in create_pid_namespace() 238 let ucounts = self.inc_pid_namespaces(user_ns.clone())?; in create_pid_namespace() 255 user_ns, in create_pid_namespace() 263 user_ns: Arc<UserNamespace>, in inc_pid_namespaces() 267 .inc_ucounts(user_ns, Syscall::geteuid()?, PidNamespaces)) in inc_pid_namespaces()
|
H A D | mod.rs | 56 user_ns: Arc<UserNamespace>, in create_new_namespaces() 63 user_ns.clone(), in create_new_namespaces() 72 Arc::new(MntNamespace::new().create_mnt_namespace(user_ns.clone(), false)?) in create_new_namespaces()
|