summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* MFC r305269: cron: use existing maximum username constant MAXLOGNAMEemaste2016-09-052-2/+2
| | | | | | | | | | Previously cron had its own maximum username length limit, which was smaller than the system's MAXLOGNAME. This could lead to crontab -u updating the wrong user's crontab (if the name was truncated, and matched another user). PR: 212305 Reported by: Andrii Kuzik
* MFC r305023:dim2016-09-022-3/+3
| | | | | Avoid undefined behavior when calling va_start() in bnep_send_control(), by making the 'type' parameter a plain unsigned.
* MFC r303877:skreuzer2016-08-271-2/+3
| | | | | | Write kern.randompid to /etc/sysctl.conf Approved by: allanjude
* MFC r304721:cy2016-08-271-1/+1
| | | | | | | Fixup man page formatting. Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu> Discussed with: bjk@
* MFH (r304142): ensure stripe size is non-zero multiple of 4096des2016-08-191-6/+20
| | | | PR: 211361
* MFC r302504, r302666, r302668, r302932, r302933:mav2016-08-183-1/+2378
| | | | | | | | | | Add emulation for Intel e1000 (e82545) network adapter. The code was successfully tested with FreeBSD, Linux, Solaris and Windows guests. This interface is predictably slower (about 2x) then virtio-net, but it is very helpful for guests not supporting virtio-net by default. Thanks to Jeremiah Lott and Peter Grehan for doing original heavy lifting.
* MFC r302460: Add emulation for multiple (up to 16) MSI vectors for AHCI.mav2016-08-182-41/+99
| | | | | | | It was useless before, but may improve performance now if multiple devices are configured and guest supports this feature. Sponsored by: iXsystems, Inc.
* MFC r302459: Allow AHCI controller to support up to 32 arbitrary devices.mav2016-08-182-58/+89
| | | | | | | | While old syntax is still supported, new syntax looks like this: -s 3,ahci,hd:/dev/zvol/XXX,hd:/dev/zvol/YYY,cd:/storage/ZZZ.iso Sponsored by: iXsystems, Inc.
* MFC r303788vangyzen2016-08-081-1/+4
| | | | | | | | | | | | | | | | | | | | | Fix some logic in PCIe HotPlug; display EI status The interpretation of the Electromechanical Interlock Status was inverted, so we disengaged the EI if a card was inserted. Fix it to engage the EI if a card is inserted. When displaying the slot capabilites/status with pciconf: - We inverted the sense of the Power Controller Control bit, saying the power was off when it was really on (according to this bit). Fix that. - Display the status of the Electromechanical Interlock: EI(engaged) EI(disengaged) Approved by: re (gjb) Sponsored by: Dell Inc.
* MFC r303631:dim2016-08-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | Fix non-functional bsdinstall services dialog. The most recent version of bsdinstall does not seem to respect any of the checkboxes in the "Choose the services you would like to be started at boot" dialog. None of the chosen services end up in the rc.conf file that is installed onto the target system. This is caused by the bsdinstall/scripts/hardening script, which implements the new hardening options dialog. The script starts by overwriting the previously written rc.conf.services file: echo -n > $BSDINSTALL_TMPETC/rc.conf.services which is obviously incorrect. It should clear out rc.conf.hardening instead. Approved by: re (kib) Reviewed by: allanjude PR: 211506 Differential Revision: https://reviews.freebsd.org/D7387
* MFC r303410,r303419:bdrewery2016-08-022-5/+2
| | | | | | | | | r303410: Reconnect pmcstudy, lost in r291021 r303419: Fix non-amd64 build from r292043 after reconnecting in r303410. Approved by: re (kib)
* MFC r302897:robak2016-07-284-1/+89
| | | | | | | | | | | | | | | Add new System Hardening menu and options to bsdinstall. This patch add new 'hardening' file responsible for new bsdinstall 'System Hardening' menu allowing users to set some sane and carefully picked system security options (like random process id's, hiding other users/groups processes and others). All options are OFF by default in this patch due to POLA principle with intention to turn change some of them to ON by default in future. Reviewed by: adrian, allanjude, bdrewery, nwhitehorn Approved by: re@, adrian, allanjude
* MFC 303109: Update crashinfo to work with newer gdb from ports.jhb2016-07-271-8/+27
| | | | | | | | | | | If gdb from ports is installed, use it instead of the base system gdb to extract variables from a kernel. Note that base gdb and ports gdb do not support the same options for invoking a single command in batch mode, so a wrapper shell function is used. In addition, prefer kgdb from ports when generating a backtrace if present. PR: 193335 Approved by: re (gjb)
* MFC: r302790, r302795allanjude2016-07-261-0/+38
| | | | | | | | Add new menu to bsdinstall to allow user to set date and time after selecting timezone. The 'skip' button is the default selection. Submitted by: des Approved by: re (gjb)
* MFC: r302940allanjude2016-07-261-1/+2
| | | | | | | | Fix error in bsdinstall triggered when doing a GELI encrypted install to an MBR formatted disk Approved by: re (gjb) Sponsored by: ScaleEngine Inc.
* MFC: r302941allanjude2016-07-261-0/+9
| | | | | | | | At the start of the installation process, all ZFS pools are exported and all GELI instances are detached, to allow a restarted install to proceed. PR: 210814 Approved by: re (gjb)
* MFC r303091asomers2016-07-251-0/+1
| | | | | | | Fix camdd for host-aware and host-managed SMR disks. This should've gone in as part of r300207 Approved by: re (gjb)
* MFC r303199:np2016-07-251-1/+1
| | | | | | | | | | | | ctld(8): Fix MaxBurstLength negotiation. The target must reply with the selected value of MaxBurstSize instead of just echoing back the initiator's offered value. Reviewed by: mav@ Approved by: re@ (gjb@) Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D7278
* MFC r303132:trasz2016-07-242-2/+96
| | | | | | | | | Add documentation for "ctld -u", the UCL configuration file format. Submitted by: jceel@ Approved by: re (kib) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D7222
* iDo not try to delete the home of the user if is is not a directory for examplebapt2016-07-242-0/+12
| | | | | | | | | "/dev/null" PR: 211195 Submitted by: rday <ryan@ryanday.net> Reported by: eniorm <eniorm@gmail.com> Approved by: re (kib)
* MFC r302957: Fix NCQ TRIM emulation.mav2016-07-211-2/+10
| | | | | | When this code was written, there was no guests using it to test. Approved by: re (kib)
* MFC r302856:jamie2016-07-173-6/+23
| | | | | | | | Fix up the order in which jail creation processes are run, to preserve the config file's order in the non-parallel-start case. PR: 209112 Approved by: re (gjb)
* MFC r302674:bdrewery2016-07-152-2/+2
| | | | | | META_MODE: Don't require filemon(4) for mergemaster(8)/etcupdate(8) Approved by: re (gjb)
* MFC r302503:trasz2016-07-121-1/+1
| | | | | | | Fix ctld(8) to not exit when reloading configuration with invalid initiator-portal clause. Approved by: re (gjb)
* MFC r302534:delphij2016-07-111-1/+1
| | | | | | | | | | Allow - in distribution names. This is needed for freebsd-update to work with 11.0+, where the debugging symbols use a new naming scheme for release distribution files. Errata candidate. Approved by: re (gjb)
* Add new unmount(2) flag, MNT_NONBUSY, to check whether there aretrasz2016-07-071-1/+1
| | | | | | | | | | | any open vnodes before proceeding. Make autounmound(8) use this flag. Without it, even an unsuccessfull unmount causes filesystem flush, which interferes with normal operation. Reviewed by: kib@ Approved by: re (gjb@) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D7047
* Fix CTASSERT issue in a more clean wayngie2016-07-064-20/+7
| | | | | | | | | | | | | | | - Replace all CTASSERT macro instances with static_assert's. - Remove the WRAPPED_CTASSERT macro; it's now an unnecessary obfuscation. - Localize all static_assert's to the structures being tested. - Sort some headers per-style(9). Approved by: re (hrs) Differential Revision: https://reviews.freebsd.org/D7130 MFC after: 1 week X-MFC with: r302364 Reviewed by: ed, grehan (maintainer) Submitted by: ed Sponsored by: EMC / Isilon Storage Division
* Fix gcc warningngie2016-07-061-3/+0
| | | | | | | | | | | | Remove -Wunused-but-set-variable (`mopt`). Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D7119 MFC after: 1 week X-MFC with: r302332 Reported by: Jenkins Reviewed by: grehan (maintainer) Sponsored by: EMC / Isilon Storage Division
* Fix gcc build errors with SSE 4.2 detection and gcc warningsngie2016-07-061-45/+22
| | | | | | | | | | | | | | | | | - Remove -Wunused-but-set-variable's (`len`, etc). - Replace clang-specific tests in sse42_supported(..) with generic, FreeBSD-supported CPU feature tests, using macros and functions from machine/cpufunc.h and machine/specialreg.h . The previous method for determining SSE4.2 availability was only compatible with clang. - Sort #includes per style(9). Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D7119 MFC after: 1 week X-MFC with: r302332 Reported by: Jenkins Reviewed by: grehan (maintainer) Sponsored by: EMC / Isilon Storage Division
* Fix gcc warningsngie2016-07-061-9/+0
| | | | | | | | | | | | Remove unused function (`fifo_available`) Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D7119 MFC after: 1 week X-MFC with: r302332 Reported by: Jenkins Reviewed by: grehan (maintainer) Sponsored by: EMC / Isilon Storage Division
* Fix gcc warningsngie2016-07-061-10/+5
| | | | | | | | | | | | | | - Put parentheses around bitwise OR'ed values in the `FIELD_COPY(..)` and `FIELD_REPLACE(..)` macros to mute warning from gcc 4.2.1. - Remove -Wunused-but-set-variable's (`setup_addr`, `status_addr`). Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D7119 MFC after: 1 week X-MFC with: r302332 Reported by: Jenkins Reviewed by: grehan (maintainer) Sponsored by: EMC / Isilon Storage Division
* Fix gcc warningsngie2016-07-061-3/+3
| | | | | | | | | | | | Remove -Wunused-but-set-variable (`error`). Cast calls with `(void)` to note that the return value is explicitly ignored. Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D7119 MFC after: 1 week Reported by: Jenkins Reviewed by: grehan (maintainer) Sponsored by: EMC / Isilon Storage Division
* Fix gcc warningsngie2016-07-061-5/+10
| | | | | | | | | | | | | | | | | Add `WRAPPED_CTASSERT` macro by annotating CTASSERTs with __unused to deal with -Wunused-local-typedefs warnings from gcc 4.8+. All other compilers (clang, etc) use CTASSERT as-is. A more generic solution for this issue will be proposed after ^/stable/11 is forked. Consolidate all CTASSERTs under one block instead of inlining them in functions. Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D7119 MFC after: 1 week Reported by: Jenkins Reviewed by: grehan (maintainer) Sponsored by: EMC / Isilon Storage Division
* Fix gcc warningsngie2016-07-061-1/+7
| | | | | | | | | | | | Put cfl/prdt under AHCI_DEBUG #defines as they are only used in those cases. Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D7119 MFC after: 1 week Reported by: Jenkins Reviewed by: grehan (maintainer) Sponsored by: EMC / Isilon Storage Division
* Fix gcc warningsngie2016-07-061-5/+3
| | | | | | | | | | | | - Remove -Wunused-but-set-variable (newcpu) - Always return VMEXIT_CONTINUE as the code always set retval to that value. Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D7119 MFC after: 1 week Reported by: Jenkins Reviewed by: grehan (maintainer) Sponsored by: EMC / Isilon Storage Division
* Fix build of ppp when WITHOUT_PAM is setbapt2016-07-041-0/+1
| | | | | | | PR: 210658 Reported by: madpilot Tested by: madpilot Approved by: re@ (kib)
* Import bhyve_graphics into CURRENT. Thanks to all who testedgrehan2016-07-0424-19/+9037
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this on the branch. Original commit message: Initial bhyve native graphics support. This adds emulations for a raw framebuffer device, PS2 keyboard/mouse, XHCI USB controller and a USB tablet. A simple VNC server is provided for keyboard/mouse input, and graphics output. A VGA emulation is included, but is currently disconnected until an additional bhyve change to block out VGA memory is committed. Credits: - raw framebuffer, VNC server, XHCI controller, USB bus/device emulation and UEFI f/w support by Leon Dang - VGA, console/g, initial VNC server by tychon@ - PS2 keyboard/mouse jointly done by tychon@ and Leon Dang - hypervisor framebuffer mem support by neel@ Tested by: Michael Dexter, in a number of revisions of this code. With the appropriate UEFI image, FreeBSD, Windows and Linux guests can installed and run in graphics mode using the UEFI/GOP framebuffer. Approved by: re (gjb)
| * Create branch for bhyve graphics import.grehan2016-05-272501-583599/+0
| |
* | Add more machines to the bsdinstall workaround blacklistallanjude2016-07-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | Apply the LenovoFix (fake partition in pMBR is 2nd rather than 1st) and GPT Active fix (mark the fake pMBR partition active) to respective hardware that is confirmed to require such to boot correct. Submitted by: Sam Fourman Jr. <sfourman@gmail.com> (ThinkPad W520) Submitted by: Matthias Apitz <guru@unixarea.de> (Latitude E6330) Approved by: re (gjb) Sponsored by: ScaleEngine Inc.
* | Fix an error in bsdinstall when ZFS installation uses a bootpoolallanjude2016-07-031-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | A separate bootpool is used when the selected partition type is MBR or when the disk is GELI encrypted and a UEFI loader is selected. BIOS avoids the bootpool by using bootcode and loader that support GELI. bsdinstall did not remount the bootpool after creating the main pool, which caused an error when mkdir tried to create /boot/zfs PR: 210717 Approved by: re (gjb) Sponsored by: ScaleEngine Inc.
* | bhyve: improve memory size documentationnovel2016-06-264-18/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A couple of minor memory size option related nits: - use common name 'memsize' (instead of 'max-size' or just 'size') - bhyve: update usage with memsize unit suffix, drop legacy "MB" unit - bhyveload: update usage with memsize unit suffix - bhyve(8): document default size - bhyveload(8): use memsize formatting like it's done in bhyve(8) Reviewed by: wblock, grehan Approved by: re (kib), wblock, grehan Differential Revision: https://reviews.freebsd.org/D6952
* | Skip lastcomm and sa tests on unsupported architecturesasomers2016-06-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | usr.bin/lastcom/tests/Makefile usr.sbin/sa/tests/Makefile Set allow_architectures appropriately. These tests depend on golden files that must be generated for each architecture, and haven't yet been generated for all of them. PR: 210566 PR: 204154 Reviewed by: ngie Approved by: re (gjb) MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D6960
* | Fix gstat's interactive f and q commandsasomers2016-06-231-16/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | curses and libedit don't play well together. After last year's libedit upgrade in head, they play even less well together. This change resets some curses settings after they get screwed up by libedit calls. Without it, gstat's interactive commands require an extra "enter", screw up the terminal on exit, and screw up the display if the user enters an invalid filter string. PR: 204852 Submitted by: Keith White Reviewed by: pfg Approved by: re (gjb) MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D6934
* | bsdinstall: increase EFI partition size to 200MBemaste2016-06-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A larger EFI file system size will facilitate multi-boot configurations and the installation other EFI applications like firmware update tools. 200MB matches OS X. Note that this changes only the partition size, not the file system that bsdinstall places there. We need to do both, but as the partition size is difficult to adjust later make this change for now so that at least systems installed with FreeBSD 11.0 have a partition layout with room to grow. Reviewed by: allanjude, imp Approved by: re (gjb) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D6935
* | ARM64: bsdinstall support for creating EFI partitionswma2016-06-202-1/+105
| | | | | | | | | | | | | | | | | | | | | | This patch enables bsdinstall to create EFI partition during installation and uploading it's contents, making the ARM64 FreeBSD installation bootable. Obtained from: Semihalf Sponsored by: Cavium Approved by: re Reviewed by: allanjude, emaste, nwhitehorn, wma Differential Revision: https://reviews.freebsd.org/D6853
* | Add bsdconfig `wifi' (aka `wireless' or `wlan') moduledteske2016-06-169-10/+1542
| | | | | | | | | | | | Approved by: re (gjb) MFC after: 8 weeks Relnotes: yes
* | Fix usr.sbin/rpcbind ATF tests on 32-bit platformsasomers2016-06-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | usr.sbin/rpcbind/tests/addrmerge_test.c Fix some sizeof calculations that work only by luck on 64-bit platforms. PR: 210314 Reviewed by: ngie Approved by: re (kib) Reported by: Mark Millard MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D6855
* | Return usual error indicator to shell.kib2016-06-161-1/+1
| | | | | | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week Approved by: re (hrs)
* | makefs: Provide a -T option to set timestamps to a consistent valueemaste2016-06-148-54/+129
| | | | | | | | | | | | | | | | | | | | | | | | This is taken from the NetBSD versions listed below and adapted to the makefs version in FreeBSD, along with a bug fix from cem@ that will be sent to NetBSD. Reviewed by: pfg Approved by: re (gjb) Obtained from: NetBSD MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D6835
* | Fix usr.sbin/extattr testcases on tmpfsasomers2016-06-131-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | Skip the usr.sbin/extattr testscases if $TMPDIR is tmpfs, which doesn't support extended attributes PR: 210184 Reported by: ngie Reviewed by: ngie Approved by: re (glebius) MFC after: 4 weeks Differential Revision: https://reviews.freebsd.org/D6802 Sponsored by: Spectra Logic Corp
OpenPOWER on IntegriCloud