The branch stable/14 has been updated by asomers:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=3c69315911babfa4e71c8cb53c601a22f6aa6bb1

commit 3c69315911babfa4e71c8cb53c601a22f6aa6bb1
Author:     Alan Somers <[email protected]>
AuthorDate: 2025-07-22 23:08:27 +0000
Commit:     Alan Somers <[email protected]>
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 <[email protected]>
    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 <bsd.test.mk>
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.

Reply via email to