FreeBSD/src 318895d — sys/security/audit audit_bsm.c

pdptrace(2): handle audit

Reported by:    llm-postcr
Fixes:  b2f300ee8fc0 ("sys/bsm/audit_kevents.h: add AUE_PDPTRACE")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+16-0sys/security/audit/audit_bsm.c
+16-01 files

FreeBSD/src d50b928 — sys/compat/freebsd32 freebsd32_sysent.c, sys/kern init_sysent.c

Regen
DeltaFile
+1-1sys/sys/sysproto.h
+1-1sys/kern/init_sysent.c
+1-1sys/compat/freebsd32/freebsd32_sysent.c
+3-33 files

FreeBSD/src c7b2fd6 — sys/kern syscalls.master vfs_syscalls.c, sys/security/audit audit_bsm.c

fchroot(2): audit

The AUE_FCHROOT identifier was already added, but not used to audit the
fchroot(2) syscall.

Reported by:    llm-postcr
Fixes:  b165e9e3ea4e ("Add fchroot(2)")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+1-1sys/kern/syscalls.master
+2-0sys/kern/vfs_syscalls.c
+1-0sys/security/audit/audit_bsm.c
+4-13 files

FreeBSD/src a6da18f — contrib/openbsm/etc audit_event

contrib/openbsm/etc/audit_event: add entries for {f,}chaltroot

Reported by:    llm-postcr
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+2-0contrib/openbsm/etc/audit_event
+2-01 files

FreeBSD/src 951dcca — contrib/openbsm/etc audit_event

contrib/openbsm/etc/audit_event: add entries for pdopenpid and pdptrace

Fixes:  606061ea463d ("sys: add AUE_PDOPENPID")
Fixes:  b2f300ee8fc0 ("sys/bsm/audit_kevents.h: add AUE_PDPTRACE")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+2-0contrib/openbsm/etc/audit_event
+2-01 files

FreeBSD/src a0e5c02 — tools/build/mk OptionalObsoleteFiles.inc

Remove CDDL and ctfconvert tests when their controlling knobs are disabled

In the event someone specified MK_CDDL == no prior to this change, all
tests under `/usr/tests/cddl` would stick around after the change,
resulting in errors. Similarly, MK_DTRACE == no removed ctfconvert,
which the ctfconvert tests relied on (but remained around after the knob
was disabled).

Remove the tests under the respective blocks now so they don't linger
around on systems where these knobs are disabled, resulting in false
positives when running the complete test suite.

The ctfconvert tests weren't specifically put under
`${MK_DTRACE_TESTS}` == no because ctfconvert was bundled separately
from the upstream provided Dtrace test suite.

MFC after:      2 weeks
MFC with:       30c20ca26 ("Remove Dtrace/ZFS tests if their knobs are disabled")

(cherry picked from commit df6131e2b74d9f334c16387e9a46cafd6e27eb78)
DeltaFile
+22-0tools/build/mk/OptionalObsoleteFiles.inc
+22-01 files

FreeBSD/src 6109c35 — tools/build/mk OptionalObsoleteFiles.inc

Don't some prune empty dirs created by BSD.tests.dist

Before this change, directories needed when MK_DTRACE_TESTS != no and
MK_ZFS_TESTS != no but not MK_TESTS != no, were being created via
`BSD.tests.dist` as part of the standard build/install process with the
top-level `hierarchy` target. This behavior resulted in `make check-old`
flagging a lot of issues after 30c20ca26e105c, even after `make
delete-old` was run and the directories were removed.

Remove the logic which pruned these empty directories; this "fixes" the
issue with `make check-old`, et al and allows a proper technical solution to
`OptionalObsoleteFiles.inc` to be implemented by pkgbase in an unimpeded
manner without introducing additional complexity.

See the review for more details.

PR:             299650
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D60928

    [2 lines not shown]
DeltaFile
+18-6tools/build/mk/OptionalObsoleteFiles.inc
+18-61 files

FreeBSD/src 3926aba — tools/build/mk OptionalObsoleteFiles.inc

