[openssh-commits] [openssh] branch master updated: fix capsicum sandbox

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Oct 14 17:17:55 AEDT 2024


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

The following commit(s) were added to refs/heads/master by this push:
     new 98a0883b fix capsicum sandbox
98a0883b is described below

commit 98a0883bdef28a06c7e017f27adf21ba57898bf4
Author: Damien Miller <djm at mindrot.org>
AuthorDate: Mon Oct 14 17:17:50 2024 +1100

    fix capsicum sandbox
---
 sandbox-capsicum.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sandbox-capsicum.c b/sandbox-capsicum.c
index 7ebebf01..9c329aa2 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)

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list