aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* MFV r293415:Xin LI2016-01-088-21/+40
| | | | | | | | | | | ntp 4.2.8p5 Reviewed by: cy, roberto Relnotes: yes Differential Revision: https://reviews.freebsd.org/D4828 Notes: svn path=/head/; revision=293423
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2016-01-072-0/+3
| | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=293345
* Make cap_mkdb and services_mkdb file operations syncRenato Botelho2016-01-071-2/+18
| | | | | | | | | | | | | | | 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 MFC after: 1 week Sponsored by: Netgate Differential Revision: https://reviews.freebsd.org/D2982 Notes: svn path=/head/; revision=293312
* Allow /etc/exports to contain usernames/groups with spaces in them.Josh Paetzel2016-01-072-1/+72
| | | | | | | | | | | | | | 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 MFC after: 1 week Sponsored by: iXsystems Notes: svn path=/head/; revision=293305
* "source routing" in rpcbindAlan Somers2016-01-066-49/+979
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a bug in rpcbind for multihomed hosts. If the server had interfaces on two separate subnets, and a client on the first subnet contacted rpcbind at the address on the second subnet, rpcbind would advertise addresses on the first subnet. This is a bug, because it should prefer to advertise the address where it was contacted. The requested service might be firewalled off from the address on the first subnet, for example. usr.sbin/rpcbind/check_bound.c If the address on which a request was received is known, pass that to addrmerge as the clnt_uaddr parameter. That is what addrmerge's comment indicates the parameter is supposed to mean. The previous behavior is that clnt_uaddr would contain the address from which the client sent the request. usr.sbin/rpcbind/util.c Modify addrmerge to prefer to use an IP that is equal to clnt_uaddr, if one is found. Refactor the relevant portion of the function for clarity, and to reduce the number of ifdefs. etc/mtree/BSD.tests.dist usr.sbin/rpcbind/tests/Makefile usr.sbin/rpcbind/tests/addrmerge_test.c Add unit tests for usr.sbin/rpcbind/util.c:addrmerge. usr.sbin/rpcbind/check_bound.c usr.sbin/rpcbind/rpcbind.h usr.sbin/rpcbind/util.c Constify some function arguments Reviewed by: imp MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D4690 Notes: svn path=/head/; revision=293229
* Merge ^/projects/release-install-debug:Glen Barber2016-01-051-4/+60
| | | | | | | | | | | | | | | - Rework MANIFEST generation and parsing via bsdinstall(8). - Allow selecting debugging distribution sets during install. - Rework bsdinstall(8) to fetch remote debug distribution sets when they are not available on the local install medium. - Allow selecting additional non-GENERIC kernels during install. At present, GENERIC is still required, and installed by default. Tested with: head@r293203 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=293223
* Add sbin and /usr/local directories to _PATH_DEFPATH.Jilles Tjoelker2016-01-051-2/+2
| | | | | | | | | | | | | | | | | | | | Set _PATH_DEFPATH to /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin. This is the path in the default class in the default /etc/login.conf, excluding ~/bin which would not be expanded properly in a string constant. For normal logins, _PATH_DEFPATH is overridden by /etc/login.conf, ~/.login_conf or shell startup files. _PATH_DEFPATH is still used as a default by execlp(), execvp(), posix_spawnp() and sh if PATH is not set, and by cron. Especially the latter is a common trap (most recently in PR 204813). PR: 204813 Reviewed by: secteam (delphij), alfred Notes: svn path=/head/; revision=293204
* kbdmap.5: Use current names for ASCII control codes lf, ff, usEd Maste2016-01-021-4/+10
| | | | | | | | | | | Refer to the old names nl, np, ns as historical aliases. PR: 205776, 205778 MFC After: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=293055
* Unset the gss kernel state when gssd exitsJosh Paetzel2016-01-011-0/+2
| | | | | | | | | | | | | | | | | 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. Reviewed by: rmacklem MFC after: 1 week Sponsored by: iXsystems Notes: svn path=/head/; revision=293043
* Remove unused variable after r292981 to unbreak the build.Bjoern A. Zeeb2015-12-311-1/+1
| | | | Notes: svn path=/head/; revision=292982
* Clean up unused-but-set-variable spotted by gcc-4.9.Marcelo Araujo2015-12-311-5/+2
| | | | | | | | | Reviewed by: grehan Approved by: rodrigc (mentor) Differential Revision: https://reviews.freebsd.org/D4734 Notes: svn path=/head/; revision=292981
* Clean up unused-but-set-variable spotted by gcc-4.9.Marcelo Araujo2015-12-311-5/+0
| | | | | | | | Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D4736 Notes: svn path=/head/; revision=292971
* Clean up unused-but-set-variable spotted by gcc-4.9.Marcelo Araujo2015-12-311-2/+1
| | | | | | | | | Reviewed by: grehan Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D4735 Notes: svn path=/head/; revision=292970
* Fix getopt(3) argument after r290180; I forgot to change -r to -REnji Cooper2015-12-291-1/+1
| | | | | | | | | | | | by accident MFC after: 3 days Pointyhat to: ngie Reported by: vangyzen Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=292884
* Fix type mismatches for malloc(3) and Co.Ulrich Spörlein2015-12-295-6/+6
| | | | | | | | | | | | This is rather pedantic, as for most architectures it holds that sizeof(type *) == sizeof(type **) Found by: clang static analyzer Reviewed by: ed Differential Revision: https://reviews.freebsd.org/D4722 Notes: svn path=/head/; revision=292864
* Simplify code for parsing extra groupsBaptiste Daroussin2015-12-291-1/+1
| | | | Notes: svn path=/head/; revision=292849
* Remove useless assignement of linelenBaptiste Daroussin2015-12-291-2/+0
| | | | Notes: svn path=/head/; revision=292847
* Restore dryrun support for pw groupmodBaptiste Daroussin2015-12-281-0/+5
| | | | Notes: svn path=/head/; revision=292846
* Explicitly set permissions on entropy filesDevin Teske2015-12-281-1/+6
| | | | | | | | | | | | Differential Revision: https://reviews.freebsd.org/D3933 Submitted by: jmg Reviewed by: delphij, markm Approved by: secteam (delphij) MFC after: 3 days X-MFC-to: stable/10 stable/9 Notes: svn path=/head/; revision=292832
* Eliminate unneeded includes.Xin LI2015-12-282-3/+0
| | | | | | | | Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D4716 Notes: svn path=/head/; revision=292829
* The sdp opens the database with PERM_SECURE mode and it is different thanMarcelo Araujo2015-12-281-1/+1
| | | | | | | | | | | | | dp that opens the database with PERM_INSECURE, so we need to check sdp->put against sdp instead of use dp->put. PR: bin/191720 Submitted by: Miles Ohlrich <turingsboy@yahoo.com> Approved by: rodrigc (mentor) Differential Revision: https://reviews.freebsd.org/D4255 Notes: svn path=/head/; revision=292828
* Fix includes in usr.sbin/fstyp/zfs.cAllan Jude2015-12-262-2/+5
| | | | | | | | | | Approved by: bapt (mentor) MFC after: 1 week Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D4710 Notes: svn path=/head/; revision=292757
* camadd does not require linking to libsbuf or libbsdxml directlyBaptiste Daroussin2015-12-241-1/+1
| | | | Notes: svn path=/head/; revision=292687
* Undo change from r292607 that was not meant to be therePedro F. Giffuni2015-12-221-1/+1
| | | | | | | Pointyhat: me Notes: svn path=/head/; revision=292608
* cron: Check the return value of pipe(2)Pedro F. Giffuni2015-12-221-3/+5
| | | | | | | | Fix inspired by: OpenBSD (rev 1.56) CID: 1009830 Notes: svn path=/head/; revision=292607
* crontab: properly free an entryPedro F. Giffuni2015-12-221-1/+1
| | | | | | | | | | This should close memory leak. Obtained from: OpenBSD (rev. 1.62) CID: 271773 Notes: svn path=/head/; revision=292606
* crontab: replace malloc + bzero with callocPedro F. Giffuni2015-12-221-2/+1
| | | | | | | Obtained from: OpenBSD (Rev 1.20) Notes: svn path=/head/; revision=292605
* Prevent use-after-free with ctx->ns in set_nameservers(..), which could occurEnji Cooper2015-12-221-0/+1
| | | | | | | | | | | | if the memory wasn't allocated again later on Reported by: Coverity Submitted by: Miles Ohlrich <miles.ohlrich@isilon.com> MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=292585
* Add libxo support to jlsCraig Rodrigues2015-12-223-71/+120
| | | | | | | | | | | PR: 200746 Submitted by: Emmanuel Vadot <manu bidouilliste com> Reviewed by: allanjude Relnotes: yes Differential Revision: https://reviews.freebsd.org/D4452 Notes: svn path=/head/; revision=292580
* Make the building of libsmb and mount_smbfs unconditional, now that r292552Ian Lepore2015-12-216-5/+1
| | | | | | | | | | | has eliminated alignment and endian problems that were making it fail on some platforms. PR: 180438 PR: 189415 Notes: svn path=/head/; revision=292553
* makefs: use ENTRY macro for diff reduction with NetBSDEd Maste2015-12-211-3/+6
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=292549
* Fix indent after r292333.Hajimu UMEMOTO2015-12-191-16/+16
| | | | Notes: svn path=/head/; revision=292465
* Fix the precious change to check the pointer returned by malloc().John Baldwin2015-12-181-1/+1
| | | | | | | | Submitted by: luke <luke.tw@gmail.com> Pointy hat to: jhb Notes: svn path=/head/; revision=292443
* Generate ipnodes.by{addr,name} from /etc/hosts for compatibility withHajimu UMEMOTO2015-12-181-12/+5
| | | | | | | | | | | | FreeBSD local name resolution. If /var/yp/ipnodes exists, we generate them from it for backward compatibility. Inspired by: NetBSD MFC after: 1 week Notes: svn path=/head/; revision=292441
* - Keep hosts.by{name,addr} IPv4 only.Hajimu UMEMOTO2015-12-181-2/+13
| | | | | | | | | - Add comment how we handle hosts and ipnodes. (from NetBSD) MFC after: 1 week. Notes: svn path=/head/; revision=292435
* Exit cleanly if malloc() fails to allocate a buffer for a copy of theJohn Baldwin2015-12-171-0/+2
| | | | | | | | | | | current MBR. PR: 205322 Submitted by: Alexander Kuleshov <kuleshovmail@gmail.com> MFC after: 1 week Notes: svn path=/head/; revision=292410
* Build mount_smbfs for arm. Also sort the subdirs.Ian Lepore2015-12-161-1/+2
| | | | Notes: svn path=/head/; revision=292337
* Provide additional lle data in IPv6 lltable dump used by ndp(8).Alexander V. Chernikov2015-12-161-42/+36
| | | | | | | | | | | | | | | | | | Before the change, things like lle state were queried via SIOCGNBRINFO_IN6 by ndp(8) for _each_ lle entry in dump. This ioctl was added in 1999, probably to avoid touching rtsock code. This change maps SIOCGNBRINFO_IN6 data to standard rtsock dump the following way: expire (already) maps to rtm_rmx.rmx_expire isrouter -> rtm_flags & RTF_GATEWAY asked -> rtm_rmx.rmx_pksent state -> rtm_rmx.rmx_state (maps to rmx_weight via define) Reviewed by: ae Notes: svn path=/head/; revision=292333
* Remove a garbage printf used for debug.Marcelo Araujo2015-12-151-3/+1
| | | | | | | Approved by: bapt (mentor implicit) Notes: svn path=/head/; revision=292273
* Remove the null checker before free.Marcelo Araujo2015-12-151-2/+1
| | | | | | | | | Approved by: bapt (mentor) Obtained from: OpenBSD Differential Revision: https://reviews.freebsd.org/D4549 Notes: svn path=/head/; revision=292272
* Remove wrong header and the NULL check before free().Marcelo Araujo2015-12-151-3/+1
| | | | | | | | | Approved by: bapt (mentor) Obtained from: OpenBSD Differential Revision: https://reviews.freebsd.org/D4548 Notes: svn path=/head/; revision=292271
* EAGAIN handling for imsg_read.Marcelo Araujo2015-12-153-5/+7
| | | | | | | | | Approved by: bapt (mentor) Obtained from: OpenBSD Differential Revision: https://reviews.freebsd.org/D4547 Notes: svn path=/head/; revision=292270
* Show the enclosure name and id in sesutil mapBaptiste Daroussin2015-12-151-0/+11
| | | | | | | Sponsored by: Gandi.net Notes: svn path=/head/; revision=292262
* Flesh out the SEE ALSO section.Christian Brueffer2015-12-141-1/+12
| | | | | | | | | PR: 202929 Submitted by: jhs@berklix.com MFC after: 1 week Notes: svn path=/head/; revision=292212
* Fix sesutil locate when a sesid is passed to locate commandBaptiste Daroussin2015-12-111-1/+1
| | | | Notes: svn path=/head/; revision=292122
* sesutil: Add extra information specific to some SES devices to sesutil mapBaptiste Daroussin2015-12-114-21/+76
| | | | | | | | | | | | | | | | | | | | | Rework stat2ascii preparing a buffer of what could be printed. This prevent the risk of overflowing a static buffer. Do not print those informations anymore in the "status" but into a new "extra status" only printed if there are actually extra things to print. Now add those extra informations: * Thermal sensor temperature * Cooling devices speed * Voltage sensors, current consumption Tested by: AllanJude Sponsored by: Gandi.net Differential Revision: https://reviews.freebsd.org/D4520 Notes: svn path=/head/; revision=292121
* crunchide: add RISC-V to supported machine typesEd Maste2015-12-111-0/+4
| | | | | | | | MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=292106
* sesutils, pass the correct element type when printing the status of a givenBaptiste Daroussin2015-12-111-1/+1
| | | | | | | | | element of the ses. Sponsored by: Gandi.net Notes: svn path=/head/; revision=292093
* sesutil: fix map not printing the status of the LED device in an arrayBaptiste Daroussin2015-12-111-4/+4
| | | | | | | Sponsored by: Gandi.net Notes: svn path=/head/; revision=292092
* Augment kldxref to find the new MODULE_PNP_INFO records now inWarner Losh2015-12-111-3/+344
| | | | | | | | | | modules, simplify them into a more normal form and write them to linker.hints. Differential Review: https://reviews.freebsd.org/D3461 Notes: svn path=/head/; revision=292078