summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Switch to using a struct xucred instead of a struct xucred when notgreen2001-02-181-12/+12
| | | | | | | | | | | | | | | | | actually in the kernel. This structure is a different size than what is currently in -CURRENT, but should hopefully be the last time any application breakage is caused there. As soon as any major inconveniences are removed, the definition of the in-kernel struct ucred should be conditionalized upon defined(_KERNEL). This also changes struct export_args to remove dependency on the constantly-changing struct ucred, as well as limiting the bounds of the size fields to the correct size. This means: a) mountd and friends won't break all the time, b) mountd and friends won't crash the kernel all the time if they don't know what they're doing wrt actual struct export_args layout. Reviewed by: bde
* Preceed/preceeding are not english words. Use precede or preceding.asmodai2001-02-181-1/+1
|
* Document the new -k option in usage message and man page.des2001-02-162-2/+4
|
* Add a -k option that prevents clearing the dump after saving it.des2001-02-161-16/+57
| | | | | | | | | Use sysctlbyname() instead of sysctl(). Clear up and simplify the version extraction code. Attempt to detect stretches of zeroes in the dump and avoid writing them to disk to save space and time.
* Added pc98 support.nyan2001-02-161-0/+4
| | | | Submitted by: Akio Morita <amorita@meadow.scphys.kyoto-u.ac.jp>
* Don't allow special devices of type NODEV (NOUDEV as seen from kernel).tegge2001-02-151-0/+5
| | | | | | They can't be created via mknod and the kernel crashes if it encounters such an inode. Approved by: mckusick
* mdoc(7) police: normalize the construct.ru2001-02-151-5/+1
|
* Fix grammar nit in previous commit.sheldonh2001-02-141-1/+1
|
* Introduce a new feature in IPFW: Check of the source or destinationphk2001-02-132-40/+73
| | | | | | | | | | | | | | | | | | | address is configured on a interface. This is useful for routers with dynamic interfaces. It is now possible to say: 0100 allow tcp from any to any established 0200 skipto 1000 tcp from any to any 0300 allow ip from any to any 1000 allow tcp from 1.2.3.4 to me 22 1010 deny tcp from any to me 22 1020 allow tcp from any to any and not have to worry about the behaviour if dynamic interfaces configure new IP numbers later on. The check is semi expensive (traverses the interface address list) so it should be protected as in the above example if high performance is a requirement.
* mdoc(7) police: use the default ``file ...'' feature of the .Ar macro.ru2001-02-132-3/+3
|
* Use ".Nm fsck_ffs", so that this turns up in whatis(1), and others.nik2001-02-121-2/+4
| | | | | | | Add .Xr to fsck. Prompted by: JM Jr's script that shows binaries with no whatis info Reviewed by: adrian
* Fix a cosmetic problem with some very defensive programming: The devfsphk2001-02-081-1/+17
| | | | mount would show up as "/dev/", loose that trailing slash.
* mdoc(7) police: Change -filled displays (which just happenru2001-02-072-4/+4
| | | | | | to be the same as -ragged in the current implementation) to -ragged. With mdocNG, -filled displays produce the correct output, formatted and justified to both margins.
* Fix typo: seperate -> separate.asmodai2001-02-061-3/+3
| | | | | | Seperate does not exist in the english language. Submitted to look at by: kris
* mount a --> mount andan2001-02-041-1/+1
| | | | | PR: 24842 Submitted by: Rich Morin <rdm@cfcl.com>
* Add an xref for mount_ntfs.nik2001-02-021-0/+1
| | | | | PR: docs/24693 Submitted by: Etienne Vidal <hallik@libertysurf.fr>
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-8/+6
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-0122-82/+112
|
* Fsck_ffs did not properly range-check the inode 'di_size'iedowse2001-01-312-3/+8
| | | | | | | | | | | | | | | | | | | field, so it was possible for a filesystem marked clean by fsck_ffs to cause kernel crashes later when mounted. This could occur when fsck_ffs was used to repair a badly corrupted filesystem. As pointed out by bde, it is not sufficient to restrict di_size to just the superblock fs_maxfilesize limit. The use of 32-bit logical block numbers (both in fsck and the kernel) induces another file size limit which is usually lower than fs_maxfilesize. Also, the old 4.3BSD filesystem does not have fs_maxfilesize initialised. Following this change, fsck_ffs will enforce exactly the same file size limits as are used by the kernel. PR: kern/15065 Discussed with: bde Reviewed by: bde, mckusick
* Strip optional prefixes "/dev/" and "md" from the -u argument.phk2001-01-311-0/+5
|
* Make mount_mfs annoy users for 15 seconds and point them at mdconfig(8).phk2001-01-302-0/+12
|
* Fix 'tunefs -p'ben2001-01-291-0/+1
| | | | Reviewed by: sheldonh
* Use <sys/queue.h> instead of home-rolled list.phk2001-01-293-16/+16
| | | | Submitted by: "Jason Smethers" <jsmethers@pdq.net>
* Use \a instead of \007 for making noise.phk2001-01-283-4/+4
| | | | Submitted by: "Jason Smethers" <jsmethers@pdq.net>
* Duh, the version of mdconfig.c I committed came from the wrong machine.phk2001-01-282-20/+1
| | | | | | | Commit the right version, but without the -b option which is too evil for the present. Remove -b and preload from the manpage as well.
* Don't specify fragment size, it autosizes from the sectorsize.phk2001-01-281-1/+2
| | | | | | Remember to set mode 1777 on /tmp Submitted by: mjacob
* Print out the target device when the mount fails.bsd2001-01-251-1/+2
|
* Always print out the target device when the mount fails, not just onbsd2001-01-251-4/+1
| | | | ENOENT.
* Provide a better error message when the /dev entry is non-existant.bsd2001-01-251-0/+3
| | | | | Due to the old message, I spent way more time debugging a diskless root problem than it should have taken.
* Fix the vulnerability with TCP ECE packets recently fixed in ipfw.kris2001-01-231-2/+2
| | | | This is untested, but believed to work.
* avoid conflicting #define symbol (s/FW_IFNLEN/IP6&/).ume2001-01-221-3/+3
| | | | Obtained from: KAME
* mdoc police.ben2001-01-221-2/+3
| | | | Submitted by: ru
* man(7) -> mdoc(7).ru2001-01-222-144/+126
|
* Room to hold rules should be dynamically allocated.ume2001-01-201-10/+18
| | | | PR: kern/24248
* Add 'netrange' parameter to 'range' command and fix a couple of typos.ben2001-01-201-3/+3
| | | | | PR: 23984 Submitted by: Jimmy Olgeni <olgeni@uli.it>
* Removed unused copy of ../mount/getmtopts.3.bde2001-01-175-461/+5
| | | | | | | | | | | Removed used copies of ../mount/getmntopts.c ../mount/mntopts.h. Use the versions in ../mount directly like all other mount utilities. Removed used copy of ../mount/pathnames.h. Use the version in ../mount for free as a side effect of using the mntopts files there. We should not use it at all, since the 2/3 of the definitions in it are in <paths.h> and the other 1/3 should be in ../mountd/pathnames.h and is not used by mount_ifs anyway.
* Removed unused rotting copy of ../mount/mount.8. It should never havebde2001-01-171-385/+0
| | | | been repo-copied.
* mdoc(7) police: fixed broken references.ru2001-01-161-1/+1
|
* Prepare for mdoc(7)NG.ru2001-01-167-14/+14
|
* Fix typo.grog2001-01-151-4/+6
| | | | | | | | | Submitted by: Jimmy Olgeni <olgeni@uli.it> PR: 24233 Fix typos. Submitted by: "Jeroen C. van Gelderen" <jeroen@vangelderen.org>
* The ffs superblock includes a 128-byte region for use by temporaryiedowse2001-01-156-10/+17
| | | | | | | | | | | | | | | | | | | | in-core pointers to summary information. An array in this region (fs_csp) could overflow on filesystems with a very large number of cylinder groups (~16000 on i386 with 8k blocks). When this happens, other fields in the superblock get corrupted, and fsck refuses to check the filesystem. Solve this problem by replacing the fs_csp array in 'struct fs' with a single pointer, and add padding to keep the length of the 128-byte region fixed. Update the kernel and userland utilities to use just this single pointer. With this change, the kernel no longer makes use of the superblock fields 'fs_csshift' and 'fs_csmask'. Add a comment to newfs/mkfs.c to indicate that these fields must be calculated for compatibility with older kernels. Reviewed by: mckusick
* Add a couple of newlines in the output from route monitorphk2001-01-151-2/+4
|
* Replace reference to replacing mkfs(8) with a paragraph actuallyeivind2001-01-151-3/+1
| | | | describing what newfs *does*.
* Document the -N option in the usage message and the man page.des2001-01-142-8/+10
|
* Add a -N option that makes sysctl(8) print out just the variable names.des2001-01-141-10/+31
| | | | | | | | | | | | | | Zsh users can add the following to their .zshrc for sysctl completion: function listsysctls { case $1 in *.*) set -A reply $(sysctl -AN ${1%.*}) ;; *) set -A reply $(sysctl -AN) ;; esac } compctl -K listsysctls sysctl While I'm here, brucify the getopt() switch.
* Remove references to lockinfo.plex.grog2001-01-141-10/+7
| | | | Reported by: dougb
* Mdoc(7)ify.ru2001-01-101-36/+66
|
* o IPFW incorrectly handled filtering in the presence of previouslyrwatson2001-01-091-3/+2
| | | | | | | | | | | | | | | | | | | | reserved and now allocated TCP flags in incoming packets. This patch stops overloading those bits in the IP firewall rules, and moves colliding flags to a seperate field, ipflg. The IPFW userland management tool, ipfw(8), is updated to reflect this change. New TCP flags related to ECN are now included in tcp.h for reference, although we don't currently implement TCP+ECN. o To use this fix without completely rebuilding, it is sufficient to copy ip_fw.h and tcp.h into your appropriate include directory, then rebuild the ipfw kernel module, and ipfw tool, and install both. Note that a mismatch between module and userland tool will result in incorrect installation of firewall rules that may have unexpected effects. This is an MFC candidate, following shakedown. This bug does not appear to affect ipfilter. Reviewed by: security-officer, billf Reported by: Aragon Gouveia <aragon@phat.za.net>
* Document fsck_ffs's new SIGINFO handler.iedowse2001-01-031-0/+12
| | | | Reviewed by: sheldonh
* Minor layout fixes.ben2001-01-011-0/+4
| | | | | PR: 24004 Submitted by: Jimmy Olgeni <olgeni@uli.it>
OpenPOWER on IntegriCloud