summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2024-10-14 08:17:50 +0200
committerDamien Miller <djm@mindrot.org>2024-10-14 08:17:50 +0200
commit98a0883bdef28a06c7e017f27adf21ba57898bf4 (patch)
tree95eea27587181da9252834b594ce34c75c32f537
parentput back some portable bits for sshd-auth.c (diff)
downloadopenssh-98a0883bdef28a06c7e017f27adf21ba57898bf4.tar.xz
openssh-98a0883bdef28a06c7e017f27adf21ba57898bf4.zip
fix capsicum sandbox
-rw-r--r--sandbox-capsicum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sandbox-capsicum.c b/sandbox-capsicum.c
index 7ebebf011..9c329aa2e 100644
--- a/sandbox-capsicum.c
+++ b/sandbox-capsicum.c
@@ -95,11 +95,11 @@ ssh_sandbox_child(struct ssh_sandbox *box)
fatal("can't limit stderr: %m");
cap_rights_init(&rights, CAP_READ, CAP_WRITE);
- if (cap_rights_limit(box->monitor->m_recvfd, &rights) < 0 &&
+ if (cap_rights_limit(box->m_recvfd, &rights) < 0 &&
errno != ENOSYS)
fatal("%s: failed to limit the network socket", __func__);
cap_rights_init(&rights, CAP_WRITE);
- if (cap_rights_limit(box->monitor->m_log_sendfd, &rights) < 0 &&
+ if (cap_rights_limit(box->m_log_sendfd, &rights) < 0 &&
errno != ENOSYS)
fatal("%s: failed to limit the logging socket", __func__);
if (cap_enter() < 0 && errno != ENOSYS)