summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-01-278-3/+272
|\
| * MFC 293617,294669: Minor fixesdteske2016-01-272-2/+1
| | | | | | | | | | r293617: Fix improper duration for f_dialog_pause() API r294669: Fix a typo in a comment
| * MFH: r293745brueffer2016-01-262-1/+98
| | | | | | | | Add a basic bhyvectl manpage.
| * MFH (r275765): add a vigr(8) tool to mirror vipw(8)des2016-01-264-0/+173
| |
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-01-2530-111/+770
|\ \ | |/
| * MFC r293860vangyzen2016-01-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bsdinstall: Suggest the GPT+Active workaround on Dell T5810 The Dell Precision Tower 5810 fails to boot from GPT in Legacy/BIOS mode without the Active flag in the Protective MBR. Suggest the workaround during installation. Since an increasing number of Dell systems exhibit this behavior, I imagine all Dells past a certain date will do so. I would like to suggest the workaround for all Dells with a BIOS date of, say, 2014 or later, but I would need to test a variety of systems before committing such a change. Relnotes: We should probably suggest using GPT+Active on "recent" Dells. Sponsored by: Dell Inc.
| * MFC: r285732allanjude2016-01-231-2/+54
| | | | | | | | | | | | | | | | | | Add the Dell E7240 laptop and Intel DP965LT motherboard to the list for the GPT active workaround MFC: r287843 Add the HP ProBook 4330s, Intel DP965LT, D510MO, and Acer Veriton M6630G to the GPT workaround list Sponsored by: ScaleEngine Inc.
| * MFC r294554: MFV r294491: ntp 4.2.8p6.delphij2016-01-2210-34/+106
| | | | | | | | | | | | | | | | Security: CVE-2015-7973, CVE-2015-7974, CVE-2015-7975 Security: CVE-2015-7976, CVE-2015-7977, CVE-2015-7978 Security: CVE-2015-7979, CVE-2015-8138, CVE-2015-8139 Security: CVE-2015-8140, CVE-2015-8158 With hat: so
| * MFC r294183:jamie2016-01-212-18/+4
| | | | | | | | | | | | | | | | | | | | | | | | Clear errno before calling getpw*. MFC r294196: Don't bother checking an ip[46].addr netmask/prefixlen. This is already handled by ifconfig, and it was doing it wrong when the paramater included extra ifconfig options. PR: 205926
| * MFC: r294191allanjude2016-01-211-1/+3
| | | | | | | | | | | | Never 4k align the MBR bootpool because zfsldr can not deal with a gap Sponsored by: ScaleEngine Inc.
| * MFC r292337, r292552, r292553:ian2016-01-197-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Build mount_smbfs for arm. Also sort the subdirs. Avoid unaligned memory accesses when encoding netbios names in libsmb. The current code for encoding a netbios name converts each byte to a 16-bit value and stores the result by casting a char* to u_short*, resulting in alignment faults on strict-alignment platforms. This change reimplements the encoding routine using only byte accesses to memory. There is no particular reason to work with 16-bit values just because the encoding process creates two bytes of output for every byte of input. Working a byte at at time also avoids endian problems for big-endian platforms. Make the building of libsmb and mount_smbfs unconditional, now that r292552 has eliminated alignment and endian problems that were making it fail on some platforms. PR: 180438 PR: 189415 Relnotes: Yes
| * MFC 292410,292443,293977:jhb2016-01-191-1/+2
| | | | | | | | | | | | | | | | Exit cleanly if malloc() fails to allocate a buffer for a copy of the current MBR. PR: 205322 Submitted by: Alexander Kuleshov <kuleshovmail@gmail.com>
| * MFC: 293459,293643gnn2016-01-181-32/+274
| | | | | | | | Add netmap support for bhyve
| * MFC 291225:jhb2016-01-182-13/+241
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new -B flag for use with list mode (-l) that lists details about bridges. Currently this includes information about what resources a bridge decodes on the upstream side for use by downstream devices including bus numbers, I/O port resources, and memory resources. Windows and bus ranges are enumerated for both PCI-PCI bridges and PCI-CardBus bridges. To simplify the implementation, all enumeration is done by reading the appropriate config space registers directly rather than querying the bridge driver in the kernel via new ioctls. This does result in a few limitations. First, an unimplemented window in a PCI-PCI bridge cannot be accurately detected as accurate detection requires writing to the window base register. That is not safe for pciconf(8). Instead, this assumes that any window where both the base and limit read as all zeroes is unimplemented. Second, the PCI-PCI bridge driver in a tree has a few quirks for PCI-PCI bridges that use subtractive decoding but do not indicate that via the progif config register. The list of quirks is duplicated in pciconf's source.
| * MFC r288297 (userland part).melifaro2016-01-172-1/+6
| | | | | | | | | | | | | | | | | | | | | | If ever MFC is done for the new lltable code, this change will miminise ABI breakage. rtsock requests for deleting interface address lles started to return EPERM instead of old "ignore-and-return 0" in r287789. This broke arp -da / ndp -cn behavior (they exit on rtsock command failure). Fix this by translating LLE_IFADDR to RTM_PINNED flag, passing it to userland and making arp/ndp ignore these entries in batched delete.
| * MFC 293305jpaetzel2016-01-162-1/+72
| | | | | | | | | | | | | | | | | | | | | | | | Allow /etc/exports to contain usernames/groups with spaces in them. If you are getting your users/groups from a directory service such as LDAP or AD it's possible for those usernames or groupnames to contain spaces. Submitted by: Sean E. Fagan Reviewed by: rmacklem Sponsored by: iXsystems
| * MFC: r287581allanjude2016-01-151-2/+6
| | | | | | | | | | | | Add an additional check to service(8) -e incase rcvar is blank Sponsored by: ScaleEngine Inc.
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-01-155-20/+96
|\ \ | |/
| * MFC r290811:jtl2016-01-144-18/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix hwpmc "stalled" behavior Currently, there is a single pm_stalled flag that tracks whether a performance monitor was "stalled" due to insufficent ring buffer space for samples. However, because the same performance monitor can run on multiple processes or threads at the same time, a single pm_stalled flag that impacts them all seems insufficient. In particular, you can hit corner cases where the code fails to stop performance monitors during a context switch out, because it thinks the performance monitor is already stopped. However, in reality, it may be that only the monitor running on a different CPU was stalled. This patch attempts to fix that behavior by tracking on a per-CPU basis whether a PM desires to run and whether it is "stalled". This lets the code make better decisions about when to stop PMs and when to try to restart them. Ideally, we should avoid the case where the code fails to stop a PM during a context switch out. MFC r290813: Optimizations to the way hwpmc gathers user callchains Changes to the code to gather user stacks: * Delay setting pmc_cpumask until we actually have the stack. * When recording user stack traces, only walk the portion of the ring that should have samples for us. MFC r290929: Change the driver stats to what they really are: unsigned values. When pmcstat exits after some samples were dropped, give the user an idea of how many were lost. (Granted, these are global numbers, but they may still help quantify the scope of the loss.) MFC r290930: Improve accuracy of PMC sampling frequency The code tracks a counter which is the number of events until the next sample. On context switch in, it loads the saved counter. On context switch out, it tries to calculate a new saved counter. Problems: 1. The saved counter was shared by all threads in a process. However, this means that all threads would be initially loaded with the same saved counter. However, that could result in sampling more often than once every X number of events. 2. The calculation to determine a new saved counter was backwards. It added when it should have subtracted, and subtracted when it should have added. Assume a single-threaded process with a reload count of 1000 events. Assuming the counter on context switch in was 100 and the counter on context switch out was 50 (meaning the thread has "consumed" 50 more events), the code would calculate a new saved counter of 150 (instead of the proper 50). Fix: 1. As soon as the saved counter is used to initialize a monitor for a thread on context switch in, set the saved counter to the reload count. That way, subsequent threads to use the saved counter will get the full reload count, assuring we sample at least once every X number of events (across all threads). 2. Change the calculation of the saved counter. Due to the change to the saved counter in #1, we simply need to add (modulo the reload count) the remaining counter time we retrieve from the CPU when a thread is context switched out. MFC r291016: Support a wider history counter in pmcstat(8) gmon output pmcstat(8) contains an option to output sampling data in a gmon format compatible with gprof(1). Currently, it uses the default histcounter, which is an (unsigned short). With large sets of sampling data, it is possible to overflow the maximum value provided by an (unsigned short). This change adds the -e argument to pmcstat. If -e and -g are both specified, pmcstat will use a histcounter type of uint64_t. MFC r291017: Fix the date on the pmcstat(8) man page from r291016.
| * MFC r293312:garga2016-01-141-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | Make cap_mkdb and services_mkdb file operations sync Similar fix was done for passwd and group operations in r285050. When a temporary file is created and then renamed to replace official file there are no checks to make sure data was written to disk and if a power cycle happens at this time, system can end up with a 0 length file Approved by: bapt Sponsored by: Netgate Differential Revision: https://reviews.freebsd.org/D2982
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-01-145-65/+734
|\ \ | |/
| * Convert usr.sbin/sesutil to LPADD/DPADD for stable/10allanjude2016-01-141-1/+2
| | | | | | | | | | | | Direct commit to stable/10 Pointy Hat To: allanjude
| * MFC: r287473allanjude2016-01-145-65/+733
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the new sesutil(8) utility for managing SCSI Enclosure Services (SES) device. MFC: r287493 Fix iteration bug MFC: r287485, r287494, r287992 Please the angry gcc 4.2 gods MFC: r287988 Improve and expand sesutil(8) Return an error if no matching device is found Locate can address a slot, in addition to a drive Added fault, similar to locate but blinks a different LED Added the map command, lists all devices connected to the SES controller Added the status command, overall status of the SES controller MFC: r292092 sesutil: fix map not printing the status of the LED device in an array MFC: r292093 sesutil: pass the correct element type when printing the SES map MFC: r292121 sesutil: Add extra information specific to some SES devices to sesutil map MFC: r292122 Fix sesutil locate when a sesid is passed to locate command MFC: r292262 Show the enclosure name and id in sesutil map Relnotes: yes Sponsored by: Gandi.net Sponsored by: ScaleEngine Inc.
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-01-1326-71/+381
|\ \ | |/
| * MFC: r284589allanjude2016-01-126-20/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the ability to detect ZFS and GELI encrypted file systems to fstyp(8) MFC: r284644 Fix GCC Warnings MFC: r284728 Only build ZFS support in absense of WITHOUT_ZFS MFC: r285426 Remove excess copyrights MFC: r286569 Use GELI sentinel constant MFC: r287937 Eliminate unneeded copying of vdev data, goto, etc. and add a note that checksum of vdev label should be checked (which is not done currently). No functional change. While I'm there, raise WARNS to 2. MFC: r292757 Fix order of includes in usr.sbin/fstyp/zfs.c MFC: r292829 Eliminate unneeded includes.
| * MFC: r287576allanjude2016-01-121-0/+2
| | | | | | | | | | | | | | service(8) -e does not respect /etc/rc.conf.d/* entries PR: 173454 Submitted by: giantlock@gmail.com (original patch)
| * MFC r292019asomers2016-01-111-2/+57
| | | | | | | | | | | | | | When iostat(8) receives SIGINT while running with "-w" or "-c", it will now print statistics one more time before exiting. Also, it now implements the wait using setitimer instead of sleep, so the waits will be more consistent when the system is heavily loaded.
| * MFC r287396:trasz2016-01-111-3/+2
| | | | | | | | | | | | | | | | | | | | | | It's 2015, and some people are still trying to use fdisk and then go asking what debug flags to set for GEOM to make it work. Advice them to use gpart(8) instead. Something similar should probably done with disklabel, but I need to rewrite the disklabel examples first. Sponsored by: The FreeBSD Foundation
| * MFC: r290153 (by bdrewery)bapt2016-01-111-1/+3
| | | | | | | | | | | | | | | | | | Fix unlikely memory leak. It is unlikely since the first check in the function is that dir[0] is '/', but later code changes may make it real. Coverity CID: 1332104
| * MFC: 278899bapt2016-01-111-1/+1
| | | | | | | | Regression: fix usershow -7
| * Merge r293423, r293469:glebius2016-01-119-22/+38
| | | | | | | | | | | | ntp 4.2.8p5 Relnotes: yes
| * MFC r279567, r279568: Add and document an option to cause syslogd to runrpokala2016-01-092-6/+21
| | | | | | | | | | | | | | | | | | | | in the foreground. This allows a separate process to monitor when and how syslogd exits. That process can then restart syslogd if needed. Approved by: jhb Sponsored by: Panasas, Inc.
| * MFC r293055: kbdmap.5: Use current names for ASCII control codes lf, ff, usemaste2016-01-091-4/+10
| | | | | | | | | | | | Refer to the old names nl, np, ns as historical aliases. PR: 205776, 205778
| * MFC 293043jpaetzel2016-01-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Unset the gss kernel state when gssd exits When gssd exits it leaves the kernel state set by gssd_syscall(). nfsd sees this and waits endlessly in an unkillable state for gssd to come back. If you had acidentally started gssd then stopped it, then started nfsd you'd be in a bad way until you either restarted gssd or rebooted the system. This change fixes that by setting the kernel state to "" when gssd exits.
| * MFC: r292982araujo2016-01-081-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Remove unused variable after r292981 to unbreak the build. MFC: r292981 Clean up unused-but-set-variable spotted by gcc-4.9. Reviewed by: ngie Approved by: rodrigc (mentor) Sponsored by: gandi.net Differential Revision: https://reviews.freebsd.org/D4773
| * MFC: r292971araujo2016-01-081-5/+0
| | | | | | | | | | | | | | | | | | Clean up unused-but-set-variable spotted by gcc-4.9. Reviewed by: ngie Approved by: rodrigc (mentor) Sponsored by: gandi.net Differential Revision: https://reviews.freebsd.org/D4776
| * MFC: r292970araujo2016-01-081-2/+1
| | | | | | | | | | | | | | | | | | Clean up unused-but-set-variable spotted by gcc-4.9. Reviewed by: ngie Approved by: rodrigc (mentor) Sponsored by: gandi.net Differential Revision: https://reviews.freebsd.org/D4777
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-01-0736-49/+177
|\ \ | |/
| * MFC r291377: vidfont: with vt(4) omit size from vidcontrol -femaste2016-01-071-5/+13
| | | | | | | | | | | | | | | | When using syscons, vidfont extracts the font size from the filename passes it to vidcontrol -f. In vt(4) mode the size argument is not required, and some of the fonts in /usr/share/vt/fonts do not have the size in the filename, which caused vidfont to fail. Thus, just omit the size argument in vt(4) mode.
| * MFC r290693: Add support for "rc.conf.d" file(s).dteske2016-01-071-1/+95
| | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D3551 Reviewed by: allanjude Relnotes: yes
| * MFC r278492: Add "vt_"* aliases to bsdconfig console entries.dteske2016-01-071-0/+7
| | | | | | | | NB: "syscons_"* kept for backward compatibility
| * MFC r289677:bdrewery2016-01-0724-29/+29
| | | | | | | | Fix a ton of speelling errors
| * MFC r270675:bdrewery2016-01-062-5/+20
| | | | | | | | | | | | | | Allow mailwrapper to use mailer.conf from localbase (respecting LOCALBASE env var if set) PR: 205965
| * MFC r292605, r292606, r292607, r292608:pfg2016-01-043-5/+6
| | | | | | | | | | | | | | | | | | | | cron: bring some fixes for Coverity reports and other issues. crontab: replace malloc + bzero with calloc crontab: properly free an entry cron: Check the return value of pipe(2) CID: 271773, 1009830,
| * MFC r292884:ngie2016-01-011-1/+1
| | | | | | | | | | | | | | Fix getopt(3) argument after r290180; I forgot to change -r to -R by accident Pointyhat to: ngie
| * MFC: r292846, r292847, r292849bapt2015-12-303-3/+6
| | | | | | | | | | | | Restore dryrun support for pw groupmod Remove useless assignement of linelen Simplify code for parsing extra groups
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2015-12-304-12/+240
|\ \ | |/
| * crunchide: Restore IA-64 support accidentally lost in r292421 mismergeemaste2015-12-291-0/+1
| | | | | | | | Reported by: ngie
| * MFC r292585:ngie2015-12-291-0/+1
| | | | | | | | | | | | | | | | | | Prevent use-after-free with ctx->ns in set_nameservers(..), which could occur if the memory wasn't allocated again later on Reported by: Coverity Submitted by: Miles Ohlrich <miles.ohlrich@isilon.com> Sponsored by: EMC / Isilon Storage Division
| * MFC r290337: Add sysrc(8) support for "rc.conf.d"dteske2015-12-282-12/+238
| | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D3551 Reviewed by: allanjude Relnotes: yes
OpenPOWER on IntegriCloud