Commit Graph

5356 Commits

Author SHA1 Message Date
Jordan K. Hubbard
a3de1367e9 Submit srcdist changes 1995-01-15 06:31:50 +00:00
Andrey A. Chernov
9bc89504b8 Remove duplicated ec capability 1995-01-15 06:31:14 +00:00
Andrey A. Chernov
6451258bef Sync with base termcap.src 1995-01-15 06:29:22 +00:00
Andrey A. Chernov
bf8a2c7b91 Fix cv & ch to increment pos by one 1995-01-15 06:26:58 +00:00
Jordan K. Hubbard
42e77edcaf The Makefile contained in usr.bin/tconv contains a bogus
reference to the absolute path /usr/src/lib/libmytinfo.  The enclosed
patch fixes this.

Submitted by:	Remy Card <Remy.Card@masi.ibp.fr>
1995-01-15 06:19:01 +00:00
Jordan K. Hubbard
973e94c5d5 Make one last stab at making this work before I go. 1995-01-15 06:13:46 +00:00
Garrett Wollman
b60e6e6e9f Some fixes to device configuration, now that I've had a chance to do it
properly from the beginning:

	1) The `kern_devconf' struct should be a part of the driver's
	   `softc' structure (now it is).
	2) The `description' should say what the device actually is,
	   rather than just giving a model number (now it does).
	3) The device should be registered even if the probe fails, so
	   that it can be reconfigured later.
	4) For netifs, the device state should follow the IFF_UP flag.

Other network interfaces should follow this example.  (Please?)  Eventually
there should be a rundown routine doing the equivalent of setting IFF_UP
off, and perhaps more if warranted.
1995-01-15 00:18:17 +00:00
Garrett Wollman
0e10ef2ea0 Add a `-p' option, allowing the super-user to directly set a user's
encrypted password.  Kerberized `login' might use this, if I get around
to implementing the complete Allspice System behavior.
1995-01-14 23:14:25 +00:00
Garrett Wollman
758f3a64bd Modify klogin to:
1) Don't spit out an error message if Kerberos is installed but not yet
   set up.

2) Don't attempt to verify the ticket you got back, as workstations
   are not intended to have srvtab files of their own.

Both behaviors can be re-enabled with KLOGIN_PARANOID.
1995-01-14 22:57:41 +00:00
Garrett Wollman
da626a6f54 Remove obsolete `-n' flag from compile_et command line. 1995-01-14 22:32:48 +00:00
Garrett Wollman
d8baa34b91 Fix include directive bobble. 1995-01-14 22:30:32 +00:00
Garrett Wollman
5e914d3b8d Upgrade to latest released SIPB version I can find. (Unfortunately, the
original releases were not numbered.)
1995-01-14 22:29:34 +00:00
Garrett Wollman
af4d8ead38 The Common Error Description Library, developed by MIT SIPB and used by
a number of (ex-)Athena programs.  Breaking my own rules for importing
somewhat, as this code does not appear to be actively maintained by anyone
(not that it really needs it).
1995-01-14 22:23:41 +00:00
Garrett Wollman
e7f8d55240 Slightly more complete implementation of SUBDIR for libraries. 1995-01-14 22:18:15 +00:00
Garrett Wollman
83fc2a702a Add SUBDIR facility to bsd.lib.mk like in bsd.prog.mk. 1995-01-14 22:14:54 +00:00
Jordan K. Hubbard
5c6d20f99b Add some helpful text about send-pr. 1995-01-14 21:08:05 +00:00
Garrett Wollman
f4282c92cd Added compile_et. 1995-01-14 20:58:58 +00:00
Garrett Wollman
3c71319647 Slight makefile cleanup. 1995-01-14 20:58:00 +00:00
Garrett Wollman
f6e8b72cb5 Reflect the fact that compile_et is now a `system' utility. 1995-01-14 20:51:05 +00:00
Garrett Wollman
0d003156dd Reflect the fact that compile_et has been moved and is now a `system'
utility.
1995-01-14 20:50:37 +00:00
Garrett Wollman
cde665121e Fix Sharnoff complain bin/136 (-e flag doesn't work). 1995-01-14 20:36:22 +00:00
Garrett Wollman
5ddd6b6a1a Fix Sharnoff complaint #121 (cross-reference to config.new which does not
exist on the i386 platform).
1995-01-14 20:25:02 +00:00
Jordan K. Hubbard
c549fa6625 Add my own custom target for now. 1995-01-14 20:15:38 +00:00
Garrett Wollman
c81d9b5121 Turn off incredibly obnoxious forced -c' option to more'. 1995-01-14 20:09:47 +00:00
Jordan K. Hubbard
b6cc3bfac6 The enclosed patch fixes the Makefile contained in
share/doc/usd/{30.rogue,31.trek}: make fails if the games source
tree is not present (see the mail that I have sent yesterday).

        This patch makes the Makefiles test if the games source
