From nobody Fri Feb 23 09:48:41 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Th4vs5Vcvz5C8GH; Fri, 23 Feb 2024 09:48:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Th4vs4S0yz4Nm6; Fri, 23 Feb 2024 09:48:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708681721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mzw4I2s679Ys9w5Clq1vwpvv4yQ0I6EL4V4llT8G3LI=; b=CTdFj1Nl3wtX4ipbZBkCrGQOHV+mS63r9unmo8JfyzgpBgD9nDLRk+cZF/Z56vJ/559x1v 0xVvI6uxFNq6b9CPBdr8EGOY17GuxTfx7hiuFQouFi7kuulI4OZT0hXwMCDopVpKtQnylO d2mu6+FfyB+lRyX1cPQr+huaWfZkRhOQs+oo2E+EVY/0jv3Dx4+qIpqpj1ORN+9VFbFEQL AgTUJ5Y1sVw6m9boRLwHp7yV9qENxhOwNx/Hhrjx4PhaZTlf3B+HsR9gqLr7PhX5PrbTml u1/4PpuPBRIHFrG3xruhhaKGwYP/CJ2dgMu7fUcR41tev212tWhbrBBQZV46TQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708681721; a=rsa-sha256; cv=none; b=FpC+rN2FAt95EsKmhDiaHOcRvu4AEmiXw8moyyJjtOVRTuI4r5KCtSdZiT0c25RQgKT3e5 TcHOeFZCwN5pVVOqiL8b7zycdhXB24kiK7xd73SqGgt8cENZ4Y0wVMQu3/b5UO2TwZz042 ZtOTp87xOvLJ6fPIWE3sl8Fg5buLcCyOXe/dSJpPKdmRyP4oq9dUaCySOtJXA+n3GCHlTz b7VkSQjLHfwPKwnKgEUixDwe227Eg4FLG3LcHCrngiv8xvs9SAUFXWeilp4misDAmNsn6j B95ev1/zRBi4Kf4Rihlg4u+nubqlAPqihIuxQxUo23cGyG0mMEtpdN4YerLDHA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708681721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=mzw4I2s679Ys9w5Clq1vwpvv4yQ0I6EL4V4llT8G3LI=; b=of+PWxORo/W0ONuGUbjlF1hvu5+lYhlvHRyx3Mwhuxh91AAo6OzOlX+q9XQ6JOqWgYMvBd S/pyFRTwSAcKGFeLdM1Ny9mCOjfD8VHyyYxn8ziNk+bRM61XUXBhC6WLEYLIjkJlVZR0Lb mgQ7lGiQLeHk6DqFpcLvTx1oGo5Y3BDARiMNwga2HbQhxRGTX9HYH/X7dJrgqGvZ+5dUa1 9klQF7Q12Ce7RyAzIt7s1+9X7tSgbtpnhhUcXGwBMYmsSAbdc4wo5Qe+Vo1ePQ8Sd7f1/s ONLNO6+29SC9JT09WyHhRrcn2M7/Uq+D3e0pYw3ZXXpfPEMkuVWAnSOZV3roUA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Th4vs3YJRz19g8; Fri, 23 Feb 2024 09:48:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41N9mfg6075193; Fri, 23 Feb 2024 09:48:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41N9mftI075190; Fri, 23 Feb 2024 09:48:41 GMT (envelope-from git) Date: Fri, 23 Feb 2024 09:48:41 GMT Message-Id: <202402230948.41N9mftI075190@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Olivier Cochard Subject: git: bde7c606e9e0 - main - jail: skip sysctl_security_jail_children if jail binary missing List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olivier X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bde7c606e9e03bd0dbab0d41f0c100d1ff9dd872 Auto-Submitted: auto-generated The branch main has been updated by olivier: URL: https://cgit.FreeBSD.org/src/commit/?id=bde7c606e9e03bd0dbab0d41f0c100d1ff9dd872 commit bde7c606e9e03bd0dbab0d41f0c100d1ff9dd872 Author: Olivier Cochard AuthorDate: 2024-02-23 09:43:54 +0000 Commit: Olivier Cochard CommitDate: 2024-02-23 09:43:54 +0000 jail: skip sysctl_security_jail_children if jail binary missing Approved by: lwhsu Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D44010 --- sys/kern/sysctl_security_jail_children.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/kern/sysctl_security_jail_children.sh b/sys/kern/sysctl_security_jail_children.sh index 0423cf1e8a59..6ac6aa904dbc 100644 --- a/sys/kern/sysctl_security_jail_children.sh +++ b/sys/kern/sysctl_security_jail_children.sh @@ -33,6 +33,9 @@ max_cur_head() { atf_set descr 'Test maximum and current number of child jails' atf_set require.user root + if ! which -s jail; then + atf_skip "This test requires jail" + fi } max_cur_body() {