Commit Graph

4033 Commits

Author SHA1 Message Date
elad 9a23dc795f Newline in end of usage. 2005-06-01 18:29:16 +00:00
elad 98425e4a9e Warn when failing to load an entry; don't fail the whole process. 2005-05-30 18:02:31 +00:00
elad 0f2f650859 Don't access a NULL pointer. 2005-05-27 15:46:23 +00:00
wiz 85e66d6bf6 Macro improvement. 2005-05-25 10:01:34 +00:00
snj 1a2d0da769 Grammar fix, from Jeff Ito in PR bin/30320. While here, fix a typo
and use .Dq for quotes.
2005-05-25 00:02:49 +00:00
wiz e45ea581c3 Bump date for previous. <> -> \*[Lt]\*[Gt]. 2005-05-24 16:00:11 +00:00
elad 6755bac719 Add man-page bits about the 'count' node. 2005-05-24 15:47:46 +00:00
agc d5a81777aa Make this build on arm platforms by using the correct printf formats. 2005-05-24 06:51:49 +00:00
perseant b1dbcbaa26 Check some error conditions that would otherwise cause fsck_lfs to dump core.
Pointed out by Pavel Cahyna in a follow-on to PR #29151.
2005-05-23 22:17:20 +00:00
lukem dfee67134f Make fdisk(8) available on all platforms, since MS-DOS partitioning
is the de-facto standard for many removable media types.
2005-05-22 03:45:30 +00:00
skrll ff8785b1da Remove unused variables. 2005-05-21 09:25:21 +00:00
elad 18afb98204 Remove leftovers from Vexec. 2005-05-20 20:06:34 +00:00
elad cd0c4134f1 Remove common code for returning supported fingerprints. This is done now
via sysctl(8) using kern.veriexec.algorithms.

Also add an entry for the 'algorithms' variable in sysctl.8 forgotten in
the last commit.
2005-05-20 19:52:52 +00:00
perseant 9bf7a991c5 Fail gracefully if we are asked to expand the buffer cache hash table size
when there is no memory available to do so.  Use the uvnode's strategy
routine to retrieve data from the device, rather than always using pread().
Add a buffer header flag that specifies external management of the buffer's
data area.

All of this in support of a new cleaner, which is not included in this commit.
2005-05-20 18:59:36 +00:00
elad 5888b16eef Some changes in veriexec.
New features:

  - Add a veriexec_report() routine to make most reporting consistent and
    remove some common code.
  - Add 'strict' mode that controls how veriexec behaves.
  - Add sysctl knobs:
     o kern.veriexec.verbose controls verbosity levels. Value: 0, 1.
     o kern.veriexec.strict controls strict level. Values: 0, 1, 2. See
       documentation in sysctl(3) for details.
     o kern.veriexec.algorithms returns a string with a space separated
       list of supported hashing algorithms in veriexec.
  - Updated documentation in man pages for sysctl(3) and sysctl(8).

Bug fixes:

  - veriexec_removechk(): Code cleanup + handle FINGERPRINT_NOTEVAL
    correctly.
  - exec_script(): Don't pass 0 as flag when executing a script; use the
    defined VERIEXEC_INDIRECT - which is 1. Makes indirect execution
    enforcement work.
  - Fix some printing formats and types..
2005-05-19 20:16:19 +00:00
ginsbach 4d1075a78b Convert prefixlen() to ANSI function declaration. Missed by earlier
conversion.
2005-05-19 15:46:02 +00:00
ginsbach 0cb468118d Due to a limitation in inet_addr(3) it was not possible to specify a
netmask value of 0xffffffff (INADDR_NONE).  Fix by using inet_aton(3).
Note it was possible to specify the same mask as the dotted quad
255.255.255.255 because of a later call to gethostbyname(3).
[From FreeBSD]
2005-05-19 15:05:11 +00:00
grant 0f1a2ceee9 move to my now standard 3-clause BSD license (remove advertising clause) 2005-05-17 11:46:15 +00:00
dsl 9abd2f5605 Split getnfsargs() out into its own file, it drags in 70kB of rpc code.
I might manage to write a version that doesn't pull in all the crud.
(Which will give a load of space in the install floppy images)
2005-05-15 21:18:34 +00:00
ginsbach d96d2a6f15 Adjust field width for route -n show similar to netstat -rn when displaying
INET6 route entries.
2005-05-13 14:58:47 +00:00
ginsbach bb3f166314 Fix botched prior commit. Additional debugging error messages mistakenly
committed.
2005-05-13 01:59:47 +00:00
ginsbach 22f8a99e92 * Honor -net when using CIDR (net/mask) notation. This differs
from the default CIDR (host/mask) interpretation.  As discussed on
  tech-net.

