/external/ltp/testcases/kernel/containers/userns/ |
D | userns07.c | 49 pid_t cpid1; in child_fn1() local 59 cpid1 = ltp_clone_quick(CLONE_NEWUSER | SIGCHLD, in child_fn1() 61 if (cpid1 < 0) { in child_fn1() 70 updatemap(cpid1, UID_MAP, 0, parentuid, NULL); in child_fn1() 71 updatemap(cpid1, GID_MAP, 0, parentgid, NULL); in child_fn1() 75 if (waitpid(cpid1, &status, 0) == -1) in child_fn1() 90 pid_t cpid1; in test_max_nest() local 96 cpid1 = ltp_clone_quick(CLONE_NEWUSER | SIGCHLD, in test_max_nest() 98 if (cpid1 < 0) in test_max_nest() 105 sprintf(path, "/proc/%d/setgroups", cpid1); in test_max_nest() [all …]
|
D | userns03.c | 62 static int cpid1, parentuid, parentgid; variable 109 sprintf(cpid1uidpath, "/proc/%d/uid_map", cpid1); in child_fn2() 123 sprintf(cpid1gidpath, "/proc/%d/gid_map", cpid1); in child_fn2() 178 cpid1 = ltp_clone_quick(CLONE_NEWUSER | SIGCHLD, in main() 180 if (cpid1 < 0) in main() 191 sprintf(path, "/proc/%d/setgroups", cpid1); in main() 222 updatemap(cpid1, UID_MAP, CHILD1UID, parentuid, cleanup); in main() 225 updatemap(cpid1, GID_MAP, CHILD1GID, parentgid, cleanup); in main() 230 tst_record_childstatus(cleanup, cpid1); in main()
|
D | userns06.c | 44 static int cpid1, parentuid, parentgid; variable 125 cpid1 = ltp_clone_quick(CLONE_NEWUSER | SIGCHLD, in main() 127 if (cpid1 < 0) in main() 138 sprintf(path, "/proc/%d/setgroups", cpid1); in main() 149 updatemap(cpid1, UID_MAP, CHILD1UID, parentuid, cleanup); in main() 152 updatemap(cpid1, GID_MAP, CHILD1GID, parentgid, cleanup); in main() 158 tst_record_childstatus(cleanup, cpid1); in main()
|
D | userns04.c | 75 pid_t cpid1, cpid2, cpid3; in test_cap_sys_admin() local 80 cpid1 = ltp_clone_quick(CLONE_NEWUSER | SIGCHLD, in test_cap_sys_admin() 82 if (cpid1 < 0) in test_cap_sys_admin() 86 sprintf(path, "/proc/%d/ns/user", cpid1); in test_cap_sys_admin() 109 tst_record_childstatus(cleanup, cpid1); in test_cap_sys_admin()
|
D | userns05.c | 70 int cpid1, cpid2, cpid3; in test_userns_id() local 74 cpid1 = ltp_clone_quick(SIGCHLD, (void *)child_fn1, in test_userns_id() 76 if (cpid1 < 0) in test_userns_id() 78 cpid1userns = getusernsidbypid(cpid1); in test_userns_id() 116 tst_record_childstatus(cleanup, cpid1); in test_userns_id()
|
/external/ltp/testcases/kernel/containers/pidns/ |
D | pidns32.c | 49 pid_t cpid1; in child_fn1() local 55 cpid1 = ltp_clone_quick(CLONE_NEWPID | SIGCHLD, in child_fn1() 57 if (cpid1 < 0) { in child_fn1() 62 if (waitpid(cpid1, &status, 0) == -1) in child_fn1() 77 pid_t cpid1; in test_max_nest() local 79 cpid1 = ltp_clone_quick(CLONE_NEWPID | SIGCHLD, in test_max_nest() 81 if (cpid1 < 0) in test_max_nest() 84 tst_record_childstatus(cleanup, cpid1); in test_max_nest()
|
D | pidns13.c | 179 pid_t cpid1, cpid2; in main() local 189 cpid1 = ltp_clone_quick(CLONE_NEWPID | SIGCHLD, child_fn, (void*)(intptr_t)1); in main() 193 if (cpid1 < 0 || cpid2 < 0) { in main() 209 if (waitpid(cpid1, &status, 0) < 0) in main()
|