Remove Dtrace/ZFS tests if their knobs are disabled

Prior to this change, Dtrace and ZFS tests and their respective
directories would remain installed even if `${MK_DTRACE_TESTS}` == no or
`${MK_ZFS_TESTS}` == no.

This change enhances the logic to remove the tests when the respective
knobs are disabled so the tests will be removed when `make delete-old`
is run.

MFC after:      2 weeks

(cherry picked from commit 30c20ca26e105cffc5f37a95964cd9b2cad1b6cd)
DeltaFile
+25-0tools/build/mk/OptionalObsoleteFiles.inc
+25-01 files

FreeBSD/src a1c9248 — tools/build/mk OptionalObsoleteFiles.inc

Remove Dtrace/ZFS tests if their knobs are disabled

Prior to this change, Dtrace and ZFS tests and their respective
directories would remain installed even if `${MK_DTRACE_TESTS}` == no or
`${MK_ZFS_TESTS}` == no.

This change enhances the logic to remove the tests when the respective
knobs are disabled so the tests will be removed when `make delete-old`
is run.

MFC after:      2 weeks

(cherry picked from commit 30c20ca26e105cffc5f37a95964cd9b2cad1b6cd)
DeltaFile
+25-0tools/build/mk/OptionalObsoleteFiles.inc
+25-01 files

FreeBSD/src a8d121f — tools/build/mk OptionalObsoleteFiles.inc

Don't some prune empty dirs created by BSD.tests.dist

Before this change, directories needed when MK_DTRACE_TESTS != no and
MK_ZFS_TESTS != no but not MK_TESTS != no, were being created via
`BSD.tests.dist` as part of the standard build/install process with the
top-level `hierarchy` target. This behavior resulted in `make check-old`
flagging a lot of issues after 30c20ca26e105c, even after `make
delete-old` was run and the directories were removed.

Remove the logic which pruned these empty directories; this "fixes" the
issue with `make check-old`, et al and allows a proper technical solution to
`OptionalObsoleteFiles.inc` to be implemented by pkgbase in an unimpeded
manner without introducing additional complexity.

See the review for more details.

PR:             299650
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D60928

    [2 lines not shown]
DeltaFile
+18-6tools/build/mk/OptionalObsoleteFiles.inc
+18-61 files

FreeBSD/src bd794b9 — tools/build/mk OptionalObsoleteFiles.inc

Remove CDDL and ctfconvert tests when their controlling knobs are disabled

In the event someone specified MK_CDDL == no prior to this change, all
tests under `/usr/tests/cddl` would stick around after the change,
resulting in errors. Similarly, MK_DTRACE == no removed ctfconvert,
which the ctfconvert tests relied on (but remained around after the knob
was disabled).

Remove the tests under the respective blocks now so they don't linger
around on systems where these knobs are disabled, resulting in false
positives when running the complete test suite.

The ctfconvert tests weren't specifically put under
`${MK_DTRACE_TESTS}` == no because ctfconvert was bundled separately
from the upstream provided Dtrace test suite.

MFC after:      2 weeks
MFC with:       30c20ca26 ("Remove Dtrace/ZFS tests if their knobs are disabled")

(cherry picked from commit df6131e2b74d9f334c16387e9a46cafd6e27eb78)
DeltaFile
+22-0tools/build/mk/OptionalObsoleteFiles.inc
+22-01 files

FreeBSD/src 3c87cbb — sys/net ieee_oui.h

net/ieee_oui.h: clarify how `OUI_FREEBSD_BASE` is managed

Note that the FreeBSD Foundation manages the current value
associated with `OUI_FREEBSD_BASE`.

Trim trailing whitespace in comments in the change while here.

MFC after:      1 week
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/82

(cherry picked from commit 529e9a00ddd3a207f3841c6581c9f1a23532972e)
DeltaFile
+7-4sys/net/ieee_oui.h
+7-41 files

FreeBSD/src 25b8f53 — sys/net ieee_oui.h

net/ieee_oui.h: clarify how `OUI_FREEBSD_BASE` is managed

