aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* Replace paths in ctladm(8) examples with something sensible.Edward Tomasz Napierala2020-11-231-11/+5
| | | | | | | | | | | PR: 251181 Reviewed by: 0mp, rm, ygy MFC after: 2 weeks Sponsored by: EPSRC Differential Revision: https://reviews.freebsd.org/D27249 Notes: svn path=/head/; revision=367956
* netmap: valectl: switch to libnetmapVincenzo Maffione2020-11-222-131/+298
| | | | | | | | | | Use the newer libnetmap (included in base) rather than the older nm_open()/nm_close() defined in netmap_user.h MFC after: 3 days Notes: svn path=/head/; revision=367935
* Update man page for new TLS export options.Rick Macklem2020-11-201-4/+58
| | | | | | | | | | | | | | NFS over TLS uses three new export options, added by r364979. This patch updates the exports.5 man page for these new options. Once assigned by IETF, "NNNN" will be replaced with the RFC number. This is a content change. Reviewed by: gbe Differential Revision: https://review.freebsd.org/D26241 Notes: svn path=/head/; revision=367912
* hostapd.conf(5): Add missing 'l'Gordon Bergling2020-11-201-1/+1
| | | | | | | | | | In r367901 I accidentally deleted the 'l' while fixing a few mandoc erros. Spotted by: Yuri Pankov Notes: svn path=/head/; revision=367904
* moused(8): Fix a few mandoc warningsGordon Bergling2020-11-201-12/+14
| | | | | | | - new sentence, new line Notes: svn path=/head/; revision=367903
* crashinfo(8): Fix a few mandoc warningsGordon Bergling2020-11-201-2/+4
| | | | | | | - new sentence, new line Notes: svn path=/head/; revision=367902
* hostapd.conf(5): Fix a mandoc warningGordon Bergling2020-11-201-2/+3
| | | | | | | - new sentence, new line Notes: svn path=/head/; revision=367901
* syslog.conf(5): Fix a few mandoc warningsGordon Bergling2020-11-201-4/+4
| | | | | | | | - new sentence, new line - skipping paragraph macro: Pp at the end of Sh Notes: svn path=/head/; revision=367900
* snmp_wlan(3): Fix mandoc warningsGordon Bergling2020-11-201-15/+17
| | | | | | | - new sentence, new line Notes: svn path=/head/; revision=367899
* Advance RIP after userspace instruction decodePeter Grehan2020-11-191-7/+13
| | | | | | | | | | | | | | Add update to RIP after a userspace instruction decode (as is done for the in-kernel counterpart of this case). Submitted by: adam_fenn.io Reviewed by: cem, markj Approved by: grehan (bhyve) MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D27243 Notes: svn path=/head/; revision=367834
* jail: introduce per jail suser_enabled settingMariusz Zaborski2020-11-181-1/+9
| | | | | | | | | | | | | | The suser_enable sysctl allows to remove a privileged rights from uid 0. This change introduce per jail setting which allow to make root a normal user. Reviewed by: jamie Previous version reviewed by: kevans, emaste, markj, me_igalic.co Discussed with: pjd Differential Revision: https://reviews.freebsd.org/D27128 Notes: svn path=/head/; revision=367819
* Make use of the getlocalbase() function for run-time adjustment of theStefan Eßer2020-11-184-8/+7
| | | | | | | | | | | | | | | | | | local software base directory, as committed in SVN rev. 367813. The pkg and mailwrapper programs used the LOCALBASE environment variable for this purpose and this functionality is preserved by getlocalbase(). After this change, the value of the user.localbase sysctl variable is used if present (and not overridden in the environment). The nvmecontrol program gains support of a dynamic path to its plugin directory with this update. Differential Revision: https://reviews.freebsd.org/D27237 Notes: svn path=/head/; revision=367816
* mergemaster: handle symbolic links during update.Warner Losh2020-11-181-2/+116
| | | | | | | | | | | | | | /etc/os-release is now a symbolic link to a generated file. Make mergemaster cope with symbolic links generically. I'm no longer a big mergemaster user, so this has only been lightly tested by me, though Kimura-san has ran it through its paces. Submitted by: Yasushiro KIMURA-san PR: 242212 MFC After: 2 weeks Notes: svn path=/head/; revision=367810
* Add legacy debug/test interfaces for kvm unit tests.Peter Grehan2020-11-175-4/+344
| | | | | | | | | | | | | | | Implement the legacy debug/test interfaces expected by KVM-unit-tests' realmode, emulator, and ioapic tests. Submitted by: adam_fenn.io Reviewed by: markj, grehan Approved by: grehan (bhyve) MFC after: 3 weeks Relnotes: Yes Differential Revision: https://reviews.freebsd.org/D27130 Notes: svn path=/head/; revision=367762
* Add missing includes of src.opts.mkBrooks Davis2020-11-161-0/+2
| | | | | | | | | | Without this "SUBDIR.${MK_TESTS}=tests" would always expand to "SUBDIR.=tests" resulting in the tests not being built. Sponsored by: DARPA Notes: svn path=/head/; revision=367728
* Revert the whole getlocalbase() set of changes while a different design isScott Long2020-11-153-12/+5
| | | | | | | hashed out. Notes: svn path=/head/; revision=367711
* Fix regression in AHCI controller settings.Peter Grehan2020-11-151-3/+2
| | | | | | | | | | | | | | | | | When the AHCI code was reworked to use FreeBSD struct definitions, the valid element was mis-transcribed resulting in the UMDA capability being hidden. This prevented Illumos from using AHCI disk/cdrom drives. Fix by using definitions that match the code pre-rework. PR: 250924 Submitted by: Rolf Stalder Reported by: Rolf Stalder MFC after: 3 days Notes: svn path=/head/; revision=367709
* Fix the previous revision, it suffered from an incomplete change to theScott Long2020-11-152-4/+4
| | | | | | | | getlocalbase API. Also don't erroneously subtract the lenth from the buffer a second time. Notes: svn path=/head/; revision=367702
* Replace hardcoded references to _PATH_LOCALBASE with calls to getlocalbase.3Scott Long2020-11-143-5/+12
| | | | | | | Reviewed by: imp, se Notes: svn path=/head/; revision=367687
* Document the PAGER environment variableMateusz Piotrowski2020-11-141-1/+15
| | | | | | | | | | | Sometimes users want to use freebsd-update(8) in a non-interactive way and what they often miss is that they have to set PAGER to cat(1) in order to avoid interactive prompts from less(1). MFC after: 4 weeks Notes: svn path=/head/; revision=367678
* bhyve: update smbiostbl.c to bump the version and release dateRebecca Cran2020-11-131-3/+6
| | | | | | | | | | | Since lots of work has been done on bhyve since 2014, increase the version to 13.0 to match 13-CURRENT, and update the release date. Reviewed by: grehan Differential Revision: https://reviews.freebsd.org/D27147 Notes: svn path=/head/; revision=367651
* [PowerPC] Allow traversal of oversize OF properties.Brandon Bergren2020-11-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In standards such as LoPAPR, property names in excess of the usual 31 characters exist. This breaks property traversal. While in IEEE 1275-1994, nextprop is defined explicitly to work with a 32-byte region of memory, using a larger buffer should be fine. There is actually no way to pass a buffer length to the nextprop call in the OF client interface, so SLOF actually just blindly overflows the buffer. So we have to defensively make the buffer larger, to avoid memory corruption when reading out long properties on live OF systems. Note also that on real-mode OF, things are pretty tight because we are allocating against a static bounce buffer in low memory, so we can't just use a huge buffer to work around this without it being wasteful of our limited amount of 32-bit physical memory. This allows a patched ofwdump to operate properly on SLOF (i.e. pseries) systems, as well as any other PowerPC systems with overlength properties. Reviewed by: jhibbits MFC after: 2 weeks Sponsored by: Tag1 Consulting, Inc. Differential Revision: https://reviews.freebsd.org/D26669 Notes: svn path=/head/; revision=367643
* bhyve: remove a hack to map all 8G BARs 1:1Konstantin Belousov2020-11-123-20/+4
| | | | | | | | | | Suggested and reviewed by: grehan Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D27186 Notes: svn path=/head/; revision=367613
* bhyve: increase allowed size for 64bit BAR allocation below 4G from 32 to ↵Konstantin Belousov2020-11-121-2/+2
| | | | | | | | | | | | 128 MB. Reviewed by: grehan Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D27095 Notes: svn path=/head/; revision=367607
* bhyve: avoid allocating BARs above the end of supported physical addresses.Konstantin Belousov2020-11-121-7/+23
| | | | | | | | | | | | | | | Read CPUID leaf 0x8000008 to determine max supported phys address and create BAR region right below it, reserving 1/4 of the supported guest physical address space to the 64bit BARs mappings. PR: 250802 (although the issue from PR is not fixed by the change) Noted and reviewed by: grehan Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D27095 Notes: svn path=/head/; revision=367606
* Return the same value for smbios.chassis.maker as smbios.system.maker (and ↵Olivier Cochard2020-11-081-1/+1
| | | | | | | | | | | | prevents returning a space character). Reviewed by: grehan Approved by: grehan Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D27123 Notes: svn path=/head/; revision=367478
* Fix build post-r367455.Cy Schubert2020-11-071-1/+1
| | | | | | | | MFC after: 2 weeks X-MFC with: r367455 Notes: svn path=/head/; revision=367459
* syslogd: Stop trying to send remote messages through special socketsBryan Drewery2020-11-071-3/+3
| | | | | | | | | | | | | | | | | | | Specifically this was causing the /dev/klog fd and the signal pipe handling fd to get a sendmsg(2) called on them and always returned [ENOTSOCK]. r310350 combined these sockets into the main socket list and properly skipped AF_UNSPEC at the sendmsg(2) call but later in r344739 it was broken such that these special sockets were no longer excluded since the AF_UNSPEC check specifically excluded these special sockets. Only these special sockets have sl_sa = NULL. The sl_family checks should be redundant now but are left in case of future changes so the intent is clearer. MFC after: 2 weeks Notes: svn path=/head/; revision=367455
* Add a periodic script to backup output generated from `gmirror list`.Robert Wing2020-11-073-1/+78
| | | | | | | | | | | | | | | Disabled by default. PR: 86388 Submitted by: Miroslav Lachman <000.fbsd@quip.cz> Reviewed by: allanjude, gbe Approved by: allanjude (mentor) MFC after: 4 weeks Event: July 2020 Bugathon Differential Revision: https://reviews.freebsd.org/D25631 Notes: svn path=/head/; revision=367443
* binmiscctl(8): miscellaneous cleanupKyle Evans2020-11-072-12/+12
| | | | | | | | | | | | - Bad whitespace in Makefile. - Reordered headers, sys/ first. - Annotated fatal/usage __dead2 to help `make analyze` out a little bit. - Spell a couple of sizeof constructs as "nitems" and "howmany" instead. MFC after: 1 week Notes: svn path=/head/; revision=367441
* Add a periodic script to backup output generated from `zfs list`, `zfs get`,Robert Wing2020-11-063-1/+89
| | | | | | | | | | | | | | | | | `zpool list`, and `zpool get` commands. Disabled by default. PR: 86388 Submitted by: Miroslav Lachman <000.fbsd@quip.cz> Reviewed by: allanjude, 0mp Approved by: allanjude (mentor) MFC after: 4 weeks Event: July 2020 Bugathon Differential Revision: https://reviews.freebsd.org/D25638 Notes: svn path=/head/; revision=367436
* fix up docs, if signature checking is enabled, the file MUST exist...John-Mark Gurney2020-11-061-6/+3
| | | | Notes: svn path=/head/; revision=367434
* VirtIO: Make sure the guest knows the TRIM alignment requirementsAllan Jude2020-11-051-1/+1
| | | | | | | | | | | | | | If bhyve is used to emulate 512e access in guest OS, then discard addresses should be properly aligned. Otherwise ioctl DIOCGDELETE fails for 512b requires on devices with 4K sector size. see g_dev_ioctl() in sys/geom/geom_dev.c Submitted by: Vitaliy Gusev <gusev.vitaliy@gmail.com> MFC after: 1 week Sponsored by: vStack.com Differential Revision: https://reviews.freebsd.org/D27075 Notes: svn path=/head/; revision=367393
* pmcstat: Fix a typo in the usage messageMateusz Piotrowski2020-11-041-1/+1
| | | | | | | | | Reviewed by: emaste Approved by: emaste Differential Revision: https://reviews.freebsd.org/D26082 Notes: svn path=/head/; revision=367332
* Fix bad libbxo format strings in jlsAlex Richardson2020-11-041-8/+2
| | | | | | | | | | | | | | | | | The existing format string for the empty case was trying to read varargs values that weren't passed to xo_emit. This appears to work on x86 (since the next argument is probably a pointer an empty string), but for CHERI we can bound variadic arguments and detect a read past the end. While touching these lines also use the libxo 'a' modifier to avoid having to construct the libxo format string using asprintf. Found by: CHERI Reviewed By: allanjude Differential Revision: https://reviews.freebsd.org/D26885 Notes: svn path=/head/; revision=367331
* [ctld] Fix compilation under gcc-6.4Adrian Chadd2020-11-011-2/+1
| | | | | | | | | | | * remove dup yylex symbol; already defined in a header file * uint64_t is always >= 0 Reviewed by: cem, imp Differential Revision: https://reviews.freebsd.org/D27046 Notes: svn path=/head/; revision=367257
* bhyve currently reports each of "smbios.system.maker" andOlivier Cochard2020-10-301-6/+6
| | | | | | | | | | | | | | | | "smbios.system.family" as " ". This presents challenges for both humans and tools when trying to parse output that uses those results. The new values reported are now: smbios.system.family="Virtual Machine" smbios.system.maker="FreeBSD" PR: 250728 Approved by: grehan@FreeBSD.org Sponsored by: Netflix Notes: svn path=/head/; revision=367152
* Drop "All rights reserved" from all my stuff. This includesEdward Tomasz Napierala2020-10-2841-41/+0
| | | | | | | | | | | | Foundation copyrights, approved by emaste@. It does not include files which carry other people's copyrights; if you're one of those people, feel free to make similar change. Reviewed by: emaste, imp, gbe (manpages) Differential Revision: https://reviews.freebsd.org/D26980 Notes: svn path=/head/; revision=367105
* MFV r367082:Cy Schubert2020-10-271-7/+73
| | | | | | | | | Update unbound 1.11.0 --> 1.12.0. MFC after: 1 month. Notes: svn path=/head/; revision=367094
* Replace literal uses of /usr/local in C sources with _PATH_LOCALBASEStefan Eßer2020-10-278-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | Literal references to /usr/local exist in a large number of files in the FreeBSD base system. Many are in contributed software, in configuration files, or in the documentation, but 19 uses have been identified in C source files or headers outside the contrib and sys/contrib directories. This commit makes it possible to set _PATH_LOCALBASE in paths.h to use a different prefix for locally installed software. In order to avoid changes to openssh source files, LOCALBASE is passed to the build via Makefiles under src/secure. While _PATH_LOCALBASE could have been used here, there is precedent in the construction of the path used to a xauth program which depends on the LOCALBASE value passed on the compiler command line to select a non-default directory. This could be changed in a later commit to make the openssh build consistently use _PATH_LOCALBASE. It is considered out-of-scope for this commit. Reviewed by: imp MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D26942 Notes: svn path=/head/; revision=367075
* mergemaster: Clarify installed and updated versionsEd Maste2020-10-251-1/+1
| | | | | | | | | | | | | Describe "diff installed new" as "Displaying differences between installed and new." Previously mergemaster described them in the opposite order. PR: 249214 Reported by: Yuri Victorovich MFC after: 2 weeks Notes: svn path=/head/; revision=367042
* Update man page for -R option added by r376026.Rick Macklem2020-10-241-2/+13
| | | | | | | | | | | This is a content change. Reviewed by: bcr MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D26746 Notes: svn path=/head/; revision=367027
* Add "-R" option to tell mountd to not register with rpcbind.Rick Macklem2020-10-241-141/+184
| | | | | | | | | | | | | | | | | | | | rpcbind is now considered a security risk for some sites. Since an NFSv4 only NFS server does not need rpcbind, it makes sense to have an option that implements this. This patch adds a "-R" option that disables the Mount protocol (not used by NFSv4) and does not register with rpcbind. Changes are required to /etc/rc.d/mountd and /etc/rc.d/nfsd. Those will be in a separate commit. Reviewed by: freqlabs, asomers MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D26746 Notes: svn path=/head/; revision=367026
* Add network QoS support for PCP to iscsi target.Richard Scheffenegger2020-10-246-2/+71
| | | | | | | | | | | | | | Mak the Ethernet PCP codepoint configurable for L2 local traffic, to allow lower latency for iSCSI block IO. This addresses the target side only. Reviewed by: mav, trasz, bcr Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26740 Notes: svn path=/head/; revision=367024
* Add network QoS support for PCP to iscsi initiator.Richard Scheffenegger2020-10-241-0/+19
| | | | | | | | | | | | | | Make the Ethernet PCP codepoint configurable for L2 local traffic, to allow lower latency for iSCSI block IO. This addresses the initiator side only. Reviewed by: mav, trasz, bcr Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26739 Notes: svn path=/head/; revision=367023
* rtsold: Remove an incorrect __unused annotationMark Johnston2020-10-231-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=366972
* Negotiate iSCSIProtocolLevel of 2 (RFC 7144) in initiator.Alexander Motin2020-10-223-0/+9
| | | | | | | | | | | It does not change anything immediately, but allows further support of Command Priority, Status Qualifier and new task management functions. MFC after: 1 month Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=366953
* stablerestart(5): Fix some issues reported by mandocGordon Bergling2020-10-221-15/+14
| | | | | | | - New sentence, new line Notes: svn path=/head/; revision=366949
* pnfsserver(4): Fix some issues reported by mandocGordon Bergling2020-10-221-8/+8
| | | | | | | - new sentence, new line Notes: svn path=/head/; revision=366947
* efibootmgr: Use returned error code for error message, not errnoRyan Moeller2020-10-191-4/+9
| | | | | | | | | | | efivar_unix_path_to_device_path returns the error code, it does not set errno. Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D26852 Notes: svn path=/head/; revision=366830