Lines Matching refs:policy
118 struct systrace_policy policy; in ssh_sandbox_parent() local
142 bzero(&policy, sizeof(policy)); in ssh_sandbox_parent()
143 policy.strp_op = SYSTR_POLICY_NEW; in ssh_sandbox_parent()
144 policy.strp_maxents = SYS_MAXSYSCALL; in ssh_sandbox_parent()
145 if (ioctl(box->systrace_fd, STRIOCPOLICY, &policy) == -1) in ssh_sandbox_parent()
149 policy.strp_op = SYSTR_POLICY_ASSIGN; in ssh_sandbox_parent()
150 policy.strp_pid = box->child_pid; in ssh_sandbox_parent()
151 if (ioctl(box->systrace_fd, STRIOCPOLICY, &policy) == -1) in ssh_sandbox_parent()
164 policy.strp_op = SYSTR_POLICY_MODIFY; in ssh_sandbox_parent()
165 policy.strp_code = i; in ssh_sandbox_parent()
166 policy.strp_policy = found ? in ssh_sandbox_parent()
170 if (ioctl(box->systrace_fd, STRIOCPOLICY, &policy) == -1) in ssh_sandbox_parent()