* Use errx() in place of fprintf() and exit().  Make the error message
  formats consistent.
2005-05-12 21:10:49 +00:00
ginsbach a43fb90cb0 Fix macro NEXTADDR so that the names, like so_dst, are printed
rather than u.  The preprocessor doesn't do replacement within
strings, so the # string creation operator must be used.
2005-05-10 18:12:22 +00:00
martin 7b4b4385c1 Partly back out previous - do not free the linebuffer while still having
pointers into parts of it. Add a comment explaining why we prefer to
leak memory ;-)
Fixes PR bin/30174.
2005-05-10 06:49:10 +00:00
atatat 885dad801d If progress is disabled, don't clear the progress bar. 2005-05-10 00:39:04 +00:00
jmc 6e682c8cda Need -I. here as well so OBJDIR's work correctly in all cases 2005-05-06 21:51:21 +00:00
augustss 83ee25f9d4 Show an example of turning off auto repeat. 2005-05-03 13:26:25 +00:00
wiz f2944095c0 Fix a typo and add an s. 2005-05-03 11:57:11 +00:00
augustss e0b1c109ad Add an example for setting keyboard auto repeat rate. 2005-05-03 11:51:34 +00:00
yamt b954935865 bump date for the previous. 2005-05-02 15:37:06 +00:00
yamt 330cc0a11e split IFCAP_CSUM_xxx to IFCAP_CSUM_xxx_Rx and IFCAP_CSUM_xxx_Tx. 2005-05-02 15:34:31 +00:00
oster c10404e844 Cleanup the meter code a bit -- a bunch of stuff wasn't even being used.
Fix a few overflow issues.  (Thanks to beefy and pooka, among others)
2005-05-01 22:37:34 +00:00
lukem c0b68cb4cf Test USE_INET6 instead of MKINET6 for various apps.
Part of PR 30092 from Jukka Salmi.
2005-05-01 07:26:29 +00:00
christos ae0d3ab2e1 Remove stray " I" from message. 2005-04-30 20:29:56 +00:00
christos f77e3699c8 Dammit, get rid of the debugging abort() calls. It is no fun to have a broken
fsck program on a busted filesystem.
2005-04-30 20:24:32 +00:00
jmmv 8bdb487207 Do not use FLG_MODIFY to mark color settings. I thought this was used to
denote that a flag was readable/writeable, but that is achieved by passing
a 0 as the flags.

Thanks to uwe@ for finding this out and explaining me why it was wrong.
2005-04-30 16:38:21 +00:00
augustss ecf40361a8 Change the default controlling devices to /dev/wskbd and /dev/wsmouse
(instead wskbd0 and wsmouse0), this way changes will affect all devices
instead of just the first one.
2005-04-29 16:51:33 +00:00
wiz e206009652 New sentence, new line; non-argument options before
options with arguments (in SYNOPSIS); use standard section headers;
describe example.
2005-04-25 11:47:37 +00:00
matt 0e46a38f38 Terminate variable argument list with NULL, not 0. 2005-04-25 01:33:03 +00:00
blymn 3c941b3ee9 Remove veriexec(4) man page. 2005-04-25 00:40:31 +00:00
blymn f83fbb398f Add bugs sub-heading to warn about whitespace in filenames. 2005-04-24 13:23:55 +00:00
blymn 05e15c389d Move veriexec(4) man page to correct place. 2005-04-24 13:14:50 +00:00
perseant a73b3b19ea Check parts of pass 5 even if only rolling forward. We can't check the true
segment holdings against the blocks held by the inodes, but we can still
check the cleanerinfo data against the segment table.
2005-04-23 20:21:03 +00:00
perseant 2f695b5476 Provide a resize_lfs(8), including kernel and cleaner support. The current
implementation requires the fs to be mounted while resizing.  Tested in both
directions, and everything appears to work happily, but ymmv.
2005-04-23 19:47:51 +00:00
wiz d95a3672e0 Grammar, wording, and punctuation improvements. Sort SEE ALSO. Remove some superfluous .Pp. 2005-04-22 14:44:09 +00:00
wiz 35bf4cd6e6 Add Xr to veriexec.4. 2005-04-22 14:37:10 +00:00
wiz bb1cbe5e1c Mention command names in SYNOPSIS; add gen_rmd160 to SEE ALSO;
improve formatting; bump date.
2005-04-22 14:35:13 +00:00
blymn de3e1bac97 Fix format type error in yyerror printf. 2005-04-21 13:37:44 +00:00
christos 7391aafa62 Minor cleanups, KNF, error handling consistency. 2005-04-21 12:45:12 +00:00
he 271cfff6d5 Make this compile again after the latest overhaul.
Use -I${.CURDIR} instead of -I. to support placement of objects elsewhere.
Make sure arguments to ctype functions are unsigned char by changing the
type of one function argument.
Fix "local declaration shadows global" warnings by renaming variables.
Fix printing of size_t variable to use %zu format instead of %u.
2005-04-21 11:21:58 +00:00
blymn 0b0178626c Add missing header file. 2005-04-21 00:27:35 +00:00
blymn 8387760ed1 Rototill of the verified exec functionality.
* We now use hash tables instead of a list to store the in kernel
    fingerprints.
  * Fingerprint methods handling has been made more flexible, it is now
    even simpler to add new methods.
  * the loader no longer passes in magic numbers representing the
    fingerprint method so veriexecctl is not longer kernel specific.
  * fingerprint methods can be tailored out using options in the kernel
    config file.
  * more fingerprint methods added - rmd160, sha256/384/512
  * veriexecctl can now report the fingerprint methods supported by the
    running kernel.
  * regularised the naming of some portions of veriexec.