Note that the FreeBSD Foundation manages the current value
associated with `OUI_FREEBSD_BASE`.

Trim trailing whitespace in comments in the change while here.

MFC after:      1 week
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/82

(cherry picked from commit 529e9a00ddd3a207f3841c6581c9f1a23532972e)
DeltaFile
+7-4sys/net/ieee_oui.h
+7-41 files

FreeBSD/src 55da3d8 — usr.bin/diff/tests diff_test.sh

usr.bin/diff/tests/diff_test: add SPDX ID

The SPDX ID makes the script's licensing more explicit.

MFC after:      1 week
Reviewed by:    bapt
Differential Revision:  https://reviews.freebsd.org/D60908

(cherry picked from commit a7ec00b71715c36eb60822bf52af5637f3a8d2f3)
DeltaFile
+2-0usr.bin/diff/tests/diff_test.sh
+2-01 files

FreeBSD/src 755406d — usr.bin/diff/tests diff_test.sh

usr.bin/diff/tests/diff_test: add SPDX ID

The SPDX ID makes the script's licensing more explicit.

MFC after:      1 week
Reviewed by:    bapt
Differential Revision:  https://reviews.freebsd.org/D60908

(cherry picked from commit a7ec00b71715c36eb60822bf52af5637f3a8d2f3)
DeltaFile
+2-0usr.bin/diff/tests/diff_test.sh
+2-01 files

FreeBSD/src 2a25b51 — lib/libsys poll.2

poll.2: document that poll is not restarted after signals

Signed-off-by: _ov4 <ov4 at ov4.org>
Reviewed-by: ngie
Pull-Request: https://github.com/freebsd/freebsd-src/pull/2526
(cherry picked from commit 72a80a4733b2e2cf7a3e004e961f0fbba9aaa31f)
DeltaFile
+12-0lib/libsys/poll.2
+12-01 files

FreeBSD/src 246b08e — lib/libsys poll.2

libsys/ppoll.2: fix .Dd modification to manpage

Reported by:    gcc 14
Fixes:  89d6ddee2028 ("libsys/poll.2: bump .Dd for the prior change")

(cherry picked from commit b4a0f17b35fd862feef3e1284926da48a6aad694)
DeltaFile
+1-1lib/libsys/poll.2
+1-11 files

FreeBSD/src 64a648b — lib/libsys poll.2

libsys/poll.2: bump .Dd for the prior change

MFC after:      1 week
MFC with:       72a80a4733b2

(cherry picked from commit 89d6ddee20281270934c73b41d07f04e9bfc86bc)
DeltaFile
+1-1lib/libsys/poll.2
+1-11 files

FreeBSD/src 005e2e5 — contrib/capsicum-test makefile copy_file_range.cc, tests/sys/capsicum Makefile

capsicum: add tests for copy_file_range

Reviewed by:    emaste, theraven, kib, markj (all previous version)
Differential Revision:  https://reviews.freebsd.org/D41967

(cherry picked from commit 62d3f57c22eea353dcc3c4a2f70ef72a42a8cd83)
DeltaFile
+228-0contrib/capsicum-test/copy_file_range.cc
+1-1contrib/capsicum-test/makefile
+1-0tests/sys/capsicum/Makefile
+230-13 files

FreeBSD/src d689a4a — sys/fs/mntfs mntfs_vnops.c, sys/fs/msdosfs msdosfs_vfsops.c

sys: use bdflush task to fsync mntfs devvp for all filesystems

The bufbdflush() function calls VOP_FSYNC() on unlocked devvp similarly
to ffs_bdflush() in ffs_snapshot.c. Move the bdflush task into struct
mount as a generic facility. Convert both UFS and msdosfs to use it.

Reported by:    llm-postcr
Tested by:      pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+26-0sys/fs/mntfs/mntfs_vnops.c
+2-22sys/ufs/ffs/ffs_snapshot.c
+2-5sys/ufs/ffs/ffs_vfsops.c
+5-0sys/sys/mount.h
+1-1sys/kern/vfs_bio.c
+2-0sys/fs/msdosfs/msdosfs_vfsops.c
+38-283 files not shown
+39-309 files

