aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* crunchgen: use realpath(3) instead of ``pwd -P''HEADmainAlexey Dokuchaev73 min.1-17/+3
| | | | | | | | | | | | | r366466 (9c7bd4f198e1) fixed a subtle bug by stripping the trailing '\n' appended to the output of popen("cd %s && pwd -P", p->srcdir). Replace this cumbersome implementation with a single realpath(3) call which avoids spawning a shell, reading from the stream with fgets(3), and final strdup(3). Reviewed by: arichardson, kevans Approved by: imp Differential Revision: https://reviews.freebsd.org/D26734
* ctld: Always declare MaxRecvDataSegmentLength.John Baldwin13 hours1-4/+5
| | | | | | | | | | | | This key is Declarative and should always be sent even if the initiator did not send it's own limit. This is similar to the fix in fc79cf4fea72 but for the target side. However, unlike that fix, failure to send the key simply results in reduced performance. PR: 259439 Reviewed by: mav, emaste Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D32651
* /etc/periodic/weekly/310.locate must read /etc/locate.rcWolfram Schneider20 hours1-1/+3
| | | | | | | | PR: 160225 Reported by: Hiroaki Abe Reviewed by: se Approved by: se Differential Revision: https://reviews.freebsd.org/D32646
* iscsid: set max_recv_data_segment_length to what we advertiseEd Maste38 hours1-3/+3
| | | | | | | | | | | | | | | | | | | | Previously we updated the conection's conn_max_recv_data_segment_length only when we received a response containing MaxRecvDataSegmentLength from the target. If the target did not send MaxRecvDataSegmentLength then we left conn_max_recv_data_segment_length at the default (i.e., 8192). A target could then send more data than that defult (up to our advertised maximum), and we would drop the connection. RFC 7143 specifies that MaxRecvDataSegmentLength is Declarative, not negotiated. Just set conn_max_recv_data_segment_length to our advertised value in login_negotiate(). PR: 259355 Reviewed by: mav MFC after: 1 week Fixes: a15fbc904a4d ("Alike to r312190 decouple iSCSI...") Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D32605
* bsnmpd: Remove "All Rights Reserved" from FreeBSD Foundation copyrightsEd Maste4 days6-7/+1
| | | | Sponsored by: The FreeBSD Foundation
* Only change the fadt revision in acpidump on i386Andrew Turner6 days1-0/+6
| | | | | | | | | | | | | There is a workaround in acpidump for an old IBM laptop. This is being hit on a modern arm64 system causing acpidump to use the wrong field when reading a later address. As the laptop has a 32-bit CPU the only FreeBSD support for it is i386. As such limit the workaround to that architecture. Reviewed by: emaste, jkim, jhb (all earlier version) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D32573
* bhyve: Bump the SMBIOS firmware version to 14.0 for 14-CURRENTRebecca Cran6 days1-2/+2
| | | | | | | | Bump the firmware version to 14.0 and set the firmware release date to today. Reviewed by: jhb, bz, imp Differential Revision: https://reviews.freebsd.org/D32534
* bhyve: Fix the WITH_BHYVE_SNAPSHOT buildMark Johnston9 days1-1/+0
| | | | | | | | | | | Note, this breaks compatibility with snapshots generated by older builds of bhyve(8). Fixes: 7fa233534736 ("bhyve: Map the MSI-X table unconditionally for passthrough") Reported by: Greg V <greg@unrelenting.technology> Reviewed by: grehan, bz Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D32523
* mixer.8: Document -hMateusz Piotrowski10 days1-1/+5
|
* mixer(8): Add -h option to show usage.Hans Petter Selasky11 days1-2/+4
| | | | | | Differential Revision: https://reviews.freebsd.org/D32508 Submitted by: christos@ Sponsored by: NVIDIA Networking
* ntp: Revert "Disable stack gap for ntpd during build."Cy Schubert11 days1-3/+0
| | | | | | | This reverts commit af949c590bd8a00a5973b5875d7e0fa6832ea64a because 889b56c8cd84c9a9f2d9e3b019c154d6f14d9021 fixes the underlying problem. MFC after: 1 month
* mixer(8): Print usage to standard error.Hans Petter Selasky12 days1-3/+2
| | | | | | Differential Revision: https://reviews.freebsd.org/D32507 Submitted by: christos@ Sponsored by: NVIDIA Networking
* mixer(8): Fix mixer status line for /dev/dspX.vpY mixer devices.Hans Petter Selasky12 days1-3/+11
| | | | | | | | | | In some cases when passing /dev/dspX.vpY as mixer devices, m->ci.longname and m->ci.hw_info will be empty. Don't print any brackets and parentheses in this case. Differential Revision: https://reviews.freebsd.org/D32500 Submitted by: christos@ Sponsored by: NVIDIA Networking
* bhyve: ignore low bits of CFGADRCorvin Köhne12 days1-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Bhyve could emulate wrong PCI registers. In the best case, the guest reads wrong registers and the device driver would report some errors. In the worst case, the guest writes to wrong PCI registers and could brick hardware when using PCI passthrough. According to Intels specification, low bits of CFGADR should be ignored. Some OS like linux may rely on it. Otherwise, bhyve could emulate a wrong PCI register. E.g. If linux would like to read 2 bytes from offset 0x02, following would happen. linux: outl 0x80000002 at CFGADR inw at CFGDAT + 2 bhyve: cfgoff = 0x80000002 & 0xFF = 0x02 coff = cfgoff + (port - CFGDAT) = 0x02 + 0x02 = 0x04 Bhyve would emulate the register at offset 0x04 not 0x02. Reviewed By: #bhyve, grehan Differential Revision: https://reviews.freebsd.org/D31819 Sponsored by: Beckhoff Automation GmbH & Co. KG
* bhyve: Update usage and synopsis for the -k flagMateusz Piotrowski2021-10-132-4/+7
| | | | | | | | | Let's make it clear to users that -k is for configuration files. Also, point to bhyve_config(5) in the paragraph describing the flag. Reviewed by: jhb MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D32467
* bhyve.8: Fix markup of the -G flagMateusz Piotrowski2021-10-121-4/+5
|
* bhyve: Map the MSI-X table unconditionally for passthroughMark Johnston2021-10-092-114/+76
| | | | | | | | | | | | | | | | | | It is possible for the PBA to reside in the same page as the MSI-X table. And, while devices are not supposed to do this, at least some Intel wifi devices place registers in a page shared with the MSI-X table. To handle the first case we currently map the PBA page using /dev/mem, and the second case is not handled. Kill two birds with one stone: map the MSI-X table BAR using the PCIOCBARMMAP ioctl instead of /dev/mem, and map the entire table so that accesses beyond the bounds of the table can be emulated. Regions of the BAR not containing the table are left unmapped. Reviewed by: bz, grehan, jhb MFC after: 3 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D32359
* bsdconfig: CommentsDevin Teske2021-10-081-7/+7
| | | | | | | | | | | | | My current style is to copy C for "/* NOTREACHED */" instead of spelling out "Not reached". Make this one nominal change in this one file and the others later. While here, word-smith "Preload" into "Pre-load" as I believe that to be more grammatically correct in this instance. Also while here, fix a comment capitalization error. Lastly, bump copyright for above changes.
* prometheus_sysctl_exporter(8): filter output using a regexRobert Wing2021-10-082-26/+80
| | | | | | | | | | | | | | | Add two options, -i and -e, for filtering prometheus metrics. Each option takes a regular expression as an argument. The provided regex will be tested against the prometheus metric name. The -i option includes metrics matching the given regex. The -e option excludes metrics matching the given regex. Sponsored by: Modirum MDPay Sponsored by: Klara Inc. Reviewed by: 0mp, debdrup Differential Revision: https://reviews.freebsd.org/D32269
* i2c(8): fix option handlingMartin Birgmeier2021-10-071-2/+2
| | | | | | | Recognize the '-o' option when processing command line arguments. Fixes: 9c10d00bf8cd ("i2c(8): Add interpreted mode for batch/scripted...") PR: 258572
* ntp.conf.5: Fix typosElyes HAOUAS2021-10-061-8/+8
| | | | | | | | | | | | | "certian" --> "certain" "compatability" --> "compatibility" "noticable" --> "noticeable" "limite" --> "limit" "acutal" --> "actual" "ba" --> "be" MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/550 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
* RPCBIND: skip ipv6 link local when request is not from link local addressDavid Bright2021-10-042-5/+41
| | | | | | | | | | | | | | | | | | | | | | | RPCINFO on macOS behaves different compared to other linux clients and doesn't provide request address in rpcb structure of the RPCBPROC_GETADDRLIST call which doesn't seem to be forbidden. In this case RPCBIND uses RPC call's source address and picks a closest corresponding local address. If there are no addresses in the same subnet as the source address, return of RPCBIND may vary depending on the order of addresses returned in getifaddrs. If a link local precedes global address it may be returned even if the request comes from neither a link local nor from link local in a different scope, which will prevent services like nfs from working in tpc6 scenario on macOS clients. Issue can be seen only on FreeBSD rpcbind port due to changes in workflow of addrmerge call. Submitted by: Dmitry Ovsyannikov (Dmitry.Ovsyannikov@dell.com) Reviewers: dab Differential Revision: https://reviews.freebsd.org/D31491 Sponsored by: Dell EMC MFC to: stable/12, stable/13 MFC after: 1 week
* lastcomm/sa: Remove sparc64 tests, they aren't needed.Warner Losh2021-10-049-79/+1
| | | | | | These tests will run only on a sparc64 system, and so never run anymore. Sponsored by: Netflix
* bsdinstall: reduce overlinkingBaptiste Daroussin2021-10-042-2/+2
| | | | | both distextract and distfetch does not directly use ncurses, or figpart, drop their direct link to those libs
* ncurses: chase dependency changes in the source treeBaptiste Daroussin2021-10-045-5/+5
| | | | Differential Revision: https://reviews.freebsd.org/D32098
* freebsd-update(8): Add -j flag to support jailsFaraz Vahedi2021-10-012-2/+29
| | | | | | | | | | | Make freebsd-update(8) support jails by adding the -j flag which takes a jail jid or name as an argument. This takes advantage of the recently added -j support to freebsd-version(8) in order to get the version of the installed userland. Reviewed by: dteske, kevans MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D25711
* bluetooth: remove hcserialdWarner Losh2021-09-307-389/+2
| | | | | | Without ng_h4 gone, there's no need for hcseriald. Sponsored by: Netflix
* bluetooth: Fix build after ng_h4 removalJung-uk Kim2021-09-301-1/+0
| | | | It was caused by 79a100e28e3c814773bb4c1826cfa25fbe31140e.
* syslogd: Fix bug that caused -N to drop SecureMode if specified after -sjfranklin132021-09-291-1/+2
| | | | | MFC after: 2 weeks Pull Request: https://github.com/freebsd/freebsd-src/pull/541
* syslogd: undo regression after r326573Eugene Grosbein2021-09-271-24/+17
| | | | | | | | | | | | | | | | | Restore ability for our syslogd to collect pre-RFC3164 formatted messages from remote hosts that was broken with r326573. For example, the line from Cisco SCE8000 splitted for readability: 1130: 03:37:57: %USER-6-PORT_OPERSTATUS_CHANGE_TRAP: CPU#000 trap:link down EntityAdminState: 4 EntityAlarmStatus: 32 Such line was collected and stored before mentioned change but silently dropped after that. Now syslogd saves it again. Note that parsing of RFC5424 format not changed. MFC after: 1 month
* bhyve: Add an empty case for event types in mevent_kq_fflags().John Baldwin2021-09-251-0/+5
| | | | | | This fixes a -Wswitch error raised by GCC 9. Differential Revision: https://reviews.freebsd.org/D31938
* bhyve_config.5: Document gdb.address.John Baldwin2021-09-251-1/+3
|
* bhyve: Update the -G description in the SYNPOSIS.John Baldwin2021-09-251-1/+7
| | | | It was missing both the 'w' flag and 'bind_address'.
* mixer(3) and mixer(8): Update manual pages.Hans Petter Selasky2021-09-221-3/+3
| | | | | | | | | - Use correct e-mail address. - Set FreeBSD 14.0 as introduction for the updated mixer(8) utility. Submitted by: christos@ Differential Revision: https://reviews.freebsd.org/D31636 Sponsored by: NVIDIA Networking
* mixer(8): Compile fix for when the "char" type is unsigned.Hans Petter Selasky2021-09-221-1/+1
| | | | | Differential Revision: https://reviews.freebsd.org/D31636 Sponsored by: NVIDIA Networking
* Implement and use new mixer(3) library for FreeBSD.Hans Petter Selasky2021-09-225-544/+622
| | | | | | | | | Wiki article: https://wiki.freebsd.org/SummerOfCode2021Projects/SoundMixerImprovements This project was part of Google Summer of Code 2021. Submitted by: christos@ Differential Revision: https://reviews.freebsd.org/D31636 Sponsored by: NVIDIA Networking
* syslog.conf.5: Fix the message priority orderFelix Guest2021-09-211-1/+1
| | | | | PR: 219942 MFC after: 1 week
* Update leap-seconds to leap-seconds.3676924800.Xin LI2021-09-201-4/+4
| | | | | Obtained from: ftp://ftp.nist.gov/pub/time/leap-seconds.3676924800. MFC after: 3 days
* fstyp: bump WARNS to default and work around warningsPiotr Pawel Stefaniak2021-09-195-4/+9
| | | | Differential Revision: https://reviews.freebsd.org/D31588
* bhyve: Support setting the disk serial number for VirtIO block devices.John Baldwin2021-09-172-11/+28
| | | | | | Reviewed by: allanjude Obtained from: illumos Differential Revision: https://reviews.freebsd.org/D31983
* efitable: Don't pass NULL as a format string to xo_err().John Baldwin2021-09-151-2/+2
| | | | | | | This fixes a -Wformat error reported by GCC 9. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D31939
* ctld: Disable TCP DDP for connection sockets.John Baldwin2021-09-131-0/+4
| | | | | | | cxgbei is not able to offload PDU processing for a socket using TCP DDP offload. Sponsored by: Chelsio Communications
* iscsid: Disable TCP DDP for connection sockets.John Baldwin2021-09-131-5/+9
| | | | | | | cxgbei is not able to offload PDU processing for a socket using TCP DDP offload. Sponsored by: Chelsio Communications
* bhyve: Fix pci device node key in bhyve_config.5Ka Ho Ng2021-09-121-1/+1
| | | | | | | PCI device node key in the manual page is wrong. It should be pci.bus.slot.function. MFC after: 3 days
* pkg: fix regression that breaks bootstrap from not a current directory.Gleb Smirnoff2021-09-101-1/+5
| | | | | Fixes: 40b9f924b18 Reviewed by: kevans
* pkgbase: Move back mlxcontrol in the default packageEmmanuel Vadot2021-09-091-2/+0
| | | | | | | mlxcontrol(8) is a tool for mlx(4) raid card and isn't related to Mellanox card. Reported by: jhb
* pkgbase: Remove libefivar package and add a efi-tools oneEmmanuel Vadot2021-09-074-0/+8
| | | | | | Put all the efi related tools into FreeBSD-efi-tools. Differential Revision: https://reviews.freebsd.org/D31803
* pkgbase: Create a FreeBSD-kerberos packageEmmanuel Vadot2021-09-071-0/+2
| | | | | | | This allows users to install or not kerberos related utilities and libs. Differential Revision: https://reviews.freebsd.org/D31801
* pkgbase: Create a mlx-tools packageEmmanuel Vadot2021-09-072-0/+4
| | | | | | | | mlx* are only useful for users who have a Mellanox card. Create a package for it so users that don't have this card can avoid having this program. Differential Revision: https://reviews.freebsd.org/D31795
* pkgbase: Create a cxgbe-tools packageEmmanuel Vadot2021-09-071-0/+1
| | | | | | | | cxgbetool is only useful for users who have a Chelsio card. Create a package for it so users that don't have this card can avoid having this program. Differential Revision: https://reviews.freebsd.org/D31793