summaryrefslogtreecommitdiff
path: root/sandbox-systrace.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2014-02-04 11:18:20 +1100
committerDamien Miller <djm@mindrot.org>2014-02-04 11:18:20 +1100
commit1d2c4564265ee827147af246a16f3777741411ed (patch)
treeaf83ab151453d013118cd1bd20fb8ba887665fed /sandbox-systrace.c
parent3928de067c286683a95fbdbdb5fdb3c78a0e5efd (diff)
- tedu@cvs.openbsd.org 2014/01/31 16:39:19
[auth2-chall.c authfd.c authfile.c bufaux.c bufec.c canohost.c] [channels.c cipher-chachapoly.c clientloop.c configure.ac hostfile.c] [kexc25519.c krl.c monitor.c sandbox-systrace.c session.c] [sftp-client.c ssh-keygen.c ssh.c sshconnect2.c sshd.c sshlogin.c] [openbsd-compat/explicit_bzero.c openbsd-compat/openbsd-compat.h] replace most bzero with explicit_bzero, except a few that cna be memset ok djm dtucker
Diffstat (limited to 'sandbox-systrace.c')
-rw-r--r--sandbox-systrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sandbox-systrace.c b/sandbox-systrace.c
index 70af3862f..6706c9a80 100644
--- a/sandbox-systrace.c
+++ b/sandbox-systrace.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sandbox-systrace.c,v 1.8 2014/01/30 22:26:14 djm Exp $ */ 1/* $OpenBSD: sandbox-systrace.c,v 1.9 2014/01/31 16:39:19 tedu Exp $ */
2/* 2/*
3 * Copyright (c) 2011 Damien Miller <djm@mindrot.org> 3 * Copyright (c) 2011 Damien Miller <djm@mindrot.org>
4 * 4 *
@@ -142,7 +142,7 @@ ssh_sandbox_parent(struct ssh_sandbox *box, pid_t child_pid,
142 box->systrace_fd, child_pid, strerror(errno)); 142 box->systrace_fd, child_pid, strerror(errno));
143 143
144 /* Allocate and assign policy */ 144 /* Allocate and assign policy */
145 bzero(&policy, sizeof(policy)); 145 memset(&policy, 0, sizeof(policy));
146 policy.strp_op = SYSTR_POLICY_NEW; 146 policy.strp_op = SYSTR_POLICY_NEW;
147 policy.strp_maxents = SYS_MAXSYSCALL; 147 policy.strp_maxents = SYS_MAXSYSCALL;
148 if (ioctl(box->systrace_fd, STRIOCPOLICY, &policy) == -1) 148 if (ioctl(box->systrace_fd, STRIOCPOLICY, &policy) == -1)