FreeBSD/src fe75f57 — sys/sys mount.h

sys/mount.h: wrap long lines

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+12-6sys/sys/mount.h
+12-61 files

FreeBSD/src f46766b — lib/atf common.mk, lib/liblutok Makefile

atf, lutok, kyua: compile with CXXSTD=gnu++20

All three of the test infrastructure components require at least C++20
in order to build. Make that version the default to better match what
is required in recent versions of the projects.

MFC after:      1 week

(cherry picked from commit 0e58fb271c6e1cbd4b2ae5d33da181b7e7c2f0d5)
DeltaFile
+2-0usr.bin/kyua/Makefile
+2-0lib/liblutok/Makefile
+2-0lib/atf/common.mk
+6-03 files

FreeBSD/src c92c1d3 — contrib/kyua/cli cmd_debug.cpp, contrib/kyua/doc kyuafile.5.in kyuafile.5

kyua: Fixes after vendor merge

Reviewed by:    ngie
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D60446

(cherry picked from commit af238d55d313a4a99fe9a3492755eb152b17bca0)
DeltaFile
+31-16contrib/kyua/model/metadata.cpp
+10-6contrib/kyua/os/freebsd/main.cpp
+2-2contrib/kyua/engine/scheduler.cpp
+2-2contrib/kyua/cli/cmd_debug.cpp
+1-0contrib/kyua/doc/kyuafile.5.in
+1-0contrib/kyua/doc/kyuafile.5
+47-266 files

FreeBSD/src 62b649e — contrib/kyua/doc kyua-report-html.1 kyua-report.1

contrib/kyua: commit generated files

MFC after:      1 month
Fixes: eb8f69902 ("contrib/kyua: update to 0.15.0")

(cherry picked from commit 26eb328b52c3ec0ff79c8914b1993dfad03a0a7d)
DeltaFile
+574-0contrib/kyua/doc/kyuafile.5
+498-0contrib/kyua/doc/kyua-test.1
+417-0contrib/kyua/doc/kyua-debug.1
+405-0contrib/kyua/doc/kyua.1
+307-0contrib/kyua/doc/kyua-report.1
+253-0contrib/kyua/doc/kyua-report-html.1
+2,454-08 files not shown
+3,672-014 files

FreeBSD/src 1c503e0 — contrib/kyua NEWS.md NEWS, contrib/kyua/engine googletest_test.cpp googletest_result_test.cpp

contrib/kyua: update to 0.15.0

This new release contains multiple feature updates and bugfixes. Please
see the release notes mentioned in the merge commit for more details.

MFC after:      1 month
Merge commit '144afd05f8a2300361ec30c1c2020e4022ddd943'

Conflicts:
        contrib/kyua/cli/cmd_debug.cpp
        contrib/kyua/doc/kyua-debug.1.in
        contrib/kyua/doc/kyuafile.5.in
        contrib/kyua/engine/config.cpp
        contrib/kyua/engine/execenv/execenv.cpp
        contrib/kyua/engine/execenv/execenv.hpp
        contrib/kyua/engine/execenv/execenv_host.hpp
        contrib/kyua/engine/requirements.cpp
        contrib/kyua/engine/requirements.hpp
        contrib/kyua/engine/scheduler.cpp

    [10 lines not shown]
DeltaFile
+0-951contrib/kyua/m4/ax_cxx_compile_stdcxx.m4
+709-0contrib/kyua/NEWS
+0-622contrib/kyua/NEWS.md
+528-0contrib/kyua/engine/googletest_result.cpp
+427-0contrib/kyua/engine/googletest_result_test.cpp
+361-0contrib/kyua/engine/googletest_test.cpp
+2,025-1,573143 files not shown
+3,641-7,505149 files

FreeBSD/src 540eaf6 — usr.bin/kyua Makefile

contrib/kyua: commit Makefile changes for version update

This was accidentally missed in the version update.

