Commit Graph

54070 Commits

Author SHA1 Message Date
ru
989e1579f6 Fixed the security breach I introduced in rev 1.145.
Disallow getsockopt(IP_FW_ADD) if securelevel >= 3.

PR:		22600
2000-11-07 09:20:32 +00:00
hosokawa
7dea90b2ef Added Intel Gigabit Ethernet card to device menu. 2000-11-07 09:16:14 +00:00
jkh
0981bd80e0 While we're still arguing over debugging output, at least be in a
self-consistent state.

Requested by:	bde
2000-11-07 08:47:11 +00:00
brian
b978119caa Handle being given a connect()ed udp descriptor as stdin rather
than assuming it's unconnected.
2000-11-07 04:29:46 +00:00
brian
a38b1bf086 Pass the correct output options to the ccp output initialisation
routine rather than passing it the first requested output option.

Ensure that options are freed correctly even if we don't reach
TLU.
2000-11-07 04:29:33 +00:00
jhb
e30917a73e Document the KTR_VERBOSE option. 2000-11-07 01:50:10 +00:00
jhb
a147dbcf93 - Remove much of the inlining of the KTR tracepoints into a ktr_tracepoint()
function declared in kern_ktr.c.  The only inline checks left are the
  checks that compare KTR_COMPILE with the supplied mask and thus should
  be optimized away into either nothing or a direct call to ktr_tracepoint().
- Move several KTR-related options to opt_ktr.h now that they are only
  needed by kern_ktr.c and not by ktr.h.
- Add in the ktr_verbose functionality if KTR_EXTEND is turned on.  If the
  global variable 'ktr_verbose' is non-zero, then KTR messages will be
  dumped to the console.  This variable can be set by either kernel code
  or via the 'debug.ktr_verbose' sysctl.  It defaults to off unless the
  KTR_VERBOSE kernel option is specified in which case it defaults to on.
  This can be useful when the machine locks up spinning in a loop with
  interrupts disabled as you might be able to see what it is doing when it
  locks up.

Requested by:	phk
2000-11-07 01:49:48 +00:00
wpaul
56ad93afb4 The vortex driver can be compiled as a KLD now. The EISA attachment
is only built on the i386 platform for now, since it depends on symbols
which I'm pretty sure won't be present in the alpha build.
2000-11-07 01:03:23 +00:00
wpaul
fc831555eb The vx driver no longer needs the PCI compat shims. Also should now
work on the alpha (at least the PCI part should).
2000-11-07 00:58:35 +00:00
wpaul
dfc4fbb639 Update the vortex driver so that it no longer needs the PCI compat
interface. In addition to using newbus, it also uses bus_space rather
than inb/outb to make it MI. The grody static softc allocation stuff
has been removed as well.
2000-11-07 00:56:14 +00:00
jhb
7bb34d92a0 Minor nit: missed ithd_loop -> sithd_loop in the KTR tracepoints. 2000-11-07 00:45:18 +00:00
jhb
7ee94f3cb0 Remove an unneeded #include <machine/bus.h> that snuck in accidentally with
the MI mutexes.

Submitted indirectly by:	bde
2000-11-07 00:44:24 +00:00
cg
307f173be5 adjust dma channels for vibra16x; recording should now work. full duplex does
not work on vibra16x, so is disabled.
2000-11-07 00:38:59 +00:00
cg
6b4272c663 slight mods to isa dma and channel flushing code 2000-11-07 00:32:35 +00:00
cg
f44d3f03ba if a channel dies, rejuvenate it on close() 2000-11-07 00:29:24 +00:00
msmith
02faec692b Ignore resources with a size of 0, as these are disabled (and we don't
deal with them properly elsewhere).

