aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* DIRDEPS_BUILD: Connect new dependencies.Bryan Drewery2016-11-131-0/+19
| | | | | | | | MFC after: 2 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=308605
* Correct spelling in syslog: getttimeofday -> gettimeofdayGavin Atkinson2016-11-111-1/+1
| | | | Notes: svn path=/head/; revision=308561
* smbmsg: use a more convenient way of accessing data read from a slaveAndriy Gapon2016-11-111-11/+7
| | | | | | | | | | | | Developers writing code for accessing /dev/smb may use this base utility as an example. Now that SMB_READB, SMB_READW, SMB_PCALL behave as documented, wwe can use them in a more convenient way than before. MFC after: 4 weeks X-MFC after: r308527 Notes: svn path=/head/; revision=308528
* MFV r305100: Update amd from am-utils 6.1.5 to 6.2.Cy Schubert2016-11-113-38/+324
| | | | | | | | | | | | | | Used extensively on my network over the past month. Reviewed by: pfg, brooks Suggested by: pfg Obtained from: ftp://ftp.am-utils.org/pub/am-utils/ MFC after: 6 weeks Relnotes: yes Differential Revision: D8405 Notes: svn path=/head/; revision=308493
* fix a watchdogd regression introduced in r308040Andriy Gapon2016-11-101-7/+9
| | | | | | | | | | | | | | | The code assumed that 'timeout' and 'timeout_sec' are in sync which they weren't if no '-t' option was passed to watchdogd. Reported by: Olivier Smedts <olivier@gid0.org>, Alex Deiter <alex.deiter@gmail.com> Tested by: Olivier Smedts <olivier@gid0.org>, Alex Deiter <alex.deiter@gmail.com> MFC after: 5 days X-MFC with: r308040 Notes: svn path=/head/; revision=308479
* Add flag -B which does the same like batch mode but without exiting afterMarcelo Araujo2016-11-092-13/+50
| | | | | | | | | | | | print. Also add a new flag -s that add blocks size to statistics. PR: 198347, 212726 Submitted by: Ben RUBSON <ben.rubson@gmail.com> Tested by: pi MFC After: 2 weeks. Notes: svn path=/head/; revision=308462
* Fix improper use of "its".Bryan Drewery2016-11-083-3/+3
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=308457
* Add link-layer address option in RA even for IFT_L2VLAN and IFT_BRIDGE.Hiroki Sato2016-11-051-0/+4
| | | | | | | | Reported by: philip MFC after: 3 days Notes: svn path=/head/; revision=308348
* Fix an infinite loop at an non-responding hop when other echo repliesHiroki Sato2016-11-051-0/+3
| | | | | | | | | | | are kept arriving in the waittime time window. Submitted by: Denny Page PR: 210286 MFC after: 3 days Notes: svn path=/head/; revision=308347
* Assign a random number to di_gen (for FFS), instead of extracting itMarcel Moolenaar2016-11-052-7/+2
| | | | | | | | | | | | | | | | | from struct stat. We don't necessarily have permissions to see the generation number and the host OS may not have st_gen in struct stat anyway. Since the kernel assigns random numbers, there's nothing meaningful about the generation that requires us to preserve it when the file system image is created. With this change, all generation numbers come from random() and that makes it easier to add support for reproducible builds at some time in the future (i.e. by adding an argument to makefs that changes the behaviour of random() so that it always returns 0 or some predictable sequence). Differential Revision: https://reviews.freebsd.org/D8418 Notes: svn path=/head/; revision=308344
* vidcontrol: use calloc where appropriateEd Maste2016-11-051-2/+2
| | | | | | | Reported by: kib Notes: svn path=/head/; revision=308338
* vidcontrol: improve error handling in vt(4) font loadingEd Maste2016-11-041-18/+26
| | | | | | | | | | PR: 209078 Reported by: ecturt@gmail.com Reviewed by: Oliver Pinter Differential Revision: https://reviews.freebsd.org/D8176 Notes: svn path=/head/; revision=308312
* Add support for microcode update on newer AMD CPUs (10h+)Andriy Gapon2016-11-024-1/+352
| | | | | | | | | | | | | | | | | | | | | | | | | | This includes new code for parsing microcode files as well as the kernel-side change to apply the update on all processors at the same time. Developed with help from Borislav Petkov, formerly bp@amd64.org. Tested using Athlon II X2 processor on a system where BIOS does not have the latest microcode version: /boot/firmware/microcode_amd.bin: updating cpu /dev/cpuctl0 to revision 0x10000c7... done. The microcode file is taken from here: https://web.archive.org/web/20160528230514/http://www.amd64.org/microcode.html (note that the original site seems to be down at the moment) It can also be found here: https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree/amd-ucode Reviewed by: kib, stas MFC after: 2 weeks Relnotes: maybe Differential Revision: https://reviews.freebsd.org/D8384 Notes: svn path=/head/; revision=308218
* In rtadvd, interface lookup calls if_indextoname() many times in a loop,Fabien Thomas2016-11-021-10/+9
| | | | | | | | | | | | | | (it takes a long time on systems with many interfaces) without reason and without checking its return value. Reviewed by: cem Obtained from: Maryse Levavasseur <maryse.levavasseur@stormshield.eu> MFC after: 1 month Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D6979 Notes: svn path=/head/; revision=308216
* Make autounmountd(8) not die when traced with "truss -p".Edward Tomasz Napierala2016-11-021-1/+4
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=308206
* syslogd(8): add an 'include' keywordBaptiste Daroussin2016-11-012-82/+162
| | | | | | | | | | | | | | | | | | | | | All the '.conf' files not beginning with a '.' contained int he directory following the keyword will be included. This keyword can only be used in the first level configuration files. Modify the default syslogd.conf to 'include' /etc/syslog.d and /usr/local/etc/syslog.d It simplify a lot handling of syslog from automation tools. Reviewed by: markj, kib (via irc) Approved by: markj MFC after: 2 weeks Relnotes: yes Differential Revision: https://reviews.freebsd.org/D8402 Notes: svn path=/head/; revision=308160
* Allow symlinks to be followed in cron.d directories and fix detection ofBaptiste Daroussin2016-10-311-2/+3
| | | | | | | | | regular files on NFS Reported by: jilles Notes: svn path=/head/; revision=308158
* Fix typo in cron(8) dateBaptiste Daroussin2016-10-311-1/+1
| | | | | | | Reported by: jilles Notes: svn path=/head/; revision=308157
* cron(8): add support for /etc/cron.d and /usr/local/etc/cron.dBaptiste Daroussin2016-10-315-10/+54
| | | | | | | | | | | | | | | | For automation tools it is way easier to maintain files in directories rather than modifying /etc/crontab. The files in those directories are in the same format as /etc/crontab Reviewed by: adrian MFC after: 2 weeks Relnotes: yes Sponsored by: Gandi.net Differential Revision: https://reviews.freebsd.org/D8400 Notes: svn path=/head/; revision=308139
* There appeared to be even more copy/pastes. :)Alexander Motin2016-10-311-1/+1
| | | | | | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 2 weeks Notes: svn path=/head/; revision=308134
* Fix wrong copy/paste in error message.Alexander Motin2016-10-311-1/+1
| | | | | | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 2 weeks Notes: svn path=/head/; revision=308133
* nap time between pats is forced to be at most half of the timeoutAndriy Gapon2016-10-281-2/+5
| | | | | | | | | | | Previously, if the timeout was less than 10 seconds, for example, about 8 seconds, then the watchdog timer would be let to expire before patting the watchdog. MFC after: 2 weeks Notes: svn path=/head/; revision=308040
* Allow config to be compiled from another source directory, such as oneMarcel Moolenaar2016-10-261-2/+7
| | | | | | | | | | | for building tools. This boils down to replacing ${.CURDIR} with ${SRCDIR}, where the latter is the directory in which this makefile lives. Also allow overriding where file2c comes from using ${FILE2C}. Notes: svn path=/head/; revision=307967
* Fix unchecked array reference in the VGA device emulation code.Gleb Smirnoff2016-10-251-4/+4
| | | | | | | | | Submitted by: Ilja Van Sprundel <ivansprundel@ioactive.com> Patch by: tychon Security: SA-16:32 Notes: svn path=/head/; revision=307937
* Be more precise when including headers so that we're less likely toMarcel Moolenaar2016-10-257-11/+24
| | | | | | | | | | | | | | depend on namespace pollution and as such become more portable. This means including headers like <sys/types.h> or <stdlib.h>, but also making sure we include system/host headers before local headers. While here: define ENOATTR as ENOMSG in mtree.c. There is no ENOATTR on Linux. With this, makefs is ready for compilation on macOS and Linux. Notes: svn path=/head/; revision=307927
* Allow building makefs(8) from another Makefile (such as one inMarcel Moolenaar2016-10-253-13/+15
| | | | | | | | | | | a seperate directory hierarchy used to build tools). This boils down to replacing the use of ${.CURDIR} with either ${SRCDIR} or ${SRCTOP}. SRCDIR is defined as the directory in which the Makefile lives that bmake(1) is currently reading. Use SRCTOP when reaching outside of makefs's directory. Notes: svn path=/head/; revision=307923
* accept4 actually expect SOCK_NONBLOCK and not O_NONBLOCKBaptiste Daroussin2016-10-251-1/+1
| | | | | | | | Reported by: jhb Pointyhat to: bapt Notes: svn path=/head/; revision=307917
* Fix the man page to reflect the change done by r307890 to mountd.cRick Macklem2016-10-251-2/+2
| | | | | | | | | | | | so that the "-n" option uses the sysctl for the new NFS server. This is a content change. PR: 213450 Submitted by: rs@bytecamp.net MFC after: 2 weeks Notes: svn path=/head/; revision=307891
* mountd(8) was erroneously setting the sysctl for the old NFS serverRick Macklem2016-10-251-1/+1
| | | | | | | | | | | | | | | | | | when the new/default NFS server was running, for the "-n" option. This patch fixes the problem for head and stable/11. For stable/10 the patch will need to be modified when MFC'd, since the stable/10 mountd.c handles both old and new NFS servers. Since the new NFS server uses vfs.nfsd.nfs_privport == 0 by default, there wouldn't have been many users affected by the code not setting it to 0 when the "-n" option was specified. PR: 213450 Submitted by: rs@bytecamp.net MFC after: 2 weeks Notes: svn path=/head/; revision=307890
* Fix build of tzsetup when WITHOUT_DIALOG is setBaptiste Daroussin2016-10-223-59/+105
| | | | | | | | | | | | | | Hide dialog specific code behind HAVE_DIALOG. It allows to build a stripped down version (missing the dialog UI) but perfectly function tzsetup when world is built WITHOUT_DIALOG Reorganise a bit the code to limit the number of blocks under HAVE_DIALOG Reviewed by: emaste Sponsored by: https://reviews.freebsd.org/D8325 Notes: svn path=/head/; revision=307802
* Align whitespace.Cy Schubert2016-10-221-1/+1
| | | | | | | | MFC after: 2 weeks X-MFC with: r307800 Notes: svn path=/head/; revision=307801
* Sources from the "current" build tree and generated sources in theCy Schubert2016-10-223-4/+4
| | | | | | | | | | | | object tree should be used instead of sources and headers from the already installed source tree on the build host. This was noticed while addressing issues in the upcoming amd update. MFC after: 2 weeks Notes: svn path=/head/; revision=307800
* daemon: Allow logging daemon stdout/stderr to file or syslog.Jilles Tjoelker2016-10-222-112/+446
| | | | | | | | | | | | | There are various new options, documented in the man page, to send the daemon's standard output and/or standard error to a file or to syslog. Submitted by: ank at iki.fi Reviewed by: wblock (man page only) Relnotes: yes Differential Revision: https://reviews.freebsd.org/D7993 Notes: svn path=/head/; revision=307769
* Create a new MACHINE_ARCH for Freescale PowerPC e500v2Justin Hibbits2016-10-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The Freescale e500v2 PowerPC core does not use a standard FPU. Instead, it uses a Signal Processing Engine (SPE)--a DSP-style vector processor unit, which doubles as a FPU. The PowerPC SPE ABI is incompatible with the stock powerpc ABI, so a new MACHINE_ARCH was created to deal with this. Additionaly, the SPE opcodes overlap with Altivec, so these are mutually exclusive. Taking advantage of this fact, a new file, powerpc/booke/spe.c, was created with the same function set as in powerpc/powerpc/altivec.c, so it becomes effectively a drop-in replacement. setjmp/longjmp were modified to save the upper 32-bits of the now-64-bit GPRs (upper 32-bits are only accessible by the SPE). Note: This does _not_ support the SPE in the e500v1, as the e500v1 SPE does not support double-precision floating point. Also, without a new MACHINE_ARCH it would be impossible to provide binary packages which utilize the SPE. Additionally, no work has been done to support ports, work is needed for this. This also means no newer gcc can yet be used. However, gcc's powerpc support has been refactored which would make adding a powerpcspe-freebsd target very easy. Test Plan: This was lightly tested on a RouterBoard RB800 and an AmigaOne A1222 (P1022-based) board, compiled against the new ABI. Base system utilities (/bin/sh, /bin/ls, etc) still function appropriately, the system is able to boot multiuser. Reviewed By: bdrewery, imp Relnotes: yes Differential Revision: https://reviews.freebsd.org/D5683 Notes: svn path=/head/; revision=307761
* Close some file descriptor leaks in pwAlan Somers2016-10-213-0/+8
| | | | | | | | | MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D8245 Notes: svn path=/head/; revision=307752
* Add names for some DASP devices.Alexander Motin2016-10-211-0/+3
| | | | | | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 1 week Notes: svn path=/head/; revision=307731
* fstyp tests comes with pre-created EL filesystems,Ruslan Bukin2016-10-181-1/+2
| | | | | | | | | | | | but fstyp cannot detect EL filesystem on EB machine, so exclude test files from distribution and skip the test. Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Notes: svn path=/head/; revision=307559
* Typo fixed: arbitraty -> arbitrary.Maxim Konovalov2016-10-171-1/+1
| | | | | | | | PR: 213559 Submitted by: olgeni Notes: svn path=/head/; revision=307517
* Guard against bad service name argument(s) to load_rc_config()Devin Teske2016-10-161-1/+3
| | | | | | | | MFC after: 3 days X-MFC-to: stable/11 stable/10 Notes: svn path=/head/; revision=307402
* style(9) nit: space after |.Warner Losh2016-10-161-1/+1
| | | | Notes: svn path=/head/; revision=307390
* Remove an unused field from struct pmcstat_image.Mark Johnston2016-10-151-1/+0
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=307384
* Add LU option to control reported provisioning type.Alexander Motin2016-10-151-1/+7
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=307374
* Add LUN options to limit UNMAP and WRITE SAME sizes.Alexander Motin2016-10-151-1/+8
| | | | | | | | | | | | CTL itself has no limits on on UNMAP and WRITE SAME sizes. But depending on backends large requests may take too much time. To avoid that new configuration options allow to hint initiator maximal sizes it should not exceed. MFC after: 2 weeks Notes: svn path=/head/; revision=307350
* Implement -t. Use symbolic names in place of the magical 0x7.Warner Losh2016-10-151-2/+4
| | | | | | | Submitted by: ambrisko@ Notes: svn path=/head/; revision=307339
* 'b' is short for --binary, it isn't 'a'.Warner Losh2016-10-131-1/+1
| | | | | | | | PR: 213437 Submitted by: Ganael LAPLANCHE Notes: svn path=/head/; revision=307224
* Fix building on i386 and arm. But 'public domain' headers on the filesWarner Losh2016-10-133-5/+5
| | | | | | | | | | | with no creative content. Include "lost" changes from git: o Use /dev/efi instead of /dev/efidev o Remove redundant NULL checks. Submitted by: kib@, dim@, zbb@, emaste@ Notes: svn path=/head/; revision=307189
* Temporarily disconnect efivar to fix arm and i386 buildsEd Maste2016-10-121-1/+1
| | | | Notes: svn path=/head/; revision=307157
* MFportsnap r264740: Use case insensitive match when parsing host(1) output.Colin Percival2016-10-121-1/+1
| | | | | | | | | | | Some DNS caches turn "FreeBSD.org" into "freebsd.org", which was causing the printed SRV records to not match our regex. PR: 170503 MFC after: 2 weeks Notes: svn path=/head/; revision=307156
* Add efivar(1) to manipulate EFI variables. It uses a similar commandWarner Losh2016-10-114-0/+522
| | | | | | | | | | | | line interface to the Linux program, as well as adding a number of useful features to make using it in shell scripts easier (since we don't have a filesystem to fall back on interacting with). Differential Revision: https://reviews.freebsd.org/D8128 Reviewed by: kib@, wblock@, Ganael Laplanche Notes: svn path=/head/; revision=307072
* chown: use NULL instead of 0 for null pointerEd Maste2016-10-101-1/+1
| | | | Notes: svn path=/head/; revision=306963