2005-04-20 13:44:45 +00:00
wiz 29d2ffbe11 Sort SEE ALSO. 2005-04-19 11:04:34 +00:00
hannken 07417a9241 Fix copyright date for previous. 2005-04-19 08:10:43 +00:00
hannken 1f51c28099 Snapshot support for dump(8):
- New option `-x backup' takes the dump from a snapshot backed up by `backup'.
  The snapshot will be deleted on exit.

- New option `-X' as a synonym for `-x mountpoint' where `mountpoint' is the
  file system to be dumped.

Reviewed and Approved by: Manuel Bouyer <bouyer@netbsd.org>
2005-04-19 07:26:38 +00:00
tsutsui 0eb69997b3 Add a tweak to default value settings for a number of drive heads
and a number of sectors per track.

According to sys/fs/msdosfs/msdosfs_vfsops.c:msdosfs_mountfs(),
the kernel doesn't accept BPB with spt (sector per track) > 63
or hds (drive heads) > 255, so if values taken from disklabel
don't match these restrictions, use popular BIOS default values
(255/63) instead.
2005-04-16 14:40:36 +00:00
wiz 049635f546 Sync usage with man page. 2005-04-14 21:30:11 +00:00
wiz 21a2722f35 Quote a word that would otherwise be interpreted as macro;
increase width argument to .Bl so that all options fit.
2005-04-14 21:29:29 +00:00
wiz b4508f65fb Bump date for new -q; use Dq; capitalize NetBSD
in the usual way; new sentence, new line; some nits.
2005-04-14 21:26:11 +00:00
perseant 68db799864 Document "-f" (force check) flag. Implement and document "-q" (quiet). 2005-04-14 21:15:59 +00:00
perseant b0a56e6928 Take care preserving the integrity of the free list during roll forward.
Also, avoid freeing a deleted vnode twice when a file is remove during
roll forward.
2005-04-12 23:14:18 +00:00
martin 9edc493234 When creating an int hash value from pointer, go via intptr_t.
Fixes PR 29953.
2005-04-12 12:42:02 +00:00
wiz 5c35c1667a Improve formatting. 2005-04-12 11:50:29 +00:00
drochner e69243d0ea document the "security" command 2005-04-12 11:41:14 +00:00
drochner 48eac6e41a Implement a "security" command with subcommands to query the status of
the "security" extension and to "freeze" it. With the security extension
frozen, disk passwords cannot be set anymore, until the next hard reset.
Normally, this is the business of the BIOS, but older/buggy/embedded
BIOSes don't care. This leaves the (theoretical) possibility that a
malicious program in posession of superuser rights sets a disk password,
rendering the disk useless (or at least uneconomical to recover from).
Inspired by an article in the german "ct" magazine.
Being here, consolidate the implementations of IDENTIFY into one, and
fix an obvious alignment problem.
2005-04-12 11:40:46 +00:00
perseant 4c0e96afd6 Use the buffer cache improvements from fsck_lfs. Make it build again. 2005-04-12 01:06:39 +00:00
perseant 1d4cc6a17b Be more efficient with the hash tables for the buffer and vnode caches.
Note that roll-forward can add more inodes to the filesystem; don't overflow
the tables but reallocate them.
2005-04-11 23:19:24 +00:00
christos 8dba43fbdf Recognize more units and be more helpful when we enter bad units. 2005-04-07 21:27:44 +00:00
dsl 4118385742 Allow partition sizes to be input in GB 2005-04-07 20:23:13 +00:00
christos ad6c31cee3 PPR/29909: Manuel Bouyer: sysctl dumps core if kern.consdev returns unknown
device.  If we cannot determine the device name of the console, print the
console dev_t in hex.
2005-04-06 21:13:03 +00:00
perseant e6e33f374d Correct phase 0 message 2005-04-06 04:32:59 +00:00
perseant aafc65baa9 Note that fsck_lfs may not know beforehand whether a given block is a
superblock or a segment summary, and tries both.  These may be different
sizes.  Fix a broken assertion that they are the same size.

