5488 Commits

Author SHA1 Message Date
ats
c24e685c76 Submitted by: David Muir Sharnoff
domainame has referenced getdomainname(2) instead of getdomainname(3).
bug report docs/137.
1995-01-14 17:02:33 +00:00
jkh
e58b3d862c Add very crude beginnings of the setup script. 1995-01-14 13:34:37 +00:00
ats
f34d2f9c01 Fix a bug, that someone has introduced into /etc/security. It has no longer
found SUID files, only SGID files. The find has missed some parantheses.
1995-01-14 13:23:50 +00:00
bde
f864467045 Fix security holes in sigreturn(), ptrace() and procfs. sigreturn()
attempted to check for insecure and fatal eflags and segment
selectors, but missed many cases and got the IOPL check back to
front.  The other syscalls didn't check at all.

sys_process.c, machdep.c:
Only allow PT_WRITE_U to write to the registers (ordinary and FP).

psl.h, locore.s, machdep.c:
Eliminate PSL_MBZ, PSL_MBO and PSL_USERCLR.  We are not supposed
to assume anything about the reserved bits.  Use PSL_USERCHANGE
and PSL_KERNEL instead.  Rename PSL_USERSET to PSL_USER.

exception.s:
Define a private label for use by doreti when returning to user
mode fails.

machdep.c:
In syscalls, allow changing only the eflags that can be changed on
486's in user mode (no longer attempt to allow benign IOPL changes;
allow changing the nasty PSL_NT; don't allow changing the i586
bits).

Don't attempt to check all the cases involving invalid selectors
and %eip's.  Just check for privilege violations and let the invalid
things cause a trap.

procfs_machdep.c:
Call the ptrace register functions to do all the work for reading
and writing ordinary registers and for single stepping.

trap.c:
Ignore traps caused by PSL_NT being set.  Previously, users could
cause a fatal trap in user mode by setting PSL_NT and executing an
iret, and a fatal trap in kernel mode by setting PSL_NT and making
a syscall.  PSL_NT was cleared too late and not in enough modes to
fix the problem.

Make all traps in user mode (except T_NMI) nonfatal.

Recover from traps caused by attempting to load invalid user
registers in doreti by restarting the traps so that they appear to
occur in user mode.
---

Fix bogons that I noticed while fixing the above:

psl.h:
Fix some comments.

Uniformize idempotency ifdef.

