Remove "All Rights Reserved" from FreeBSD Foundation copyrightsThese ones were unambiguous cases where the Foundation was the onlylisted copyright holder.Sponsored by: The FreeBSD Foundation(c
Remove "All Rights Reserved" from FreeBSD Foundation copyrightsThese ones were unambiguous cases where the Foundation was the onlylisted copyright holder.Sponsored by: The FreeBSD Foundation(cherry picked from commit 5c2bc3db201a4fe8d7911cf816bea104d5dc2138)
show more ...
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: one-line .c patternRemove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
Update/fix Makefile.depend for userland
libcasper/cap_grp tests: Reset the group database handleSome tests verify that the capgrp capability does not permit calls tosetgrent(3), but all tests need to ensure that they reset thecapabilit
libcasper/cap_grp tests: Reset the group database handleSome tests verify that the capgrp capability does not permit calls tosetgrent(3), but all tests need to ensure that they reset thecapability's group database handle, otherwise the local process andcasper process will be out of sync.The cap_pwd tests already handle this.Sponsored by: The FreeBSD FoundationMFC after: 1 month
build: provide a default WARNS for all in-tree buildsThe current default is provided in various Makefile.inc in some top-leveldirectories and covers a good portion of the tree, but doesn't cover p
build: provide a default WARNS for all in-tree buildsThe current default is provided in various Makefile.inc in some top-leveldirectories and covers a good portion of the tree, but doesn't cover partsof the build a little deeper (e.g. libcasper).Provide a default in src.sys.mk and set WARNS to it in bsd.sys.mk if thatvariable is defined. This lets us relatively cleanly provide a default WARNSno matter where you're building in the src tree without breaking thingsoutside of the tree.Crunchgen has been updated as a bootstrap tool to work on this changebecause it needs r365605 at a minimum to succeed. The cleanup necessary tosuccessfully walk over this change on WITHOUT_CLEAN builds has been added.There is a supplemental project to this to list all of the warnings that areencountered when the environment has WARNS=6 NO_WERROR=yes:https://warns.kevans.dev -- this project will hopefully eventually go awayin favor of CI doing a much better job than it.Reviewed by: emaste, brooks, ngie (all earlier version)Reviewed by: emaste, arichardson (depend-cleanup.sh change)Differential Revision: https://reviews.freebsd.org/D26455
Add SPDX tags for libcasper(3) and services.MFC after: 2 weeks
Build service tests with Casper support.
DIRDEPS_BUILD: Connect new directories.Sponsored by: Dell EMC Isilon
Introduce caspermocks.The idea behinds mocks is that we don't need to ifdef a lot of code intools itself but those defines are hidden in the casper library.Right now the mocks are implemented as
Introduce caspermocks.The idea behinds mocks is that we don't need to ifdef a lot of code intools itself but those defines are hidden in the casper library.Right now the mocks are implemented as define/inlines functions.There was a very long discussion how this should be implemented.This approach has some advantages like we don't need to link to any additionallibraries. Unfortunately there are also some disadvantages for example it iseasy to get library out of sync between two versions of functions or that weneed extra define to compile program with casper support.This isn't an ideal solution but it's good enough for now and should simplifycapsicumizing programs. This also doesn't close us any other ways to do thosemocks and this should evolve in time.Discussed with: pjd, emaste, ed, rwatson, bapt, cem, bdreweryDifferential Revision: https://reviews.freebsd.org/D8753
Fix result printing- Flushing stdout prevents the buffer from being printed twice, fixing issues with stdout printing out the testplan, etc, twice.- Don't print out raw source/line numbers; hide
Fix result printing- Flushing stdout prevents the buffer from being printed twice, fixing issues with stdout printing out the testplan, etc, twice.- Don't print out raw source/line numbers; hide them behind comments.MFC after: 1 week
Move libcasper tests from regression/capsicum/libcasper/ tolib/libcasper/service/${service_name}/tests.Reviewed by: emaste, ngieDifferential Revision: https://reviews.freebsd.org/D7759