Lines Matching refs:cpid
237 pid_t cpid; in test_userns() local
243 cpid = syscall(SYS_clone, clone_flags, NULL); in test_userns()
244 if (cpid == -1) { in test_userns()
249 if (cpid == 0) { /* Code executed by child */ in test_userns()
254 if(snprintf(map_file_name, sz, "/proc/%d/uid_map", cpid) < 0) { in test_userns()
268 pid_t cpid, w; in test_setuid() local
271 cpid = fork(); in test_setuid()
272 if (cpid == -1) { in test_setuid()
276 if (cpid == 0) { /* Code executed by child */ in test_setuid()
285 w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED); in test_setuid()
324 pid_t cpid, w; in test_setgid() local
327 cpid = fork(); in test_setgid()
328 if (cpid == -1) { in test_setgid()
332 if (cpid == 0) { /* Code executed by child */ in test_setgid()
341 w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED); in test_setgid()
380 pid_t cpid, w; in test_setgroups() local
385 cpid = fork(); in test_setgroups()
386 if (cpid == -1) { in test_setgroups()
390 if (cpid == 0) { /* Code executed by child */ in test_setgroups()
406 w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED); in test_setgroups()