aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* automount(8): fix absolute path when creating a mountpointRobert Wing2021-02-171-1/+1
| | | | | | | | | | | | | | | When executing automount(8), it will attempt to create the directory where an autofs filesystem is to be mounted. Explicity set the root path for this directory to "/". This fixes the issue where the directory being created was being treated as a relative path instead of an absolute path (as expected). PR: 224601 Reported by: kusumi.tomohiro@gmail.com Reviewed by: trasz MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D27832
* fmtree: add a deprecation notice to the manpageKyle Evans2021-02-131-2/+9
| | | | | | | | | | | | | Note that this mtree(8) is actually installed as fmtree(8), while mtree(8) is located in ^/contrib/mtree -- thus, the reference to mtree(8) makes a lot more sense in the context in which folks would actually notice it. Shout-out to Ravi for pointing out that this may not be an obvious fact. MFC after: 3 days Reviewed by: bdrewery, brooks, cy, emaste Relnotes: yes Differential Revision: https://reviews.freebsd.org/D28573
* inetd: fix unix sockaddr's length assignmentKyle Evans2021-02-121-5/+4
| | | | | | | | | | | | unsz was always exactly '1' here due to an unfortunate mispositioning of closing parenthesis. While it's generally irrelevant because bind(2) is passed the (accurate) sep->se_ctrladdr_size instead, it's not very helpful for anything locally that wants to use it rather than assuming that sep->se_ctrladdr_size perfectly fits the end of sun_path. Just drop unsz entirely and use the result of SUN_LEN() for it. MFC-after: 3 days
* pkg(7): address minor nits (mostly clang-analyze complaints)Kyle Evans2021-02-122-5/+3
| | | | | | | | | | | | | | | | - One (1) spurious whitespace. - One (1) occurrence of "random(3) bad, arc4random(3)" good. - Three (3) writes that will never be seen. The latter two points are complaints from clang-analyze. Switching to arc4random(3) is decidedly a good idea because we weren't doing any kind of PRNG seeding anyways. The discarded assignments are arguably good for future-proofing, but it's better to improve the S/N ratio from clang-analyze. Reviewed by: bapt, manu MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D28525
* pkg(7): add an -r reponame option for bootstrap and addKyle Evans2021-02-124-19/+91
| | | | | | | | | | | | | | | | | This is limited to bootstrap/add because some real pkg(8) commands have -r flags with an incompatible meaning/usage, e.g., pkg-audit. pkg(7) will still commence the search as it has, but it will ignore any repo objects without the given name so that overrides and whatnot still work as expected. The use of it for add is noted in the manpage; notably, that the signature config for that repository will be used over global config if it's specified. i.e., pkg(7) should assume that the given pkg did come from that repository and treat it appropriately. Reviewed by: bapt, manu MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D28524
* efibootmgr: Check for efi supported after parsing argsWarner Losh2021-02-111-2/+3
| | | | | Move the check for efi variables being supported to after parsing the args. This allows '-h' to produce both as a normal user as well as on all systems.
* usr.sbin/makefs: fix use-after-free in read_mtree_keywords()Alex Richardson2021-02-101-0/+2
| | | | | | | | | | The st variable is used as a shortcut for &node->inode->st, but in one branch just before the exit we update node->inode without changing st. Reported by: AddressSanitizer Reviewed By: emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D28570
* MFV d60fa10fd872db7e3d8cb1e161cfdae026c43b14:Cy Schubert2021-02-101-3/+3
| | | | | | | | | Update unbound 1.13.0 --> 1.13.1. Includes numerous bugfixes documented at: https://www.nlnetlabs.nl/projects/unbound/download/#unbound-1-13-1 MFC after: 1 month
* binmiscctl: Avoid segfault with "binmiscctl add" and no extra paramsMark Johnston2021-02-081-0/+2
| | | | MFC after: 1 week
* Print DeviceHandle and PhysicalId in hex.Alexander Motin2021-02-051-2/+2
| | | | | | | The first is actually a bitfield. The second is printed in hex by dmidecode, so uniformidy should be good. MFC after: 1 week
* Improve ACPI_NFIT_CONTROL_REGION formatting.Alexander Motin2021-02-051-7/+7
| | | | MFC after: 1 week
* cpucontrol(8): Fix display.Konstantin Belousov2021-02-051-1/+1
| | | | | Sponsored by: The FreeBSD Foundation MFC after: 3 days
* usr.bin/jail: Fix tests when using kyua -v parallelism=NAlex Richardson2021-02-041-0/+2
| | | | | | | | These tests create jails with the same name, so they cannot be run in parallel. Reviewed By: lwhsu Differential Revision: https://reviews.freebsd.org/D28482
* usr.sbin/praudit: Fix tests after 5619d49e07Alex Richardson2021-02-037-7/+7
| | | | | | | | Commit 5619d49e07 made the getgrgid() call inside bsm work as intended so we now print "wheel" instead of a numeric 0 in the rgid field. Reviewed By: markj Differential Revision: https://reviews.freebsd.org/D28462
* config: Fix typo in comment.John Baldwin2021-02-011-1/+1
|
* Now that the portsnap buildbox is generating the raw bits for INDEX-14,Xin LI2021-01-291-1/+2
| | | | | | add it to the set of INDEX files built by portsnap. Switch to INDEX-14 for main.
* usr.sbin/pkg: Don't re-define roundup2Alex Richardson2021-01-281-2/+0
| | | | | | | | The file already includes sys/param.h and should use that definition. I found this while testing D28332. Reviewed By: bapt Differential Revision: https://reviews.freebsd.org/D28331
* bsdinstall: riscv-specific tweaksMitchell Horne2021-01-275-5/+13
| | | | | | | | | | | | Make the installer more useful, by allowing it to create a bootable installation. Also, enable the menu option for ZFS-on-root. Like arm64, RISC-V boots by UEFI only, so arm64's partedit implementation is renamed and shared among the two platforms. Reviewed by: gjb MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D28180
* bsdinstall: create /efi/boot directory in ESPMitchell Horne2021-01-271-4/+7
| | | | | | | | | | If the installer is creating a new ESP, then this directory will not exist and the subsequent cp will fail silently. This is usually of no consequence if /efi/freebsd/loader.efi is set up correctly. Reviewed by: imp MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D28176
* ndis(4): remove as previous announcedBrooks Davis2021-01-2522-3942/+2
| | | | | | | | | | | | | | nids(4) was a clever idea in the early 2000's when the market was flooded with 10/100 NICs with Windows-only drivers, but that hasn't been the case for ages and the driver has had no meaningful maintenance in ages. It only supports Windows-XP era drivers. Also remove: - ndis support from wpa_supplicant - ndiscvt(8) Reviewed By: emaste, bcr (manpages) Differential Revision: https://reviews.freebsd.org/D27609
* Decode NFIT Platform Capabilities.Alexander Motin2021-01-251-1/+17
| | | | MFC after: 1 week
* cxgbetool: correct utilties typoEd Maste2021-01-241-1/+1
|
* build: remove LIBPTHREAD/LIBTHR build optionsKyle Evans2021-01-222-4/+0
| | | | | | | | | | | | | | | | | | WITHOUT_LIBTHR has been broken for a little over five years now, since the xz 5.2.0 update introduced a hard liblzma dependency on libthr, and building a useful system without threading support is becoming increasingly more difficult. Additionally, in the five plus years that it's been broken more reverse dependencies have cropped up in libzstd, libsqlite3, and libcrypto (among others) that make it more and more difficult to reconcile the effort needed to fix these options. Remove the broken options. PR: 252760 Reviewed by: brooks, emaste, kib Differential Revision: https://reviews.freebsd.org/D28263
* Fix manpage markup in 2c8bb126de56ce49637ad752e78957d9ebafba02Allan Jude2021-01-211-1/+3
|
* bhyve: Add missing man page section on the nodelete block-device-optionAllan Jude2021-01-211-0/+2
| | | | | Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D28272
* Minor simplification of MK_PMC case in usr.sbin/MakefileAlex Richardson2021-01-201-2/+1
| | | | | | | MK_PMC is already guarded by MK_CXX in src.opts.mk, so we can actually merge it with the following SUBDIR statement after c1a3d7f20696. Suggested By: jrtc27
* Remove remaining uses of ${COMPILER_FEATURES:Mc++11}Alex Richardson2021-01-191-3/+1
| | | | | | | | | | All supported compilers have C++11 support so these checks can be replaced with MK_CXX guards. See also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252759 PR: 252759 Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D28234
* Support COM3 and COM4 serial ports.Peter Grehan2021-01-193-5/+11
| | | | | | Submitted by: Jan Poctavek <janci@binaryparadise.com>, otis Reviewed by: grehan (bhyve), imp, 0mp (manpages) Differential Revision: https://reviews.freebsd.org/D28207
* fstyp(8): fix exfat detectionConrad Meyer2021-01-171-10/+8
| | | | | | | In the presence of high-level errors (spec violations, bad boot blocks checksum), report non-detection instead of detection. PR: 252787 (related, but does not fully address)
* service.8: Use entire section of literally displayed textDaniel Ebdrup Jensen2021-01-161-3/+5
| | | | | | | | | | .Dl indents literal display text for one line, but .Bd can do it for a whole subsection. Pointy hat to: debdrup Reported by: 0mp Reviewed by: 0mp Differential Revision: https://reviews.freebsd.org/D28198
* service.8: Provide example for adding completions to (t)cshDaniel Ebdrup Jensen2021-01-161-1/+8
| | | | | | | | | | | | | | service(8) has an example for bash completion, however bash is third party and in /usr/share/examples/csh/dot.cshrc is a working example for csh. Since I use (t)csh, I've tested it, and it works for me. PR: 179497 Submitted by: ohauer@ Reviewed by: kp (tentatively) Differential Revision: https://reviews.freebsd.org/D28197
* Fix a typoMateusz Piotrowski2021-01-141-2/+3
| | | | | | "and" is not a flag. MFC after: 3 days
* [wpa] Add support for hostapd/wpa_supplicant when WITHOUT_CRYPT=YESAdrian Chadd2021-01-133-3/+34
| | | | | | | | | | | | | | is enabled. This builds wpa_supplicant / hostpad using internal encryption routines rather than using libcrypt. This has been supported in wpa for years now, however since we use local makefiles for this, we bitrotted dependencies and configuration options. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D27958
* bsdconfig: correct utilties typoEd Maste2021-01-121-1/+1
|
* Bump amount of queued packets in for unresolved ARP/NDP entries to 16.Alexander V. Chernikov2021-01-111-18/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently default behaviour is to keep only 1 packet per unresolved entry. Ability to queue more than one packet was added 10 years ago, in r215207, though the default value was kep intact. Things have changed since that time. Systems tend to initiate multiple connections at once for a variety of reasons. For example, recent kern/252278 bug report describe happy-eyeball DNS behaviour sending multiple requests to the DNS server. The primary driver for upper value for the queue length determination is memory consumption. Remote actors should not be able to easily exhaust local memory by sending packets to unresolved arp/ND entries. For now, bump value to 16 packets, to match Darwin implementation. The proper approach would be to switch the limit to calculate memory consumption instead of packet count and limit based on memory. We should MFC this with a variation of D22447. Reviewers: #manpages, #network, bz, emaste Reviewed By: emaste, gbe(doc), jilles(doc) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D28068
* certctl: factor out certname resolutionKyle Evans2021-01-091-2/+17
| | | | | | | | create_blacklisted() will identify a cert whether it's provided a path to a cert or the hash.serial format that is shown by `certctl list`. Factor this logic out into a resolve_certname() so that it may be reused elsewhere.
* certctl: replace hardcoded uses of /usr/localKyle Evans2021-01-091-2/+3
| | | | | | | Use the new user.localbase sysctl here as well, to reduce the number of hardcoded localbase by one (1). MFC after: 3 days (note: just use a literal /usr/local default)
* pccard: Remove bt3c(4) driverWarner Losh2021-01-085-333/+0
| | | | | | | | pccard is being removed, so remove bt3c driver since it only has PC Card attachment. Also remove bt3cfw(8) since it's the firmware for this driver. Relnotes: Yes
* Fix a typoMateusz Piotrowski2021-01-071-2/+2
| | | | MFC after: 3 days
* Rename NO_WERROR -> MK_WERROR=noAlex Richardson2021-01-071-1/+1
| | | | | | | | As suggested in D27598. This also supports MK_WERROR.clang=no and MK_WERROR.gcc=no to support the existing NO_WERROR.<compiler> uses. Reviewed By: brooks Differential Revision: https://reviews.freebsd.org/D27601
* Fix -Wpointer-sign warnings in makefs and mkimgAlex Richardson2021-01-076-93/+61
| | | | | Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D27175
* gstat(8): Bump .DdFernando ApesteguĂ­a2021-01-061-1/+1
| | | | | | | Forgotten in cfaa2958dc44c20f56a19fe490ee4d7c02f50bef PR: 251313 Differential Revision: https://reviews.freebsd.org/D27815
* gstat(8): Document interactive keyboard commandsFernando ApesteguĂ­a2021-01-061-0/+22
| | | | | | | | | gstat(8) allows for <, >, c, f, F and q while in interactive mode. PR: 251313 Submitted by: bojan_petrovic@fastmail.fm Approved by: manpages (0mp@) Differential Revision: https://reviews.freebsd.org/D27815
* pkg(7): rework the arguments handlingBaptiste Daroussin2021-01-062-40/+102
| | | | | | | | | | | | | | Rework the arguments handling around using getopt_long: * add long option support * add -4 and -6 support to enforce ipv4 or ipv6 While here fix a regression which occured between FreeBSD 12.1 and FreeBSD 12.2 where pkg bootstrap -y stopped working PR: 252270 MFC after: 2 weeks Submitted by: evilham <contact@evilham.com> Differential Revision: https://reviews.freebsd.org/D27860
* Fix devinfo typo.Alexander Motin2021-01-051-1/+1
| | | | | | Submitted by: Nick Wolff <darkfiberiru@gmail.com> MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D27981
* Add the missing pmcstat log entriesAndrew Turner2021-01-051-0/+17
| | | | Sponsored by: Innovate UK
* pkgbase: Put ppp in it's own packageEmmanuel Vadot2021-01-042-0/+2
| | | | | | | | ppp uses libalias modules which now belong in the natd package. Avoid bringing a dependancy on natd for the utilities package. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D27711
* bhyve: fix build without casper/capsicum supportMariusz Zaborski2021-01-031-1/+1
| | | | | | Fix typo introduced in 966026246e62769f3bcd8247a47fe0f4f0433aba. Pointed out by: jbeich
* bhyve: fix build without casper/capsicum supportMariusz Zaborski2021-01-031-1/+10
| | | | PR: 252353
* bootparamd: Add missing __unused mark.Yoshihiro Takahashi2021-01-021-2/+2
| | | | | | | | | e03764d931d820185a019334259b18df2e3f6b6c did not catch all unused variables. Submitted by: otis MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D27894