We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 164ea43 commit 98a0883Copy full SHA for 98a0883
sandbox-capsicum.c
@@ -95,11 +95,11 @@ ssh_sandbox_child(struct ssh_sandbox *box)
95
fatal("can't limit stderr: %m");
96
97
cap_rights_init(&rights, CAP_READ, CAP_WRITE);
98
- if (cap_rights_limit(box->monitor->m_recvfd, &rights) < 0 &&
+ if (cap_rights_limit(box->m_recvfd, &rights) < 0 &&
99
errno != ENOSYS)
100
fatal("%s: failed to limit the network socket", __func__);
101
cap_rights_init(&rights, CAP_WRITE);
102
- if (cap_rights_limit(box->monitor->m_log_sendfd, &rights) < 0 &&
+ if (cap_rights_limit(box->m_log_sendfd, &rights) < 0 &&
103
104
fatal("%s: failed to limit the logging socket", __func__);
105
if (cap_enter() < 0 && errno != ENOSYS)
0 commit comments