Commit Graph

20570 Commits

Author SHA1 Message Date
ache
3d7efd90ca Cleanup STANDALONE stuff
Not replace malloc() family for non-standalone variant
Pay attention on malloc() family return code now
Use srandomdev() now for RNG initialization
1997-03-24 15:43:36 +00:00
ache
1941fcfcfb Initialize RNG only once
Use srandomdev() now
1997-03-24 15:09:41 +00:00
ache
9548128b20 Use srandomdev() now 1997-03-24 14:52:51 +00:00
ache
c9bb29c92e Use srandomdev() to initialize generator 1997-03-24 14:39:24 +00:00
ache
650d13ffa5 Remove libcurses, it is pure termcap application 1997-03-24 14:29:46 +00:00
bde
51c8cf75db Don't include <sys/ioctl.h> in the kernel. Stage 10 (final). Warn if
<sys/ioctl.h> is included in the kernel.  It still compiles.

This set of changes reduces the number of dependencies in LINT/.depend
from about 31000 to about 30000.  This should make LINT kernels
compile a whole 1% faster.  Further reductions to less than 20000
dependencies can easily be made.  E.g., 20 headers of nested spam
from <sys/param.h> for 500 object files gives 10000 dependencies;
less than half of these are real.
1997-03-24 12:48:46 +00:00
bde
3c9a4992bc Don't include <sys/ioctl.h> in the kernel. Stage 9: same changes
in pc98 as in isa.
1997-03-24 12:29:48 +00:00
bde
8f145614c6 Don't include <sys/ioctl.h> in the kernel. Stage 6: include
<sys/filio.h>, <sys/sockio.h> and <sys/ttycom.h> instead of
<sys/ioctl.h> in a couple of files.  This is still only 1/3
as spammish as <sys/ioctl.h> - 5 or 6 old tty ioctl headers
aren't needed.
1997-03-24 12:12:36 +00:00
bde
000a68175f Don't include <sys/ioctl.h> in the kernel. Stage 5: include
<sys/ioctl_compat.h> and sometimes <sys/filio.h> instead of
<sys/ioctl.h> in tty-related files.  <sys/ttycom.h> is still
usually imported bogusly via <sys/termios.h>.
1997-03-24 12:03:06 +00:00
bde
a0d9474a34 Don't include <sys/ioctl.h> in the kernel. Stage 4: include
<sys/ttycom.h> and sometimes <sys/filio.h> instead of <sys/ioctl.h>
in miscellaneous files.  Most of these files have nothing to do
with ttys but need to include <sys/ttycom.h> to get the definitions
of TIOC[SG]PGRP which are (ab)used to convert F[SG]ETOWN fcntls into
ioctls.
1997-03-24 11:52:29 +00:00
bde
f62eb55e94 Don't include <sys/ioctl.h> in the kernel. Stage 3: include
<sys/filio.h> instead of <sys/ioctl.h> in non-network non-tty files.
1997-03-24 11:37:53 +00:00
bde
e79c0a4ca0 Don't include <sys/ioctl.h> in the kernel. Stage 2: include
<sys/sockio.h> instead of <sys/ioctl.h> in network files.
1997-03-24 11:33:46 +00:00
bde
117209856b Don't include <sys/ioctl.h> in the kernel. Stage 1: don't include
it when it is not used.  In most cases, the reasons for including it
went away when the special ioctl headers became self-sufficient.
1997-03-24 11:25:10 +00:00
bde
2652de9da3 Don't default to (wrong) SCO definitions for _IOR() etc. if <sys/ioctl.h>
doesn't happen to be included before this header.

