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 | 164 pid_t cpid2; in main() local 185 cpid2 = ltp_clone_quick(CLONE_NEWUSER | SIGCHLD, in main() 187 if (cpid2 < 0) in main() 217 sprintf(path, "/proc/%d/setgroups", cpid2); in main() 224 updatemap(cpid2, UID_MAP, CHILD2UID, parentuid, cleanup); in main() 227 updatemap(cpid2, GID_MAP, CHILD2GID, parentgid, cleanup); in main() 232 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 | 181 pid_t cpid1, cpid2; in main() local 201 cpid2 = ltp_clone_quick(CLONE_NEWPID | SIGCHLD, child_fn, cinit_no); in main() 202 if (cpid1 < 0 || cpid2 < 0) { in main() 211 if (waitpid(cpid2, &status, 0) < 0) in main()
|