summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Revert r221655:bcr2011-05-081-6/+2
| | | | | Various people voiced their concerns about these changes. Until this is resolved, we should use the old version.
* Jails have a problem in that if the jail directory is world-readable,bcr2011-05-081-2/+6
| | | | | | | | | | | | | | | an attacker with root access to the jail can create a setuid binary for their own use in the host environment (if they also have this access), thus breaking root in the host. This exploit is impossible if the jail's files are not world-readable. Add instructions to the man page on how to create a jail with the correct permissions set. PR: docs/156853 Submitted by: Chris Rees (utisoft at gmail dot com) Reviewed by: cperciva (security parts) MFC after: 9 days
* Minor usbdump update:hselasky2011-05-071-60/+68
| | | | | | | | - Use memcpy() instead of bcopy(). - Replace all asserts() by standard error messages. - Update usage(). MFC after: 7 days
* Simplify this code somewhat by only writing a 512-byte-sector APM map.nwhitehorn2011-05-061-29/+18
| | | | | | All firmwares can read it, we need to write one anyway for old OF versions, and if a 512-byte one is present, OS X ignores the 2048-byte one in favor of it.
* Fix boot on old machines (e.g. blue and white G3s) by synthesizing anwhitehorn2011-05-051-0/+19
| | | | 512-byte sector map instead unused space in the first 2048-byte sector.
* Encode horizontal scroll events (AC Pan) as button presses (bit 5 and 6)emax2011-05-041-0/+11
| | | | | Submitted by: David Demelier demelier dot david at gmail dot com MFC after: 1 week
* Add support for synthesizing an APM partition map to map Mac PowerPCnwhitehorn2011-05-031-0/+79
| | | | | | bootstrap partitions from the ISO9660 boot catalog. This preserves OS X's ability to mount the CD, while allowing us a way to provide HFS-ified bootstrap code for Open Firmware.
* Add a 'show progress' command that shows a summary of all in-progressjhb2011-04-293-2/+118
| | | | | | | | | commands for a given adapter. Specifically, it shows the status of any drive or volume activities currently in progress similar to the 'drive process' and 'volume progress' commands. Reviewed by: emaste MFC after: 1 week
* Fix typo in "continuously" argument used in patrol auto command.pluknet2011-04-271-1/+1
| | | | | | Obtained from: Sascha Wildner <saw att online dott de> Approved by: jhb MFC after: 3 days
* Patch the mountd and nfsd man pages to reflect the recent changesrmacklem2011-04-242-26/+14
| | | | | done by r220980 to deprecate the -e option and add the -o option. This is a content change for both man pages.
* This patch changes the default NFS server to the new one, which wasrmacklem2011-04-242-17/+17
| | | | | | | | referred to as the experimental server. It also adds a new command line option "-o" to both mountd and nfsd that forces them to use the old/regular NFS server. The "-e" option for these commands is now a no-op, since the new server is the default. I will be committing rc script and man changes soon. Discussed on freebsd-fs@.
* Check return code of setuid() in timedc.simon2011-04-231-1/+2
| | | | | | | While it will not fail in normal circumstances, better safe than sorry. MFC after: 3 days
* Check return code of setuid(), setgid(), and setgroups() in rwhod.simon2011-04-231-3/+12
| | | | | | | While they will not fail in normal circumstances, better safe than sorry. MFC after: 1 week
* o Remove an incomplete sentence.maxim2011-04-231-2/+0
| | | | | | PR: docs/156593 Submitted by: Yuri Pankov MFC after: 1 week
* Fix an old bug in newsyslog where we kept one log file more than wassimon2011-04-211-31/+59
| | | | | | | | | | | | | | | requested in newsyslog.conf. This was only the case using the non-time based filenames (.0, .1, .2 etc.). The change also makes newsyslog clean clean up the old extra logfile so users don't end up with a single stale logfile which won't be rotated out. This change also cleans up some code a bit to avoid more copy / paste code and removes some old copy / paste code in the process. PR: bin/76697 MFC after: 2 weeks
* - Allows using full device name paths, such as /dev/ad0 or /dev/mirror/gm0 ↵jpaetzel2011-04-218-209/+215
| | | | | | | | | | | | | in config files - Fixes some issues creating gmirror devices, including on GPT partitions - Bugfixes for ZFS mirroring - Enhanced GELI to work with a passphrase only, or key-file only - Bugfix to prevent crashing of PC-BSD Live media when checking for upgrade partitions Submitted by: Kris Moore <kmoore@freebsd.org> Approved by: kib (mentor) Sponsored by: iXsystems
* Add stablerestart(5) to the See Also list for nfsd.8.rmacklem2011-04-191-1/+2
| | | | | | | This is a content change. Suggested by: Jeremy Chadwick MFC after: 2 weeks
* Improve the man page and l2control's usage() a bit.emax2011-04-192-13/+22
| | | | | Submitted by: arundel MFC after: 1 week
* Fix mirror selection, which was broken by stderr redirection.nwhitehorn2011-04-192-2/+2
| | | | Reported by: Garrett Cooper
* Revert r220809 since it put the entry in the wrong placermacklem2011-04-191-2/+1
| | | | in the list and didn't change the date.
* Add stablerestart(5) to the See Also list for nfsd(8).rmacklem2011-04-191-1/+2
| | | | | | | This is a content change. Suggested by: Jeremy Chadwick MFC after: 2 weeks
* Update to reflect net install changes.nwhitehorn2011-04-171-12/+44
|
* Purge _USE_BERKELEY_YACC definition from Makefile. This ugly hack is nojkim2011-04-151-1/+0
| | | | long necessary for us since r220680.
* Merge ACPICA 20110413.jkim2011-04-152-14/+26
|
* - Fix the code that matches userids in match_jobspec(). It needs to checkgad2011-04-133-11/+11
| | | | | | | | | | the username-for-accounting field (P), not the username-for-headerpage (L). These are usually the same value, except that control files do not have the username-for-headerpage field if the user has requested no header page. - Also rename the cji_username field to cji_headruser, to make it clear that the value should only be used for the header page. (aka banner page) MFC after: 3 weeks
* Make the keymap script continue to work now that stderr is beingnwhitehorn2011-04-111-1/+2
| | | | redirected to the log file.
* Modify the man pages to reflect the addition of a backuprmacklem2011-04-102-31/+22
| | | | | | | stable restart file, as done by r220510. This is a content change. MFC after: 2 weeks
* Add support for a backup stable restart file to the nfsd,rmacklem2011-04-101-9/+110
| | | | | | | | | | used for NFSv4 restart. This permits the nfsd to create the stable restart file as required and minimizes the risk of trouble if the file is lost. Suggested by: Tim Kientzle Reviewed by: jhb MFC after: 2 weeks
* Rename the "Reboot" option to "Exit", which reflects what it actuallynwhitehorn2011-04-091-1/+1
| | | | | | does. The rc.local wrapper script will also soon grow an option to use the live environment after installation, so an immediate reboot isn't even necessarily implied.
* * Add the readline(3) API to libedit. The libedit versions ofobrien2011-04-053-17/+13
| | | | | | | | | | | | | | | | {readline,history}.h are in /usr/include/edit so as to not conflict with the GNU libreadline versions. To use the libedit readline(3) one should add "-I/usr/include/edit" to their Makefile (spelled "-I${DESTDIR}/${INCLUDEDIR}/edit" within the FreeBSD source tree). * Enable its use in the BSD licensed utilities that support readline(3). * To make it easier to sync libedit development with NetBSD, histedit.h is moved into libedit's directory as history shows shown we keep merging it into that location. Obtained from: NetBSD Sponsored by: Juniper Networks
* Add the ability to manage the state of write caching when the batteryjhb2011-04-052-7/+40
| | | | | | | | | back-up is missing or dead. The current state of this field is reported in 'mfiutil cache <volume>' and can be adjusted via 'mfiutil cache <volume> bad-bbu-write-cache <enable|disable>'. This setting should generally be disabled to avoid data loss. MFC after: 1 week
* Check correctly for whether there are any available wireless networks. Thisnwhitehorn2011-04-051-1/+1
| | | | was tested on a train in the middle of an upstate New York swamp.
* Improve logging by always sending stderr to the installation log file.nwhitehorn2011-04-051-1/+3
| | | | Reduce warnings by making sure the temporary etc directory exists.
* Lower WARNS to unbreak the build, some archs may have alignment issues.thompsa2011-04-041-1/+1
|
* fix printing of tv_usecthompsa2011-04-041-1/+1
|
* - Include usbdump into default build.hselasky2011-04-031-0/+1
| | | | | MFC after: 7 days Approved by: thompsa (mentor)
* - Improvements to USB PF solutionhselasky2011-04-031-124/+237
| | | | | | | | | | | | | | - Add more fields for USB device and host mode - Add more information to USB PF header so that decoding can easily be done by software analyzer tools like Wireshark. - Optimise usbdump to display USB streams in text format more efficiently. - Software using USB PF must be recompiled after this commit, due to structure changes. MFC after: 7 days Approved by: thompsa (mentor)
* Remove $Log$ keyword and associated history, which can cause annoyance inemaste2011-03-311-25/+0
| | | | | diffs in some cases. Revision control tools have a history command to obtain this information.
* Add a menu entry for UTC in the main menu.edwin2011-03-301-5/+39
| | | | | | | PR: bin/156019 Submitted by: Daniel O'Conner Reviewed by: Garrett Cooper <gcooper@FreeBSD.org> MFC after: 1 week
* Check in two missing files missed in cleanup.jpaetzel2011-03-302-4/+4
| | | | | | | Change expr to $(()) Switch test from "$?" = "0" to $? -eq 0 Approved by: kib (mentor)
* Fix syntax error from previous commit.jpaetzel2011-03-301-1/+1
| | | | Approved by: kib (mentor)
* Do not use word 'flood' as it not entirely correct. Use better 'no delay'emax2011-03-282-18/+19
| | | | | | | description. While here, replace atoi(3) with strtol(3). Submitted by: arundel MFC after: 1 week
* Committing while tired is never a good idea. Remove an unconditional errornwhitehorn2011-03-281-2/+0
| | | | exit left over from debugging.
* Improve error handling.nwhitehorn2011-03-281-5/+4
|
* Add mirror selection for FTP installs. To support TBEMD installsnwhitehorn2011-03-273-4/+235
| | | | | | | | | | (e.g. powerpc64), this looks in a slightly different default path than now, specifying both $MACHINE and $MACHINE_ARCH: MIRROR/pub/FreeBSD/releases/`uname -p`/`uname -m`/`uname -r` How to handle TBEMD properly probably merits some more discussion, but, since no such 9.0-CURRENT distfiles exist at the moment, all existing mirrors presently fail anyway.
* Fix a syntax error in a little-used function.jpaetzel2011-03-2719-308/+283
| | | | | | | | | | Replace expr with $(()) Replace grep > /dev/null with grep -q Replace "$?" = "0" with $? -eq 0 in tests Consolidate export statements with variable assignment Replace tests for ! -z with -n Approved by: kib (mentor)
* Increase size of boot partition to give breathing room in the future.jpaetzel2011-03-271-1/+1
| | | | Approved by: kib (mentor)
* Add an example for the use of the <include> entry to help othersdougb2011-03-261-1/+6
| | | | | | who are as slow as I am. Discussed with: gordon
* Really fix the confusion, sorry for noisebapt2011-03-241-2/+2
| | | | | Submitted by: avg Approved by: cognet
* Fix confusion between a-characters and d-charactersbapt2011-03-241-2/+2
| | | | | Submitted by: avg Approved by: cognet
OpenPOWER on IntegriCloud