Commit Graph

19183 Commits

Author SHA1 Message Date
Joerg Wunsch
b5b54135f4 Add a manpage for brandelf(1). Minor stylistic fixes, and a buffer
overrun fix, too.

Submitted by:	John-Mark Gurney <jmg@nike.efn.org>
1997-02-09 20:35:54 +00:00
Joerg Wunsch
3cf493c646 Various man pages describing the internals of the SCSI subsystem.
Submitted by:	John-Mark Gurney <gurney_j@resnet.uoregon.edu>
1997-02-09 20:29:15 +00:00
Bill Paul
157f101972 Check for, warn about and reject lines with empty keys. You can't have
a database entry with a null key. These are often caused by spurious
blank lines in the map source file.
1997-02-09 19:34:53 +00:00
Bill Paul
aca49be34f Two small tweaks:
- servers should be the first target listed in 'all:' in order for slave
  servers to be updated correctly: yppush reads the ypservers map to figure
  out where all the slaves are, so it needs to be loaded onto the master
  ASAP.

- Fixed small bogon in publickey target which nobody has noticed since
  we're not using the publickey.byname map yet.
1997-02-09 19:19:14 +00:00
Brian Somers
7c3658d84c Connections are timed and the call duration is logged
via syslog.
Submitted by:	 Lars Fredriksen <fredriks@mcs.com>
Obtained from:	 Lars Fredriksen <fredriks@mcs.com>
1997-02-09 18:34:25 +00:00
Eivind Eklund
2af23c9080 Remove suid bit from binary, and update manpage to reflect this. 1997-02-09 18:03:41 +00:00
David Nugent
26015440b9 Tidy-up modem-chat handling: ensure tty modes are restored to
'sane' standard (not raw) settings before abort/exiting; move
responsibility of setting raw mode for chat-handling out of
chat.c to avoid doing redundant tc{s,g}etattr()s; move DE
pause prior setting standard mode before issue/login prompt to
avoid echoing modem connect strings. Fixed up comment styles
in a couple of places.
1997-02-09 16:12:08 +00:00
Eivind Eklund
ab25b7d505 Removed potential buffer overflow. 1997-02-09 16:11:13 +00:00
Mark Murray
a0e8b36fc5 Fix the way the obj/ dir is found 1997-02-09 15:44:13 +00:00
Mark Murray
15f2609585 Various buffer overrun fixes and other security enhancements.
Obtained from: PST's fixes to the non-secure telnet{d}
1997-02-09 15:02:00 +00:00
Joerg Wunsch
424b33477f Reorder the default man sections.
2.2 candidate?
1997-02-09 14:10:31 +00:00
Eivind Eklund
b94f03b208 Buffer overflow patch. 1997-02-09 14:09:47 +00:00
Andrey A. Chernov
e799281533 Move _PathLocale to data-only file, so setrunelocale() not pick up
whole setlocale.c module now.

Should go into 2.2
1997-02-09 09:29:27 +00:00
Mike Pritchard
fab46a51da Really fix calendar to drop all permissions when
run with "calendar -a".  Also don't ignore the return
values from the setuid/setgid calls.

Thanks to bde for making me this about this.
1997-02-09 07:45:03 +00:00
Mike Pritchard
16c359a3de Typo fix.
Closes FreeBSD PR#2685.

Obtained from: NetBSD-BUGS PR# 3199
1997-02-09 07:01:33 +00:00
Warner Losh
5480d8d5c2 Fix PR2579: potential security hole in rcmd.c
Submitted by:	Julian Assange
1997-02-09 06:54:46 +00:00
Masafumi Max NAKANE
ad1b44de84 Merge 1.59 -> 1.61 changes.
Submitted by:	simokawa@jp.freebsd.org
1997-02-09 06:11:41 +00:00
Warner Losh
d583a7c3cb Buffer overflow from OpenBSD:
Rev 1.4 deraadt: (partial from full commit, other files not done yet)
	proactive bounds checking; help from millert
Rev 1.5 millert:
	Possible buf oflow.

Plus minor style nits to keep the style police happy (I hope)
Obtained from: OpenBSD
1997-02-09 05:19:03 +00:00
Warner Losh
c50189d7ba Buffer overflow from OpenBSD:
Rev 1.3 millert:
	Fix potential buf oflow wrt strerror and sprintf.
Obtained from: OpenBSD
1997-02-09 05:09:05 +00:00
Warner Losh
87751a8467 Buffer overflow from OpenBSD:
Rev 1.7 millert:
	possible oflow
Obtained from: OpenBSD
1997-02-09 05:04:17 +00:00
Warner Losh
a3d9131308 buffer overflow from OpenBSD:
1.3 bitblit:
	Fixed potential buffer overflow
