summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Nuke whitespace at EOL.dd2002-07-282-3/+3
|
* What we're actually passing around is an ioctl request, not a command,dd2002-07-281-3/+3
| | | | and it's an unsigned long, not an int.
* This compiles cleanly with WARNS=5 on i386 and alpha, so try to makedd2002-07-281-1/+1
| | | | sure that doesn't change.
* Implement this (quoted from the updated man page): If the first tokendd2002-07-284-9/+181
| | | | | of a rule specification is a single dash (``-''), rules are read from the standard input and the rest of the specification is ignored.
* Use more standard section names in an attempt to unconfuse new usersdd2002-07-281-8/+5
| | | | | | | | | | | (and make it easier to find stuff for the old ones). I originally put everything under one "RULE SUBSYSTEM" so it didn't look like devfs(8) is dedicated to the rule subsystem, but since nobody has any idea what else might go here, it's not worth confusing people just to save a little time for someone that might add something rule-unrelated to devfs(8) in a few years. Suggested by: sheldonh, phk
* Fix spacing for -P (policy) examples.fenner2002-07-271-10/+3
|
* Add SEE ALSO references to papers handling RED.sheldonh2002-07-251-0/+26
|
* Turn nfsiod back on. It is basically now just a sysctl wrapper that alsopeter2002-07-241-0/+1
| | | | arranges a kldload of the nfs client file system code if necessary.
* WARNS cleanpeter2002-07-242-7/+6
|
* s/IPSEC/IPsec according to RFCsblackend2002-07-231-1/+1
| | | | | | PR: in part docs/38668 Reviewed by: charnier MFC after: 10 days
* Connect up gpt and mca subdirs for ia64peter2002-07-201-1/+3
|
* Grab a snapshot of Marcel's WIP ia64 machine check decoder.peter2002-07-202-0/+509
| | | | Obtained from: marcel
* Grab a snapshot of Marcel's gpt tool. This is still a work-in-progresspeter2002-07-2010-0/+1454
| | | | | | but is useful to have handy. EFI GPT partitions are used instead of the fdisk+disklabel combination. They are pure 64 bit LBA, are fully extensible, support up to 16383 partitons per disk, etc.
* s/${INSTALL} -c/${INSTALL} ${COPY}/ru2002-07-181-1/+1
|
* di_createtime -> di_birthtime.roberto2002-07-171-1/+1
| | | | Submitted by: Udo Schweigert <Udo.Schweigert@siemens.com>
* Change utimes to set the file creation time (for filesystems thatmckusick2002-07-174-19/+37
| | | | | | | | support creation times such as UFS2) to the value of the modification time if the value of the modification time is older than the current creation time. See utimes(2) for further details. Sponsored by: DARPA & NAI Labs.
* Introduce the DEVFS "rule" subsystem. DEVFS rules permit thedd2002-07-176-0/+949
| | | | | | | | | | | administrator to define certain properties of new devfs nodes before they become visible to the userland. Both static (e.g., /dev/speaker) and dynamic (e.g., /dev/bpf*, some removable devices) nodes are supported. Each DEVFS mount may have a different ruleset assigned to it, permitting different policies to be implemented for things like jails. Approved by: phk
* Fixed some print format errors. Avoid some warnings about possiblebde2002-07-161-4/+5
| | | | | | (but not actual) alignment problems. Both of these bugs were detected on ia64's and were fatal on ia64's due to premature setting of WARNS to 4.
* Replace extra call to "tunefs" with the equivalent of "newfs -U".rse2002-07-151-2/+1
| | | | Reviewed by: phk
* The .Nm utilitycharnier2002-07-141-7/+10
|
* A bunch of minor fixes:luigi2002-07-131-8/+11
| | | | | | | | | | | | * accept "icmptype" as an alias for "icmptypes"; * remove an extra whitespace after "log" rules; * print correctly the "limit" masks; * correct a typo in parsing dummynet arguments (this caused a coredump); * do not allow specifying both "check-state" and "limit", they are (and have always been) mutually exclusive; * remove an extra print of the rule before installing it; * make stdout buffered -- otherwise, if you log its output with syslog, you will see one entry for each printf(). Rather unpleasant.
* Remove unused variables due to libufs(3) commit. Clean up extraneous use ofjmallett2002-07-111-4/+3
| | | | semicolon at closing paren of a function body.
* Convert dumpfs(8) to libufs(3), rather than rolling local functions for ajmallett2002-07-112-39/+14
| | | | number of things.
* Add a bit of information on FFS snapshots to the mount(8) manual page.trhodes2002-07-111-0/+67
| | | | | | PR: 30139 Submitted by: Chris Knight <chris@aims.com.au? MFC after: 3 days
* Convert old style (type foo *)0 casts to NULLsdillon2002-07-111-3/+3
| | | | | PR: kern/40360 Requested by: Hiten PAndya via direct email
* Fixed 4 printf format errors that were fatal on alphas. %qd is not evenbde2002-07-111-7/+9
| | | | | suitable for printing quad_t's since it is equivalent to %lld but quad_t is unsigned long on alphas. quad_t shouldn't be used anyway.
* Uncommented WARNS=0. ipfw2.c is full of printf format errors that arebde2002-07-111-1/+1
| | | | | | | | fatal on alphas. Fixed setting of WARNS. WARNS should never be set unconditionally, since this breaks testing of different WARNS values by setting it at a higher level (e.g., on the command line).
* Replace the 'at least the amount of physical memory + 64K' with a betterdillon2002-07-091-2/+5
| | | | explanation in regards to sizing the dump device.
* Oops, the previous revision (1.22) introduced a potential alignmentiedowse2002-07-081-15/+20
| | | | | | | | | issue, since the MAXBSIZE-sized buffers are accessed as arrays of block pointers, but were declared as char[] arrays. Use a union to avoid this, which also makes a number of casts unnecessary. Pointed out by: bde Reviewed by: bde
* Fixed some world breakage caused by not updating clients when <timeconv.h>bde2002-07-081-0/+1
| | | | | was split off from <time.h>. This became fatal here when -Werror was reenabled.
* - Do not include <utmp.h> for no reason.robert2002-07-082-4/+0
| | | | - Remove unneeded utmp path constant.
* Use a fixed MAXBSIZE-size auto array instead of a static pointeriedowse2002-07-081-6/+2
| | | | | | | | | to a malloc'd buffer in dmpindir() and dirindir(). These functions recursively call themselves to handle deeper levels of indirect blocks, so a single static buffer was not suitable. Bug tracked down by: Don Lewis <dl-freebsd@catspoiler.org> Approach suggested by: bde
* Replace the use of %qd with intmax_t/%jd and fix a number of -Walliedowse2002-07-084-20/+23
| | | | | | | and -Wformat warnings: o Include timeconv.h for the time conversion functions. o Remove unused variables. o Correct a few cases where %d was used when printing longs.
* Remove nfsd and mountd from src/sbin, look for it in src/usr.sbingordon2002-07-079-4202/+0
|
* Unhook sbin/nfsd and sbin/mountd from the build. They will be moving togordon2002-07-071-2/+0
| | | | | | /usr/sbin shortly. Reviewed by: jake (mentor)
* Don't explicit kill of the process' own pid.ume2002-07-071-5/+4
| | | | | | PR: bin/38862 Submitted by: Martin Faxer <gmh003532@brfmasthugget.se> with some modification MFC after: 1 week
* Fix some printf format errors.iedowse2002-07-072-6/+6
| | | | Submitted by: Don Lewis <dl-freebsd@catspoiler.org>
* The .Nm utility.charnier2002-07-0613-67/+103
|
* The .Nm utility. Add FreeBSD Id.charnier2002-07-061-3/+6
|
* The .Nm utilitycharnier2002-07-0658-231/+344
|
* Implement the last 2-3 missing instructions for ipfw,luigi2002-07-051-124/+108
| | | | | | | | | | | | | | | | now it should support all the instructions of the old ipfw. Fix some bugs in the user interface, /sbin/ipfw. Please check this code against your rulesets, so i can fix the remaining bugs (if any, i think they will be mostly in /sbin/ipfw). Once we have done a bit of testing, this code is ready to be MFC'ed, together with a bunch of other changes (glue to ipfw, and also the removal of some global variables) which have been in -current for a couple of weeks now. MFC after: 7 days
* o Change almost all magic numbers to the appropriate constants.maxim2002-07-051-28/+32
| | | | | | | | | o Fix zero payloading, unbreak ping -s 0. o Increase socket recieve buffer, ping -s 65467 is working now. Submitted by: anti-magic sweep based on kris's patch Reviewed by: bde, silence on -audit MFC after: 2 months
* More strict ip options parsing.maxim2002-07-051-53/+44
| | | | | Reviewed by: bde (style), silence on -audit MFC after: 2 months
* Update my email address.archie2002-07-031-1/+1
|
* Apply __FBSDID(); fix local variable(names) that stomp on globalmarkm2002-07-032-46/+56
| | | | definitions; fix some const strings; fix some signedness issues.
* Apply __FBSDID(), ISOfy, fix easy warning.markm2002-07-031-6/+5
|
* Minor spelling and grammar fixes in the atacontrol(8) manual page.trhodes2002-07-021-11/+11
| | | | PR: 39393
* The new ipfw code.luigi2002-06-272-1/+3180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code makes use of variable-size kernel representation of rules (exactly the same concept of BPF instructions, as used in the BSDI's firewall), which makes firewall operation a lot faster, and the code more readable and easier to extend and debug. The interface with the rest of the system is unchanged, as witnessed by this commit. The only extra kernel files that I am touching are if_fw.h and ip_dummynet.c, which is quite tied to ipfw. In userland I only had to touch those programs which manipulate the internal representation of firewall rules). The code is almost entirely new (and I believe I have written the vast majority of those sections which were taken from the former ip_fw.c), so rather than modifying the old ip_fw.c I decided to create a new file, sys/netinet/ip_fw2.c . Same for the user interface, which is in sbin/ipfw/ipfw2.c (it still compiles to /sbin/ipfw). The old files are still there, and will be removed in due time. I have not renamed the header file because it would have required touching a one-line change to a number of kernel files. In terms of user interface, the new "ipfw" is supposed to accepts the old syntax for ipfw rules (and produce the same output with "ipfw show". Only a couple of the old options (out of some 30 of them) has not been implemented, but they will be soon. On the other hand, the new code has some very powerful extensions. First, you can put "or" connectives between match fields (and soon also between options), and write things like ipfw add allow ip from { 1.2.3.4/27 or 5.6.7.8/30 } 10-23,25,1024-3000 to any This should make rulesets slightly more compact (and lines longer!), by condensing 2 or more of the old rules into single ones. Also, as an example of how easy the rules can be extended, I have implemented an 'address set' match pattern, where you can specify an IP address in a format like this: 10.20.30.0/26{18,44,33,22,9} which will match the set of hosts listed in braces belonging to the subnet 10.20.30.0/26 . The match is done using a bitmap, so it is essentially a constant time operation requiring a handful of CPU instructions (and a very small amount of memmory -- for a full /24 subnet, the instruction only consumes 40 bytes). Again, in this commit I have focused on functionality and tried to minimize changes to the other parts of the system. Some performance improvement can be achieved with minor changes to the interface of ip_fw_chk_t. This will be done later when this code is settled. The code is meant to compile unmodified on RELENG_4 (once the PACKET_TAG_* changes have been merged), for this reason you will see #ifdef __FreeBSD_version in a couple of places. This should minimize errors when (hopefully soon) it will be time to do the MFC.
* Remove the kernel file-size limit for UFS2, so that only the limitiedowse2002-06-261-1/+4
| | | | | | | | | | imposed by the filesystem structure itself remains. With 16k blocks, the maximum file size is now just over 128TB. For now, the UFS1 file size limit is left unchanged so as to remain consistent with RELENG_4, but it too could be removed in the future. Reviewed by: mckusick
* Fix an integer overflow that causes fsck_ffs to crash when itiedowse2002-06-261-1/+1
| | | | | | encounters very large file sizes in the filesystem. Reviewed by: mckusick
OpenPOWER on IntegriCloud