aboutsummaryrefslogtreecommitdiff
path: root/etc
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* libexec/rc: Add var_run rc scriptCy Schubert2022-09-051-0/+2
| | | | | | | | | | | | | | | | | | Users with a tmpfs /var/run will lose the directory tree state of /var/run at reboot. This rc script will optionally (by default) capture the state of the directory structure in /var/run prior to shutdown and recreate it at system boot. Alternatively a user can save the state of the /var/run directories manually using service var_run save and disable the autosaving of /var/run state using the var_run_autosave variable, for those paranoid SSD users. PR: 259585, 259699 Reported by: freebsd@walstatt-de.de, Reviewed by: philip, gbe (previous version) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D36386
* renice: add unit tests.Dag-Erling Smørgrav2022-08-251-0/+2
| | | | Sponsored by: Klara, Inc.
* pkgbase: mtree: Correctly tag /var/db entriesEmmanuel Vadot2022-08-161-3/+3
|
* pkgbase: mtree: Correctly tag /var/run entriesEmmanuel Vadot2022-08-161-4/+4
|
* Install working pkgconfig .pc files for compat librariesAlex Richardson2022-08-111-0/+2
| | | | | | | | | The default ones are install them to /usr/libdata/pkgconfig, and we can't use this path for compat libraries, so we use /usr/lib<suffix>/pkgconfigi here. Test Plan: grep -rn libdir= ./usr/lib32/pkgconfig/*.pc MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D34939
* rc: Start testing the rc(8) framework (beginning with *_oomprotect)Mateusz Piotrowski2022-07-261-0/+2
| | | | | | | | | | | | | This change adds 2 tests to make sure that the *_oomprotect variable sets the protection against OOM killer properly within rc(8) scripts. This is also adding the first tests for the rc(8) framework. More tests will be added as we go. PR: 256148 Approved by: des MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D35745
* etc: Fix distrib-dirs to not rely on a BSDismJessica Clarke2022-07-151-1/+1
| | | | | | | | | FreeBSD and macOS have a test that treats == as an alias for =, but Linux tends to use GNU coreutils (when not a builtin) which does not. Use the standard syntax instead for compatibility. Obtained from: CheriBSD Differential Revision: https://reviews.freebsd.org/D35811
* if_ovpn tests: basic test caseKristof Provost2022-06-281-0/+2
| | | | | | | | Set up an OpenVPN tunnel between two jails, send traffic through them to confirm basic function. Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D35067
* testing: move atf-pytest-wrapper to /usr/libexecAlexander V. Chernikov2022-06-261-0/+2
| | | | | | | | | | | Move pytest wrapper to the collection of the other atf wrappers in libexec. It solves the problem of combining bits & pieces from bsd.test.mk and bgs.prog.mk to address "test binary, but not the suite binary". Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D35604 MFC after: 2 weeks
* routing: add tests/sys/net/routing to mtreeAlexander V. Chernikov2022-06-251-0/+2
| | | | MFC after: 2 weeks
* Merge llvm-project release/14.x llvmorg-14.0.5-0-gc12386ae247cDimitry Andric2022-06-122-2/+2
| | | | | | | | This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp to llvmorg-14.0.5-0-gc12386ae247c, aka 14.0.5 release. PR: 261742 MFC after: 3 days
* Remove yet another incorrect .. level from BSD.usr.distDimitry Andric2022-06-121-1/+0
| | | | | | | | Since the spacing was off, it was not clear that it descended one level too many. Fixes: 695052e240c7 MFC after: 3 days
* Fix mtree for usr/Xin LI2022-06-121-0/+1
| | | | MFC after: 3 days
* Update rest of llvm-project build glue for 14.0.4Dimitry Andric2022-06-052-2/+2
| | | | | | | | | I completely forgot about updating the generated llvm-project config files, which also contain version numbers, etc. Sorry for the churn. PR: 261742 Fixes: ab9d54731f43 MFC after: 3 days