aboutsummaryrefslogtreecommitdiff
path: root/etc
Commit message (Collapse)AuthorAgeFilesLines
* Minor change to update these files so new freebsd*.cf files areGregory Neil Shapiro2024-02-012-0/+2
| | | | generated
* etc: Set DISTBASE during distribute for sub-makesJessica Clarke2024-01-301-2/+3
| | | | | | | | | | | | This is normally done by bsd.subdir.mk in its default distribute target, but since etc overrides it we don't get that behaviour. Currently it's not needed, but share/man's makedb (recursed into by etc's afterinstall) will need it in the following commit. Technically this is only needed for install, but do this for distribution too for completeness and consistency. Reviewed by: brooks, emaste Differential Revision: https://reviews.freebsd.org/D43675
* hostname(1): Add test casesLin Lee2024-01-301-0/+2
| | | | | Sponsored by: The FreeBSD Foundation Pull Request: https://github.com/freebsd/freebsd-src/pull/1069
* mtree: stop creating old mixer(8) test directoriesDimitry Andric2024-01-231-2/+0
| | | | | | | | The tests themselves were added to ObsoleteFiles.inc in commit f7c4f4964971, but not yet removed from BSD.tests.dist. PR: 274602 Fixes: f7c4f4964971
* crashinfo: Print stack traces for all on-CPU threadsMark Johnston2024-01-151-0/+2
| | | | | | | | | | | | | | | | | | | | | 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
* dtrace: Add the 'oformat' libdtrace optionDomagoj Stolfa2024-01-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* mtree: Add missing directories to BSD.tests.distJose Luis Duran2023-12-281-0/+48
| | | | | Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/912
* mtree: Sort BSD.tests.distJose Luis Duran2023-12-281-59/+59
| | | | | Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/912
* mtree: Add missing directories to BSD.root.distJose Luis Duran2023-12-281-5/+9
| | | | | | | While here, align to the output produced by mtree. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/912
* mtree: Add missing directories generated by certctlJose Luis Duran2023-12-281-0/+4
| | | | | | PR: 255639 Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/912
* mtree: Properly sort entriesJose Luis Duran2023-12-281-2/+2
| | | | | | | Reduce the diff with the output generated by mtree. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/912
* mtree: Use spaces not tabsJose Luis Duran2023-12-281-2/+2
| | | | | | | The indentation generated by mtree -j uses spaces, not tabs. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/912
* mtree: Update mtree flags in README fileJose Luis Duran2023-12-281-2/+2
| | | | | | | | | | | - Add -b (suppress blank lines before directories). - The equivalent of `-i` in fmtree is `-j` in mtree (nmtree) (indent the output 4 spaces). - Add `-F freebsd9` compatibility flavor (print the closing `..` at the end). Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/912
* Proactively remove libc++ __tuple header file that became a directoryDimitry Andric2023-12-131-0/+1
| | | | | | | | | | | | | | | | | 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
* Merge llvm-project main llvmorg-17-init-19304-gd0b54bb50e51Dimitry Andric2023-12-083-3/+33
| | | | | | | | | 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
* termcap.small: Include xterm-256colorKa Ho Ng2023-12-021-2/+2
| | | | | | MFC after: 7 days Reviewed by: imp, jhb Differential Revision: https://reviews.freebsd.org/D42784
* rtld: add a test for RTLD_DEEPBINDKyle Evans2023-12-011-0/+2
| | | | | | | | | | | 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. Differential Revision: https://reviews.freebsd.org/D42843
* misc: Remove ancient SCCS tags.Warner Losh2023-11-273-4/+0
| | | | | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. This is for the misfits that have only a few: COPYRIGHT, gnu, tools, rescue, and etc. Sponsored by: Netflix
* lockf: add some testsKyle Evans2023-11-261-0/+2
| | | | | | | | | | 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. Differential Revision: https://reviews.freebsd.org/D42714
* etc/mtree: Remove entry for /usr/tests/usr.sbin/mixerJohn Baldwin2023-11-231-2/+0
| | | | | | | | 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: 903873ce1560 Implement and use new mixer(3) library for FreeBSD.
* Add tests for gunion(8)Yan-Hao Wang2023-11-161-0/+2
| | | | | | | Reviewed by: mckusick (earlier version) MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D41645
* mtree: Fix entryEmmanuel Vadot2023-10-091-1/+1
| | | | Fixes: af5e348c61da ("mtree: Add missing sound entry for /usr/examples")
* mtree: Add missing sound entry for /usr/examplesEmmanuel Vadot2023-10-091-0/+2
| | | | Sponsored by: Beckhoff Automation GmbH & Co. KG
* printenv: Add test for printenv.Wang-Yan-Hao2023-09-251-0/+2
| | | | | Reviewed by: asomers Differential Revision: https://reviews.freebsd.org/D41468
* sendmail: Drop $FreeBSD$ from .mc filesJohn Baldwin2023-09-253-3/+0
| | | | | Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D41960
* include: Add tests for N2867.Dag-Erling Smørgrav2023-09-071-0/+2
| | | | | Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D41735
* Add mac_grantbylabelSimon J. Gerraty2023-08-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | This module allows controlled privilege escallation via mac labels securely associated with a process via mac_veriexec. There are over 700 PRIV_* but we can compress many of them into a single GBL_* thus constraining the size of gbl labels. The goal is to allow a daemon to run as an unprivileged process while still being able a set of privileged operations needed. We add APIs to libveriexec so that userland processes can check labels and an exec_script API that allows a suitably labeled process to run something like a python interpreter directly if necessary; overcomming the 'indirect' flag applied to the interpreter. Add -l option to sbin/veriexec to report labels. Reviewed by: stevek Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D41431
* syslogd: Add some basic regression testsJake Freeland2023-08-231-0/+2
| | | | | | | Reviewed by: markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D41403
* etc: remove leftover leading empty comments, blank linesMike Karels2023-08-227-8/+0
| | | | | | | | | 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
* Remove confDH_PARAMETERS settings in favor of using sendmail's built-inGregory Neil Shapiro2023-08-181-1/+0
| | | | | | | | | 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
* Remove $FreeBSD$: one-line bare tagWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-1629-29/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* tests: Add stack grows testsDmitry Chagin2023-08-081-0/+2
| | | | | | Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D41320 MFC after: 2 weeks
* unzip: swtich to bsdunzip from libarchiveMartin Matuska2023-08-041-0/+2
| | | | | | | | | 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
* etc: Automatically generate BSD.lib${libcompat}.dist listsJessica Clarke2023-07-272-6/+14
| | | | | | | Note that each libcompat still has its own file that must exist. Reviewed by: brooks, jhb Differential Revision: https://reviews.freebsd.org/D41182
* mac_ipacl: new MAC policy module to limit jail/vnet IP configurationShivank Garg2023-07-261-0/+2
| | | | | | | | | | | | | 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
* /etc/rc.subr: rename sysctl.conf.d to sysctl.kld.dDoug Rabson2023-07-151-1/+1
| | | | | | | | | 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
* /etc/rc.subr: add support for kld sysctl variablesDoug Rabson2023-07-141-0/+2
| | | | | | | | | | | | | For kernel modules loaded by scripts in /etc/rc.d and /usr/local/etc/rc.d, if there is a file in /etc/sysctl.conf.d named <kld name>.conf, then this will be loaded using the sysctl(8) utility. For instance, sysctl variable changes for the pf kernel module would be placed in the file /etc/sysctl.conf.d/pf.conf. PR: 272129 Reviewed by: imp freebsd_igalic.co MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D40886
* Remove GCC 4.2 include dirsMitchell Horne2023-07-101-4/+0
| | | | | | | | These are present (and empty) on a system installed post-GCC removal. Reviewed by: imp MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D40878
* Complete moving kinst of dtrace tests to commonLi-Wen Hsu2023-07-071-2/+2
| | | | | | | | | Update its mtree entry. Reviewed by: christos, markj Fixes: 911f0260390e dtrace: move kinst tests to common Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D40901
* Create correct engines debug directory after OpenSSL 3.0.9 mergeDimitry Andric2023-07-011-1/+1
| | | | | PR: 271656 Fixes: b077aed33b7b ("Merge OpenSSL 3.0.9")
* Merge OpenSSL 3.0.9Pierre Pronchery2023-06-232-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Migrate to OpenSSL 3.0 in advance of FreeBSD 14.0. OpenSSL 1.1.1 (the version we were previously using) will be EOL as of 2023-09-11. Most of the base system has already been updated for a seamless switch to OpenSSL 3.0. For many components we've added `-DOPENSSL_API_COMPAT=0x10100000L` to CFLAGS to specify the API version, which avoids deprecation warnings from OpenSSL 3.0. Changes have also been made to avoid OpenSSL APIs that were already deprecated in OpenSSL 1.1.1. The process of updating to contemporary APIs can continue after this merge. Additional changes are still required for libarchive and Kerberos- related libraries or tools; workarounds will immediately follow this commit. Fixes are in progress in the upstream projects and will be incorporated when those are next updated. There are some performance regressions in benchmarks (certain tests in `openssl speed`) and in some OpenSSL consumers in ports (e.g. haproxy). Investigation will continue for these. Netflix's testing showed no functional regression and a rather small, albeit statistically significant, increase in CPU consumption with OpenSSL 3.0. Thanks to ngie@ and des@ for updating base system components, to antoine@ and bofh@ for ports exp-runs and port fixes/workarounds, and to Netflix and everyone who tested prior to commit or contributed to this update in other ways. PR: 271615 PR: 271656 [exp-run] Relnotes: Yes Sponsored by: The FreeBSD Foundation
* Merge llvm-project main llvmorg-16-init-18548-gb0daacf58f41Dimitry Andric2023-06-223-2/+10
| | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-16-init-18548-gb0daacf58f41. PR: 271047 MFC after: 1 month
* asa: Add some unit tests.Dag-Erling Smørgrav2023-06-151-0/+2
| | | | | | | MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D40564
* ipfw(8): add ioctl/instruction generation testsAlexander V. Chernikov2023-06-131-0/+2
| | | | | Differential Revision: https://reviews.freebsd.org/D40488 MFC after: 2 weeks
* etc: Don't create stray directories in NO_ROOT distrib-dirsJessica Clarke2023-06-081-1/+0
| | | | | | | | | | The loop above is responsible for creating the actual directories, whilst this one is just responsible for creating the corresponding METALOG. Since DESTDIR already includes DISTBASE, this results in creating a second set of roots (one per MTREES entry) within DISTBASE whenever DISTBASE is non-empty, such as base/base, base/base/var, base/base/usr, etc. in the distributeworld case. This is purely cosmetic though as they won't appear in the METALOG.
* Add simple factor/primes regression testsEnji Cooper2023-05-271-0/+2
| | | | | | | | | This will help ensure that the change following this one to support OpenSSL 3 is sane. MFC after: 1 week Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D40297
* arm64: add tests for swp/swpb emulationKyle Evans2023-05-151-0/+2
| | | | | | | | | | | | | One test is suitable to be hooked up to the build, so I've done this here. The other test lives in tools/regression because failure is a bit more subjective -- generally, one runs it for some unbounded amount of time and observe if it eventually exits because two threads acquired the same mutex. Reviewed by: imp, mmel Sponsored by: Stormshield Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D39668
* tsort: Add unit tests.Dag-Erling Smørgrav2023-05-101-0/+2
| | | | | | | MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D40043
* calendar: cleanup obsolete directoriesYuri Pankov2023-05-081-20/+0
| | | | Follow 5282ada06bb and don't reinstall obsolete directories.