From nobody Sat Sep 27 14:24:56 2025 X-Original-To: dev-commits-src-all@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 4cYqV06Vljz69PPx; Sat, 27 Sep 2025 14:24:56 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cYqV05bbtz3wcF; Sat, 27 Sep 2025 14:24:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758983096; 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=1fJeiMpRfP2QvcH4WdRQcNo6cXnGD0yGwsBTS5irBC0=; b=yLo/NeWuXbXPyE27c2ap6tHtVQ/rQHhfqLbt83cCSQ8IDvSS6MCaX+9zwYU9eKHng3lY5t FpZRhkKqgkRK26I/D1EhxxyshVoPUiIIfjnJ2Jh95SU9GY7Bt2hsmDGw+ePle9rbJeaZru yHbcSo9bFeUa2KKVc5V0CeQku79+3MmlioewGWnOaW16r62zZyQ4V5AyFuTZxIOILVd/z5 f9WHtC/PnB+sJxj1WAaODI2fr2TeprrqnuStFsZBj3b+3o/UNzUWk5KANBF+HSvqDvUVVt 3CgzoeELoDpi+rE4zJ9hWVfLWvYJNVY7/D9wmZRK9Xe/LMOAYFapKlsO1JEpww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758983096; 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=1fJeiMpRfP2QvcH4WdRQcNo6cXnGD0yGwsBTS5irBC0=; b=ajWpODz/VuMa02oQX1HcWOSZTYIZ/oA5uhbI1GrtmcgLXcQ2IeKfFoVwR0SDY1s4JGWtXZ gu37xQt3HBdHxSXCy+5cUVJl6rrFAU7zV1+To+oudHcUDGbffuKAMopn85UFMAg2Ux+BJd apItzsoWamr3nLmdt9ALd+nP6ra5LEwJUArjhAf8jt21/KfsNM1bpF9pbCwC0WtY78i1Ep /QnVoe0ACK7JCiSJZpdJ8u4t1uy0ld2T/Zehn/ct8WiDbhqr6DmDJPqi+24R+Bz6GJIH5Q 85F7L4DVRtXWMEiKDqUast3LqvzE3H2s7eSVUUqz09bTaDHN94kKPFyNg2y+sg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758983096; a=rsa-sha256; cv=none; b=Swu4FDZhTt8YjdC3Z9hBXvy904r5y0JzYo4INblvoIA8nKTQcRO9laZ4Ikb2kKrUEE+LE1 6rEUcpezgbAdhXsvqzhjl50ZuZobWxWhRgvWR1tDfvP4D8sXKFRn4DSzKnz2I3bF0DQpHA nGpo3b2831hcdBmyhlUfV39hmSnbRSh0T6ELMfNWlI9dCpRbFHuawOAMU+V/bUvL8zJo23 9PR5RigKB71Ep/EXOTjA3Dip0ViLk1Rw2qPbbSD24LUTXX/9HatAU9Zy7Jviyd/pjJTpqp haIgnbWZDMRzqoIoxOycFFmoo433xonPtf5+nHfWqtbvgETenq9WO31wp9T7aw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cYqV04wsnzdSj; Sat, 27 Sep 2025 14:24:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 58REOuKj087960; Sat, 27 Sep 2025 14:24:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58REOups087957; Sat, 27 Sep 2025 14:24:56 GMT (envelope-from git) Date: Sat, 27 Sep 2025 14:24:56 GMT Message-Id: <202509271424.58REOups087957@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alan Somers Subject: git: 3c69315911ba - stable/14 - mac_bsdextended: report that all tests require the kernel module List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: asomers X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 3c69315911babfa4e71c8cb53c601a22f6aa6bb1 Auto-Submitted: auto-generated The branch stable/14 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=3c69315911babfa4e71c8cb53c601a22f6aa6bb1 commit 3c69315911babfa4e71c8cb53c601a22f6aa6bb1 Author: Alan Somers AuthorDate: 2025-07-22 23:08:27 +0000 Commit: Alan Somers CommitDate: 2025-09-27 14:24:13 +0000 mac_bsdextended: report that all tests require the kernel module Use the standard required_kmods reporting mechanism to notify Kyua of which kernel modules are required. Sponsored by: ConnectWise Reviewed by: Siva Mahadevan Pull Request: https://github.com/freebsd/freebsd-src/pull/1783 (cherry picked from commit 2a08ae16555ea60c5a1d6f1c9966ea233af405be) --- tests/sys/mac/bsdextended/Makefile | 1 + tests/sys/mac/bsdextended/matches_test.sh | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/sys/mac/bsdextended/Makefile b/tests/sys/mac/bsdextended/Makefile index f5b07db386c2..cd7bce2653ac 100644 --- a/tests/sys/mac/bsdextended/Makefile +++ b/tests/sys/mac/bsdextended/Makefile @@ -10,5 +10,6 @@ TEST_METADATA.ugidfw_test+= required_user="root" # Each test case of matches_test reuses the same ruleset number, so they cannot # be run simultaneously TEST_METADATA.matches_test+= is_exclusive=true +TEST_METADATA+= required_kmods="mac_bsdextended" .include diff --git a/tests/sys/mac/bsdextended/matches_test.sh b/tests/sys/mac/bsdextended/matches_test.sh index 40774594fd18..42ec143f0891 100644 --- a/tests/sys/mac/bsdextended/matches_test.sh +++ b/tests/sys/mac/bsdextended/matches_test.sh @@ -12,9 +12,6 @@ gidoutrange="daemon" # We expect $uidinrange in this group check_ko() { - if ! sysctl -N security.mac.bsdextended >/dev/null 2>&1; then - atf_skip "mac_bsdextended(4) support isn't available" - fi if [ $(sysctl -n security.mac.bsdextended.enabled) = "0" ]; then # The kernel module is loaded but disabled. Enable it for the # duration of the test.