Commit graph

7107 commits

Author SHA1 Message Date
Kyle Evans
00640ea314 tee: add some basic tests
The cases are ordered in such a way that we naturally progress through
the functionality, with the earliest failures perhaps shedding light on
any later failures.

sysutils/porch is used for one test if it's available, just to cleanly
check that SIGINT is being ignored properly.

Reviewed by:	des, emaste

(cherry picked from commit 85ff0b08ee699ff323404727998993275b4d2e2a)
2025-04-25 22:19:48 -05:00
Jose Luis Duran
3593da6a4e
mtree: Add missing flua entry
This is a direct commit to the stable/14 and stable/13 branch.

Reviewed by:	emaste
Approved by:	emaste (mentor)
Fixes:  bceabe277e ("flua: initial support for "require" in the base system")
Differential Revision:	https://reviews.freebsd.org/D49011
2025-02-17 20:09:00 +00:00
Jose Luis Duran
f7393d2892
mtree: Add missing ossl-modules entry
Reviewed by:	imp
Approved by:	emaste (mentor)
Fixes:	b077aed33b ("Merge OpenSSL 3.0.9")
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D48837

(cherry picked from commit 16197cf147e98c2ffc0250f8b71f0fa485c03ecc)
2025-02-12 01:37:27 +00:00
Jose Luis Duran
abada75ea8
mtree: Add missing libxo/encoder path
Reviewed by:	imp
Approved by:	emaste (mentor)
Fixes:	d1a0d267b7 ("Upgrade libxo to 0.4.5.")
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D48836

(cherry picked from commit d10deaea12adb73a698d907a148f081c402d5dd6)
2025-02-12 01:37:09 +00:00
Jose Luis Duran
81a8f67a5b
mtree: TESTSBASE directory always starts with a /
Remove the extra forward slash ("/"), otherwise the mtree specification
file will have the double slash and will not be parsed by makefs when
attempting to build NanoBSD with NO_ROOT privileges.

Fixes:	07670b30fa ("Create /usr/tests *.debug file directory hierarchy")
Reviewed by:	emaste
Approved by:	emaste (mentor)
Differential Revision:	https://reviews.freebsd.org/D47722

(cherry picked from commit 01ff67f4bdf5959a719a6511a855f6a60c0e3a93)
2025-02-01 03:32:32 +00:00
Dag-Erling Smørgrav
259dcedc4a strptime: Fix day-of-week calculation.
The day-of-week calculation used the raw year value without adjusting
for TM_YEAR_BASE, so it was off by one for 300 years out of every 400;
it just happened to be correct for 1901 through 2000.  It also used a
loop where a simple addition would have sufficed.

While here, simplify our version of Gauss's algorithm, and document
that we assume the Gregorian calendar.

MFC after:	1 week
PR:		282916
Reviewed by:	imp, allanjude, philip
Differential Revision:	https://reviews.freebsd.org/D47977

(cherry picked from commit 4285e024baa80f81d13cdcc016fdf0721fe57862)
2024-12-16 10:37:08 +00:00
Mark Johnston
fea53bf43f savecore: Add a livedump regression test
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D47715

(cherry picked from commit 73465bb47bb37e6efdc61827e260a070dda0a0dc)
2024-12-13 01:34:14 +00:00
Jose Luis Duran
ea4863825e
mtree: Add missing entries in BSD.tests.dist
Reviewed by:	emaste, christos
Approved by:	emaste (mentor)
Fixes:	95eb4b873b6a ("sound tests: Add sndstat nvlist ATF test")
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D47724

(cherry picked from commit f08dfd819bf73a584bf90da268242a7ed483dc32)
2024-12-04 01:07:20 +00:00
Jose Luis Duran
ae50b6ba68
mtree: Fix BSD.tests.dist sorting
Reviewed by:	imp
Approved by:	emaste (mentor)
Fixes:	60d717baf214 ("ctl: add some ATF tests for READ BUFFER")
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D47719

