Commit Graph

19887 Commits

Author SHA1 Message Date
dg
965388b530 Fix from PR #2757:
execve() clears the P_SUGID process flag in execve() if the binary
executed does not have suid or sgid permission bits set.

This also happens when the effective uid is different from the real
uid or the effective gid is different from the real gid. Under
these circumstances, the process still has set id privileges and
the P_SUGID flag should not be cleared.

Submitted by:	Tor Egge <Tor.Egge@idt.ntnu.no>
1997-02-19 03:51:34 +00:00
adam
5ce9637600 updated entries for France
added entries for former Soviet territories matching "*stan"
1997-02-19 02:56:43 +00:00
brian
43a90c7d71 Tidy up signal handling.
All signal() calls have been changed to pending_signal() calls.
pending_signal() is defined in the new sig.c file.  It remembers
the handler and traps the signal with a function that will remember
the signal.

main.c now calls handle_signals() to actually call the required
handlers (if the above handler was called).

If this doesn't close PR2662 (was PR2347), I'll cry.

Joerg, I think this should go into 2.2, but I havn't done anything
about it because I'm bound to botch it with the new sig.[ch] files.

I've just "cvs add"'d sig.[ch] so far.... can you update to 2.2 and
tell me what you did ?  Thanks.
1997-02-19 01:14:41 +00:00
gibbs
87dca7091f Fix some more problems in the recovery code.
Cleanup of the disconnected list was broken in the SCB paging case
    (confusion of NULLand SCB_LIST_NULL)
Implement a clean mechanism for determining that we have exited the timeout
    state and test for this in ahc_done instead of all over the place.
Bring back the use of AAP (Auto Access Pause) I don't think it was the
    true cause of the bus hangs people were reporting.
We want to reset the bus if we've been through an Abort action, not if
    we are a recovery SCB (one implies the other, but not vice-versa).
1997-02-19 01:00:51 +00:00
obrien
78b845fbdb Add history section. Follows chflags(2). 1997-02-19 00:32:35 +00:00
dg
7ce3c3e833 Updated to Jan 22, 1997 revision from the InterNIC. 1997-02-18 23:37:58 +00:00
msmith
014c0e9ac7 Use the same blocks->size-in-MB conversion algorithm as the SCSI code
to avoid overflowing an intermediate value for disks > 2^32 bytes
large.
1997-02-18 23:31:53 +00:00
dyson
58e2f6b9ce New area code for certain parts of central Indiana. 1997-02-18 21:52:35 +00:00
wollman
c30fffb280 Declare the new generic EOPNOTSUPP routines. 1997-02-18 20:47:24 +00:00
wollman
9c02696981 Convert raw IP from mondo-switch-statement-from-Hell to
pr_usrreqs.  Collapse duplicates with udp_usrreq.c and
tcp_usrreq.c (calling the generic routines in uipc_socket2.c and
in_pcb.c).  Calling sockaddr()_ or peeraddr() on a detached
socket now traps, rather than harmlessly returning an error; this
should never happen.  Allow the raw IP buffer sizes to be
controlled via sysctl.
1997-02-18 20:46:36 +00:00
wollman
348a992441 uipc_mbuf.c: do a better job of counting how often we have to wait
for memory, or are denied a cluster.

uipc_socket2.c: define some generic ``operation-not-supported'' entry points
for pr_usrreqs.
1997-02-18 20:43:07 +00:00
gibbs
a7fe8a4f07 Update to match reality. Give more indepth description of SCB paging
and tagged queueing.  Mention the AHC_ALLOW_MEMIO option.
1997-02-18 20:27:26 +00:00
gibbs
3b26ab7d89 Kill the initialization of two old scratch ram variables. They were removed
to make space for the larger message buffer.
1997-02-18 20:23:09 +00:00
gibbs
5e400d3141 Enlarge the message out buffer from 6 to 8 bytes. Now that sync and wide
negotiation messages may be tagged, we were overrunning the old buffer.
The variable that was getting squashed is updated before the message goes
out, causing corrupted SDTR or WDTR messages.  Depending on the phases
traversed before message out, this could cause the wrong offset to be
negotiated allowing data overruns to occur.  The problem is easier to
detect with wide targets on the chain since the allowed offset is smaller.

