summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* bsdinstall: fix static address assignment for protected wireless networks.avos2016-05-021-1/+1
| | | | | | | Filter out IFCONFIG_PREFIX variable (which may contain WPA keyword) from ifconfig parameters. PR: 169199
* rpcbind: use our roundup() macro when available through <sys/param.h>.pfg2016-05-021-1/+1
| | | | No functional change.
* quot: make use of our rounddown() macro when <sys/param.h> is available.pfg2016-05-021-2/+2
| | | | No functional change.
* Use MIN macro from sys/param.h.araujo2016-05-021-1/+1
| | | | MFC after: 2 weeks.
* Use MIN/MAX macros from sys/param.h.araujo2016-05-021-3/+2
| | | | MFC after: 2 weeks.
* Use MIN macro from sys/param.h.araujo2016-05-021-1/+1
| | | | MFC after: 2 weeks.
* Use MAX macro from sys/param.h.araujo2016-05-021-1/+1
| | | | MFC after: 2 weeks.
* typojamie2016-05-011-1/+1
| | | | Submitted by: Jimmy Olgeni
* usr.sbin: minor spelling fixes on comments.pfg2016-05-0110-12/+12
| | | | No functional change.
* pmcstat: minor spelling fixes.pfg2016-05-012-2/+2
| | | | | | Mostly comments bur also a user-visible string. MFC after: 2 weeks
* usr.sbin/bsdconfig: minor spelling fixes on comments.pfg2016-05-019-22/+22
| | | | No functional change.
* bluetooth: minor spelling fixes.pfg2016-05-012-2/+2
| | | | | | User-visible strings. MFC after: 2 weeks
* Clarify when happens when there is a "depend" parameter in jail.conf,jamie2016-04-301-4/+5
| | | | and how this affects the "jail_list" option in rc.conf.
* Fix including Kyuafile in packaged base system.gjb2016-04-291-1/+2
| | | | | | | | | | | | Fix a related typo while here. Note, this change results in the Kyuafile inclusion in the runtime package, which needs to be fixed, however addresses the PR as far as I can tell in my tests. PR: 209114 Submitted by: ngie Sponsored by: The FreeBSD Foundation
* Use a better idiom for finding UTC prefixed timezonesngie2016-04-281-3/+4
| | | | | | | | | | Instead of copy-pasting the string literal for "UTC" 3 times and using strlen, use a static char[3] buffer and sizeof(..). MFC after: 3 days X-MFC with: r298507 Submitted by: kib Sponsored by: EMC / Isilon Storage Division
* Add PACKAGE fields to usr.sbin/extattr/tests/Makefileasomers2016-04-281-0/+4
| | | | | | | | | | | usr.sbin/extattr/tests/Makefile Add boiler plate required by 298107 but omitted by 298483. These two changes passed through CR in parallel. I think this should get the full test suite running in Jenkins again. MFC after: 22 days X-MFC-with: 298483 Sponsored by: Spectra Logic Corp
* Merge ACPICA 20160422.jkim2016-04-273-45/+54
|
* Add 'devctl delete' that calls device_delete_child().jhb2016-04-272-2/+54
| | | | | | | | | | | | | 'devctl delete' can be used to delete a device that is no longer present. As an anti-foot-shooting measure, 'delete' will not delete a device unless it's parent bus says it is no longer present. This can be overridden by passing the force ('-f') flag. Note that this command should be used with care. If a device is deleted that is actually present it can't be resurrected unless the parent bus device's driver supports rescans. Differential Revision: https://reviews.freebsd.org/D6019
* Add a new rescan method to the bus interface.jhb2016-04-272-1/+19
| | | | | | | | The BUS_RESCAN() method rescans a single bus device checking for devices that have been added or removed from the bus. A new 'rescan' command is added to devctl(8) to trigger a rescan. Differential Revision: https://reviews.freebsd.org/D6016
* MFV r298691:delphij2016-04-2710-48/+130
| | | | | | | | | | ntp 4.2.8p7. Security: CVE-2016-1547, CVE-2016-1548, CVE-2016-1549, CVE-2016-1550 Security: CVE-2016-1551, CVE-2016-2516, CVE-2016-2517, CVE-2016-2518 Security: CVE-2016-2519 Security: FreeBSD-SA-16:16.ntp With hat: so
* For pointers use NULL instead of 0.araujo2016-04-272-24/+24
| | | | | | Reviewed by: rpaulo MFC after: 2 weeks. Differential Revision: https://reviews.freebsd.org/D5946
* Remove redundant word.bhd2016-04-261-1/+1
| | | | | Reviewed by: bjk, bcr Differential Revision: https://reviews.freebsd.org/D6064
* Remove unportable calls to basename().ed2016-04-261-10/+11
| | | | | | | | | | | The POSIX version of basename() doesn't use a 'const char *' argument; the function may overwrite its input buffer. Instead of copying the input string, let's just simplify this code by using our getprogname() function that already returns the name of the application in the right format. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D6094
* Remove a variable and three lines of code which I should have removed asgad2016-04-251-5/+1
| | | | | | | part of revision 98776 back on June 24/2002. Noticed by pfg@ trying coccinelle for checking code. MFC after: 3 weeks
* Encapsulate SYSV IPC objects in jails. Define per-module parametersjamie2016-04-251-4/+27
| | | | | | | | | | | | | | | | | | | | sysvmsg, sysvsem, and sysvshm, with the following bahavior: inherit: allow full access to the IPC primitives. This is the same as the current setup with allow.sysvipc is on. Jails and the base system can see (and moduly) each other's objects, which is generally considered a bad thing (though may be useful in some circumstances). disable: all no access, same as the current setup with allow.sysvipc off. new: A jail may see use the IPC objects that it has created. It also gets its own IPC key namespace, so different jails may have their own objects using the same key value. The parent jail (or base system) can see the jail's IPC objects, but not its keys. PR: 48471 Submitted by: based on work by kikuchan98@gmail.com MFC after: 5 days
* Note the existence of module-specific jail paramters, starting with thejamie2016-04-251-1/+27
| | | | | | linux.* parameters when linux emulation is loaded. MFC after: 5 days
* Make jail(8) interpret escape codes in fstab the same as getfsent(3).jamie2016-04-251-1/+8
| | | | | PR: 208663 MFC after: 3 days
* Add a single example of adding a user that roughly corresponds with thewblock2016-04-231-1/+13
| | | | | | adduser example in the Handbook. MFC after: 1 week
* Define which of the username options (-u/-U) to jexec(8) is the default.bcr2016-04-231-1/+2
| | | | | | | | | Bump Dd. PR: 207587 Submitted by: dewayne@heuristicsystems.com.au MFC after: 3 days Sponsored by: Essen Hackathon 2016
* Fix looking for "UTC" at start of ptr by using strnmp instead of improperlyngie2016-04-231-2/+2
| | | | | | | | | unrolled equivalent CID: 1347118 MFC after: 1 week Reported by: Coverity Sponsored by: EMC / Isilon Storage Division
* Add ATF tests for usr.sbin/extattrasomers2016-04-223-0/+301
| | | | | | | | | | Add ATF tests for the existing behavior of setextattr, rmextattr, lsextattr, and getextattr. Reviewed by: ngie MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D5889
* Use MIN()/MAX() macros from sys/param.h.araujo2016-04-222-3/+3
| | | | | Reviewed by: grehan Differential Revision: https://reviews.freebsd.org/D6054
* Don't try to free `string` (stack allocated char[])ngie2016-04-221-2/+1
| | | | | | | | | Fix minor style with warnx call while in the neighborhood MFC after: 1 week CID: 1009683 Reported by: Coverity, gcc 5.x Sponsored by: EMC / Isilon Storage Division
* Don't use `entry` after free in the "already in lists" casengie2016-04-221-0/+1
| | | | | | | | | | | Return with 0 as it isn't an error. MFC after: 1 week CID: 1006085 Reported by: Coverity Obtained from: Isilon OneFS (part of r493633) Submitted by: Thor Steingrimsson <thor.steingrimsson@isilon.com> Sponsored by: EMC / Isilon Storage Division
* Use macro MAX() from sys/param.h.araujo2016-04-221-1/+1
| | | | MFC after: 2 weeks.
* Use macro MAX() from sys/param.h.araujo2016-04-221-1/+1
| | | | MFC after: 2 weeks.
* Plug memory leakbapt2016-04-201-0/+2
| | | | | Reported by: coverity CID: 1331664, 1331665
* Plug various resources leakbapt2016-04-201-1/+13
| | | | | | | | While here fix a test logic Reported by: coverity CID: 1332096, 1332097, 1332098, 1332099, 1332100, 1332101, 1332102 MFC after: 1 week
* Plug leaksbapt2016-04-201-0/+8
| | | | | | Reported by: Coverity CID: 1340155 and 1340156 MFC after: 1 week
* Don't use SYSDIR to avoid conflicts with existing usage.grehan2016-04-201-2/+2
| | | | | | | Also, use SRCTOP to locate the top of the source tree instead of a relative path. PR: 208856
* Update the bhyve(8) man page:novel2016-04-201-1/+22
| | | | | | | | | - Document powering off by sending SIGTERM signal - Document exit codes Reviewed by: wblock, neel Approved by: wblock Differential Revision: D5982
* Always emit an error message on passthru configuration errors.jhb2016-04-191-22/+34
| | | | | | | | | | | Previously, many errors (such as the PCI device not being attached to the ppt(4) driver) resulted in bhyve silently exiting without starting the virtual machine. Now any errors encountered when configuring a virtual slot for a PCI passthru device should be noted on stderr. Reviewed by: neel Differential Revision: https://reviews.freebsd.org/D5990
* Add a new installation type to bsdinstall/zfsboot: BIOS+UEFIallanjude2016-04-191-16/+52
| | | | | | | | | | | Installs both pmbr+gptzfsboot as well as boot1.efifat in separate partitions The resulting system can be booted with either UEFI or BIOS/CSM. Preference is controlled by the user's firmware boot settings. This is now the default for zfsboot installs PR: 208629 Submitted by: Galael LAPLANCHE <ganael.laplanche@corp.ovh.com> (original version)
* Reuse our roundup2() macro instead of reinventing the wheel.pfg2016-04-182-6/+2
| | | | Obtained from: DragonflyBSD
* The malloc will return NULL if it can't allocate memory.araujo2016-04-181-1/+1
| | | | MFC after: 2 weeks.
* Use nitems instead of 'sizeof(mapnames) / sizeof(mapnames[0]'.araujo2016-04-181-2/+2
|
* Use the SOCK_CLOEXEC flags in the socket(2) 'type' attribute instead ofbapt2016-04-161-8/+3
| | | | | | calling fcntl(2) MFC after: 1 week
* Use pipe2(2) to directly set the close-on-exec flags directlybapt2016-04-161-6/+1
| | | | MFC after: 1 week
* MFHgjb2016-04-1621-55/+143
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * Cleanup unnecessary semicolons from utilities we all love.pfg2016-04-158-10/+10
| |
OpenPOWER on IntegriCloud