Skip to content

Commit 98a0883

Browse files
committed
fix capsicum sandbox
1 parent 164ea43 commit 98a0883

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sandbox-capsicum.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ ssh_sandbox_child(struct ssh_sandbox *box)
9595
fatal("can't limit stderr: %m");
9696

9797
cap_rights_init(&rights, CAP_READ, CAP_WRITE);
98-
if (cap_rights_limit(box->monitor->m_recvfd, &rights) < 0 &&
98+
if (cap_rights_limit(box->m_recvfd, &rights) < 0 &&
9999
errno != ENOSYS)
100100
fatal("%s: failed to limit the network socket", __func__);
101101
cap_rights_init(&rights, CAP_WRITE);
102-
if (cap_rights_limit(box->monitor->m_log_sendfd, &rights) < 0 &&
102+
if (cap_rights_limit(box->m_log_sendfd, &rights) < 0 &&
103103
errno != ENOSYS)
104104
fatal("%s: failed to limit the logging socket", __func__);
105105
if (cap_enter() < 0 && errno != ENOSYS)

0 commit comments

Comments
 (0)