Submitted by:	Masayuki FUKUI <fukui@sonic.nm.fujitsu.co.jp>
2000-11-07 00:03:33 +00:00
jkh
a1a6483d6a MFS: add ATA raid support for sysinstall 2000-11-06 23:15:01 +00:00
msmith
9ac412435c Remove unused PCI includes. 2000-11-06 22:33:49 +00:00
cg
4e383ab4ca add AFMT_8BIT for easier determination of formats 2000-11-06 22:22:52 +00:00
msmith
c11aa70249 Quieten some warnings about correct usage of assignments as truth values. 2000-11-06 21:32:13 +00:00
gibbs
00e9873da7 Fix async notifications for listners registered to wildcard nodes. For
example, a client registered to receive specific events for bus 0, target *,
lun *, was not receiving notifications.

Reviewed by:	ken@FreeBSD.org
2000-11-06 20:12:07 +00:00
gibbs
13459a7344 aic7xxx.c:
When restarting the sequencer, ensure that the SCBCNT register
	is 0.  A non-zero count will prevent the setting of the CCSCBDIR
	bit in any future dma operations.  The only time CCSCBCNT would
	be non-zero is if we happened to halt the dma during a reset,
	but even that should never happen.  Better safe than sorry.

	When a command completes before the target responds to an
	ATN for a recovery command, we now notify the kernel so that
	any recovery operation requeued in the qinfifo can be removed
	safely.  In the past, we did this in ahc_done(), but ahc_done()
	may be called without the card paused.  This also avoids a
	recursive call to ahc_search_qinifo() which could have occurred if
	ahc_search_qinififo() happened to be the routine to complete
	a recovery action.

	Fix 8bit math used for adjusting the qinfifo.  The index must
	be wrapped properly within the 256 entry array.  We rely on the
	fact that qinfifonext is a uint8_t in most cases to handle
	this wrap, but we missed a few spots where the resultant
	calculation was promoted to an int.

	Change the way that we deal with aborting the first or second
	entry from the qinfifo.  We now swap the first entry in the
	qinfifo with the "next queued scb" to force the sequencer
	to see an abort collision if we ever touch the qinififo while
	the sequencer is mid SCB dma.

aic7xxx.reg:
	Add new MKMSG_FAILED sequencer interrupt.  This displaced
	the BOGUS_TAG interrupt used in some previous sequencer code
	debugging.

aic7xxx.seq:
	Increment our position in the qinfifo only once the dma
	is complete and we have verified that the queue has not
	been changed during our DMA.  This simplifies code in the
	kernel.

	Protect against "instruction creep" when issuing a pausing
	sequencer interrupt.  On at least the 7890/91/96/97, the
	sequencer will coast after issuing the interrupt for up
	to two instructions.  In the past we delt with this by
	using carefully placed nops.  Now we call a routine to
	issue the interrupt followed by a nop and a ret.

	Tell the kernel should an SCB complete with the MK_MESSAGE
	flag still set.  This means the target ignored our ATN request.

	Clear the channel twice as we exit the data phase.  On the
	aic7890/91, the S/G preload logic may require the second
	clearing to get the last S/G out of the FIFO.

aic7xxx_freebsd.c:
	Don't bother searching the qinfifo for a doubly queued
	recovery scb in ahc_done.  This case is handled by the
	core driver now.

	Free the path used to issue async callbacks after the callback
	is complete.

aic7xxx_inline.h:
	Split the SCB queue routine into a routine that swaps
	the SCB with the "next queued SCB" and a routine that
	calls the swapping routine and notifies the card of
	the new SCB.  The swapping routine is now also used by
	ahc_search_qinfifo.
2000-11-06 20:05:38 +00:00
gad
0a81eeee32 Cosmetic change of a structure name.
Turn    'struct queue { q_time, q_name }'           (loosely-speaking)
into    'struct jobqueue { job_time, job_cfname }'