MFC after:      1 month
Fixes: eb8f69902 ("contrib/kyua: update to 0.15.0")

(cherry picked from commit b836604e126d5b3d0d3dee5da6c4168d3ec43fea)
DeltaFile
+4-21usr.bin/kyua/Makefile
+4-211 files

FreeBSD/src c0e03be — contrib/kyua/engine/prepare prepare_all.cpp

contrib/kyua: fix -Wshadow error

This fixes the build with gcc 14:

/usr/src/contrib/kyua/engine/prepare/prepare_all.cpp:56:16: error: declaration of 'handler' shadows a member of 'engine::prepare::prepare_all' [-Werror=shadow]
   56 |     for (auto& handler : prepare::handlers()) {
      |                ^~~~~~~
In file included from /usr/src/contrib/kyua/engine/prepare/prepare_all.hpp:35,
                 from /usr/src/contrib/kyua/engine/prepare/prepare_all.cpp:29:
/usr/src/contrib/kyua/engine/prepare/prepare.hpp:51:15: note: shadowed declaration is here
   51 | class handler {
      |               ^

Fixes:  edb230c4af499203d7a6894b3711fe6574b26040

Reviewed by:    igoro, rlibby, ngie
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D59346

    [2 lines not shown]
DeltaFile
+3-3contrib/kyua/engine/prepare/prepare_all.cpp
+3-31 files

FreeBSD/src f203a62 — contrib/kyua/cli cmd_prepare.cpp, contrib/kyua/engine/prepare prepare_all.cpp prepare.cpp

kyua: Add "prepare" command

This introduces the requirement preparation handler concept, with the
first handler implemented to load the required kernel modules.

Running without arguments lists all available handlers:

  kyua prepare

Currently there are only two handlers:

  all: runs all available handlers
  kmods: loads the modules declared by required_kmods metadata

The dry run option lists the required modules without actual loading:

  kyua prepare { --dry-run | -n } kmods

The "prepare" command traverses only the given tree of tests, i.e., the

    [13 lines not shown]
DeltaFile
+143-0contrib/kyua/os/freebsd/prepare_kmods.cpp
+107-0contrib/kyua/engine/prepare/prepare.hpp
+83-0contrib/kyua/engine/prepare/prepare.cpp
+76-0contrib/kyua/cli/cmd_prepare.cpp
+66-0contrib/kyua/engine/prepare/prepare_all.cpp
+55-0contrib/kyua/os/freebsd/prepare_kmods.hpp
+530-08 files not shown
+686-2014 files

FreeBSD/src db951ba — contrib/kyua/cli cmd_debug.cpp, contrib/kyua/doc kyua-debug.1.in

kyua-debug: Add -P option

Add -P as shorthand for --pause-before-cleanup.

MFC after:      1 week
Reviewed by:    ngie
Differential Revision:  https://reviews.freebsd.org/D56613

(cherry picked from commit 7c51da13ae55dc98e9cc1b794e1fe6fc001d7f42)
DeltaFile
+2-2contrib/kyua/doc/kyua-debug.1.in
+1-0contrib/kyua/cli/cmd_debug.cpp
+3-22 files

FreeBSD/src fb62ef3 — contrib/kyua/cli cmd_debug.cpp, contrib/kyua/utils/cmdline options.hpp parser.cpp

kyua: Add "debug -x|--execute cmd" option

With execenv=jail specified, the "cmd" runs inside the test's jail.

Reviewed by:    ngie, markj
Differential Revision:  https://reviews.freebsd.org/D52642

(cherry picked from commit 8a21c17ccfecf0ee54becd46d3e08ccab76ca3d6)
DeltaFile
+81-1contrib/kyua/cli/cmd_debug.cpp
+24-0contrib/kyua/utils/process/child.cpp
+15-5contrib/kyua/utils/cmdline/parser.cpp
+17-3contrib/kyua/utils/cmdline/options.cpp
+20-0contrib/kyua/utils/process/child.ipp
+6-2contrib/kyua/utils/cmdline/options.hpp
+163-113 files not shown
+178-119 files