Lines Matching refs:child_pid
77 pid_t child_pid; member
89 box->child_pid = 0; in ssh_sandbox_init()
106 ssh_sandbox_parent(struct ssh_sandbox *box, pid_t child_pid, in ssh_sandbox_parent() argument
114 debug3("%s: wait for child %ld", __func__, (long)child_pid); in ssh_sandbox_parent()
116 pid = waitpid(child_pid, &status, WUNTRACED); in ssh_sandbox_parent()
128 debug3("%s: child %ld stopped", __func__, (long)child_pid); in ssh_sandbox_parent()
129 box->child_pid = child_pid; in ssh_sandbox_parent()
140 if (ioctl(box->systrace_fd, STRIOCATTACH, &child_pid) == -1) in ssh_sandbox_parent()
142 box->systrace_fd, child_pid, strerror(errno)); in ssh_sandbox_parent()
153 policy.strp_pid = box->child_pid; in ssh_sandbox_parent()
179 debug3("%s: start child %ld", __func__, (long)child_pid); in ssh_sandbox_parent()
180 if (kill(box->child_pid, SIGCONT) != 0) in ssh_sandbox_parent()
181 fatal("%s: kill(%d, SIGCONT)", __func__, box->child_pid); in ssh_sandbox_parent()
195 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) in ssh_sandbox_parent_preauth() argument
197 ssh_sandbox_parent(box, child_pid, preauth_policy); in ssh_sandbox_parent_preauth()