Commit Graph

87812 Commits

Author SHA1 Message Date
phk
d4ac0e8060 Remove unuse g_insert_geom(). 2003-03-25 09:07:35 +00:00
phk
0b0cd00ca6 Forward compatibility: NULL check the passed in meta argument. 2003-03-25 09:02:41 +00:00
mjacob
bf8e189ddb Add an explanatory comment about what operational modes in xfwopt are. 2003-03-25 07:02:45 +00:00
silby
7292eab56d Add the MBUF_FRAG_TEST option. When compiled in, this option
allows you to tell ip_output to fragment all outgoing packets
into mbuf fragments of size net.inet.ip.mbuf_frag_size bytes.
This is an excellent way to test if network drivers can properly
handle long mbuf chains being passed to them.

net.inet.ip.mbuf_frag_size defaults to 0 (no fragmentation)
so that you can at least boot before your network driver dies. :)
2003-03-25 05:45:05 +00:00
mdodd
34b0f62236 Merge PC98 support. 2003-03-25 05:19:18 +00:00
mdodd
aa866bb3aa Correct an argument to bus_alloc_resource(). 2003-03-25 04:34:33 +00:00
mdodd
92cd7a2127 Give print_child a default method. 2003-03-25 04:32:52 +00:00
mdodd
87cf62cebb Fix warnings. 2003-03-25 04:29:26 +00:00
mdodd
3b33c8b43f Hook omshell(1) up to the build. 2003-03-25 03:16:53 +00:00
mdodd
ed5b5143ef Building crunched things by hand (regenerating boot floppies for example)
without a full make release cycle fails as the correct include path
isn't setup.
2003-03-25 03:13:57 +00:00
jon
c40f7c35df fix reverse logic in "connect" command that cause port specifications to be ignored.
MFC after:	1 week
2003-03-25 02:33:35 +00:00
jake
22668f121d Fix 2 vm_offset_t -> vm_paddr_t missed in previous commit.
Sponsored by:	DARPA, Network Associates Laboratories
2003-03-25 01:47:29 +00:00
mdodd
294485aefe Add mount options 'noinet4' and 'noinet6' which prevent using those
address families.

This is useful for preventing NFS mounts from using IPv6 on hosts
that have both A and AAAA records for the same name.
2003-03-25 01:25:30 +00:00
mdodd
67da80078c - Add the 'b' option which causes BLOCKSIZE to be hornored when
the 'q' or 'Q' options are present.
- Document BLOCKSIZE.
2003-03-25 01:22:42 +00:00
rwatson
d4eb5dac71 Update the MAC regression test policy to include stubs and testing
functionality for the following entry pints:

  mac_test_init_proc_label()
  mac_test_destroy_proc_label()

For process labeling entry points, now also track the use of process
labels and test assertions about their integrity and life cycle.

  mac_test_thread_userret()
  mac_test_check_kenv_dump()
  mac_test_check_kenv_get()
  mac_test_check_kenv_set()
  mac_test_check_kenv_unset()
  mac_test_check_kld_load()
  mac_test_check_kld_stat()
  mac_test_check_kld_unload()
  mac_test_check_sysarch_ioperm()
  mac_test_check_system_acct()
  mac_test_check_system_reboot()
  mac_test_check_system_settime()
  mac_test_check_system_swapon()
  mac_test_check_system_swapoff()
  mac_test_check_system_sysctl()

