Patch-ID# T100188-02 Keywords: TIOCCONS re-direction security console pty Synopsis: SunOS 4.1.1;4.1.2: pty can get output from another application Date: 10/Feb/92 SunOS release: 4.1.1, 4.1.2 Unbundled Product: Unbundled Release: Topic: BugId's fixed with this patch: 1008324 1040722 1070495 Architectures for which this patch is available: sun3 sun3x sun4 sun4c sun4m Patches which may conflict with this patch: 100187-01, 100414-01 (obsoleted) Obsoleted by: Problem Description: This patch combines 3 fixes: 1. TIOCCONS can be used to re-direct console output/input away from "console" (bugIDs 1008324) 2. Kernel programs using pty can get output from previous application. (Formerly patch 100414-01, bugID 1070495) 3. Process not letting go of a pty (bugID 1040722) Patch contains kernel object modules for: cons.o tty_pty.o zs_async.o mcp_async.o mti.o NOTE: The sun4c does not use mti.o nor mcp_async.o since this architecture does not have VME slots and therefore cannot use the ALM-2 Asynchronous Line Multiplexer or Systech MTI-800/1600. So those modules are not needed. SunOs 4.1.2 release already contains TIOCCONS fixes. Therefore, only object modules cons.o and tty_pty.o are required for 4.1.2. INSTALL: AS ROOT: Save aside the object modules from the FCS tapes as a precaution: (Note that {4.1.1,4.1.2} indicates either "4.1.2" or "4.1.1".) # For SunOS 4.1.1 (except sun4c doesn't use mti.o nor mcp_async.o): mv /sys/`arch -k`/{4.1.1,4.1.2}/OBJ/zs_async.o /sys/`arch -k`/OBJ/zs_async.o.orig mv /sys/`arch -k`/{4.1.1,4.1.2}/OBJ/mcp_async.o /sys/`arch -k`/OBJ/mcp_async.o.orig mv /sys/`arch -k`/{4.1.1,4.1.2}/OBJ/mti.o /sys/`arch -k`/OBJ/mti.o.orig mv /sys/`arch -k`/{4.1.1,4.1.2}/OBJ/cons.o /sys/`arch -k`/OBJ/cons.o.orig mv /sys/`arch -k`/{4.1.1,4.1.2}/OBJ/tty_pty.o /sys/`arch -k`/OBJ/tty_pty.o.orig # For SunOS 4.1.2: mv /sys/`arch -k`/{4.1.1,4.1.2}/OBJ/cons.o /sys/`arch -k`/OBJ/cons.o.orig mv /sys/`arch -k`/{4.1.1,4.1.2}/OBJ/tty_pty.o /sys/`arch -k`/OBJ/tty_pty.o.orig Copy the new ".o" files to the OBJ directory (for SunOS 4.1.1 and 4.1.2): cp `arch -k`/{4.1.1,4.1.2}/*.o /sys/`arch -k`/OBJ Build and install a new kernel: rerun /etc/config and do a "make" for the new kernel Please refer to the System and Network Administration Manual for details on how to configure and install a custom kernel.