This header was missed in previous cleanups because it didn't include
<sys/ioctl.h> or <sys/ioccom.h>.  Clean it now:
- #include <sys/types.h> since it is necessary to make the header self-
  sufficient (there are a couple of u_char's).
- uniformized idempotency ifdef.  Copied the style in the 4.4Lite
  ioctl headers.
1997-03-24 11:07:52 +00:00
davidn
b7b1dda54d Make stlintr() public to allow correct linkage. 1997-03-24 07:25:31 +00:00
kato
17d7dec351 Fix typo.
Submitted by:	Bruce Evans <bde@zeta.org.au>
1997-03-24 07:23:05 +00:00
kato
c4421409ce Merge PC-98 code int i386/isa/ft.c. 1997-03-24 07:20:35 +00:00
imp
fee23970ec Don't overflow buffers, and only open alternative termcap files if we're
not running setuid or setgid.

Fixes PR 2586

Submitted by:	Julian Assange
1997-03-24 06:41:30 +00:00
imp
6b885ecb71 Don't honor LANG or NLSPATH if we're setuid/setgid.
Fixes PR 2582

Submitted by:	 Julian Assange
1997-03-24 06:15:07 +00:00
imp
ff12c038ef If we're running setuid/setguid then don't open the host alias file to
prevent information leakage.

Closes PR 2578

Submitted by:	Julian Assange
1997-03-24 06:11:44 +00:00
imp
52677342d6 Don't open the tz file if we're running setuid or setgid to prevent infomration
leakage.

Submitted by:	Julian Assange
1997-03-24 06:09:50 +00:00
imp
4ea8eab386 Fix non explloitable buffer overflows (since the largest packet processed
precludes it) to keep people from whining about it in the newsgroups and
mailing lists.
1997-03-24 06:04:08 +00:00
imp
f5e1bde58d Fix various buffer overflows that may or may not be exploitable.
Fixes PR 2588

Reviewed by:	Dan Cross?
Submitted by:	Julian Assange
1997-03-24 06:01:39 +00:00
imp
7f79bbed5b Julian A's fix. Do chdir as user rather than as root. Fixes a minor NFS
compatibility problem at the same time.  Some buffer made large enough
for worst case hostname.

fixes PR 2593.

Reviewed by:	Dan Cross and maybe others
1997-03-24 05:57:28 +00:00
imp
3c8c5177a0 Fix small race window when creating portal socket.
Obtained from: OpenBSD
1997-03-24 05:53:12 +00:00
imp
e5d10bdc2e Buffer overflow from Keith Bostic.
Obtained from: BSDi by way of Keith Bostic
1997-03-24 05:51:59 +00:00
imp
2a37113faa Use mkstemp rather than mktemp to prevent a small race.
OpenBSD has a similar code, but this was indepenent.
1997-03-24 05:50:27 +00:00
imp
a1b85d3196 Use mkstemp rather than mktemp to prevent races.
Obtained from: OpenBSD
1997-03-24 05:45:29 +00:00
imp
17787893f3 Use mkstemp rather than mktemp to prevent a small race.
Obtained from: OpenBSD
1997-03-24 05:44:28 +00:00
gibbs
4626bcf70b Fix a nasty bug that meant a QUEUE_FULL status would result in a lost
SCB.  This is probably a main reason for the recent reports of timeouts.
1997-03-24 05:05:18 +00:00
gibbs
bc569a7a8f Re-arrange the code to upload an SCB to ensure that there is at least
on instruction between the last load into the DFIFO and enabling the DMA.
During back to back SCB DMA, it was possible to hang the card.
1997-03-24 05:02:55 +00:00
bde
bdddad7101 Reactivated dumplfs and newlfs. 1997-03-24 04:57:50 +00:00
bde
bf850fb228 Removed nested #includes of <scsi/scsi_debug.h> and <scsi/scsi_driver.h>
from <scsi/scsiconf.h> and fixed everything that depended on them.
(Missed this one.)
1997-03-24 04:26:46 +00:00
bde
2d01f2178c Changed MAN to MAN8 so that this builds. 1997-03-24 03:38:16 +00:00
bde
554ea3437c Fixed corrupted newline and corrupted tab in previous commit. 1997-03-24 03:19:37 +00:00
hanai
ab7c9e8a17 Sync with the original. 1997-03-24 02:56:52 +00:00
kato
f7ccd15f7a Fixed corrupted CFLAGS definition. (Deleted harmful backslash.)
Submitted by:	H. Nokubi <h-nokubi@nmit.mt.nec.co.jp>
1997-03-24 02:38:48 +00:00
gibbs
9f4b5d5d62 free_xs must be called at splbio(). This is usually the case since the main
caller is scsi_done which the controller interrupt handlers call.  In the
case of a non-buffer based transaction, the xs structure is freed by the
process that initiated the transfer in scsi_scsi_cmd.  In this case, an
explicit splbio/splx pair around the call to free_xs is required.  Without
the splbio protection, the xs free list could be corrupted, and the type
driver's start routine might run without spl protection.

Submitted by:	Tor Egge <Tor.Egge@idt.ntnu.no>
Obtained from: PR kern/2891
1997-03-24 01:46:15 +00:00
jmg
1d30a41b6e add xrefs for getpeername, so other people that look for it can find it.. :) 1997-03-24 01:22:01 +00:00
mpp
1e529d948f Use the .Tn macro for a couple of generic FreeBSD references.
This has the desired side-effect of preventing a bad hyphenation
of the word FreeBSD in one place.
1997-03-24 01:15:16 +00:00
mpp
b9424fdfa7 Update to reflect the recent changes to support better inode
generation numbers.
1997-03-24 00:33:38 +00:00
mpp
51216478d9 Typo police. 1997-03-24 00:18:19 +00:00
imp
b7a55510a3 Buffer overflow. Similar, but different, to the fix that Julian A submitted
in PR 2580.

Obtained from: BSDi by way of Keith Bostic

Should be in 2.2 and 2.1.x.  I'll merge into 2.2.
1997-03-23 23:31:50 +00:00
imp
c2a7cee0ee Fix a minor buffer overflow.
Obtained from: BSDi by way of Keith Bostic
1997-03-23 23:17:22 +00:00
ache
d16568f141 Add srandomdev.3 link 1997-03-23 23:12:59 +00:00
ache
27fa1c8849 Fix urandom reference in the comment 1997-03-23 23:09:31 +00:00
ache
d2a19efd66 Add srandomdev() description 1997-03-23 23:08:31 +00:00
ache
e53bc8d1c3 Add srandomdev() prototype 1997-03-23 22:44:27 +00:00
ache
b9d8a7cc98 Add srandomdev() function (use "/dev/urandom" now)
Submitted by: wollman & me (add type casts and remove unneded loop)
1997-03-23 22:40:20 +00:00
wosch
66a23e711e Add last minute CDROM releases 2.1.6.1, 2.1.7.1, 2.2.1 to macro .Fx 1997-03-23 22:31:19 +00:00