summaryrefslogtreecommitdiff
path: root/etc
Commit message (Collapse)AuthorAgeFilesLines
* gmultipath: add ATF testsAlan Somers2019-12-061-0/+2
| | | | | | | | | | | | | | Add ATF tests for most gmultipath operations. Add some dtrace probes too, primarily for configuration changes that happen in response to provider errors. PR: 178473 MFC after: 2 weeks Sponsored by: Axcient Differential Revision: https://reviews.freebsd.org/D22235 Notes: svn path=/head/; revision=355431
* Create /etc/os-release file.Warner Losh2019-11-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | Each boot, regenerate /var/run/os-release based on the currently running system. Create a /etc/os-release symlink pointing to this file (so that this doesn't create a new reason /etc can not be mounted read-only). This is compatible with what other systems do and is what the sysutil/os-release port attempted to do, but in an incomplete way. Linux, Solaris and DragonFly all implement this natively as well. The complete standard can be found at https://www.freedesktop.org/software/systemd/man/os-release.html Moving this to the base solves both the non-standard location problem with the port, as well as the lack of update of this file on system update. Bump __FreeBSD_version to 1300060 PR: 238953 Differential Revision: https://reviews.freebsd.org/D22271 Notes: svn path=/head/; revision=354922
* Standardize EFI's ESP mount point.Warner Losh2019-11-201-0/+2
| | | | | | | | | | | | | Mount the UEFI ESP on /boot/efi. No current system uses this by default, but there are many ad-hoc schemes that do this in /efi or /esp or /uefi and adding a new directory at the top-level would have a much higher likelihood of collision. Document this in /etc/mtree/BSD.root.mtree and create EFIDIR and related variables in bsd.own.mk. Differential Revision: https://reviews.freebsd.org/D21344 Notes: svn path=/head/; revision=354915
* Link in NetBSD's unifdef(1) testsConrad Meyer2019-11-181-0/+2
| | | | | | | Skip one, is it currently fails. Notes: svn path=/head/; revision=354801
* libexecinfo: Integrate NetBSD test into FreeBSDConrad Meyer2019-10-271-0/+2
| | | | Notes: svn path=/head/; revision=354126
* frag6: import a set of test casesBjoern A. Zeeb2019-10-211-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | In order to ensure that changing the frag6 code does not change behaviour or break code a set of test cases were implemented. Like some other test cases these use Scapy to generate packets and possibly wait for expected answers. In most cases we do check the global and per interface (netstat) statistics output using the libxo output and grep to validate fields and numbers. This is a bit hackish but we currently have no better way to match a selected number of stats only (we have to ignore some of the ND6 variables; otherwise we could use the entire list). Test cases include atomic fragments, single fragments, multi-fragments, and try to cover most error cases in the code currently. In addition vnet teardown is tested to not panic. A separate set (not in-tree currently) of probes were used in order to make sure that the test cases actually test what they should. The "sniffer" code was copied and adjusted from the netpfil version as we sometimes will not get packets or have longer timeouts to deal with. Sponsored by: Netflix Notes: svn path=/head/; revision=353794
* Merge ^/head r352764 through r353315.Dimitry Andric2019-10-081-0/+6
|\ | | | | | | Notes: svn path=/projects/clang900-import/; revision=353316
| * [1/3] Initial infrastructure for SSL root bundle in baseKyle Evans2019-10-021-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This setup will add the trusted certificates from the Mozilla NSS bundle to base. This commit includes: - CAROOT option to opt out of installation of certs - mtree amendments for final destinations - infrastructure to fetch/update certs, along with instructions A follow-up commit will add a certctl(8) utility to give the user control over trust specifics. Another follow-up commit will actually commit the initial result of updatecerts. This work was done primarily by allanjude@, with minor contributions by myself. No objection from: secteam Relnotes: yes Differential Revision: https://reviews.freebsd.org/D16856 Notes: svn path=/head/; revision=352948
* | Merge ^/head r352105 through r352307.Dimitry Andric2019-09-131-0/+4
|\| | | | | | | Notes: svn path=/projects/clang900-import/; revision=352308
| * [jail] removal by jid doesn't trigger pre/post stop scriptsMichael Zhilin2019-09-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes bug: command "jail -r" didn't trigger pre/post stop commands (and others) defined in config file if jid is specified insted of name. Also it adds basic tests for usr.sbin/jail to avoid regression. Reviewed by: jamie, kevans, ray MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D21328 Notes: svn path=/head/; revision=352263
| * locale: handle day, abday, mon, abmon, am_pm keywordsYuri Pankov2019-09-101-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All of these are defined as mandatory by POSIX. While here, mark all non-standard ones as FreeBSD-only as other systems (at least, GNU/Linux and illumos) do not handle them, so we should not encourage their use. PR: 237752 Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D21490 Notes: svn path=/head/; revision=352138
* | Merge ^/head r351732 through r352104.Dimitry Andric2019-09-092-16/+2
|\| | | | | | | Notes: svn path=/projects/clang900-import/; revision=352105
| * patch(1): add some basic testsKyle Evans2019-09-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: - basic: test application of patches created by diff -u at the beginning/middle/end of file, which have differing amounts of context before and after chunks being added - limited_ctx: stems from PR 74127 in which a rogue line was getting added when the patch should have been rejected. Similar behavior was reproducible with larger contexts near the beginning/end of a file. See r326084 for details - file_creation: patch sourced from /dev/null should create the file - file_nodupe: said patch sourced from /dev/null shouldn't dupe the contents when re-applied (personal vendetta, WIP, see comment) - file_removal: this follows from nodupe; the reverse of a patch sourced from /dev/null is most naturally deleting the file, as is expected based on GNU patch behavior (WIP) Notes: svn path=/head/; revision=351836
| * - Retire pc-sysinstall(8)Kris Moore2019-09-031-16/+0
| | | | | | | | | | | | | | | | | | | | https://reviews.freebsd.org/D21094 Submitted by: kmoore@FreeBSD.org Approved by: imp@FreeBSD.org Notes: svn path=/head/; revision=351781
* | Merge ^/head r351317 through r351731.Dimitry Andric2019-09-031-0/+6
|\| | | | | | | Notes: svn path=/projects/clang900-import/; revision=351732
| * Fix build (r351481).Hiroki Sato2019-08-251-2/+2
| | | | | | | | Notes: svn path=/head/; revision=351484
| * mixer(8): Report an error if the passed value is an empty stringMateusz Piotrowski2019-08-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes a bug that made the mixer command enter an infinite loop when instructed to set the value of a device to an empty string (e.g., `mixer vol ""`). Additionally, some tests for mixer(8) are being added. PR: 240039 Reviewed by: hselasky, mav Approved by: src (hselasky, mav) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D21409 Notes: svn path=/head/; revision=351481
| * ping6: add a basic functional testAlan Somers2019-08-221-0/+2
| | | | | | | | | | | | | | | | | | | | Submitted by: Ján Sučan <sucanjan@gmail.com> MFC after: 2 weeks Sponsored by: Google, inc. (Google Summer of Code 2019) Differential Revision: https://reviews.freebsd.org/D21292 Notes: svn path=/head/; revision=351394
| * ping: Add tests of the Internet checksum functionAlan Somers2019-08-201-0/+2
| | | | | | | | | | | | | | | | | | | | Submitted by: Ján Sučan <sucanjan@gmail.com> MFC after: 2 weeks Sponsored by: Google LLC (Google Summer of Code 2019) Differential Revision: https://reviews.freebsd.org/D21340 Notes: svn path=/head/; revision=351318
* | Fix mtree syntax.Dimitry Andric2019-09-011-0/+3
| | | | | | | | Notes: svn path=/projects/clang900-import/; revision=351670
* | Update Makefile and mtree for clang internal headers, and updateDimitry Andric2019-08-311-0/+3
| | | | | | | | | | | | | | OptionalObsoleteFiles.inc for added and removed files. Notes: svn path=/projects/clang900-import/; revision=351647
* | Change clang lib dir to 9.0.0.Dimitry Andric2019-08-232-2/+2
|/ | | | Notes: svn path=/projects/clang900-import/; revision=351441
* fusefs: merge from projects/fuse2Alan Somers2019-08-071-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit imports the new fusefs driver. It raises the protocol level from 7.8 to 7.23, fixes many bugs, adds a test suite for the driver, and adds many new features. New features include: * Optional kernel-side permissions checks (-o default_permissions) * Implement VOP_MKNOD, VOP_BMAP, and VOP_ADVLOCK * Allow interrupting FUSE operations * Support named pipes and unix-domain sockets in fusefs file systems * Forward UTIME_NOW during utimensat(2) to the daemon * kqueue support for /dev/fuse * Allow updating mounts with "mount -u" * Allow exporting fusefs file systems over NFS * Server-initiated invalidation of the name cache or data cache * Respect RLIMIT_FSIZE * Try to support servers as old as protocol 7.4 Performance enhancements include: * Implement FUSE's FOPEN_KEEP_CACHE and FUSE_ASYNC_READ flags * Cache file attributes * Cache lookup entries, both positive and negative * Server-selectable cache modes: writethrough, writeback, or uncached * Write clustering * Readahead * Use counter(9) for statistical reporting PR: 199934 216391 233783 234581 235773 235774 235775 PR: 236226 236231 236236 236291 236329 236381 236405 PR: 236327 236466 236472 236473 236474 236530 236557 PR: 236560 236844 237052 237181 237588 238565 Reviewed by: bcr (man pages) Reviewed by: cem, ngie, rpokala, glebius, kib, bde, emaste (post-commit review on project branch) MFC after: 3 weeks Relnotes: yes Sponsored by: The FreeBSD Foundation Pull Request: https://reviews.freebsd.org/D21110 Notes: svn path=/head/; revision=350665
| * MFHead @350453Alan Somers2019-07-301-1/+1
| |\ | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/fuse2/; revision=350454
| * \ MFHead @349476Alan Somers2019-06-271-4/+0
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/fuse2/; revision=349479
| * \ \ MFHead @349234Alan Somers2019-06-207-25/+35
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/fuse2/; revision=349236
| * \ \ \ MFHead @348740Alan Somers2019-06-068-1366/+24
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/fuse2/; revision=348744
| * \ \ \ \ MFHead @347527Alan Somers2019-05-134-9/+11
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/fuse2/; revision=347539
| * | | | | | fusefs: adapt the tests to the fuse => fusefs renameAlan Somers2019-03-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/fuse2/; revision=345356
| * | | | | | MFHead@r345275Alan Somers2019-03-184-2/+30
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/fuse2/; revision=345279
| * | | | | | | Begin a fuse(4) test suiteAlan Somers2019-03-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It only tests the kernel portion of fuse, not the userspace portion (which comes from sysutils/fusefs-libs). The kernel-userspace interface is de-facto standardized, and this test suite seeks to validate FreeBSD's implementation. It uses GoogleMock to substitute for a userspace daemon and validate the kernel's behavior in response to filesystem access. GoogleMock is convenient because it can validate the order, number, and arguments of each operation, and return canned responses. But that also means that the test suite must use GoogleTest, since GoogleMock is incompatible with atf-c++ and atf.test.mk does not allow C++ programs to use atf-c. This commit adds the first 10 test cases out of an estimated 130 total. PR: 235775, 235773 Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/fuse2/; revision=344715
* | | | | | | | Add common firewall test suiteTom Jones2019-08-051-0/+2
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a common test suite for the firewalls included in the base system. The test suite allows common test infrastructure to test pf, ipfw and ipf firewalls from test files containing the setup for all three firewalls. Add the pass block test for pf, ipfw and ipf. The pass block test checks the allow/deny functionality of the firewalls tested. Submitted by: Ahsan Barkati Sponsored by: Google, Inc. (GSoC 2019) Reviewed by: kp Approved by: bz (co-mentor) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D21065 Notes: svn path=/head/; revision=350586
* | | | | | | Create the /var/account dir with mode 0750; this is a followup to r349974.Ian Lepore2019-07-301-1/+1
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The rc.d/account script contains code to create the /var/account dir, so it hadn't occurred to me that it is normally created via mtree; thanks to jilles@ for pointing it out. Notes: svn path=/head/; revision=350445
* | | | | | Remove NAND and NANDFS supportWarner Losh2019-06-251-4/+0
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NANDFS has been broken for years. Remove it. The NAND drivers that remain are for ancient parts that are no longer relevant. They are polled, have terrible performance and just for ancient arm hardware. NAND parts have evolved significantly from this early work and little to none of it would be relevant should someone need to update to support raw nand. This code has been off by default for years and has violated the vnode protocol leading to panics since it was committed. Numerous posts to arch@ and other locations have found no actual users for this software. Relnotes: Yes No Objection From: arch@ Differential Revision: https://reviews.freebsd.org/D20745 Notes: svn path=/head/; revision=349352
* | | | | random(4): Add regression tests for uint128 implementation, Chacha CTRConrad Meyer2019-06-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add some basic regression tests to verify behavior of both uint128 implementations at typical boundary conditions, to run on all architectures. Test uint128 increment behavior of Chacha in keystream mode, as used by 'kern.random.use_chacha20_cipher=1' (r344913) to verify assumptions at edge cases. These assumptions are critical to the safety of using Chacha as a PRF in Fortuna (as implemented). (Chacha's use in arc4random is safe regardless of these tests, as it is limited to far less than 4 billion blocks of output in that API.) Reviewed by: markm Approved by: secteam(gordon) Differential Revision: https://reviews.freebsd.org/D20392 Notes: svn path=/head/; revision=349137
* | | | | Remove tabs from BSD.var.distAntoine Brodin2019-06-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: zeising Notes: svn path=/head/; revision=349120
* | | | | Move/rename the sys/pwm.h header file to dev/pwm/pwmc.h. The file containsIan Lepore2019-06-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ioctl definitions and related datatypes that allow userland control of pwm hardware via the pwmc device. The new name and location better reflects its assocation with a single device driver. Notes: svn path=/head/; revision=349074
* | | | | Upgrade our copies of clang, llvm, lld, lldb, compiler-rt, libc++,Dimitry Andric2019-06-122-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libunwind and openmp to the upstream release_80 branch r363030 (effectively, 8.0.1 rc2). The 8.0.1 release should follow this within a week or so. MFC after: 2 weeks Notes: svn path=/head/; revision=349004
* | | | | mtree: Restore mode for /var/spool/lock and opielocksEmmanuel Vadot2019-06-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mode was dropped unintentionally in r348981 for those two directories. Reviewed by: rgrimes MFC after: 1 month X-MFC-With: r348981 Notes: svn path=/head/; revision=348990
* | | | | pkgbase: Add some tags to files installed in distribution targetEmmanuel Vadot2019-06-121-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the MK_MAIL dependant file to the runtime package as well as the MK_KERBEROS ones the empty locate database, the FreeBSD copyright file and the GENERIC.hints. Tag the unbound link from /etc to /var to belong in the unbound package. Reviewed by: bapt MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D20607 Notes: svn path=/head/; revision=348983
* | | | | pkgbase: Add the correct package for sendmail configuration filesEmmanuel Vadot2019-06-121-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: bapt MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D20606 Notes: svn path=/head/; revision=348982
* | | | | pkgbase: Set a default package=runtime for var directoriesEmmanuel Vadot2019-06-121-11/+13
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This way every directory is at least present in packages. While here tag some directory from being in sendmail or dma Reviewed by: bapt MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D20605 Notes: svn path=/head/; revision=348981
* | | | DTrace: create an amd64 test suitMariusz Zaborski2019-06-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create two tests checking if we can read urgs registers and if the rax register returns a correct number. Reviewed by: markj Discussed with: lwhsu MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D20364 Notes: svn path=/head/; revision=348706
* | | | Put back MTREE_CMD here for now. Doh, not my day, perhaps.Maxim Sobolev2019-06-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: markj, mav Notes: svn path=/head/; revision=348589
* | | | Leave mtree hardcoded for now. Reverting partially 348521 and alsoMaxim Sobolev2019-06-031-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the followup stopgap change, because I don't think it's a correct. I still need to figure out where to stick it in. In cannot be in Makefile.inc1 and it cannot be in etc/Makefile from the looks of it to avoid chicken-and-egg problem. Notes: svn path=/head/; revision=348532
* | | | Fix several places where tool name has been hardcoded:Maxim Sobolev2019-06-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | install -> ${INSTALL} mtree -> ${MTREE_CMD} services_mkdb -> ${SERVICES_MKDB_CMD} cap_mkdb -> ${CAP_MKDB_CMD} pwd_mkdb -> ${PWD_MKDB_CMD} kldxref -> ${KLDXREF_CMD} If you do custom FreeBSD builds you may want to override those in some cases. Sponsored by: Sippy Software, Inc. Notes: svn path=/head/; revision=348521
* | | | Move back group, master.passwd and shells to etc directoryBaptiste Daroussin2019-05-233-0/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the .PATH mechanism instead so keep installing them from lib/libc/gen While here revert 347961 and 347893 which are no longer needed Discussed with: manu Tested by: manu ok manu@ Notes: svn path=/head/; revision=348185
* | | | pkgbase: Really move login.accessEmmanuel Vadot2019-05-221-46/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Messed up with git->svn r348102 Notes: svn path=/head/; revision=348107
* | | | pkgbase: Really move termcap.smallEmmanuel Vadot2019-05-221-315/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Messed up with git->svn in r348101 Notes: svn path=/head/; revision=348106
* | | | pkgbase: Really move rc.sendmailEmmanuel Vadot2019-05-221-277/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Messed up with git->svn in r348100 Notes: svn path=/head/; revision=348105