(cherry picked from commit 4b8e65d12fd7c06c0f670bdb11815971c3bebfed)
2024-12-04 01:06:40 +00:00
Dimitry Andric
0eb20fbda7 Merge llvm-project main llvmorg-19-init-18630-gf2ccf80136a0
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project main llvmorg-19-init-18630-gf2ccf80136a0, the
last commit before the upstream release/19.x branch was created.

PR:		280562
MFC after:	1 month

(cherry picked from commit 0fca6ea1d4eea4c934cfff25ac9ee8ad6fe95583)
2024-12-01 12:16:52 +01:00
Dag-Erling Smørgrav
08e8554c4a env: Add a handful of test cases.
MFC after:	3 days
Sponsored by:	Klara, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D46996

(cherry picked from commit 334af5e4131b21c658203635bf713d6a59846585)

env: Improve documentation.

* The `env` utility's inability to run a command whose name contains an
  equal sign is a feature, not a bug, so move that paragraph up from the
  BUGS section to the DESCRIPTION section.

* Mention that this can be worked around by prefixing the command name
  with `command`, and add an example of this to the EXAMPLE section.

* Add a test case which verifies that `env` does not run a command with
  an equal sign in its name even if it exists, and also demonstrates the
  workaround.

MFC after:	3 days
Sponsored by:	Klara, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D46997

(cherry picked from commit a0dfb0668b45506de97beb4c7acbe3fd1ba69fc8)

env: Add an option to change the directory.

This mirrors the equivalent option in GNU coreutils env, but does not
add support for long options.

MFC after:	3 days
Relnotes:	yes
Sponsored by:	Klara, Inc.
Reviewed by:	0mp, bcr
Differential Revision:	https://reviews.freebsd.org/D47008

(cherry picked from commit 6f6166e49c78f6460732c02bbbba6fcc218221cf)

env: Check the status of stdout.

MFC after:	3 days
Sponsored by:	Klara, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D47009

(cherry picked from commit c2d93a803acef634bd0eede6673aeea59e90c277)
2024-10-15 05:25:15 +00:00
Alan Somers
bc4240ed3b Add some ATF tests for ctladm
So far only "ctladm port -c" and "ctladm port -r" are covered.

Sponsored by:	Axcient
Reviewed by:	mav
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1279

(cherry picked from commit 9747d11d91642cb9b81602d88e8aebeb388543c7)

Fix mtree entry for ctladm tests

Sponsored by:	Axcient

(cherry picked from commit 81ef0a89fcc055bdf3d0f1affbadb643412ebce9)

ctladm: add a copyright header to the port test

[skip ci]

Reported by:	markj
Sponsored by:	Axcient

(cherry picked from commit a1608e8854da7f3b5734c2fcb85dd740733a08e6)
2024-09-19 14:03:09 -06:00
Alan Somers
e9329a869c ctl: add some ATF tests for READ BUFFER
Reviewed by:	Pierre Pronchery <pierre@freebsdfoundation.org>
Reviewed by:	jhb
MFC after:	2 weeks
Sponsored by:	Axcient

(cherry picked from commit 60d717baf2144cf344ec9b47d715ce837b5d46d4)
2024-09-04 15:00:20 +00:00
Dmitry Morozovsky
3d2b2d8d02 mailer.conf for sendmail: remove duplicate word.
MFC after:	3 days

(cherry picked from commit 2c2916a3ec3805ff7815633c0bf90c4339016821)
2024-08-11 15:32:03 +03:00
Li-Wen Hsu
2684490714 BSD.tests.dist: Add entry for mixer tests
Fixes:	94a86f3f6920 mixer(8): Add tests
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 21e98f6d195a5db63b17025f339684048834e1aa)
2024-07-29 18:34:55 +03:00
Matthew Seaman
a7abf88b47 Don't package /var/db/locate.database
... or install an empty file.

The locate database is a mutable working file, and unsuitable to be
managed by pkg(8).  locate(1) copes gracefully with the absence of
this file.  Running /etc/periodic/weekly/310.locate will create the
locate database with the correct ownership and permissions.

