aboutsummaryrefslogtreecommitdiff
path: root/etc
Commit message (Collapse)AuthorAgeFilesLines
...
* /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.
* fwget: Introduce new utilityEmmanuel Vadot2023-05-011-0/+2
| | | | | | | | | | | This script's goal is to check the system for peripherals that needs firmware and install the needed packages for them. For now it only support pci subsystem and only video classes for AMD and Intel GPUs. Reviewed by: bapt Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D39825
* libcasper: remove leftover debug directoryYuri Pankov2023-04-231-2/+0
| | | | | Reviewed by: mjg Differential Revision: https://reviews.freebsd.org/D39756
* libcasper: Move helper libraries from /lib/casper to /lib.John Baldwin2023-03-291-2/+0
| | | | | | | | | These libraries are linked to directly by applications rather than opened at runtime via dlopen(). Discussed with: oshogbo Reviewed by: markj, emaste Differential Revision: https://reviews.freebsd.org/D39245
* Include Embedded Trace Extensions (ETE) source code to the OpenCSD build.Ruslan Bukin2023-03-271-0/+2
| | | | Sponsored by: UKRI
* Reserve u2f group for FIDO/U2F key support (SSH, etc.)Ed Maste2023-03-141-0/+1
| | | | | | | | We have FIDO/U2F support in the base system now, so reserve a group ID for it (maching the security/u2f-devd port). Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34341
* tftp: Add tests.Dag-Erling Smørgrav2023-03-101-0/+2
| | | | | | Sponsored by: Klara, Inc. Reviewed by: asomers Differential Revision: https://reviews.freebsd.org/D38969
* NgATM: Remove netgraph ATM supportBrooks Davis2023-03-091-10/+0
| | | | | | | | | | Most ATM support was removed prior to FreeBSD 12. The netgraph support was kept as it was less intrusive, but it is presumed to be unused. Reviewed by: manu Relnotes: yes Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D38879
* rc.d: Generate machine-id from hostid_saveTijl Coosemans2023-03-091-2/+0
| | | | | | | | | | | | | | | | rc.d/hostid_save saves a UUID generated by rc.d/hostid in /etc/hostid. Store the same UUID, without hyphens, in /etc/machine-id. The hypĥens are removed with a shell function because hostid_save runs before file systems are mounted so other tools may not be available yet. This eliminates some duplication between hostid and machine-id and for virtual machines machine-id now contains the UUID configured in the hypervisor like it does on Linux. Reviewed by: delphij Discussed with: bapt MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D38811
* pkgbase: Put termcap.small in the same package as termcapMark Johnston2023-03-031-0/+1
| | | | | Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D36951
* sysctl: tests: fix a couple issuesKyle Evans2023-03-011-0/+2
| | | | | | | | | | The function that sets test case metadata is actually named ${tc}_head rather than ${tc}, so add the suffix. While we're here, hook the tests up to the infrastructure so that they do get run. Sponsored by: Klara, Inc.
* wc: Clean up and modernize.Dag-Erling Smørgrav2023-02-141-0/+2
| | | | | | | | | | | | | | | | | | | | * Drop <err.h>, which is unnecessary since we use libxo. * As per POSIX, report an error if output fails. * Fix some type mismatches. * Use bool instead of int where appropriate. * Avoid repeatedly checking for a null filename. * Miscellaneous other tidying. * Add tests (partly derived from work performed by SHENG-YI HONG <i19780219111@kimo.com>). Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D38496
* Merge llvm-project release/15.x llvmorg-15.0.7-0-g8dfdcc7b7bf6Dimitry Andric2023-02-082-2/+2
| | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-15.0.7-0-g8dfdcc7b7bf6. PR: 265425 MFC after: 2 weeks
* Merge llvm-project release/15.x llvmorg-15.0.6-0-g088f33605d8aDimitry Andric2023-02-082-2/+2
| | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-15.0.6-0-g088f33605d8a. PR: 265425 MFC after: 2 weeks
* Merge llvm-project release/15.x llvmorg-15.0.2-10-gf3c5289e7846Dimitry Andric2023-02-082-2/+2
| | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-15.0.2-10-gf3c5289e7846. PR: 265425 MFC after: 2 weeks
* Merge llvm-project main llvmorg-15-init-17485-ga3e38b4a206bDimitry Andric2023-02-081-6/+4
| | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-15-init-17485-ga3e38b4a206b. PR: 265425 MFC after: 2 weeks
* Merge llvm-project main llvmorg-15-init-16436-g18a6ab5b8d1fDimitry Andric2023-02-081-0/+2
| | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-15-init-16436-g18a6ab5b8d1f. PR: 265425 MFC after: 2 weeks
* Merge llvm-project main llvmorg-15-init-15358-g53dc0f10787Dimitry Andric2023-02-083-2/+12
| | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-15-init-15358-g53dc0f10787. PR: 265425 MFC after: 2 weeks
* timeout: Move from /usr/bin to /binMateusz Piotrowski2023-02-021-2/+2
| | | | | | | | | | | | | | | | | | | | | timeout(1) is used by /etc/rc.d/zfskeys. Unfortunately, having timeout(1) installed in /usr/bin causes problems when /usr is an encrypted ZFS partition. Implementing timeout(1) in sh(1) is not trivial. A more elegant solution is to move timeout(1) to /bin so that it is available to early services in the boot process. PR: 265221 Reviewed by: allanjude, des, imp Approved by: allanjude, des, imp Reported by: Ivan <r4@sovserv.ru> Fixes: 33ff39796ffe Add zfskeys rc.d script for auto-loading encryption keys MFC after: 1 week Relnotes: yes Sponsored by: Modirum MDPay Sponsored by: Klara Inc. Differential Revision: https://reviews.freebsd.org/D38344
* Add tarfs, a filesystem backed by tarballs.Dag-Erling Smørgrav2023-02-021-0/+2
| | | | | | | Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: pauamma, imp Differential Revision: https://reviews.freebsd.org/D37753
* Minor changes to force commit these files so new freebsd*.cf files areGregory Neil Shapiro2023-01-171-5/+5
| | | | built to use the new sendmail-8.17.1/cf tree.
* Sync with vendor sendmail 8.17.1 cf/cf/submit.mcGregory Neil Shapiro2023-01-171-1/+4
|
* tests: add test for ipfw fwd localaddr,portGleb Smirnoff2023-01-061-0/+2
| | | | | | | | | Checks basic forward to local address, also with presence of a listener that matches original port (see aab8c844b91). Based on non-ATF test case written by Pavel Polyakov. Reviewed by: kp, melifaro Differential revision: https://reviews.freebsd.org/D37960
* testing: add python test examplesAlexander V. Chernikov2023-01-011-0/+2
| | | | | | | | | Simplify the adoption of python tests by proving some examples, utilising commonly-used patterns. Differential Revision: https://reviews.freebsd.org/D37902 Reviewed by: asomers MFC after: 2 weeks
* termcap.small: Don't use -o pipefail.John Baldwin2022-12-271-1/+1
| | | | | | | | | | | The command to generate termcap.small doesn't use any pipes, so this option is not needed. Using it also breaks cross-building on hosts where /bin/sh does not support pipefail such as Linux hosts where /bin/sh is dash. Reviewed by: sobomax, imp Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D37865
* Add new rc: machine_id to generate /etc/machine-idTobias C. Berner2022-12-231-0/+2
| | | | | | | | | | | | | | | | | | | | | This new default-enabled rc will generate a /etc/machine-id file if it does not exist, and pre-fill it with a newly generated UUID of version 4 [2]. The file is generated in /var/db/machine-id and symlinked to /etc/machine-id to allow for read-only root partitions. This file is amongst other things used by libraries like GLib. Bump FreeBSD version 1400076 to be able to easily add support for older version of FreeBSD via a package. [1] Linux machine-id(5): https://www.man7.org/linux/man-pages/man5/machine-id.5.html [2] f176fe8e7f638e585afcd2f4dd52a522c4648f63 Approved by: bapt MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D37722
* netlink: improve interface handlingAlexander V. Chernikov2022-12-141-0/+2
| | | | | | | | | | | | | | | | * Separate interface creation from interface modification code * Support setting some interface attributes (ifdescr, mtu, up/down, promisc) * Improve interaction with the cloners requiring to parse/write custom interface attributes * Add bitmask-based way of checking if the attribute is present in the message * Don't use multipart RTM_GETLINK replies when searching for the specific interface names * Use ENODEV instead of ENOENT in case of failed RTM_GETLINK search * Add python netlink test helpers * Add some netlink interface tests Differential Revision: https://reviews.freebsd.org/D37668
* sendmail: remove leftovers from mta_start_script and rc.sendmailBaptiste Daroussin2022-11-151-1/+1
| | | | | | | | | | Switch /etc/mail/Makefile to use /etc/rc.d/sendmail instead of /etc/rc.sendmail this switch should have been done 20 years ago. While here update the documentation to not refer anymore to mta_start_script Reported by: Jose Luis Duran <jlduran@gmail.com>
* mktemp: add -p/--tmpdir argumentKyle Evans2022-10-311-0/+2
| | | | | | | | | | | | | | | | | | | | | | This matches other mktemp implementations, including OpenBSD and GNU. The -p option can be used to provide a tmpdir prefix for specified templates. Precedence works out like so: -t flag: - $TMPDIR - -p directory - /tmp Implied -t flag (no arguments or only -d flag): - -p directory - $TMPDIR - /tmp Some tests have been added for mktemp(1) in the process. Reviewed by: imp (earlier version), wosch Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D37121
* Import the WireGuard driver from zx2c4.com.John Baldwin2022-10-281-0/+2
| | | | | | | | | | | | | | | This commit brings back the driver from FreeBSD commit f187d6dfbf633665ba6740fe22742aec60ce02a2 plus subsequent fixes from upstream. Relative to upstream this commit includes a few other small fixes such as additional INET and INET6 #ifdef's, #include cleanups, and updates for recent API changes in main. Reviewed by: pauamma, gbe, kevans, emaste Obtained from: git@git.zx2c4.com:wireguard-freebsd @ 3cc22b2 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D36909
* split: add some testsKyle Evans2022-10-251-0/+2
| | | | | | | | | | This should cover all of the basic functionality, as well as the recent enhancement to use a dynamic buffer size rather than limiting patterns and lines to MAXBSIZE. Reviewed by: bapt Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D36324
* kinst: Add a rudimentary regression test caseMark Johnston2022-10-111-0/+2
| | | | | | | The test instruments a number of large, frequently called kernel functions while generating load in the background. MFC after: 3 months
* Put OPIE to rest.Dag-Erling Smørgrav2022-10-021-2/+0
| | | | Differential Revision: https://reviews.freebsd.org/D36592
* sh: read more profile files.Dag-Erling Smørgrav2022-10-011-0/+2
| | | | | Differential Revision: https://reviews.freebsd.org/D36505 MFC after: 1 month
* netlink: add netlink supportAlexander V. Chernikov2022-10-011-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Netlinks is a communication protocol currently used in Linux kernel to modify, read and subscribe for nearly all networking state. Interfaces, addresses, routes, firewall, fibs, vnets, etc are controlled via netlink. It is async, TLV-based protocol, providing 1-1 and 1-many communications. The current implementation supports the subset of NETLINK_ROUTE family. To be more specific, the following is supported: * Dumps: - routes - nexthops / nexthop groups - interfaces - interface addresses - neighbors (arp/ndp) * Notifications: - interface arrival/departure - interface address arrival/departure - route addition/deletion * Modifications: - adding/deleting routes - adding/deleting nexthops/nexthops groups - adding/deleting neghbors - adding/deleting interfaces (basic support only) * Rtsock interaction - route events are bridged both ways The implementation also supports the NETLINK_GENERIC family framework. Implementation notes: Netlink is implemented via loadable/unloadable kernel module, not touching many kernel parts. Each netlink socket uses dedicated taskqueue to support async operations that can sleep, such as interface creation. All message processing is performed within these taskqueues. Compatibility: Most of the Netlink data models specified above maps to FreeBSD concepts nicely. Unmodified ip(8) binary correctly works with interfaces, addresses, routes, nexthops and nexthop groups. Some software such as net/bird require header-only modifications to compile and work with FreeBSD netlink. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D36002 MFC after: 2 months
* Remove obsolete SystemV dir from BSD.usr.distEd Maste2022-09-291-2/+0
| | | | | | | | | /usr/share/zoneinfo/SystemV is removed via ObsoleteFiles as of commits da038df8c92b and 57338837aef5, so do not create it in the first place. PR: 266666 Fixes: da038df8c92b ("share/zoneinfo: don't build obsolete...") MFC after: 3 days
* Fix mergemaster(8) breakage in the 6ad780caa.Maxim Sobolev2022-09-133-0/+39
| | | | | | | | | | Split out termcap.small generation into its own Makefile under etc/termcap, so it's properly executed by the underlying command: make 'SUBDIR_OVERRIDE=etc' everything Reported by: gbe MFC after: 1 month