Lines Matching refs:child_pid
95 pid_t child_pid; member
107 box->child_pid = 0; in ssh_sandbox_init()
124 ssh_sandbox_parent(struct ssh_sandbox *box, pid_t child_pid, in ssh_sandbox_parent() argument
132 debug3("%s: wait for child %ld", __func__, (long)child_pid); in ssh_sandbox_parent()
134 pid = waitpid(child_pid, &status, WUNTRACED); in ssh_sandbox_parent()
146 debug3("%s: child %ld stopped", __func__, (long)child_pid); in ssh_sandbox_parent()
147 box->child_pid = child_pid; in ssh_sandbox_parent()
158 if (ioctl(box->systrace_fd, STRIOCATTACH, &child_pid) == -1) in ssh_sandbox_parent()
160 box->systrace_fd, child_pid, strerror(errno)); in ssh_sandbox_parent()
171 policy.strp_pid = box->child_pid; in ssh_sandbox_parent()
197 debug3("%s: start child %ld", __func__, (long)child_pid); in ssh_sandbox_parent()
198 if (kill(box->child_pid, SIGCONT) != 0) in ssh_sandbox_parent()
199 fatal("%s: kill(%d, SIGCONT)", __func__, box->child_pid); in ssh_sandbox_parent()
213 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) in ssh_sandbox_parent_preauth() argument
215 ssh_sandbox_parent(box, child_pid, preauth_policy); in ssh_sandbox_parent_preauth()