For other entry points, just provide testing stubs.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-03-25 01:20:56 +00:00
rwatson
39cf2eb102 Update MAC "none" stub policy to include stubs for the following
entry points:

  mac_none_thread_userret()
  mac_none_check_kenv_dump()
  mac_none_check_kenv_get()
  mac_none_check_kenv_set()
  mac_none_check_kenv_unset()
  mac_none_check_kld_load()
  mac_none_check_kld_stat()
  mac_none_check_kld_unload()
  mac_none_check_sysarch_ioperm()
  mac_none_check_system_acct()
  mac_none_check_system_settime()
  mac_none_check_system_swapoff()

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-03-25 01:18:06 +00:00
rwatson
67997affbe Expand scope of the MLS policy to include a new entry point available
for enforcement:

  mac_mls_check_system_swapon() - Require that the subject and the
  swapfile target vnode labels dominate one another.  An additional
  check is probably needed here to require that the swapfile target
  has a label of mls/high to prevent information leakage through
  swapfiles.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-03-25 01:16:10 +00:00
rwatson
ee41dcfdb6 Expand scope of the BSD extended "file system firewall" policy to
include a new entry point available for enforcement:

  mac_bsdextended_check_system_swapon() - Apply extended access
  control checks to the file target of swap.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-03-25 01:14:03 +00:00
rwatson
77fa9908a7 Expand scope of the Biba policy to include some of the new entry
points available for enforcement:

  mac_biba_check_sysarch_ioperm() - Require Biba privilege to make
  use of privileged machine-dependent interfaces, protecting against
  bypass of the policy via various mechanisms.

  mac_biba_check_system_swapoff() - Require Biba privilege to disable
  swapping against a vnode target.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, Network Associates Laboratories
2003-03-25 01:10:54 +00:00
gshapiro
2f96e5120c Fix formatting (spaces -> tab)
MFC after:	1 week
2003-03-25 00:54:05 +00:00
mdodd
092ea1329b Implement the 'Q' option which is like 'q' (quiet output) except
that it prefaces the output with the package name.

This is useful for things like this:

# pkg_info -Qsa | awk -F : '{print $2 "\t" $1}' | sort -rn | expand -t 10
2003-03-25 00:51:41 +00:00
jake
fe5b50aeb0 Bump __FreeBSD_version for addition of vm_paddr_t and kvtop prototype
change.
2003-03-25 00:26:52 +00:00
mdodd
c6dee74aee - Silence warnings (casting, implicit decl., unused var.).
- WARNS=2
2003-03-25 00:16:41 +00:00
jake
a780914035 - Add vm_paddr_t, a physical address type. This is required for systems
where physical addresses larger than virtual addresses, such as i386s
  with PAE.
- Use this to represent physical addresses in the MI vm system and in the
  i386 pmap code.  This also changes the paddr parameter to d_mmap_t.
- Fix printf formats to handle physical addresses >4G in the i386 memory
  detection code, and due to kvtop returning vm_paddr_t instead of u_long.

Note that this is a name change only; vm_paddr_t is still the same as
vm_offset_t on all currently supported platforms.

Sponsored by:	DARPA, Network Associates Laboratories
Discussed with:	re, phk (cdevsw change)
2003-03-25 00:07:06 +00:00
mdodd
713ae8a0e2 - Make -M mask and -M time exclusive.
- Correct some problems with packet construction.

  +--------+------------+----------+-------------+---------+
  |        |            |          |             |         |
  | IP Hdr | MINICMPLEN | phdr_len | TIMEVAL_LEN | payload |
  |        |            |          |             |         |
  +--------+------------+----------+-------------+---------+
  |        |                       |                       |
  |<- IP ->|<------- ICMP -------->|<------ datalen ------>|

My previous changes tried to mess around with 'datalen' instead of
modifying 'phdr_len'.

I'm including this nice ASCII diagram (from Maxim) to further clarify things
in CVS history.

Submitted by:	 Maxim Konovalov <maxim@macomnet.ru>
2003-03-24 23:48:36 +00:00
mdodd
99479da71a I seem to have forgotten this. Sorry. 2003-03-24 22:25:08 +00:00
hrs
0120b84e97 Catch up with the English version:
1.523 -> 1.524	relnotes/common/new.sgml
2003-03-24 21:42:53 +00:00
jhb
ade2f9ae57 Oops, SHUTDOWN_PRI_LAST should be EVENTHANDLER_PRI_LAST, not
EVENTHANDLER_PRI_FIRST.  Oddly enough, this didn't seem to break the boxes
I tested these changes on.

