Home
last modified time | relevance | path

Searched refs:cpid1 (Results 1 – 7 of 7) sorted by relevance

/external/ltp/testcases/kernel/containers/userns/
Duserns07.c49 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 …]
Duserns03.c62 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()
Duserns06.c44 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()
Duserns04.c75 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()
Duserns05.c70 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/
Dpidns32.c49 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()
Dpidns13.c180 pid_t cpid1, cpid2; in main() local
196 cpid1 = ltp_clone_quick(CLONE_NEWPID | SIGCHLD, child_fn, cinit_no); in main()
201 if (cpid1 < 0 || cpid2 < 0) { in main()
217 if (waitpid(cpid1, &status, 0) < 0) in main()