Searched refs:cpid2 (Results 1 – 5 of 5) sorted by relevance
/external/ltp/testcases/kernel/containers/userns/ |
D | userns06.c | 108 pid_t cpid2; in main() local 131 cpid2 = ltp_clone_quick(CLONE_NEWUSER | SIGCHLD, in main() 133 if (cpid2 < 0) in main() 143 sprintf(path, "/proc/%d/setgroups", cpid2); in main() 150 updatemap(cpid2, UID_MAP, CHILD2UID, parentuid, cleanup); in main() 153 updatemap(cpid2, GID_MAP, CHILD2GID, parentgid, cleanup); in main() 159 tst_record_childstatus(cleanup, cpid2); in main()
|
D | userns03.c | 163 pid_t cpid2; in main() local 184 cpid2 = ltp_clone_quick(CLONE_NEWUSER | SIGCHLD, in main() 186 if (cpid2 < 0) in main() 216 sprintf(path, "/proc/%d/setgroups", cpid2); in main() 223 updatemap(cpid2, UID_MAP, CHILD2UID, parentuid, cleanup); in main() 226 updatemap(cpid2, GID_MAP, CHILD2GID, parentgid, cleanup); in main() 231 tst_record_childstatus(cleanup, cpid2); in main()
|
D | userns05.c | 70 int cpid1, cpid2, cpid3; in test_userns_id() local 87 cpid2 = ltp_clone_quick(CLONE_NEWUSER | SIGCHLD, in test_userns_id() 89 if (cpid2 < 0) in test_userns_id() 91 cpid2userns = getusernsidbypid(cpid2); in test_userns_id() 117 tst_record_childstatus(cleanup, cpid2); in test_userns_id()
|
D | userns04.c | 75 pid_t cpid1, cpid2, cpid3; in test_cap_sys_admin() local 88 cpid2 = ltp_clone_quick(CLONE_NEWUSER | SIGCHLD, in test_cap_sys_admin() 90 if (cpid2 < 0) in test_cap_sys_admin() 110 tst_record_childstatus(cleanup, cpid2); in test_cap_sys_admin()
|
/external/ltp/testcases/kernel/containers/pidns/ |
D | pidns13.c | 179 pid_t cpid1, cpid2; in main() local 192 cpid2 = ltp_clone_quick(CLONE_NEWPID | SIGCHLD, child_fn, (void*)(intptr_t)2); in main() 193 if (cpid1 < 0 || cpid2 < 0) { in main() 202 if (waitpid(cpid2, &status, 0) < 0) in main()
|