Obtained from: OpenBSD
1997-02-09 04:52:11 +00:00
Warner Losh
2de57f9bbb Buffer overflow from OpenBSD
1.3 deraadt:
	buf oflow, felix@mamba.pond.sub.org
Obtained from: OpenBSD

Not sure how to exploit this, but may be a backmerge candidate.
1997-02-09 04:47:19 +00:00
Warner Losh
5b266377fd Buffer Overflow from OpenBSD
rev 1.7 deraadt:
	buf oflow
Obtained from: OpenBSD
1997-02-09 04:40:02 +00:00
Warner Losh
70dc969961 Some patches for source routed packets from OpenBSD.
Rev 1.16 deraadt:
	do not warn about valid options; invalid options correctly quit
Rev 1.15 deraadt:
	need not clear options since bad ones cause exit;
	provos@ws1.physnet.uni-hamburg.de
Rev 1.14 deraadt:
	IPOPT_LSRR/IPOPT_SSRR must exit() due to tcp sequencing; pointed
	out by provos@wserver.physnet.uni-hamburg.de. also another 1-char
	buffer overflow.

Reviewed by:    Peter Wemm
Obtained from:  OpenSBD
1997-02-09 04:18:43 +00:00
Warner Losh
2631d5a8d1 Some patches for source routed packets from OpenBSD.
Rev 1.13 deraadt:
	do not warn about valid options; invalid options correctly quit
Rev 1.12 deraadt:
	need not clear options since bad ones cause exit;
	provos@ws1.physnet.uni-hamburg.de
Rev 1.11 deraadt:
	IPOPT_LSRR/IPOPT_SSRR must exit() due to tcp sequencing; pointed
	out by provos@wserver.physnet.uni-hamburg.de. also another 1-char
	buffer overflow.

Reviewed by:	Peter Wemm
Obtained from:	OpenSBD
1997-02-09 04:16:27 +00:00
Justin T. Gibbs
62e2cfe42e ULTRAENB->FAST20 1997-02-09 03:27:09 +00:00
Justin T. Gibbs
21c89fbab3 ahc_search_qinfo->ahc_search_qinfifo
ULTRAENB->FAST20

