Commit Graph

46198 Commits

Author SHA1 Message Date
ru
cec504161c Fix a buffer overflow.
PR:		16415
Submitted by:	Kevin Day <toasty@dragondata.com>
Approved by:	jkh
2000-02-21 10:22:39 +00:00
ru
366382e5a7 (Null commit) rev 1.83 actually fixes the panic in the
sl_compress_tcp() due to the NULL pointer dereference.
2000-02-21 08:06:18 +00:00
imp
b798e99837 [[ Forced commit due to /tmp/msg botch ]]
Minor improvements in pcic.
o Change IODF_ACTIVE to MDF_ACTIVE when dealing with memory.  This is
  a text only change.
o Better spl safty, ala comments from Bruce and the nomads.
o Default to resetting the pcic on resume.  This is needed for newer
  machines and may fix jordan's vaio problem.
o i/o mapping verbosity under bootverbose.
o Added comment about irqs that should have been in prior commit.
o Added sanity check on memory rid.

Approved by:  Der Uber Hubbard
2000-02-21 06:56:30 +00:00
imp
9fe2fbb1a0 /tmp/msg 2000-02-21 06:52:20 +00:00
billf
3ebfb4a18d Fix grammar error (repeated word).`
PR:		bin/16810
Submitted by:	Will Andrews <andrews@technologist.com>
2000-02-21 03:07:31 +00:00
gj
38fb15b7b7 Newbus-ify the USR Sportster TA Intern driver.
Enable the driver in sys/conf/files.i386.

In isa/isavar.h increase ISA_NPORT from 32 to 50. This is required
because this brain-damaged card maps 49 (!) port ranges. This does
not have a negative impact because this value only specifies the maximum
number of entries in a linked list and not the size of an array which
is allocated in all drivers.

The register/fifo access routines were not newbus-ified because
1) I knew that the old code worked and is simpler and more efficient
2) the if_ed driver does something similar and
3) the newbus macros collapse to inb/outb anyway.

Reviewed and tested by:	hm
Approved by:	jkh
2000-02-21 02:10:10 +00:00
jkh
89f6e53c4d Make the doc menu work again by checking the right variables. 2000-02-20 23:50:01 +00:00
jkh
02484c7f59 Now I remember why I didn't write out the gateway in the DHCP case;
it was a feature.
2000-02-20 21:58:10 +00:00
ache
bed4a016de Fix possible SLIOCSUNIT panic
PR:		16564
Submitted by:	ru
Approved by:	jkh
2000-02-20 21:03:53 +00:00
bsd
e07de46627 Don't forget to reset the hardware debug registers when a process that
was using them exits.

Don't allow a user process to cause the kernel to take a TRCTRAP on a
user space address.

Reviewed by:	jlemon, sef
Approved by:	jkh
2000-02-20 20:51:23 +00:00
peter
89b65886dd Followup to previous commit; change fd_mask from signed to unsigned as
it should have been to start with.  The implications of that are not
pleasant when combined with >> as it breaks on multiples of NFDBITS.
Right shifting of a signed value fills with a copy of the sign bit,
not a zero.

Reported by:	bde
2000-02-20 15:01:37 +00:00
dmlb
ce836390fe Skeleton framework for network driver and initial probing of device. 2000-02-20 14:56:17 +00:00
n_hibma
c42ecf5b26 Update the documentation to reflect Bill Paul's latest changes. 2000-02-20 14:41:54 +00:00
n_hibma
a939cb0d17 Move the warning on wrong IRQ values to the right place, before any
resource allocation is attempted.

It will present the user with a message that he has to switch on USB
support in his BIOS.
2000-02-20 14:22:44 +00:00
peter
b86c9d688c Fix select(2) for the Alpha. (!!) It was never returning true for
fd's in the range of 32-63, 96-127 etc.  The first problem was the
FD_*() macros were shifting a 32 bit integer "1" left by more than
32 bits.  The same problem happened in selscan().  ffs() also takes
an int argument and causes failure.  For cases where int == long
(ie: the usual case for x86, but not always as gcc can have long
being a 64 bit quantity) ffs() could be used.

Reported by:	Marian Stagarescu <marian@bile.skycache.com>
Reviewed by:	dfr, gallatin (sys/types.h only)
Approved by:	jkh
2000-02-20 13:36:26 +00:00
sos
5109bceec7 Hide the "devclass_alloc_unit: %s%d already exists, using next available..."
behind bootverbose

Approved by: jkh
2000-02-20 10:07:28 +00:00
jkh
ef3b600c82 Fix the fvwm desktop option (for all 3 of us who use it). 2000-02-20 10:01:33 +00:00
jkh
f56cca9414 Docfix: Note krb5 flags.
PR:		16818
Submitted by:	martti.kuparinen@nomadiclab.com
2000-02-20 09:13:30 +00:00
sheldonh
ef661fce32 Fix buffer overrun in pcfclock_read(). The submitter is the original
author of the affected code.

PR:		16552
Submitted by:	Sascha Schumann <sascha@schumann.cx>
Approved by:	jkh
2000-02-20 09:08:33 +00:00
jkh
5f7070460d Fix version # for ipfilter.
PR:		16818
Submitted by:	martti.kuparinen@nomadiclab.com
2000-02-20 08:45:01 +00:00
jasone
cd7c9f7a1b Do not conditionalize function prototype definition for functions we
implement.

Noticed by:	Thimble Smith <tim@mysql.com>
Approved by:	jkh
2000-02-20 07:40:25 +00:00
ken
f25bb11d7e Fix 'camcontrol inquiry'. The inquiry data structure changes (increased to
256 bytes) caused it to break on many devices.

The SCSI spec says that for commands with 8-bit length fields, a value of 0
means 256 bytes.  As it turns out, many devices don't deal with that
properly.  Some interpret the 0 as 0, and return no data.  Others return
more than 256 bytes of data, and cause an overrun.

The fix is to tell the device we've only allocated SHORT_INQUIRY_LENGTH (36
bytes) of inquiry data, instead of sizeof(struct scsi_inquiry_data).

camcontrol.c:		Change inq_len in the call to scsi_inquiry() to
			SHORT_INQUIRY_LENGTH, and add a long comment
			explaining the reason for the change.

scsi_all.h:		Add a comment above the definitinon of
			SHORT_INQUIRY_LENGTH alerting people that it is
			both the initial probe inquiry length, and the
			minimum amount of data needed for scsi_print_inquiry()
			to function.

scsi_all.c:		Add a comment about SHORT_INQUIRY_LENGTH being the
			minimum amount of data needed for
			scsi_print_inquiry() to function.

Reviewed by:	gibbs
Approved by:	jkh
Reported by:	"John W. DeBoskey" <jwd@unx.sas.com>
2000-02-20 04:42:44 +00:00
rwatson
5060b8f504 - As jail(8) has been almost completely rewritten, prepend another copyright/
BSD-style license, as an add-on to phk's beerware license.  Please fedex
  some beer to phk.

- Add a ``make depend'' line to the jail-building, which fixes openssl,
  among other things.  Suggested by: kris

- Add ``newaliases'' to the list of things to do when setting up a new
  jail, so that the jailed sendmail doesn't complain.

- Correct references to ``kern.jail.set_hostname_allowed'' which now read
  ``jail.set_hostname_allowed''.

- Add a reference to sysctl.conf where the sysctl can easily be set in
  a persistent way.

- Add a list of cross references to the man page.

- Fix a formatting nit or two.
2000-02-20 02:51:11 +00:00
rwatson
5092de2cf1 Disable chflags() from within jail() so that root within jail can't make
a mess in securelevel environments.  Results in one warning during
/etc/rc as it attempts to remove file flags, but this is harmless.

Approved by:	High Lord Hubbard
2000-02-20 01:10:36 +00:00
jkh
b5c5afe9b1 If user says they're in the USA, record that fact in /etc/make.conf 2000-02-19 23:22:22 +00:00
shin
d64251b6b7 Fixed a little bit strange INET6 output.
Specified by: Ben Smithurst <ben@scientia.demon.co.uk>
Approved by: jkh
2000-02-19 21:46:45 +00:00
alfred
c524e70f2a detect deleted tty lines in /etc/ttys. 2000-02-19 20:28:45 +00:00
shin
a8893d4efd Use static buffer to save source route hostnames.
Approved by: jkh
2000-02-19 16:33:14 +00:00
shin
9659fa5515 Print "Trying ..." for each host. Also cleanups for error printing.
Approved by: jkh

Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
2000-02-19 16:17:41 +00:00
shin
58ca0b4427 Removed bogus line.
Specified by: ache
Approved by: jkh
2000-02-19 16:13:03 +00:00
shin
7666c88382 Change IPv6 scoped addr format again based on recent standard discussion.
Sorry for the flapping, but no change will be done for 4.0 anymore.
Official standard will be published around April or later.
If different format would be adopted at that time, then support for
the new format will be added to the succeeding FreeBSD 4.x.

Approved by: jkh
2000-02-19 16:10:16 +00:00
shin
d4643f8615 Added IPv6 name resolving support for utmp logging.
Approved by: jkh
2000-02-19 15:57:52 +00:00
jkh
7e24a2c9f1 PS/2 mice are a lot more common than serial mice now; use /dev/psm0
as default rather than /dev/cuaa0
2000-02-19 13:07:21 +00:00
jkh
52b29f94b1 no need to fix moused setting here; fix in defaults 2000-02-19 13:05:14 +00:00
jkh
27e12fdfde Whoops, forgot to delete the ! operator in the reversed conditional
for anonftp.  Fix.
2000-02-19 12:42:03 +00:00
dfr
a167c22afa Remove the vga-pci driver. It serves no purpose and it hides the hardware
from useful drivers such as the 3D DRI drivers I will be porting for
hardware accelerated OpenGL. The hardware will still be reported during
boot using the nomatch system.

Approved by: jkh
2000-02-19 09:44:06 +00:00
jkh
96b1a65231 1. If checking for directory-ness, check "dir" and "dir/" to catch
the case where we have a symlink pointing at a dir.

2. Restore stomped character before returning in make_hierarchy()
2000-02-19 08:58:54 +00:00
jkh
8efc8c2fdf 1. If checking for directory-ness, check "dir" and "dir/" to catch
the case where we have a symlink pointing at a dir.

2. Restore stomped character before returning in make_hierarchy()
2000-02-19 08:52:52 +00:00
alfred
0b348be5fc Re-add "May" to the list of dates supported.
Approved by: jkh
2000-02-18 23:41:45 +00:00
sos
0187a8cfca Update the ata driver to take more advantage of newbus, this
was needed to make attach/detach of devices work, which is
needed for the PCCARD support.
(PCCARD support is still not working though, more to come on that)

Support the CMD646 chip which is used on many alphas, sadly only
in WDMA2 mode, as the silicon is broken beyond belief for UDMA modes.

Lots of cosmetic fixes here and there.

Sorry for the size of this megapatchfromhell but it was not
possible otherwise...

newbus patches based on work from: dfr (Doug Rabson)
2000-02-18 20:57:33 +00:00
rwatson
cad0571789 Fix up a few documentation nits in jail(8), as well as improve the
instructions so as to reduce warnings during jail startup, etc.
Add a somewhat bolder warning recommending the use of
kern.jail.set_hostname to limit jail renamining.
2000-02-18 19:02:22 +00:00
jkh
05b45479e7 Invert the meaning of two questions in the Standard installation so just
whapping "Yes" by default does not turn you into an anonymous FTP-supporting
gateway machine.  Those aren't the right "defaults."
2000-02-18 18:33:15 +00:00
peter
4e0c661903 Correct an error message presumably as a result of cut/paste.
kvm_getfiles() referred to itself as kvm_getprocs().
2000-02-18 16:39:00 +00:00
sos
ee39af8367 Dont allow burn when format not selected.
Use the right format in printfs.

Fix the partial write error (the res variable).

Reminder by: (Bill Fumerola <billf@FreeBSD.org>)
2000-02-18 16:36:28 +00:00
ru
ce8227b740 Fix the installworld breakage from rev 1.9.
Submitted by:	reg
Reviewed by:	ru
Approved by:	jasone (rev 1.9)
Pointy hat to:	unfurl
2000-02-18 13:21:16 +00:00
shin
947bd9af68 HBH hdr len correction.
Without this fix, MLD query to all nodes fails to send.
  Merge from recent KAME bug fix.

Approved by: jkh
2000-02-18 11:48:04 +00:00
jkh
25d1d7e1a4 Complete the make-over to transform Novice to Standard install. 2000-02-18 07:11:40 +00:00
jkh
398d3f2df8 Don't call it a Novice install, call it Standard.
Also say thousands of packages, not hundreds.
2000-02-18 07:09:45 +00:00
shin
6eb112416e Support logging for IPv6 remote host.
Approved by: jkh

PR: bin/16789
Submitted by: Ben Smithurst <ben@scientia.demon.co.uk
2000-02-18 07:08:03 +00:00
shin
be2e48787d Don't try EPSV once it failed.
Specified by: Andrey A. Chernov" <ache@nagual.pp.ru>
Approved by: jkh
2000-02-18 07:02:48 +00:00