Reported by:	jesper
2003-03-24 21:24:37 +00:00
jhb
8e2bb5940f Replace the at_fork, at_exec, and at_exit functions with the slightly more
flexible process_fork, process_exec, and process_exit eventhandlers.  This
reduces code duplication and also means that I don't have to go duplicate
the eventhandler locking three more times for each of at_fork, at_exec, and
at_exit.

Reviewed by:	phk, jake, almost complete silence on arch@
2003-03-24 21:15:35 +00:00
jhb
c9663bc1e9 Define some generic eventhandler priorities for use with eventhandlers and
redefine the existing priority macros for specific eventhandlers in terms
of the generic priorities.
2003-03-24 21:07:31 +00:00
jhb
88b225ddea - Remove witness_dead and just use witness_watch instead. If witness_watch
is set to 0, it now has the same affect as setting witness_dead used to
  have.
- Added a sysctl handler that allows root to change witness_watch from a
  non-zero value to zero to disable witness at runtime.  Note that you
  can't turn witness back on once it is off.  You can only turn it off as
  a one-way switch.
- Added a comment describing the possible values of witness_watch.
2003-03-24 21:03:53 +00:00
mdodd
86ef43cf89 Retire sys/pc98/pc98/spkr.c 2003-03-24 21:01:54 +00:00
eivind
fe7fb54d84 Use correct item to track max width of list 2003-03-24 20:55:28 +00:00
eivind
37f95415d8 Fix bug that made cdcontrol play <track> play <track> - 1 2003-03-24 20:54:30 +00:00
mdodd
5b881dce5e Use __packed; 2003-03-24 20:44:39 +00:00
johan
48aef263a7 Document how to clear flags with negative-logic, currently only
the nodump flag.

PR:		46912
Reported by:	dave@syix.com <dave@syix.com>
MFC after:	2 weeks
2003-03-24 20:15:58 +00:00
mdodd
e93222c507 Correct a mis-merge.
Noticed by:	 johan
2003-03-24 19:54:14 +00:00
phk
2a11fbb78d Change g_class initialization to sparse format. 2003-03-24 19:46:26 +00:00
mdodd
f63d44fc04 - Consolidate smapi driver.
- Attach to nexus.
- Use null{open,close}() instead of rolling our own.
2003-03-24 19:40:54 +00:00
mdodd
f345f93ef4 Add the 'vpd' and 'smbios' drivers. The 'smbios' driver is just a
stub right now.
2003-03-24 19:32:57 +00:00
phk
d62ac2f9bc Premptively change initializations of struct g_class to use C99
sparse struct initializations before we extend the struct with
new OAM related member functions.
2003-03-24 19:30:15 +00:00
mdodd
5377b2cf38 Use repo-copied files in sys/i386/bios. 2003-03-24 19:14:46 +00:00
mdodd
a7d3b8cb58 PC98 systems don't need to worry about the MCA bus. 2003-03-24 19:10:33 +00:00
eivind
8108de7acd Add a new chance at getting offended, having removed so many. 2003-03-24 18:59:00 +00:00
eivind
17909c6793 Remove duplicates 2003-03-24 18:58:16 +00:00
eivind
cf31398a39 Fix two more typos 2003-03-24 18:56:36 +00:00
sam
021d3492c9 add missing %u to show mcr1full count 2003-03-24 17:36:50 +00:00
charnier
9266969f99 The .Nm utility 2003-03-24 16:09:07 +00:00
charnier
9670a2adf7 The .Fn function
The ... 2 system call
2003-03-24 16:07:19 +00:00
charnier
a2ff0a66ef The .Fn function. Use .Xr where appropriate. 2003-03-24 16:05:24 +00:00