tree is present.  If it is not present, the Makefiles default to
no operation.
1995-01-14 19:56:16 +00:00
Jordan K. Hubbard
7f272b53a0 The enclosed patch fixes the Makefile contained in
share/doc/usd/{30.rogue,31.trek}: make fails if the games source
tree is not present (see the mail that I have sent yesterday).

        This patch makes the Makefiles test if the games source
tree is present.  If it is not present, the Makefiles default to
no operation.

[Note:  I'm not sure if the Makefile changes might not be collapsable into
a shorter format, but I'll just leave it this way for now and be safe -jkh]

Submitted by:	Remy Card <Remy.Card@masi.ibp.fr>
1995-01-14 19:55:40 +00:00
Jordan K. Hubbard
314bc6245e The enclosed patch makes bsd.doc.mk consistent with bsd.prog.mk
when creating the obj link.  While bsd.prog.mk inconditionnaly creates
a link in /usr/obj, bsd.doc.mk tests if the source tree is contained in
/usr/src.  If so, it creates a link to /usr/obj.  If the source tree
is contained in another directory, bsd.doc.mk creates an obj subdirectory.
Submitted by:	Remy Card <Remy.Card@masi.ibp.fr>
1995-01-14 19:49:54 +00:00
Jordan K. Hubbard
af8dd62b9a The enclosed patch is a cosmetic change to bsd.prog.mk. When
a program directory has subdirectories, make now prints "===> dir/subdir"
instead of "===> subdir".  This is modeled after the rules contained in
bsd.subdir.mk.

Submitted by:	Remy Card <Remy.Card@masi.ibp.fr>
1995-01-14 19:48:49 +00:00
Andreas Schulz
ed3cec3fcb 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
Jordan K. Hubbard
269f4a2ef1 Add very crude beginnings of the setup script. 1995-01-14 13:34:37 +00:00
Andreas Schulz
ccca965b89 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
Bruce Evans
20415301cd 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
Jordan K. Hubbard
f854ef5dd2 Try out my new idea for making the srcdist.. 1995-01-14 12:51:40 +00:00
Jordan K. Hubbard
abf7720722 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
Jordan K. Hubbard
f14786dd11 Change the way the srcdist is generated. 1995-01-14 12:44:23 +00:00
Jordan K. Hubbard
2a27df60e3 Clean up src-tarball definition. 1995-01-14 12:29:38 +00:00
Andrew Moore
c723083073 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
Jordan K. Hubbard
002feff1d6 Change name of secrdist to secure. 1995-01-14 11:32:41 +00:00
Bruce Evans
3831ab07f8 Define some public labels for use by trap(). 1995-01-14 11:00:27 +00:00
Jordan K. Hubbard
9949564470 Remove bogus scd0 driver - I should have looked at LINT first, anyway. 1995-01-14 10:48:56 +00:00
Bruce Evans
3117fbd98e Enable define of CR0_AM to prepare for implementing alignment checking.
Uniformize idempotency ifdef.
1995-01-14 10:44:55 +00:00
Bruce Evans
c277f99332 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
Bruce Evans
1e1a3d012d Remove reference to impossible trap type T_KDBTRAP. We don't support
watchpoints.

Uniformize idempotency ifdef.
1995-01-14 10:34:52 +00:00
Jordan K. Hubbard
b9ecc1ed61 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
Jordan K. Hubbard
709f4fb343 Initial revision 1995-01-14 10:28:20 +00:00
Jordan K. Hubbard
f19709746b Be neat - put bininst in scripts directory too. 1995-01-14 10:28:11 +00:00
Bruce Evans
9bf308efab 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
Bruce Evans
4d12ebe42c Silence `make -ss'. 1995-01-14 09:48:14 +00:00
Jordan K. Hubbard
84df4daf5b Further review for scripts/ dir renaming. 1995-01-14 08:02:49 +00:00
Jordan K. Hubbard
d9584d768f Change DISTRIBUTION names. Also make bsd.doc.mk go to doc distribution,
not bin.  Hmmm.
1995-01-14 07:51:10 +00:00