Lines Matching refs:cleanup
93 static void cleanup(void) in cleanup() function
103 TST_RESOURCE_COPY(cleanup, "userns06_capcheck", NULL); in setup()
128 tst_brkm(TBROK | TERRNO, cleanup, in main()
134 tst_brkm(TBROK | TERRNO, cleanup, in main()
139 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); in main()
140 SAFE_WRITE(cleanup, 1, fd, "deny", 4); in main()
141 SAFE_CLOSE(cleanup, fd); in main()
144 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); in main()
145 SAFE_WRITE(cleanup, 1, fd, "deny", 4); in main()
146 SAFE_CLOSE(cleanup, fd); in main()
149 updatemap(cpid1, UID_MAP, CHILD1UID, parentuid, cleanup); in main()
150 updatemap(cpid2, UID_MAP, CHILD2UID, parentuid, cleanup); in main()
152 updatemap(cpid1, GID_MAP, CHILD1GID, parentgid, cleanup); in main()
153 updatemap(cpid2, GID_MAP, CHILD2GID, parentgid, cleanup); in main()
155 TST_SAFE_CHECKPOINT_WAKE(cleanup, 0); in main()
156 TST_SAFE_CHECKPOINT_WAKE(cleanup, 1); in main()
158 tst_record_childstatus(cleanup, cpid1); in main()
159 tst_record_childstatus(cleanup, cpid2); in main()
161 cleanup(); in main()