]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
fix capsicum sandbox
authorDamien Miller <djm@mindrot.org>
Mon, 14 Oct 2024 06:17:50 +0000 (17:17 +1100)
committerDamien Miller <djm@mindrot.org>
Mon, 14 Oct 2024 06:17:50 +0000 (17:17 +1100)
sandbox-capsicum.c

index 7ebebf01110932725163737bdea631279851ed47..9c329aa2ec6335aa0a5d65d84201e8303f7acde9 100644 (file)
@@ -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)