Add a missing ahc_run_done_queue if a BRKADDRINT occurs.  This should never
happen (haven't heard of one happening), but it was still a bug.

Brought the ordered tag sending code up into the tag code to be clearer.

If we decide we should send an ordered tag, only do so for the target that
timed out instead of all targets.

Initialize the STAILQ in ahc_serach__qinfifo.  This was causing a panic
during some recovery operations.

Remove the unused varable maxtarget.
1997-02-09 03:26:56 +00:00
Justin T. Gibbs
de1dc306be Clear the channel after (re)selection instead of once we see the bus go
free.

When we clear SCSIRATE, also clear the FAST20 bit in SXFRCTL0.  This also
allowed me to clean up some of the ULTRA code.

ULTRAENB->FAST20 to follow the convention in the Adaptec data books.

Fix the data-overrun code to set both stcnt and hcnt otherwise, the transfer
will just hang until we get a timeout.

Add implicit support for the NOOP message.  I've never heard of the driver
issueing a reject for one, but its silly to reject NOOP and who knows how a
device might react.

In the dma routine, check SDONE before cleaing SDMAEN.  The data books mention
SDONE possibly being cleared when SDMAEN is reset.  Clients of dma now need
to check if SINDEX is cleared to know if a phasemis occured.

Fix some comments to be correct.
1997-02-09 03:23:28 +00:00
Jordan K. Hubbard
f852c47b11 whoops! wosch was right! my sources were out of date and this
change is bogus!  heh heh. [slinks away].
1997-02-09 03:12:09 +00:00
Wolfram Schneider
c6234bb251 444 -> ${NOBINMODE}
/usr/share -> ${SHAREDIR}
/usr/games -> ${BINDIR}
1997-02-09 02:52:41 +00:00
Wolfram Schneider
bd23915358 Delete old (and redundant) machine depend code. 1997-02-09 02:21:07 +00:00
Jordan K. Hubbard
8b7457b509 vfontedpr would appear to be in /usr/bin not /usr/libexec? 1997-02-09 02:16:26 +00:00
Wolfram Schneider
ae7fb360a6 $* -> "$@"
use exec for last command in shell script
1997-02-09 01:09:33 +00:00
Masafumi Max NAKANE
1b06d43f85 Merge 1.25 -> 1.26 changes. 1997-02-09 00:03:27 +00:00
Masafumi Max NAKANE
82be494495 Merge 1.203 -> 1.206 chages. 1997-02-08 23:45:34 +00:00
Masafumi Max NAKANE
8c573c6f5e Merge 1.55 -> 1.57 changes. 1997-02-08 23:38:39 +00:00
Wolfram Schneider
00f1123353 /usr/lib/libmd.a -> ${LIBMD} 1997-02-08 23:24:10 +00:00
Wolfram Schneider
a98e5d2939 Check return value from system() function.
Pointed out some months ago by: Bruce
1997-02-08 22:36:11 +00:00
Masafumi Max NAKANE
557330ca5f Properly credit the name of translator. 1997-02-08 22:01:43 +00:00
John Polstra
1c1acfc9f0 Correct the recommended option for "find" from "-depth" to "-d". 1997-02-08 21:47:55 +00:00
John Polstra
f5491fc795 Security fix. Strip the encrypted passwords out of the "master.passwd"
diff output, and replace them with "(password)".  The diffs get
mailed to root, which in many cases is forwarded across the
Internet.  A patient sniffer could acquire the entire "master.passwd"
file by saving all the diffs.  With this fix, you still see that the
password changed, but you don't see the details.

Unless somebody talks me out of it, I am going to merge this into -2.2
in 48 hours.
1997-02-08 20:54:38 +00:00
Jordan K. Hubbard
d91ba3ace4 Update these docs in preparation for 2.1.7 1997-02-08 17:46:06 +00:00
Joerg Wunsch
cc551f25f4 Do Andrey's homework :) before merging this into 2.2:
. add idempotency #ifdef
. avoid sloppy common-style external declaration.
1997-02-08 14:04:30 +00:00
Joerg Wunsch
17d9b79a9f Add an entry for the Nakamichi 4-disk changer.
Submitted by:	K.R.Marshall@ukc.ac.uk (K.R.Marshall)
1997-02-08 13:26:31 +00:00
KATO Takenori
77720af4dd Replaced hardcoded unit number with ftu. 1997-02-08 09:59:27 +00:00
Poul-Henning Kamp
ed5392a66c Basically reverse last commit which was plain wrong. 1997-02-08 08:57:22 +00:00
KATO Takenori
5007dce7da Synchronize with sys/i386/conf/majors.i386 revision 1.11. 1997-02-08 07:39:07 +00:00
Bill Paul
9baa6352dc Make some small tweaks to the messages to clean up some stuff
from last time. Some people have pointed out that there were some odd
side-effects in the changes I made. Two things are different:

- sc_print_addr() will print 'foodev0:' (i.e. sd0:, st0:, cd0:, etc...)
  if the device name is known. If it's not known, it'll use a longer
  notation. This shortens error messages back to a sane length.

- Added a small function called sc_print_init() to set the sc_printing
  flag so that sc_print_addr() will know that we want it to print a
  linefeed. Used this in scsi_device_attach() to restore proper carriage
  return printing behavior which I broke.

Remaining bogons: the NCR SCSI driver prints out information while the
device-specific attach routine is running with its own linefeeds. This
breaks up the individual messages emitted by the subdriver modules and
causes at least one message to appear on a line by itself without a
device spec prefix. I'm not sure of the correct way to fix this, and
I don't have any NCR SCSI hardware to test with anyway.

There's probably more, but I gather that a rewrite of the SCSI subsystem
is pending anyway, so I'll leave the rest to Those Who Know More About
This Than I (tm).
1997-02-08 03:42:22 +00:00
Daniel O'Callaghan
772dfa7231 Reviewed by: Gary Jennejohn <gj@freebsd.org>
Submitted by:	Bruce Murphy <packrat@iinet.net.au>

Add '-a' audible flag, so terminal will beep upon receipt of a reply
packet.  Useful for debugging ethernet runs, among other things.
1997-02-08 01:43:56 +00:00
Poul-Henning Kamp
b7a652ab84 I have no idea what this is all about, but it works and Bruce hasn't
complained so it cannot be entirely bad :-)

I include the email that probably explains it for people who already know:

> >Compiling with -O3 inlines functions.  However the function that is being
> >inlined in makeinfo.c (add_word_args()) is a vararg function and must not be
> >inlined.
> >
> >The code in question is K&R style, and AFIK, there is no way for the compiler
> >to determine that the function uses vararg.  Either change the code to use
> >prototypes, or use stdarg, or add a directive to prevent inlining.
>
> Not declaring a varargs function as varargs before it is used gives
> undefined behaviour.
>
> However, in practice the bug is probably in FreeBSD's <varargs.h>, which
> doesn't use gcc's __builtin_next_arg().  gcc should notice that it is
> used and not inline functions that have it.  <stdarg.h.> uses it, but I
> think there's another gcc builtin that it should be using.

Patch attached.  The ellipsis causes gcc to flag this as a varargs function,
and the name "__builtin_va_alist" is special cased in gcc to hide the last
argument in the arglist.

Reviewed by:	bde & phk
Submitted by:	jlemon@americantv.com (Jonathan Lemon)
1997-02-07 20:22:15 +00:00