Lines Matching full:child

25  * UNKNOWN_FD is an fd number that should never exist in the child, as it is
48 fprintf(stderr, "%s: Child could not set DEATHSIG\n", in __child()
55 fprintf(stderr, "%s: Child failed to send fd number\n", in __child()
63 * This blocking recv enables the parent to message the child. in __child()
67 * indicating that the child should exit. in __child()
74 "%s: Child failed to disable ptrace\n", in __child()
79 fprintf(stderr, "Child received unknown command %c\n", in __child()
85 fprintf(stderr, "%s: Child failed to ack\n", in __child()
91 fprintf(stderr, "%s: Child failed to read from socket\n", in __child()
99 static int child(int sk) in child() function
105 fprintf(stderr, "%s: Child could not create memfd\n", in child()
117 FIXTURE(child) in FIXTURE() argument
121 * from the child. in FIXTURE()
124 /* pid points to the child which we are fetching FDs from */ in FIXTURE()
126 /* pidfd is the pidfd of the child */ in FIXTURE()
129 * sk is our side of the socketpair used to communicate with the child. in FIXTURE()
130 * When it is closed, the child will exit. in FIXTURE()
136 FIXTURE_SETUP(child) in FIXTURE_SETUP() argument
150 if (child(sk_pair[1])) in FIXTURE_SETUP()
161 * Wait for the child to complete setup. It'll send the remote memfd's in FIXTURE_SETUP()
168 FIXTURE_TEARDOWN(child) in FIXTURE_TEARDOWN() argument
180 TEST_F(child, disable_ptrace) in TEST_F() argument
206 TEST_F(child, fetch_fd) in TEST_F() argument
225 TEST_F(child, test_unknown_fd) in TEST_F() argument
244 TEST_F(child, no_strange_EBADF) in TEST_F() argument