summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Default to use 10 seconds as nap interval instead of 1.delphij2014-11-162-3/+3
| | | | | | | | | | | | | | | | | | | | | Previously, we have a nap interval of 1 second while we have a timeout of 128 seconds by default, which could be an overkill, and for some hardware the patting action may be expensive. Note that the choice of nap interval is still arbitrary. We preferred a safe value where even when the system is very heavily loaded, the watchdog should not shoot the system down if it's not really hung. According to the manual page of Linux's watchdog daemon, the nap interval time of theirs is 10 seconds, which seems to be a reasonable value -- according to Intel documentation AP-725 (Document Number: 292273-001), ICH5's maximum timeout is about 37.5 seconds, which the ichwd(4) driver would set when we requested 128 seconds (although it should probably feed back this as an error and do not set the timeout). Since that's the shortest maximum value, 10 seconds seems to be a right choice for us too. Discussed with: alfred MFC after: 1 month
* wpa_cli does not use libedit anymore since version 1.0bapt2014-11-151-3/+3
|
* Add a test for locking and unlocking user accountsbrd2014-11-152-1/+23
| | | | | Submitted by: Robert O'Neil <oneil.rs@gmail.com> Reviewed by: will
* Fix wrong message when using pw -V with a non existent directorybapt2014-11-123-1/+27
| | | | | | | Add a regression test about it PR: 194971 Submitted by: Freddy DISSAUX <bugzilla@dsx.bsdsx.fr>
* Decode more fields when dumping USB descriptors.hselasky2014-11-121-4/+79
| | | | | | | - Some minor style changes while at it. Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 1 week
* Fix a few cases of use of uninitialized variables. Found with -Wall.loos2014-11-121-2/+8
| | | | MFC after: 1 week
* Fix whitespace.dteske2014-11-111-4/+4
| | | | Thanks to: nwhitehorn
* Default `bsdconfig timezone' and `tzsetup' to `-s' in a VM.dteske2014-11-112-1/+13
| | | | | | Recommended by: cperciva Reviewed by: cperciva Relnotes: tzsetup and bsdconfig now assume that the "hardware" clock inside a VM is set to UTC
* Renove faith(4) and faithd(8) from base. It looks like industrymelifaro2014-11-0913-3689/+7
| | | | | | | | | have chosen different (and more traditional) stateless/statuful NAT64 as translation mechanism. Last non-trivial commits to both faith(4) and faithd(8) happened more than 12 years ago, so I assume it is time to drop RFC3142 in FreeBSD. No objections from: net@
* To allow a request to be submitted from within the callback routine oftychon2014-11-091-2/+2
| | | | | | a completing one increase the total by 1 but don't advertise it. Reviewed by: grehan
* Make both iSCSI initiator and target support base64 encoded CHAP data.mav2014-11-092-2/+100
| | | | | | | | | While all tested initiators and targets use hex-encoded CHAP data, RFC also allows base64 encoding there, and Microsoft certificaition tool uses it. Reviewed by: trasz (earlier version) MFC after: 2 weeks Sponsored by: iXsystems, Inc.
* Add HISTORY section to ctld(8).trasz2014-11-091-1/+6
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Fix several nits in redirection handling - don't use wrong CSG,trasz2014-11-091-27/+14
| | | | | | | and avoid use-after-free. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Add support for sending redirections to iSCSI target.trasz2014-11-096-6/+195
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Improve wording in ctl.conf(5).trasz2014-11-081-4/+5
| | | | | | | Differential Revision: https://reviews.freebsd.org/D1020 Reviewed by: bcr@ (earlier version), wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* ctld(8) doesn't require -lcam or -lssl; remove those from DPADD and LDADD.trasz2014-11-081-2/+2
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Remove unused assignments, noticed by Clang analyzer.mav2014-11-071-7/+7
| | | | MFC after: 1 week
* Backout 274170 it breaks for mipsbapt2014-11-061-2/+2
|
* fifolog_writer does not depend on libutilbapt2014-11-061-2/+2
|
* fifolog_reader does not depend on libutilbapt2014-11-061-2/+2
|
* iscsid does not need to link to libsslbapt2014-11-061-2/+2
|
* sntp does not depend on libmbapt2014-11-061-2/+2
|
* rpcbind does not need to be linked to libutilbapt2014-11-061-2/+2
|
* Add to CTL support for logical block provisioning threshold notifications.mav2014-11-061-1/+9
| | | | | | | | For ZVOL-backed LUNs this allows to inform initiators if storage's used or available spaces get above/below the configured thresholds. MFC after: 2 weeks Sponsored by: iXsystems, Inc.
* Add EXAMPLES-section entry for new key+=append syntax of sysrc(8).dteske2014-11-051-1/+7
| | | | | | | MFC after: 3 days X-MFC-to: stable/10 stable/9 X-MFC-with: 274068 Thanks to: @SeanChittenden
* Improve the ability to cancel an in-flight request by using antychon2014-11-041-24/+146
| | | | | | | interrupt, via SIGCONT, to force the read or write system call to return prematurely. Reviewed by: grehan
* Follow-up to r255036; remove beforeinstall directives from bsdconfig(8)dteske2014-11-0439-119/+0
| | | | | | | | | Makefile's, fixing concurrent installworld (`make -j17 installworld'). Thanks to: delphij, emaste Reviewed by: delphij MFC after: 3 days X-MFC-to: stable/10, stable/9
* Add key+=append syntax to sysrc(8).dteske2014-11-032-7/+27
| | | | | | Reviewed by: shurd MFC after: 3 days X-MFC-to: stable/10 stable/9
* If the start bit, PxCMD.ST, is cleared and nothing is in-flight thentychon2014-11-031-2/+6
| | | | | | PxCI, PxSACT, PxCMD.CCS and PxCMD.CR should be 0. Reviewed by: grehan
* Require root when running the pw_delete and pw_modify test programs (pw(8)ngie2014-11-031-0/+3
| | | | requires it)
* Integrate usr.sbin/useradd/t_useradd.sh from NetBSD into FreeBSD as pw_testngie2014-11-031-0/+11
| | | | | | | | | - Suffix useradd/userdel commands with pw - Remove the atf_expect_fail for bin/39546 Phabric: D921 Reviewed by: brd Sponsored by: EMC / Isilon Storage Division
* Rewrite some of the disk setup documentation to be clearer and containnwhitehorn2014-10-311-32/+34
| | | | | | | less obsolete information. Also move the entropy command down the list -- the list is ordered by likelihood of use rather than alphabetically. MFC after: 1 week
* Rework the EXAMPLES section to be a bit clearer.jhb2014-10-291-6/+58
| | | | | | | | | | | | - Add an example of using etcupdate diff. - Create a subsection on bootstrapping that is below the simple examples. This should make it clearer that 'etcupdate extract' is a one-time operation and not part of the common workflow. It also adds more suggestions on when bootstrapping is needed and additional steps to make future merges simpler. Reviewed by: adrian MFC after: 3 days
* Fix iscsictl(8) and ctld(8) to correctly handle Windows newlinestrasz2014-10-291-0/+1
| | | | | | | (CRLF) in iscsi.conf and ctl.conf. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Keep the token list sorted.trasz2014-10-291-3/+3
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Make it possible to optionally use semicolon to separate statements.trasz2014-10-292-1/+12
| | | | | | | | | | | This makes it possible to format stuff like this: target xxx { lun 0 { path /foo/bar; size 4G; } } MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Simplify code; no functional changes.trasz2014-10-293-47/+21
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Add discovery-filter. This makes it possible to restrict which targetstrasz2014-10-297-8/+193
| | | | | | | | | are returned during discovery based on initiator portal, name, and CHAP credentials. Reviewed by: mav@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Document iSNS defaults.trasz2014-10-281-1/+3
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Fix renaming a group via the gr_copy functionbapt2014-10-281-0/+14
| | | | | | | | | | Add a regression test to pw(8) because the bug was discovered via using: pw groupmod PR: 187189 Reported by: mcdouga9@egr.msu.edu Tested by: mcdouga9@egr.msu.edu Patch by: Marc de la Gueronniere
* Ensure pw userdel -u <invalid> do not try to remove rootbapt2014-10-282-0/+14
| | | | | | Check the uid passed is actually a number as early as possible MFC after: 1 week
* Fix atf syntaxbapt2014-10-281-1/+1
|
* Do not delete the group wheel when bad argument is passed to pw groupdel -gbapt2014-10-282-0/+17
| | | | | | | | | | | | Check that the -g argument is actually a number, if not report an error. This argument is converted without checking with atoi(3) later so without this check it converts any alpha entries into 0 meaning it deletes the group wheel Add a regression test about it PR: 90114 Reported by: bkoenig@cs.tu-berlin.de MFC after: 1 week
* Fix a regression in pw usermod -G listbapt2014-10-282-1/+40
| | | | | | | | | | The user was perperly adding the to different groups from "list" but was not removed from the other groups it could have belong to. While here add a regression test about this bug PR: 185666 Reported by: sub.mesa@gmail.com MFC after: 1 week
* Remove spurious libelf dependency.nwhitehorn2014-10-281-1/+1
| | | | Submitted by: pluknet
* When a group is renamed then the group has been invalidated for sure.bapt2014-10-282-3/+17
| | | | | | | | | In that case get the group information using the new name. Add a regression test about this bug PR: 193704 Reported by: az
* Fix build after previous commit. While here, improve error messages.trasz2014-10-281-13/+27
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Remove the distinction between strings and numbers from ctld(8) yacc parser.trasz2014-10-282-30/+59
| | | | | | | | | | This fixes problems with passing strings that look like numbers to clauses that expect strings; previously it caused syntax errors and had to be worked by user, using quotes. The workaround introduced in r267833 is no longer neccessary. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Use pkg-1.4-style platform identifiers based on MACHINE_ARCH (e.g.nwhitehorn2014-10-273-410/+22
| | | | | | | | FreeBSD:11:amd64 instead of freebsd:11:x86:64) when bootstrapping pkg. Thanks to portmgr for providing symlinks so both styles work. Reviewed by: bapt MFC after: 3 weeks
* Fix renderingbapt2014-10-271-2/+1
| | | | Submitted by: brueffer
OpenPOWER on IntegriCloud