Lines Matching full:child
24 * UNKNOWN_FD is an fd number that should never exist in the child, as it is
47 fprintf(stderr, "%s: Child could not set DEATHSIG\n", in __child()
54 fprintf(stderr, "%s: Child failed to send fd number\n", in __child()
62 * This blocking recv enables the parent to message the child. in __child()
66 * indicating that the child should exit. in __child()
73 "%s: Child failed to disable ptrace\n", in __child()
78 fprintf(stderr, "Child received unknown command %c\n", in __child()
84 fprintf(stderr, "%s: Child failed to ack\n", in __child()
90 fprintf(stderr, "%s: Child failed to read from socket\n", in __child()
98 static int child(int sk) in child() function
104 fprintf(stderr, "%s: Child could not create memfd\n", in child()
116 FIXTURE(child) in FIXTURE() argument
120 * from the child. in FIXTURE()
123 /* pid points to the child which we are fetching FDs from */ in FIXTURE()
125 /* pidfd is the pidfd of the child */ in FIXTURE()
128 * sk is our side of the socketpair used to communicate with the child. in FIXTURE()
129 * When it is closed, the child will exit. in FIXTURE()
134 FIXTURE_SETUP(child) in FIXTURE_SETUP() argument
148 if (child(sk_pair[1])) in FIXTURE_SETUP()
159 * Wait for the child to complete setup. It'll send the remote memfd's in FIXTURE_SETUP()
166 FIXTURE_TEARDOWN(child) in FIXTURE_TEARDOWN() argument
174 TEST_F(child, disable_ptrace) in TEST_F() argument
200 TEST_F(child, fetch_fd) in TEST_F() argument
219 TEST_F(child, test_unknown_fd) in TEST_F() argument