Reviewed by:	GAWollman
2000-11-06 19:36:38 +00:00
gad
525504f372 Get rid of a minor compile-time warning. 2000-11-06 19:19:49 +00:00
asmodai
db460c4a6d This commit was generated by cvs2svn to compensate for changes in r68396,
which included commits to RCS files with non-trunk default branches.
2000-11-06 16:10:57 +00:00
asmodai
43c4a8b07e Fix AA being cleared on notify "queries"
Submitted by:	Mark Andrews <marka@nominum.com>
2000-11-06 16:10:57 +00:00
ru
ff45078d39 Fixed typos. 2000-11-06 15:46:57 +00:00
ru
a4136ed05a Fixed typo: .ar -> .Ar 2000-11-06 15:18:56 +00:00
ru
1d277c7046 Fixed typo: .FR -> .Fa 2000-11-06 12:41:27 +00:00
ru
c39cd75f6b -mdoc cleanup: replace custom .ES/.EE macros with literal display. 2000-11-06 12:37:45 +00:00
ru
89c81dd272 Fixed typo: .PB -> .El 2000-11-06 12:19:35 +00:00
ru
75d224bbdf Avoid use of tbl(1). 2000-11-06 12:03:43 +00:00
ru
06e6c5d443 Properly declare the multiple-columns list. 2000-11-06 11:18:13 +00:00
dwmalone
10728d93bc Attempt to fix problem with users being able to convince the crontab
program to read any file which is a valid crontab file.

The fix is based on that used in NetBSD and OpenBSD - we keep the
file open while the user is editing it. This means that files must
be edited in place. Cron attempts to warn you if your editor does
not do this. The fact that the file must be edited in place is also
noted in the man page.

This patch has been confirmed to work by atleast one person on
-security and has been tested locally.

Obtained from:	OpenBSD
2000-11-06 11:17:37 +00:00
ru
208f492793 Fixed typo: .FL -> .Fl 2000-11-06 09:29:17 +00:00
hosokawa
00f7d12a11 release/sysinstall/lndir.c has not been used, but statically linked
to sysinstall for long time.  Remove it.
2000-11-06 09:28:54 +00:00
ru
97db99868e .UC -> .Os 2000-11-06 09:27:03 +00:00
ru
c0f9d906af Fixed typo: .EL -> .El 2000-11-06 09:20:09 +00:00
ru
18b74b5f34 Fixed typo: .SY -> .Sy 2000-11-06 09:17:44 +00:00
ru
e31d9ad202 Finish conversion from man(7) to mdoc(7). 2000-11-06 09:14:22 +00:00
gad
16f2e251e0 Cosmetic improvements to a few recvjob-related error messages. 2000-11-06 04:37:56 +00:00
gad
cf0fb800cb Fix a format-code, thus getting rid of a compile-time warning msg. 2000-11-06 04:11:56 +00:00
des
eed51b49c8 Check that p->p_pptr is not NULL - kernel processes have no parents! 2000-11-06 03:23:56 +00:00
cg
29f3115061 fix paste-o in mixer code - actually set right channel volume instead of
doing the left channel twice.
2000-11-06 02:47:43 +00:00
cg
152326a127 fix es1370 mixer by adding reinit function to it's mixer function list. 2000-11-06 02:37:28 +00:00
jkh
d75ad8a75b MFS: eliminate duplicate start line 2000-11-05 23:14:49 +00:00
jkh
4b40d9a5b5 MFS: comment character and readability fixes. 2000-11-05 22:49:15 +00:00
obrien
46f31aa1b5 ELF kernels should use an ELF sysvec. This allows us to move a.out
specific files to those platforms that acutally support a.out.
2000-11-05 19:14:00 +00:00
truckman
ba9ae7c4f7 Back out change to prepend /sbin:/bin to $PATH, just overwrite $PATH
with these in the normal case.

Set MAKEDEVPATH in sysinstall to include the /mnt2 stuff before starting
the fixit shell.
2000-11-05 17:59:29 +00:00
truckman
6a92765ad4 Ignore chflags failure so that doMFSKERN won't abort on an NFS mounted
filesystem.
2000-11-05 15:38:05 +00:00