exception.s, machdep.c:
Remove rsvd[0-14].  rsvd0 hasn't been reserved since the 486 came
out.  Replace rsvd0 by `align'.  rsvd[0-11] used wrong (magic
non-unique) trap numbers.  Replace rsvd[1-14] by rsvd.

locore.s:
Enable alignment check flag on 486's and 586's.

machdep.c:
Use a better type for kstack[].

Use TFREGP() to find the registers.

Reformat ptrace functions from SEF to something closer to KNF.

procfs_machdep.c:
The wrong pointer to the registers got fixed as a side effect.

Implement reading and writing of FP registers.

/proc/*/*regs now work (only) for processes that are in memory.

Clean up comments.

trap.c, trap.h:
Remove unused trap types.
1995-01-14 13:20:26 +00:00
jkh
92ea353442 Try out my new idea for making the srcdist.. 1995-01-14 12:51:40 +00:00
jkh
682add6a1c Actually, there's a better way to do this whole srcdist tarball business.
Take first steps toward implementing it.
1995-01-14 12:48:39 +00:00
jkh
29995a54fe Change the way the srcdist is generated. 1995-01-14 12:44:23 +00:00
jkh
5dd08626d1 Clean up src-tarball definition. 1995-01-14 12:29:38 +00:00
alm
a8457251d8 fixed `s' to set dot to last line affected, not the last line in
a substitution range.
1995-01-14 11:47:16 +00:00
jkh
5fd14a3119 Change name of secrdist to secure. 1995-01-14 11:32:41 +00:00
bde
ddcce018ef Define some public labels for use by trap(). 1995-01-14 11:00:27 +00:00
jkh
f8ac3c83a6 Remove bogus scd0 driver - I should have looked at LINT first, anyway. 1995-01-14 10:48:56 +00:00
bde
56e94090e5 Enable define of CR0_AM to prepare for implementing alignment checking.
Uniformize idempotency ifdef.
1995-01-14 10:44:55 +00:00
bde
4296366254 Declare a real `struct fpreg' to prepare for implementing reading and
writing of FP regs for procfs.

Uniformize idempotency ifdef.
1995-01-14 10:41:41 +00:00
bde
352cf37066 Remove reference to impossible trap type T_KDBTRAP. We don't support
watchpoints.

Uniformize idempotency ifdef.
1995-01-14 10:34:52 +00:00
jkh
e1791b06e3 Make sure a partition we're about to mount on will always exist on the
user's system.  Make Mkdir() selectively not die in case of failure.
1995-01-14 10:31:29 +00:00
jkh
bfd797c7f7 Initial revision 1995-01-14 10:28:20 +00:00
jkh
1839545b6d Be neat - put bininst in scripts directory too. 1995-01-14 10:28:11 +00:00
bde
615fc1e0d9 Eliminate T_KDBTRAP, which will soon go away. It was only used for an
unreachable case label in kdb_trap().

Use the correct case labels in kdb_trap() so that normal ddb entry doesn't
print a message.

Change all printf's to db_printf's.  Now you can put a breakpoint at printf,
and ddb entry messages don't spam the syslog output.

Cosmetic:

Use ISPL() instead of magic numbers.

Don't compile the unused function kdb_kbd_trap().

Improve some asms.

Print the arg to Debugger().
1995-01-14 10:24:48 +00:00
bde
268068de73 Silence `make -ss'. 1995-01-14 09:48:14 +00:00
jkh
e538a7cccb Further review for scripts/ dir renaming. 1995-01-14 08:02:49 +00:00
jkh
f89d36730c Change DISTRIBUTION names. Also make bsd.doc.mk go to doc distribution,
not bin.  Hmmm.
1995-01-14 07:51:10 +00:00
jkh
fcfaa406aa Make the whole *dist naming structure halfway orthogonal. 1995-01-14 07:48:09 +00:00
jkh
b27348e0a5 Do the right thing with init for secrdist. 1995-01-14 07:44:23 +00:00
jkh
e84a47a834 Initial revision 1995-01-14 07:41:52 +00:00
jkh
65615239a4 Correct positioning of text, update version. 1995-01-14 07:30:30 +00:00
dg
218afd7a8e Add missing object_lock/unlock. 1995-01-14 04:58:53 +00:00
jkh
b55651ef61 Install suidperl suid root.
Submitted by:	Jean-Marc Zucconi <jmz@cabri.obs-besancon.fr>
1995-01-14 03:31:27 +00:00
jkh
c8162b36c8 Close PR#108 - man page 4 tty lies - needs updated info
Submitted by:	jgreco@hummin.sol.net
1995-01-14 02:48:13 +00:00
jkh
4d936778eb Put UCONSOLE back - I was wrong, it's still used in one last place.
Submitted by:	ollivier
1995-01-14 02:39:22 +00:00
jkh
0a93efad73 Recognise Linux filesystems.
Submitted by:	remy
1995-01-14 02:26:07 +00:00
jkh
5f4e772ef8 Correctly recognise Linux partitions.
Submitted by:	remy
1995-01-14 02:25:36 +00:00
jkh
7e84fde7fb Patch from Remy Card for bogus path in Makefile. 1995-01-14 02:20:42 +00:00
wollman
72596fd15c Delete obsolete references to kerberosIV. 1995-01-13 21:00:05 +00:00
sos
1b1bc5cd66 Oops, forgot one change when DDB is defined. 1995-01-13 17:13:13 +00:00
dg
ada267ff5f Protect a qcollapse call with an object lock before calling. The locks
need to be moved into the qcollapse and rcollapse routines, but I don't
have time at the moment to make all the required changes...this will do
for now.
1995-01-13 13:30:24 +00:00
gibbs
6336578059 Remove extra leading tabs that made this thing blow up. 1995-01-13 08:06:55 +00:00
jkh
1b47facd92 I must be hallucinating. Back out the previous change. Um. Drat,
how to do this?
1995-01-13 06:44:23 +00:00
jkh
8815663148 Add conv=osync to the boot flop. You know, this might explain those
mysterious rawrite problems! :-)
1995-01-13 05:43:03 +00:00
ache
a7dfaa4e8e Use (n - 1) in ESC [ xxx d and ESC [ xxx ` 1995-01-13 03:19:22 +00:00
gibbs
5baa9edf60 Point dependancy to i386/scsi 1995-01-13 02:29:14 +00:00
gibbs
7f7c56c327 Point include to i386/scsi 1995-01-13 02:27:08 +00:00
gibbs
7052076816 Generic support for the entire aic7x70 line of adaptors. No one else
came up with a directory place ment more me, so now we have i386/scsi.
1995-01-13 02:24:31 +00:00
gibbs
00d4d48c05 Add in aic7770.c (EISA/VL Adaptors) and aic7870.c (PCI adaptor) dependancies
for the ahc driver.
1995-01-13 02:23:27 +00:00
gibbs
d2a4cce552 Full support for 294x and Wide devices. Fixed month old bug in the SCSI
sense retrieval code that messed up CDROM devices.  This code will also
responde correctly to SDTR and WDTR messages from devices that start a
negotiation sequence.
1995-01-13 02:22:11 +00:00
ache
25680f60a1 Add more funkeys, correct existen ones 1995-01-13 00:51:48 +00:00
ache
465a9fc481 Use -Tlatin1 instead -Tascii to pass character from
S0ren name without warnings.
1995-01-13 00:42:04 +00:00
ache
6d7be0a929 Sync with base termcap 1995-01-13 00:19:50 +00:00
ache
ef9cb61895 Add nw & ec capabilities from new syscons 1995-01-13 00:16:52 +00:00
ache
ce2e095151 Add more termcap capabilities, correct one escape 1995-01-13 00:14:52 +00:00