summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Import interface groups from OpenBSD. This allows to group interfaces inmlaier2006-06-193-1/+208
| | | | | | | | order to - for example - apply firewall rules to a whole group of interfaces. This is required for importing pf from OpenBSD 3.9 Obtained from: OpenBSD (with changes) Discussed on: -net (back in April)
* - Fail with an understandable error message if we cannot detect thesimon2006-06-181-2/+5
| | | | | | | | | | | | | | | | sector size, instead of later failing with an error about /boot/mbr not being a multiple of the sector size (since we end up with an assumed sector size of MAX_SEC_SIZE * 2). - We query the sector size via an IOCTL anyway, so if that succeeds use that instead of probing for it via read(2) calls. This fixes the problem with fdisk failing to operate on at least graid3 and md(4) devices on kernels with src/sys/geom/geom_dev.c before rev. 1.90, due to fdisk failing to detect the sector size. - When detecting the root device allow "/" characters in it, which happens with e.g. gmirror devices. Reviewed by: cperciva MFC after: 1 week
* Add support of 'tablearg' feature for:oleg2006-06-152-80/+128
| | | | | | | | | | | | | | | | | | | - 'tag' & 'untag' action parameters. - 'tagged' & 'limit' rule options. Rule examples: pipe 1 tag tablearg ip from table(1) to any allow ip from any to table(2) tagged tablearg allow tcp from table(3) to any 25 setup limit src-addr tablearg sbin/ipfw/ipfw2.c: 1) new macros GET_UINT_ARG - support of 'tablearg' keyword, argument range checking. PRINT_UINT_ARG - support of 'tablearg' keyword. 2) strtoport(): do not silently truncate/accept invalid port list expressions like: '1,2-abc' or '1,2-3-4' or '1,2-3x4'. style(9) cleanup. Approved by: glebius (mentor) MFC after: 1 month
* o Revert a previous delta as strlcpy(3) operates with NUL-terminatedmaxim2006-06-141-1/+2
| | | | | strings and cp is not. Fix logic in the original code and eliminate core dumps on lines without '\n'.
* o Replace (an incorrect) string copy gymnastics with strlcpy(3).maxim2006-06-141-2/+1
| | | | | | PR: bin/98905 Submitted by: Fabian Keil MFC after: 1 week
* o Fix typo.maxim2006-06-111-1/+1
| | | | Obtained from: DragonFlyBSD
* Fix a typo s/Made/Make. Use .Pp for a line break, it will quiet thetrhodes2006-06-101-2/+2
| | | | mdoc(7) warning.
* Minor style tweaks while nearby. Namely ANSIfy and parens on return values.jmallett2006-06-101-26/+15
|
* Rather than using specified_ro to parse the options list an extra time, andjmallett2006-06-101-32/+6
| | | | | | keeping a flag to check whether we actually wanted to mount the filesystem readonly, setup the options list so that we start off by assuming rw is what's desired and let later flags change that.
* Reparent the process that executes the window= command from the ttyskib2006-06-081-1/+13
| | | | | | | | | to the init. This prevents zombies from being accumulated. PR: bin/64198 Tested by: Eugene Grosbein <eugen at www svzserv kemerovo su> Approved by: kan (mentor) MFC after: 1 month
* Allow to use the old -a option to specify an encryption algorithm to usepjd2006-06-061-9/+27
| | | | | (for backward compatibility), but print a warning to inform about the change.
* Clarify and merge two sentences.brueffer2006-06-061-4/+2
| | | | Discussed with: pjd
* Mdoc cleanup and some wording improvements.brueffer2006-06-061-15/+15
|
* Print pfsync interface status if either syncpeer or syncdev is configured.glebius2006-06-061-6/+11
|
* Remove section committed by mistake. It is not yet ready.pjd2006-06-061-33/+0
|
* Document geli(8) data authentication.pjd2006-06-051-12/+116
| | | | Supported by: Wheel Sp. z o.o. (http://www.wheel.pl)
* Userland bits of geli(8) data authentication.pjd2006-06-051-15/+29
| | | | | | | Now, encryption algorithm is given using '-e' option, not '-a'. The '-a' option is now used to specify authentication algorithm. Supported by: Wheel Sp. z o.o. (http://www.wheel.pl)
* Fix "mount -u -o ro".rodrigc2006-06-021-1/+24
| | | | Requested by: maxim
* o Implement findblk command: find the inode(s) owning the specifiedmaxim2006-06-022-1/+272
| | | | | | | disk block(s) number(s). Obtained from: NetBSD MFC after: 2 months
* Print dynamic rules for IPv6 as well.mlaier2006-06-021-5/+15
| | | | | | PR: bin/98349 Submitted by: Mark Andrews MFC after: 2 weeks
* mount_msdosfs.c:rodrigc2006-06-011-10/+0
| | | | | | | | | | | | | | - remove call to getmntopts(), and just pass -o options to nmount(). This removes some confusion as to what options msdosfs can parse, by pushing the responsibility of option parsing to the VFS and FS specific code in the kernel. msdosfs_vfsops.c: - add "force" and "sync" to msdosfs_opts. They used to be specified in mount_msdosfs.c, so move them here. It's not clear whethere these options should be placed into global_opts in vfs_mount.c or not. Motivated by: marcus
* Make recoverdisk compile on amd64 and possibly other 64bit archs.matteo2006-05-302-5/+5
| | | | | | | | Bump WARNS to 6. PR: amd64/97566 Reviewed by: phk@ MFC after: 3 days
* Implement internal (i.e. inside kernel) packet tagging using mbuf_tags(9).oleg2006-05-242-9/+133
| | | | | | | | | | | Since tags are kept while packet resides in kernelspace, it's possible to use other kernel facilities (like netgraph nodes) for altering those tags. Submitted by: Andrey Elsukov <bu7cher at yandex dot ru> Submitted by: Vadim Goncharov <vadimnuclight at tpu dot ru> Approved by: glebius (mentor) Idea from: OpenBSD PF MFC after: 1 month
* Remove 'n' from the getopt string. There's no -n option that isimp2006-05-231-2/+2
| | | | | | parsed, so it winds up at usage anyway. Add 'b' to the usage summary. Noticed by Ben Mesander.
* do_file() is called recursively from several places and cannotdelphij2006-05-201-1/+9
| | | | | | | | safely free() anything related to items that may be recursed on. Obtained from: DragonFly (rev 1.7, dillon) PR: bin/94767 MFC After: 1 month
* Remove reference to mount_procfs(8), add reference to procfs(5).rodrigc2006-05-191-1/+1
| | | | | mount(8) doesn't use mount_procfs(8), and instead passes an fstype of "procfs" directly to nmount().
* Slight grammar fix.ceri2006-05-181-1/+1
|
* Remove reference to mount_ext2fs(8), add reference to ext2fs(5).rodrigc2006-05-171-1/+1
| | | | | mount no longer invokes mount_ext2fs, it calls nmount() directly with fstype "ext2fs".
* Disconnect mount_reiserfs from build.rodrigc2006-05-161-1/+0
| | | | | | | | It is no longer needed, because "mount -t reiserfs" calls nmount(2) directly to mount a ReiserFS file system without the use of this external mount program. Approved by: dumbbell
* For src/dest parsing take off the netmask before checking for AF withmlaier2006-05-141-15/+31
| | | | | | | inet_pton. This fixes cases like "fe02::/16". PR: bin/91245 Reported by: Fredrik Lindberge
* Correct various mistakes in the last commit.pjd2006-05-131-4/+4
|
* Include other AES key lengths in the comment.pjd2006-05-131-1/+1
|
* Remove ip6fw. Since ipfw has full functional IPv6 support now and - inmlaier2006-05-125-2072/+0
| | | | contrast to ip6fw - is properly lockes, it is time to retire ip6fw.
* Update manpage for net.inet6.ip6.fw.enable sysctl.mlaier2006-05-121-2/+4
| | | | Requested by: bz
* Use sysctlbynamephk2006-05-111-25/+14
|
* o Extend rev. 1.75 and restore an ability to specify a non-defaultmaxim2006-05-101-0/+9
| | | | | | quota files location. Submitted by: Kostik Belousov
* Be more like Windows and Linux and send our hostname in the host-namebrooks2006-05-071-0/+68
| | | | | | | | | option if none is given in the config file. Also add #ifdefd out support for sending a client ID based on our MAC address. PR: bin/94743, bin/76401 Submitted by: Frank Behrens <frank at pinky dot sax dot de> X-MFC after: 6.1-RELEASE
* fix style nitobrien2006-05-071-1/+1
|
* o Take an account a media sectorsize for medium and bigsize calculation.maxim2006-05-063-45/+290
| | | | | | | | | | o Introduce -r and -w keys which allow to load and save a worklist. o Replace README by man page. PR: bin/96677 Submitted by: Ulrich Spoerlein Approved by: phk MFC after: 1 month
* Correct error messages.pjd2006-05-011-4/+4
| | | | MFC after: 2 weeks
* With minidumps, the dumping partition could be smaller than physicalps2006-04-271-1/+8
| | | | | | memory, so checking the size of the partition is not necessary. Tested by: kris
* o Do recrack(arguments) for commands which actually take NAME asmaxim2006-04-213-10/+12
| | | | | | | | | | | arguments so we do not coredump at "help foo", "back bar" and such. o Be consistent and print argc - 1 as a command arguments number in all cases. PR: bin/37096 Submitted by: Joshua Goodall MFC after: 1 month
* Add a missing .Pp call.brueffer2006-04-191-0/+1
| | | | MFC after: 3 days
* o Describe what actually boot(8) -m mutes.maxim2006-04-181-1/+2
| | | | | | PR: docs/67893 Submitted by: Chris Pepper, Daniel Gerzo MFC after: 2 weeks
* Fix markup and some typos.ru2006-04-141-5/+14
|
* o Yacc's lineno variable holds a total number of parsed lines.maxim2006-04-141-0/+1
| | | | | | | | Reset it to 1 for each devd config file so if the parser finds a syntax error devd(8) will report a correct line number. Submitted by: Niki Denev MFC after: 2 weeks
* Make CCD be able to read and write Linux software raids.cracauer2006-04-132-0/+26
| | | | | | | | | | Supported for raid-0 with <n> disks, raid-1 with 2 disks. Manpages have examples, warnings etc. Test scripts on http://www.cons.org/cracauer/ccdconfig-linux/ Reviewed by: alfred
* Add missing library dependencies.ru2006-04-132-1/+2
|
* libc_r is no longer provided, and on alpha and sparc64, libthrru2006-04-121-1/+1
| | | | | is (sym)linked to libpthread. Account for this change and check for MK_LIBTHR instead of MK_LIBC_R where appropriate.
* Dump keeps a bitmap of the state of various inodes, which is sizeddwmalone2006-04-111-8/+20
| | | | | | | | | | to match the number of inodes on the disk. If we find a directory entry with a crazy inode number in it, don't look beyond the end of the bitmap to find that inode's state. Instead skip that directory entry and print a warning. Reviewed by: iedowse MFC after: 3 weeks
OpenPOWER on IntegriCloud