Commit Graph

3981 Commits

Author SHA1 Message Date
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