summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* Add procfs to jail-mountable filesystems.mm2012-02-291-0/+8
| | | | | Reviewed by: jamie MFC after: 1 week
* Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, todim2012-02-281-3/+1
| | | | | | | | | | | | | | | | | | | | | get rid of testing explicitly for clang (using ${CC:T:Mclang}) in individual Makefiles. Instead, use the following extra macros, for use with clang: - NO_WERROR.clang (disables -Werror) - NO_WCAST_ALIGN.clang (disables -Wcast-align) - NO_WFORMAT.clang (disables -Wformat and friends) - CLANG_NO_IAS (disables integrated assembler) - CLANG_OPT_SMALL (adds flags for extra small size optimizations) As a side effect, this enables setting CC/CXX/CPP in src.conf instead of make.conf! For clang, use the following: CC=clang CXX=clang++ CPP=clang-cpp MFC after: 2 weeks
* mdoc(7) stype - start new sentences on new linemm2012-02-281-8/+10
| | | | MFC after: 1 week
* Drop setuid status while doing file operations to prevent potentialdelphij2012-02-271-12/+21
| | | | | | | | information leak. This changeset is intended to be a minimal one to make backports easier. Reviewed by: kevlo, remko MFC after: 1 week
* Fix segfault if distfetch and distextract binaries are run standalonenwhitehorn2012-02-262-2/+16
| | | | | | | | without the DISTRIBUTIONS environment variable set. PR: bin/165492 Submitted by: Fernando Apesteguia MFC after: 4 days
* Analogous to r232059, add a parameter for the ZFS file system:mm2012-02-261-1/+12
| | | | | | | | | | | | | | | | allow.mount.zfs: allow mounting the zfs filesystem inside a jail This way the permssions for mounting all current VFCF_JAIL filesystems inside a jail are controlled wia allow.mount.* jail parameters. Update sysctl descriptions. Update jail(8) and zfs(8) manpages. TODO: document the connection of allow.mount.* and VFCF_JAIL for kernel developers MFC after: 10 days
* When using uidstart in /etc/adduser.conf, get the nextdeischen2012-02-251-0/+1
| | | | | | | | available user id and show it in the "Uid [xxx]" prompt. PR: 163863 Submitted by: Moritz Wilhelmy (mw at wzff dot de) MFC after: 2 weeks
* Exit with proper status when wake() fails.jh2012-02-241-5/+8
| | | | | | PR: bin/153527 Submitted by: Douglas Steinwand MFC after: 2 weeks
* style(9).jh2012-02-241-4/+4
| | | | MFC after: 2 weeks
* To improve control over the use of mount(8) inside a jail(8), introducemm2012-02-231-8/+28
| | | | | | | | | | | | | | | | | | | a new jail parameter node with the following parameters: allow.mount.devfs: allow mounting the devfs filesystem inside a jail allow.mount.nullfs: allow mounting the nullfs filesystem inside a jail Both parameters are disabled by default (equals the behavior before devfs and nullfs in jails). Administrators have to explicitly allow mounting devfs and nullfs for each jail. The value "-1" of the devfs_ruleset parameter is removed in favor of the new allow setting. Reviewed by: jamie Suggested by: pjd MFC after: 2 weeks
* Handle NULL return from crypt(3). Mostly from DragonFlykevlo2012-02-223-4/+11
|
* If permitted protect the supervisor against pageout kill.trociny2012-02-191-0/+7
| | | | | Suggested by: Andrey Zonov <andrey zonov org> MFC after: 2 weeks
* Add -r option to restart the program if it has been terminated.trociny2012-02-192-22/+45
| | | | | Suggested by: Andrey Zonov <andrey zonov org> MFC after: 2 weeks
* If the supervising process receives SIGTERM, forward it to the spawnedtrociny2012-02-192-11/+72
| | | | | | | | | | | | process. Normally it will cause the child to exit followed by the termination of the supervisor after removing the pidfile. This looks like desirable behavior, because termination of a supervisor usually supposes termination of its charge. Also it will fix the issue with stale pid files after reboot due to init kills a supervisor before its child exits. MFC after: 2 weeks
* The pidfile_open(3) is going to be fixed to set close-on-exec in ordertrociny2012-02-192-26/+58
| | | | | | | | | | | | | | | | not to leak the descriptor after exec(3). This raises the issue for daemon(3) of the pidfile lock to be lost when the child process executes. To solve this and also to have the pidfile cleaned up when the program exits, if a pidfile is specified, spawn a child to exec the command and wait in the parent keeping the pidfile locked until the child process exits and remove the file. Reported by: Andrey Zonov <andrey zonov org> Suggested by: pjd Reviewed by: pjd MFC after: 2 weeks
* Fix a stupid typo.jkim2012-02-161-1/+1
|
* Merge ACPICA 20120215.jkim2012-02-163-43/+43
|
* Add support for filtering USB devices and USB endpoints to the usbdump utilityhselasky2012-02-162-12/+174
| | | | | | when making software USB traces. MFC after: 1 week
* Fix warning when compiling with gcc46eadler2012-02-161-4/+0
| | | | | Approved by: cperciva MFC after: 3 days
* - Remove some unnecessary cast when assigning NULL to a handle.kevlo2012-02-151-3/+3
| | | | - Silent a warning
* readlink len-1kevlo2012-02-141-1/+1
|
* Restore message in man page on VFS timestamp precision.ed2012-02-141-1/+11
| | | | Requested by: bde, jhb
* Prevent periodic scripts that run longer than the expected period frombrooks2012-02-121-64/+95
| | | | | | | | | | | starting up before the previous script finishes. This prevents an infinite number of them from piling up and slowing a system down. Since all the refactoring to make this happen required churning the indenting of most of this file, make the indentation more consistent. Reviewed by: simon MFC after: 1 week
* Globally replace u_int*_t from (non-contributed) man pages.ed2012-02-121-1/+1
| | | | | | | | | | | The reasoning behind this, is that if we are consistent in our documentation about the uint*_t stuff, people will be less tempted to write new code that uses the non-standard types. I am not going to bump the man page dates, as these changes can be considered style nits. The meaning of the man pages is unaffected. MFC after: 1 month
* Replace utxrm(8) by utx(8).ed2012-02-115-31/+99
| | | | | | | | | | At first, I added a utility called utxrm(8) to remove stale entries from the user accounting database. It seems there are cases in which we need to perform different operations on the database as well. Simply rename utxrm(8) to utx(8) and place the old code under the "rm" command. In addition to "rm", this tool supports "boot" and "shutdown", which are going to be used by an rc-script which I am going to commit separately.
* Correct date. It seems to be 2012.ed2012-02-101-1/+1
|
* Detect file modification properly by using tv_nsec.ed2012-02-101-8/+1
| | | | | | | POSIX 2008 standardizes st_mtim, meaning we can simply use nanosecond precision to detect file modification. MFC after: 2 weeks
* Fix r231300: Use correct test so we only bail out on error instead of on ↵eadler2012-02-101-1/+1
| | | | | | | | | | non-error. Also, fix a style bug. Submitted by: ache Approved by: cperciva MFC after: 1 month
* Permit the use of relative paths for the prefix argument.eadler2012-02-091-3/+9
| | | | | | | | | Remove an unnecessary cwd from created plists when -p is specified PR: bin/145000 Submitted by: gcooper Approved by: portmgr (flo) MFC after: 1 month
* Add support for mounting devfs inside jails.mm2012-02-091-1/+12
| | | | | | | | | | | | | A new jail(8) option "devfs_ruleset" defines the ruleset enforcement for mounting devfs inside jails. A value of -1 disables mounting devfs in jails, a value of zero means no restrictions. Nested jails can only have mounting devfs disabled or inherit parent's enforcement as jails are not allowed to view or manipulate devfs(8) rules. Utilizes new functions introduced in r231265. Reviewed by: jamie MFC after: 1 month
* Mention run(4)kevlo2012-02-091-0/+1
|
* It's not an error if unlink(2) fails because the pathname doesn't exist.wollman2012-02-081-2/+2
| | | | | Noticed by: kevlo Pointy hat to: wollman
* Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessordim2012-02-0712-16/+16
| | | | | | set via ${CPP} is used, instead of always using hardcoded /usr/bin/cpp. MFC after: 1 week
* Be as explicit as possible when describing relation between the -m maskkib2012-02-041-3/+6
| | | | | | | argument and slices. Adjust example for the same reason. Submitted by: Valentin Nechayev <netch netch kiev ua> MFC after: 3 days
* Change the notes about the pidfile to include Doug's preferenceghelmer2012-02-011-2/+3
| | | | | | for pre-creating the pidfile with appropriate owner and permissions. Requested by dougb
* Fix a whitespace nitkevlo2012-01-311-1/+1
| | | | Reviewed by: bz
* Allow contents of multiple directories to be merged to the current image.jkim2012-01-318-63/+139
| | | | | | | | Note this patch was submitted to NetBSD and they already adopted it. http://mail-index.netbsd.org/source-changes/2012/01/28/msg031078.html MFC after: 1 week
* Since April 2, 2006, Indiana has observed DST.scf2012-01-281-2/+2
| | | | MFC after: 5 days
* o in6_ifinfo() does not do any kvm(3) operations, somaxim2012-01-271-26/+27
| | | | | | | | | do not guard it by WITH_KVM ifdef. This allows to build ifmcstat(8) without kvm(3) support. PR: bin/164353 Submitted by: Ivan Rozhuk MFC after: 2 weeks
* Return proper error message if recording device is not specified.mav2012-01-271-1/+6
| | | | MFC after: 1 week
* Add CAM infrastructure to allow reporting when a drive's long read capacityken2012-01-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | data changes. cam_ccb.h: Add a new advanced information type, CDAI_TYPE_RCAPLONG, for long read capacity data. cam_xpt_internal.h: Add a read capacity data pointer and length to struct cam_ed. cam_xpt.c: Free the read capacity buffer when a device goes away. While we're here, make sure we don't leak memory for other malloced fields in struct cam_ed. scsi_all.c: Update the scsi_read_capacity_16() to take a uint8_t * and a length instead of just a pointer to the parameter data structure. This will hopefully make this function somewhat immune to future changes in the parameter data. scsi_all.h: Add some extra bit definitions to struct scsi_read_capacity_data_long, and bump up the structure size to the full size specified by SBC-3. Change the prototype for scsi_read_capacity_16(). scsi_da.c: Register changes in read capacity data with the transport layer. This allows the transport layer to send out an async notification to interested parties. Update the dasetgeom() API. Use scsi_extract_sense_len() instead of scsi_extract_sense(). scsi_xpt.c: Add support for the new CDAI_TYPE_RCAPLONG advanced information type. Make sure we set the physpath pointer to NULL after freeing it. This allows blindly freeing it in the struct cam_ed destructor. sys/param.h: Bump __FreeBSD_version from 1000005 to 1000006 to make it easier for third party drivers to determine that the read capacity data async notification is available. camcontrol.c, mptutil/mpt_cam.c: Update these for the new scsi_read_capacity_16() argument structure. Sponsored by: Spectra Logic
* Revert 229667: After some discussion of this change, it seems it isghelmer2012-01-252-3/+7
| | | | | | better to leave the pidfile open where it was. Add a note to the man page describing pidfile strategies to use if the daemon is to be run as a user other than root.
* Fix a SIGSEGV problem in directory entry renaming.hrs2012-01-251-0/+2
|
* Experimental support for booting CHRP-type PowerPC systems from hard disks.nwhitehorn2012-01-251-1/+3
|
* Clean up reinstall option and remove duplicate codeemaste2012-01-251-23/+12
| | | | | | | | | | | | | | - Move the reinstall logic to be before menus are initialised (menus are not needed when reinstalling a zonefile). - Remove unnecessary re-initialization of path_db. - Update variable name and error message because we now use the zone name relative to /usr/share/zoneinfo, not the full path. pr: bin/164041 Submitted by: Devin Teske <dteske vicor com> MFC after: 1 week
* Try resolving jail path with realpath(3).mm2012-01-241-2/+8
| | | | | | | | | jail(8) does a chdir(2) to the given path argument. Kernel evaluates the jail path from the new cwd and not from the original cwd, which leads to undesired behavior if given a relative path. Reviewed by: jamie MFC after: 2 weeks
* Fix warning when compiling with gcc46:eadler2012-01-201-3/+2
| | | | | | | error: variable 'clnt_stat' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-201-2/+1
| | | | | | | error: variable 'flags' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-201-4/+0
| | | | | | | error: variable 'a' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-201-2/+2
| | | | | | | error: variable 'fd' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days
OpenPOWER on IntegriCloud