Having the locate.database file as part of the FreeBSD-runtime package
means it gets zeroed if ever that package gets updated, which is
excessive, given that updating packages will typically only change a
relatively small number of the _filenames_ on the system -- unlike the
file contents.  Plus it always causes it to flag as modified when
verifying checksums, but /var/db/locate.database is expected to be
modified by the user.

MFC after:	1 week
Reviewed by:	manu
Differential Revision:	https://reviews.freebsd.org/D45384

(cherry picked from commit 4354163e5fe8e180f62b892cdc3e51e3d7e4706f)
2024-06-04 06:00:44 +01:00
Jose Luis Duran
e85f2ed095 mtree: Add missing directories generated by certctl
PR: 255639
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/912

(cherry picked from commit 5b7f73ce16cbd3704b21943ebe6b489b2bc2de1f)
2024-05-22 15:29:19 -06:00
Olivier Certner
9f06e6c990
Remove remnants of portsnap(8)
This was prompted by noticing that '/var/db/portsnap' still exists on
newly-installed machines.

With this change, all mentions of portsnap(8) in the tree are gone,
except for the historical note in the AUTHORS section of manpage
phttpget(8).

locate(1) will thus start indexing again '/var/db/portsnap' on machines
where this directory still exists, which may be a good way to push
administrators to delete it.

Reviewed by:            cperciva
Approved by:            emaste (mentor)
MFC after:              3 days
Sponsored by:           The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D45023

(cherry picked from commit 9b30b96c1fa4ee0dfc540878fbb3247bf92d19eb)

ObsoleteFiles.inc: Remove /var/db/portsnap

This is a followup to commit "Remove remnants of portsnap(8)"
(9b30b96c1fa4).  I wasn't aware of OLD_DIRS.

Approved by:            markj (mentor)
MFC after:              1 day
MFC with:               9b30b96c1fa4
Sponsored by:           The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D45023

(cherry picked from commit 54bbcc09a72b5d7a581f51416c9e635a33c2f884)

Approved by:            markj (mentor)
2024-05-09 15:52:53 +09:00
Mitchell Horne
a7a6873023 BSD.usr.dist: remove empty /usr/libdata/gcc directory
I am unsure of its exact historical usage, but, we no longer ship GCC
with FreeBSD, and it should have been removed.

Reviewed by:	imp, emaste
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D44440

(cherry picked from commit cc1268a926772900a08c61fd791bb66df1e6c30c)
2024-05-01 15:42:57 -03:00
Dimitry Andric
c9157d925c Merge llvm-project main llvmorg-18-init-15088-gd14ee76181fb
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project main llvmorg-18-init-15088-gd14ee76181fb.

PR:		276104
MFC after:	1 month

(cherry picked from commit 5f757f3ff9144b609b3c433dfd370cc6bdc191ad)
2024-04-19 23:12:03 +02:00
Domagoj Stolfa
aef4504139 dtrace: Add the 'oformat' libdtrace option
This option can be used to specify a format to use in DTrace output.
The following formats are supported:
 - json
 - xml
 - html
 - none (default DTrace output)

This is implemented using libxo and integrated into libdtrace. Client
code only works with the following API:

 - dtrace_oformat_setup(dtrace_hdl_t *) -- to be called when output is starting.
 - dtrace_oformat_teardown(dtrace_hdl_t *) -- to be called when output is finished
 - dtrace_oformat(dtrace_hdl_t *) -- check if oformat is enabled.
 - dtrace_set_outfp(FILE *) -- sets the output file for oformat.
 - Ensure that oformat is correctly checked in the drop handler and record
   processing callbacks.

This commit also adds tests which check if the generated output is
valid (JSON, XML) and extends the dtrace(1) describing the structured output.

Reviewed by:	markj
Discussed with:	phil
MFC after:	2 months
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D41745