Fixes PR # 29151.
2005-04-06 02:38:17 +00:00
hubertf f3d4ac7cff Portuguese keyboards are supported to.
By Rui Paulo in PR 29884.
2005-04-05 12:17:17 +00:00
he 2d66b2737e Move the definition of simple_lock() and simple_unlock() to a common
header, since more of the LFS macros now use these functions.  Since
we're outside of the kernel, these are defined to be empty.
2005-04-01 23:45:59 +00:00
abs 446520f017 Fix typo 'and the go' -> 'and then go' 2005-04-01 20:40:17 +00:00
xtraeme a3d534b973 tabify 2005-03-31 15:55:57 +00:00
wiz 0f210657f7 Add -i to SYNOPSIS. 2005-03-31 11:43:14 +00:00
xtraeme 51a4a28d70 Add -i option, it's just the same than -f in lfs_cleanerd(8), ok'ed
thorpej@.
2005-03-31 03:07:38 +00:00
elric 1cdd98012f setprogname(3) needs to come before calls to err(3). 2005-03-30 20:59:34 +00:00
elric 6230b2ec40 Lock all memory. 2005-03-30 19:56:05 +00:00
elric 646d61aa58 one more malloc -> emalloc. 2005-03-30 17:17:51 +00:00
christos f8ce51d45f Centralize error checking for malloc,calloc,strdup. 2005-03-30 17:10:18 +00:00
elric 2dcfc0c616 Turn off core dumps. 2005-03-30 15:45:56 +00:00
hubertf 7f4783a74b Xref mscdlabel(8) - it may be useful. Bump date. 2005-03-29 01:24:10 +00:00
christos 7a221682eb make sysctl -n print the real console tty name and -nn print the numeric
value.
XXX: -n means don't print name, not numeric. We should stop overloading
it and use a different flag.
2005-03-28 04:03:13 +00:00
perseant 7f73a7b740 "#define lfs_devvp lfs_unlockvp" for readability, since that's what we
use it for in fsck_lfs/newfs_lfs.
2005-03-25 20:17:58 +00:00
perseant dcba0206d6 "#define lfs_devvp lfs_unlockvp" for readability, since that's what we
use it for in fsck_lfs/newfs_lfs.
2005-03-25 20:16:37 +00:00
perseant 3118a7b178 Make fsck_lfs optimize the inode free list, if it appears to have become
too disordered.  This should improve file creation speed on aged filesystems.
Include code to disorder the list for debugging purposes, though this is
of course not compiled in by default.
2005-03-25 20:14:43 +00:00
atatat 0f48b53686 If a "create" or "destroy" operation succeeds, mark the cached tree as
"stale" so that the next time we try to read or write to it, we can
purge (and refresh) it.

Addresses PR 29222.
2005-03-23 03:45:25 +00:00
yamt 89b983894d remove IFFBITS definition. now net/if.h has it.
PR/29748 from FUKAUMI Naoki.
2005-03-20 15:34:47 +00:00
yamt 5e26e86d45 add a reminder comment for x_ifconfig. 2005-03-20 14:24:13 +00:00
thorpej be8f682caf IFFBITS and IFCAPBITS are now defined in <net/if.h> 2005-03-20 02:51:47 +00:00
thorpej d14cc8f89c Remove an #ifdef that is no longer necessary. 2005-03-20 02:44:50 +00:00
thorpej f76f47a0df Don't build af_inet6.c if USE_INET6 is no. 2005-03-20 02:44:25 +00:00
thorpej e00adb14b6 Split the IPv4 support into its own file. 2005-03-20 02:43:50 +00:00
thorpej 20f1388354 Move a comment. 2005-03-20 01:10:51 +00:00
thorpej 26dbe00d59 Split IPv6 support out into its own file. 2005-03-20 01:09:16 +00:00
thorpej 4fd9a96b1d Split OSI support off into its own file. 2005-03-20 00:02:58 +00:00
thorpej e7c8ca2ae5 Split XNS support into its own file. 2005-03-19 23:46:03 +00:00
thorpej acdfacb1c3 Split off AppleTalk support into its own file. 2005-03-19 23:32:55 +00:00