Searched refs:parent_ns (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/tools/testing/selftests/timens/ |
D | procfs.c | 27 static int child_ns, parent_ns; variable 42 parent_ns = open(path, O_RDONLY); in init_namespaces() 43 if (parent_ns <= 0) in init_namespaces() 46 if (fstat(parent_ns, &st1)) in init_namespaces() 127 if (switch_ns(parent_ns)) in check_uptime() 128 return pr_err("switch_ns(%d)", parent_ns); in check_uptime() 156 if (switch_ns(parent_ns)) in check_stat_btime() 157 return pr_err("switch_ns(%d)", parent_ns); in check_stat_btime()
|
D | timens.c | 46 static int child_ns, parent_ns = -1; variable 63 if (parent_ns == -1) { in init_namespaces() 64 parent_ns = open(path, O_RDONLY); in init_namespaces() 65 if (parent_ns <= 0) in init_namespaces() 69 if (fstat(parent_ns, &st1)) in init_namespaces() 104 if (switch_ns(parent_ns)) in test_gettime() 127 if (switch_ns(parent_ns)) in test_gettime() 128 return pr_err("switch_ns(%d)", parent_ns); in test_gettime()
|
/linux-6.12.1/kernel/ |
D | user_namespace.c | 84 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns() local 91 if (parent_ns->level > 32) in create_user_ns() 94 ucounts = inc_user_namespaces(parent_ns, owner); in create_user_ns() 113 if (!kuid_has_mapping(parent_ns, owner) || in create_user_ns() 114 !kgid_has_mapping(parent_ns, group)) in create_user_ns() 134 ns->parent = parent_ns; in create_user_ns() 135 ns->level = parent_ns->level + 1; in create_user_ns() 150 ns->flags = parent_ns->flags; in create_user_ns()
|