From nobody Wed Jul 23 16:27:02 2025 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 4bnKKM4nVvz62lqS; Wed, 23 Jul 2025 16:27:03 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bnKKM178wz3hW8; Wed, 23 Jul 2025 16:27:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753288023; 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=ABKKJQT086bEJ5+toRo+WHpT98EoddOhjs2vbVlbrvg=; b=QN5mNNKC1PFRSfuNMa0+br8uhPGjQXX6o3mvEvID5pS/LKHPr3gmoN0OLZhW3Wko6Fcag5 MbubPCthmVJKxRrkvHSxE0EFNvM/cgAOEPKoPYvN8e9+j/HC20zqkpNSzxlNs82L7M31v8 P1IMqSKKjWDO3vj3SFT0SwNtKPMUal+lllksV47ObXMy2qvjtAJYORI+jNLFzBp5hJzp6V sbveoMZG4V1/bluHAzb1o7qxWVziPDfSyAlIJP1Y6b9Ir9Vy1AG8myqWnSIqu79N+aooC5 7dWFxI2LVKM5dD+neS9n+5jCaaf+IcYaCrB8/dJl1paWtHANMim3reGDyMXO7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753288023; 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=ABKKJQT086bEJ5+toRo+WHpT98EoddOhjs2vbVlbrvg=; b=wcNBlf4D9L9VqhBjm73tu803PdHutnAfdMK9tbEgHo4RpYg7kCYhuD8pVApLL2ftOz+Z16 UDdGJoMBRHxgTKYGJkJrl22tAPydH4FLLQAj7U5rpeE/etteD9fpuWvJOqX+W4sfJBok9e cHpi/ZqaLlXmN5uMUN/dHeTJPy0KUNI6SFPDC/AS6wFnO7GzpaVKcMvzcSKYrIrPnbgez6 B4vlqQoWU7MPU9g1RUHguKjSEJYzoxb8PXl933PiqkJUa2kpBNHdRgkswMpwWKmke0Eu5w FUokbLxXrwiIj6sNL96rYGM6oWkP6kCGun3n0L7VJ7tfrfLOi2rCcmi/2HVA1Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1753288023; a=rsa-sha256; cv=none; b=kNSyljcpc6X4+W/g4eLEKn4E/8tCwX7KqtWK/UOcyaHBXhjkDogGL4rFNBQzJ46lWP1Qzz RL53IFgpws25OvcduFe15pZPnHq8Rw78elbJzXmtTQxPt8fmu2X2tz5NGJqFqlnAgXy3pc 6uft4Yzd0vw73IpTXpbbg+v1P+wKIxDBbTTRb0Z8jvb2e23Omg6/ooRoPZ45Jy4ikmRAzN qNLSrAxVOR+Obji2uw1Wi4n+l5uH5Q7oCgqoMeF2IoOCWs7ZHFaYJIplfbEXV5g18Xci9m BRohsDKveGaGDkjqL+b9grSErErnTvcnFt9p9bC/3X9Mzq1RsL0LuUNjjG/PDw== 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 4bnKKL5Nlsz54j; Wed, 23 Jul 2025 16:27:02 +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 56NGR2SW059221; Wed, 23 Jul 2025 16:27:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 56NGR2L2059218; Wed, 23 Jul 2025 16:27:02 GMT (envelope-from git) Date: Wed, 23 Jul 2025 16:27:02 GMT Message-Id: <202507231627.56NGR2L2059218@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alan Somers Subject: git: 2a08ae16555e - main - mac_bsdextended: report that all tests require the kernel module 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 2a08ae16555ea60c5a1d6f1c9966ea233af405be Auto-Submitted: auto-generated The branch main has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=2a08ae16555ea60c5a1d6f1c9966ea233af405be commit 2a08ae16555ea60c5a1d6f1c9966ea233af405be Author: Alan Somers AuthorDate: 2025-07-22 23:08:27 +0000 Commit: Alan Somers CommitDate: 2025-07-23 16:26:09 +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. MFC after: 2 weeks Sponsored by: ConnectWise Reviewed by: Siva Mahadevan Pull Request: https://github.com/freebsd/freebsd-src/pull/1783 --- 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 69cd27c0e321..cc3a3f8ea534 100644 --- a/tests/sys/mac/bsdextended/Makefile +++ b/tests/sys/mac/bsdextended/Makefile @@ -9,5 +9,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 2a28be0f231b..41fa04f221e3 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.