(cherry picked from commit 93f27766a7e1af009c5b1e4ca538632857c91aa1)
2024-04-15 10:05:13 -04:00
Baptiste Daroussin
16a6da44e2 nuageinit: add basic support for cloudinit.
this is a very early script to support cloudinit, it does not intend to
be a full featured cloudinit client, but will support a good enough
subset to be viable in most case.

It support nocloud and openstack config-2 config drive mode (iso9660 or
msdosfs)

The following features are currently supported:
- adding users (including a default user named 'freebsd' with password
  'freebsd'
- adding groups
- adding ssh keys
- static ipv4, static ipv6, dynamic ipv4

With this one is able to use the 'bring your own image feature" out of
box.

It is expected that the script grows the support of other clouds
supporting cloud-init, contributions are welcomed.

It is designed to be only run once via the firstboot mecanism.

Sponsored by:	OVHCloud
Differential Revision:	https://reviews.freebsd.org/D44141

(cherry picked from commit a42d6f76018e4ed8324e319ab48aac904bda437c)
(cherry picked from commit c051f22bce42d920abba61bd7cf4ef5b6a270ffa)
(cherry picked from commit b8c053c9a612651d4909f7a323088f3e92485b7b)
(cherry picked from commit 9eae9233fdcc946945f4191e1413f548adfa2943)
2024-04-11 13:52:52 +02:00
Dag-Erling Smørgrav
ae2888dd0e touch: Allow setting the timestamp to -1.
Note that VFS internally interprets a timestamp of -1 as “do not set”,
so this has no effect, but at least touch won't incorrectly reject the
given date / time (1969-12-31 23:59:59 UTC) as invalid.

While here, fix some style issues.

MFC after:	1 week
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D44504

(cherry picked from commit aa69e0f212630bd6d4ec1c3c54e117be16653e8a)

touch: Add unit tests.

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

(cherry picked from commit 74a4aa9b1517d92bfa85b0b1cd7d4c1262bb1ef9)
2024-04-04 11:43:12 +02:00
Mark Johnston
683947e13f bhyve: Add support for XML register definitions
This is useful for exposing additional registers to debuggers.  For
instance, control registers are now available on amd64 when using gdb to
debug a guest.

The stub indicates support by including the string
"qXfer:features:read+" in its feature list.  The debugger queries for
target descriptions by sending the query "qXfer:features:read:" followed
by a file path.

The XML definitions are copied from QEMU and installed to
/usr/share/bhyve/gdb.

Note that we currently don't handle the SIMD registers at all, since
that's of somewhat limited utility (for me at least) and since that
requires new ioctls to fetch the register values.

Reviewed by:	jhb
MFC after:	2 weeks
Sponsored by:	Innovate UK
Differential Revision:	https://reviews.freebsd.org/D43666

(cherry picked from commit f81cdf24ba5436367377f7c8e8f51f6df2a75ca7)
2024-03-29 09:53:05 -04:00
Baptiste Daroussin
2f3069cde7 pkgbase: make sendmail config files as config
(cherry picked from commit 8c3a85eaeb0552569e81be43091a18b9e702cc41)
2024-03-27 09:30:44 +01:00
Baptiste Daroussin
0c66d02e63 pkgbase: separate /etc/mail/aliases from the sendmail package
move /etc/aliases and /etc/mail/aliases into the runtime package
this file is used by both sendmail and dma.

While here mark this file as a config file so 3way merge is performed

(cherry picked from commit 8cd7841d84356adb91450e3daf2c25454a102221)
2024-03-27 09:30:44 +01:00
Dag-Erling Smørgrav
d85ea7e79b lorder: Clean up and improve robustness.
* Properly parse (no) command-line options.

* Ensure that errors go to stderr and result in a non-zero exit.

* Drop the special-case code for a single argument, as it will produce
  the wrong outcome if the file does not exist or is corrupted.

* Don't print anything until after we've collected all the data.

* Always create all temporary files before setting the trap.  This
  ensures that the trap can safely fire at any moment, regardless of any
  previous definition of `T`.

* Use a temporary file rather than a pipe between `nm` and `sed` to
  ensure proper termination if `nm` fails due to a missing or invalid
  input.

* The check for self-referential entries was conditional on testing our
  argument list against a regex looking for archives.  This was a
  needless and unreliable optimization; make the check unconditional.

* Document that lorder will not work properly if any of its inputs have
  spaces in their name.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D44133

(cherry picked from commit 5c7b986c21ed47545203e8f630fe2281b83112d2)

lorder: Add unit tests.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D44134

(cherry picked from commit 96da41b6dbf383436018f11ad8a672faab2d3789)

lorder: Undeprecate.

While lorder is not required by our current toolchain (or any toolchain
we've used in the past decade or two), it still occasionally shows up
in build systems of third party software, including The Open Group's
UNIX conformance test suite, and the maintenance cost is negligible.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	imp, allanjude, emaste
Differential Revision:	https://reviews.freebsd.org/D44135

(cherry picked from commit cf4d9bf8b38819da12c6d686d5cf6dbd6353cd61)

lorder: Don't rely on legacy syntax.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D44155

(cherry picked from commit aedb37dc49319a7cd1faf34f312a8a9fc01e611d)

lorder: Tweak invalid file test.

Different implementations of `nm` have different ways of telling you
that your file is not a valid object or library, but they all seem to
have “not recognized” as a common substring.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D44154

(cherry picked from commit aa80cfadff0bb715ca090cbd1b3561a1619251d5)
2024-03-11 13:19:06 +01:00
Dimitry Andric
db43cefe08 Proactively remove /usr/lib/kgdb file that became a directory
This was already handled in ObsoleteFiles.inc (see the 20201215 entry),
but some people never run "make delete-old", or want to upgrade directly
from a revision that still had the file to the most recent revision.

They would then encounter a failure during installworld, similar to:

  install: /usr/libexec/kgdb exists but is not a directory

Therefore, clean it up in the distrib-cleanup phase, similar to the
earlier instances of libc++ header files that became a directory.

MFC after:	3 days

(cherry picked from commit e368e9b756772264acdbc11f3cc1d223bcd48dee)
2024-02-20 19:22:06 +01:00
Mark Johnston
0a2fa7bb9c crashinfo: Print stack traces for all on-CPU threads
Add a python script which implements the bulk of this functionality.
Over time, this would ideally evolve into a library of python routines
which can be used to inspect kernel data structures and automate some
debugging tasks, similar to jhb's out-of-tree scripts, but written in a
somewhat nicer language and with better integration into the kgdb
command prompt.

Note that kgdb currently won't auto-load scripts in this directory.
This should perhaps change in the future.  It probably also makes more
sense to have a crashinfo.py which provides all the kgdb output that we
want to include in core.txt, rather than having crashinfo.sh pipe in
several commands.

Reviewed by:	avg, imp
Discussed with:	jhb
MFC after:	3 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D33817

(cherry picked from commit 2524b7dfb0df7e37ea9651559ce6c027b006e2a9)
2024-02-09 09:55:45 -05:00
Lin Lee
6efcd634c6
hostname(1): Add test cases
Sponsored by:	The FreeBSD Foundation
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1069

(cherry picked from commit 73974a78f7f60acdbb26cdd5325c21c0bb1d2d4d)
2024-02-08 14:02:33 +08:00
Gregory Neil Shapiro
58ae50f31e Merge commit '850ef5ae11d69ea3381bd310f564f025fc8caea3'
Merge vendor sendmail 8.18.1 into HEAD

(cherry picked from commit d39bd2c1388b520fcba9abed1932acacead60fba)

Add new source file for sendmail 8.18.1

(cherry picked from commit 19d4fb85bf17579780e8f0c3cbae8a5e92a6922e)

New sendmail 8.18.1 cf file

(cherry picked from commit 1b6a5580c1f999fb1ba5f9860cf63a8aefc55b3c)

Minor change to update these files so new freebsd*.cf files are
generated

(cherry picked from commit 2c191ba6b0b5d1b3729a5ac428d51cfc5d5f3d2e)

Belatedly update version and date for sendmail 8.18.1 upgrade

(cherry picked from commit 31fbc98c949bfca30ab55afef04b4396a61b7e92)

Add a note about sendmail 8.18.1's stricter SMTP protocol enforcement
(akin to commit 21c1f1deb6a3ac6a60e4516261e5264a28e0b7a6 in main)

Update import date for stable/14

Relnotes:	Yes
Security:	CVE-2023-51765
2024-02-07 02:29:43 +00:00
Dimitry Andric
86188fdaca Proactively remove libc++ __tuple header file that became a directory
This was already handled in ObsoleteFiles.inc (see the 20230622 entry),
but some people never run "make delete-old", or want to upgrade directly
from a revision that still had libc++ 15 to the most recent revision.

They would then encounter a failure during installworld, similar to:

  install: target directory `/usr/include/c++/v1/__tuple/' does not exist

Therefore, clean it up in the distrib-cleanup phase, similar to the
earlier instance of the libc++ __string header file that became a
directory.

PR:		273753
MFC after:	1 month

(cherry picked from commit ca217224f17229570f40227893353ca10ae1dda1)
2024-01-07 18:46:19 +01:00
Dimitry Andric
fe013be447 Merge llvm-project main llvmorg-17-init-19304-gd0b54bb50e51
This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project main llvmorg-17-init-19304-gd0b54bb50e51, the
last commit before the upstream release/17.x branch was created.

PR:		273753
MFC after:	1 month

(cherry picked from commit 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e)
2024-01-07 18:46:17 +01:00
John Baldwin
cb2ef37bef etc/mtree: Remove entry for /usr/tests/usr.sbin/mixer
These were removed when the new mixer(3) library was imported, and I
missed updating the mtree file when I added the entries to
ObsoleteFiles.inc.

Fixes:		903873ce15 Implement and use new mixer(3) library for FreeBSD.
(cherry picked from commit 7aa3bf6952b2c7d1b02d3a67e7f51b96fcf52b50)
2024-01-03 12:34:50 -08:00
Kyle Evans
2ef9079ece rtld: add a test for RTLD_DEEPBIND
This tests that with RTLD_DEEPBIND, symbols are looked up in all of the
object's needed objects before the global object.

PR:		275393
Reviewed by:	kib
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.

(cherry picked from commit d9c543b6b0cabea6e6679d70b4e701018e7eab80)
2023-12-14 18:58:36 -06:00
Kyle Evans
40754cd21e lockf: add some tests
Provide basic coverage for the existing options, nothing deeper (e.g.,
pipe closing behavior) is tested in this set.

Reviewed by:	allanjude
Feedback from:	des
Sponsored by:	Klara, Inc.

(cherry picked from commit 296a5a4db1fc8203f5f6aa8f68321e6ab4652b56)
2023-12-14 18:58:25 -06:00
Ka Ho Ng
1ed12844a1 termcap.small: Include xterm-256color
MFC after:	7 days
Reviewed by:	imp, jhb
Differential Revision:	https://reviews.freebsd.org/D42784

(cherry picked from commit 1da7f3f6f72b2245e458fc7195733268ae4a1136)
2023-12-09 22:15:08 -05:00
John Baldwin
37d19dd86a sendmail: Drop $FreeBSD$ from .mc files
Reviewed by:	imp, emaste
Differential Revision:	https://reviews.freebsd.org/D41960

(cherry picked from commit 3aaa7724d68fb001ca3c7e75950edcb617aaeb65)
2023-10-24 10:11:29 -07:00
Emmanuel Vadot
23ddec9e8f mtree: Add missing sound entry for /usr/examples
Sponsored by:	Beckhoff Automation GmbH & Co. KG

(cherry picked from commit af5e348c61dac360de7774fc0ecbf53ae056177c)

mtree: Fix entry

Fixes:	af5e348c61da ("mtree: Add missing sound entry for /usr/examples")
(cherry picked from commit fee14577d59013f2277a4b0f4b2f4108e417e7c3)
2023-10-18 16:35:56 +02:00
Dag-Erling Smørgrav
c3ae84bc2a include: Implement N2867.
This adds macros for checked addition, subtraction, and multiplication with semantics similar to the builtins gcc and clang have had for years.

Reviewed by:	kib, emaste
Differential Revision:	https://reviews.freebsd.org/D41734

(cherry picked from commit e6615b10347caf67f5bc12c9a8e30b8ddd9860ae)

include: Add tests for N2867.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D41735

(cherry picked from commit 4fbb9c43aa44d9145151bb5f77d302ba01fb7551)

less: We have <stdckdint.h> now.

Reviewed by:	delphij
Differential Revision:	https://reviews.freebsd.org/D41736

(cherry picked from commit cb8dd292c7ec53391dfa25847858dd7ef895f94e)

Approved by:	re (gjb)
2023-09-07 20:28:31 +00:00
Jake Freeland
fcace2906d syslogd: Add some basic regression tests
Reviewed by:	markj
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D41403
2023-08-23 12:17:40 -04:00
Mike Karels
9d6049d5da etc: remove leftover leading empty comments, blank lines
Remove leftover empty leading comments/blank lines that had been
spacers between $FreeBSD$ and the following content in config files
in src/etc.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D41548
2023-08-22 13:03:28 -05:00
Gregory Neil Shapiro
98fd1add67 Remove confDH_PARAMETERS settings in favor of using sendmail's built-in
default which was added in sendmail 8.15.2 (the config line predates
that 8.15.2 feature).  This also alleviates the need for admins
to create the DH parameters file if they opt to use Diffie-Hellman.

PR:		248387
MFC after:	2 weeks
2023-08-18 00:32:56 +00:00
Warner Losh
05248206f7 Remove $FreeBSD$: one-line bare tag
Remove /^\s*\$FreeBSD\$$\n/
2023-08-16 11:55:20 -06:00
Warner Losh
d0b2dbfa0e Remove $FreeBSD$: one-line sh pattern
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
2023-08-16 11:55:03 -06:00
Dmitry Chagin
8920c5f2a1 tests: Add stack grows tests
Reviewed by:		kib
Differential Revision:	https://reviews.freebsd.org/D41320
MFC after:		2 weeks
2023-08-08 18:12:09 +03:00
Martin Matuska
b5a3a89c50 unzip: swtich to bsdunzip from libarchive
Unzip from FreeBSD has been ported to libarchive.
Change usr.bin/unzip to use bsdunzip from libarchive.

Differential Revision:	https://reviews.freebsd.org/D41239
PR:			272845 (exp-run)
MFC after:		1 month
2023-08-04 12:45:41 +02:00
Jessica Clarke
949199a212 etc: Automatically generate BSD.lib${libcompat}.dist lists
Note that each libcompat still has its own file that must exist.

Reviewed by:	brooks, jhb
Differential Revision:	https://reviews.freebsd.org/D41182
2023-07-27 05:10:44 +01:00
Shivank Garg
215bab7924 mac_ipacl: new MAC policy module to limit jail/vnet IP configuration
The mac_ipacl policy module enables fine-grained control over IP address
configuration within VNET jails from the base system.
It allows the root user to define rules governing IP addresses for
jails and their interfaces using the sysctl interface.

Requested by:	multiple
Sponsored by:	Google, Inc. (GSoC 2019)
MFC after:	2 months
Reviewed by:	bz, dch (both earlier versions)
Differential Revision: https://reviews.freebsd.org/D20967
2023-07-26 00:07:57 +00:00
Doug Rabson
5ac2a874d0 /etc/rc.subr: rename sysctl.conf.d to sysctl.kld.d
This better reflects the intent that this directory is indexed by kld
name and removes a conflict with D32128 which aims to split sysctl.conf.

Reviewed by:	kevans imp
MFC after:	2 weeks
Differential Revision: https://reviews.freebsd.org/D41043
2023-07-15 14:16:08 +01:00