Also removed the unnecessary  clearing of SPIORDY during the message out
phase.  We don't rely on SPIORDY any more.
1997-02-18 20:22:52 +00:00
wosch
adc9806068 Treat 'end\0', 'end\n', 'end\r\n' as trailer line, see rev 1.2 1997-02-18 20:19:04 +00:00
nate
ecb2d8d8e0 Try to make the BROKEN_VLSI chipset detection better, and not break
non-broken chipssets whose ID is 0x84, such as the one found in the NEC
6030H.

> The code relies on the assumption that on a genuine_broken vlsi, you
> don't get 0x84 when probing slot 1 in the normal location.  On the versa I
> do get 0x84 when probing slot 1 in the normal location.  What you get on
> genuine_broken at the normal slot 1 location is unknown to me;

Submitted by:	Chris Timmons <skynyrd@opus.cts.cwu.edu>
1997-02-18 19:20:52 +00:00
markm
6b056ec071 Fix default whois server. 1997-02-18 19:02:06 +00:00
wosch
ed135aa973 Better check for detecting header line. A header line must match
"begin [0-7]* *". Now `begin with, ' is not a header line.

Do a boundary check for body characters. Characters less than 33 or
greater than 96 are out of range. If characters are out of range
uudecode print a error message and die.
1997-02-18 17:49:43 +00:00
wosch
c4a7bc5222 Fix ranges - off by one. 1997-02-18 17:08:27 +00:00
jkh
a3ce262583 Argh! Last-minute typo fix (having this be broken in -current sucks). 1997-02-18 16:19:29 +00:00
bde
57235e730a Fixed biosboot to compile with Lite2. <sys/lock.h> is now a prerequisite
for <ufs/ufs/inode.h>.
1997-02-18 15:09:39 +00:00
bde
f1915ed11b This now uses queue macros. Include <sys/queue.h> if !KERNEL to preserve
the documented interface.
1997-02-18 15:03:17 +00:00
bde
d407637813 Added some ufs #includes so that this compiles with option LOCKF_DEBUG.
Moving this all from ufs wasn't a good move.  At least the debugging
routines depend on the file system.

Cleaned up the LOCKF_DEBUG #includes.
1997-02-18 14:37:26 +00:00
ache
97cd1933ff When wrong directory choosed and chdir failed, directory name
was not reset to old name causing any file choosen put error
diagnostic about wrong directory, fix it by resetting back
to old name after chdir failed.

Add \r as alias to \n, some telnets have problem with that.

Should go into 2.2
Submitted by: "Anatoly A. Orehovsky" <tolik@mpeks.tomsk.su> & me
1997-02-18 14:26:24 +00:00
bde
6a229a98d5 Removed vestiges of Mach lock types.
vm_map.h:
Removed #include of <sys/proc.h>.  curproc is only used in some macros
and users of the macros already include <sys/proc.h>.
1997-02-18 14:07:03 +00:00
bde
1334b94f00 Changed type of t_line from u_char to int. The Lite2 merge blew away
rev.1.6 which changed it from char to int.
1997-02-18 09:26:15 +00:00
bde
a962df746e Fixed namei caching for LOOKUPs. It was broken for lstat() and olstat().
Successful lstat()s purged an existing entry as well as not caching the
result.

This bug was introduced in Lite1 by setting the LOCKPARENT flag for
[o]lstat() in order to support the inherit-attributes-from-parent-
directory misfeature for symlinks.  LOCKPARENT was previously only set
for CREATEs and DELETEs.  It is now set for LOOKUPs, but only for
[o]lstat(), so the problem wasn't very noticeable.
1997-02-18 06:46:41 +00:00
davidn
8feba284f5 Fix for hard-coded length of login name.
Submitted by:	Philippe Charnier <charnier@xp11.frmug.org>

Closes #PR bin/2755
1997-02-18 05:47:07 +00:00
bde
8f26a5330a Changed #ifdef COMPAT_PRELITE2' to #ifndef NO_COMPAT_PRELITE2' so that
the old VFS_VFSCONF sysctl is enabled by default.

Initialize the vfc_vfsops field to non-NULL in sysctl_ovfs_conf()
so that the old VFS_VFSCONF sysctl actually works.  The old (still
current) getvfsent.c uses this "kernel-only" field to decide which
vfs's are configured (the old implementation returned null entries
for unconfigured vfs's).
1997-02-18 04:58:11 +00:00
bde
74d2ce4e0b Changed #ifdef COMPAT_PRELITE2' to #ifndef NO_COMPAT_PRELITE2' so that
old nfs mount calls are supported by default.
1997-02-18 04:40:38 +00:00
jkh
7916922d55 Add Label & Partition to configuration menu so you don't have to
go to one of the installs for that (now that it works multi-user).
1997-02-18 04:38:33 +00:00
jkh
e8b79bc7a1 Don't use /mnt in multi-user mode if we're installing a new filesystem. 1997-02-18 04:36:16 +00:00
gibbs
23a89f2e84 Don't rely on AAP(Auto Access Pause) when queueing SCBs to the card. This
will increase the overhead of queueing a command, but some recent bug reports
make me believe that AAP isn't really working and that we are losing some
SCBs from the input queue.  Hopefully this will cure that problem.

Fix some bugs in the error recovery code.  Mainly these could cause us to
inadvertantly forget to untimeout an SCB that was recovered causing later
confusion.
1997-02-18 04:25:31 +00:00
hanai
3f2bb8dbd8 Sync with the original(merge the changes in 1.212 - 1.216 of original
handbook).
1997-02-18 03:19:49 +00:00
hanai
46b8f9ea58 Sync with the original 1997-02-18 03:00:25 +00:00
jkh
6e28b5a6df Don't initialize homedir value. When called this early, pw(8) has no
reasonable data for it.
1997-02-18 01:50:51 +00:00
jkh
f8ba92686c Don't just unset FTP_PATH unilaterally, it might have been a timeout
in which case we should simply log in again.
1997-02-18 01:35:37 +00:00
jkh
e789280b99 Properly check status of menu return. 1997-02-17 22:08:19 +00:00
joerg
140668552c Various sanitizations:
. Don't clobber the TERM setting; it's supposed to be done by /etc/ttys
  already.
. Comment out the Interviews stuff, 98 % of all users probably won't
  ever use it.
. Install the files with better default permissions in the skeleton
  directory; pw(8) retains the permissions when creating a new
  acount, and installing them read-only is stupid, yet installing
  .rhosts world-readable is dangerous.

2.2 candidate
1997-02-17 18:56:29 +00:00
mpp
440508194b These will appear in 2.2, not 3.0.
Pointed out by: wosch
1997-02-17 16:39:53 +00:00
jmg
1291217d41 This page will first appear in 2.2, not 3.0.
2.2 Candidate
1997-02-17 15:54:47 +00:00
mpp
7e0c67f1a8 These man pages will first appear in FreeBSD 2.2, not 3.0. 1997-02-17 15:22:20 +00:00
mpp
7ba6a224c0 Typo fix. Closes PR#2753.
Submitted by:	 Stephen J. Roznowski <sjr1@flash.net>
1997-02-17 15:08:21 +00:00
jkh
48a6b64322 Compensate for an underpopulated MFS. 1997-02-17 13:42:21 +00:00
jkh
083a867639 Finally DTRT with tcpOpenDialog(); it should have never diddled
mediaDevice directly.
1997-02-17 13:29:47 +00:00
bde
778d2e17a8 Disabled dumplfs. Importing the Lite2 version was a mistake, since
many files haven't left the vendor branch and the sys/ufs/lfs hasn't
been merged.
1997-02-17 13:15:42 +00:00
bde
033e1785e7 This commit was generated by cvs2svn to compensate for changes in r22839,
which included commits to RCS files with non-trunk default branches.
1997-02-17 13:07:40 +00:00
bde
cebb7ac61b Import Lite2's dumplfs. 1997-02-17 13:07:40 +00:00
bde
762f26776c Attempt to import Lite2's df. 1997-02-17 11:29:55 +00:00
dg
2af96e689c Pass P_SUGID on to the child of a fork(). It was possible to get rlogin
to coredump previously since it (somewhat uniquely) is setuid and forks
without execing, and thus without passing P_SUGID the child could
coredump and possibly divulge sensitive information (such as encrypted
passwords from the passwd database).
1997-02-17 10:58:46 +00:00