Home
last modified time | relevance | path

Searched refs:cpid2 (Results 1 – 5 of 5) sorted by relevance

/external/ltp/testcases/kernel/containers/userns/
Duserns06.c108 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()
Duserns03.c163 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()
Duserns05.c70 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()
Duserns04.c75 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/
Dpidns13.c179 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()