Patch Name: PHCO_20481 Patch Description: s700_800 10.26 sh(1) and ksh(1) shell cumulative patch Creation Date: 99/11/18 Post Date: 99/11/18 Hardware Platforms - OS Releases: s700: 10.26 s800: 10.26 Products: N/A Filesets: OS-Core.UX-CORE OS-Core.CORE-ENG-A-MAN BLS.BLS-ENG-A-MAN Automatic Reboot?: No Status: General Superseded Critical: No Path Name: /hp-ux_patches/s700_800/10.X/PHCO_20481 Symptoms: PHCO_20481: Invalid access on files protected by ACLs. PHCO_19917: 1. Port of PHCO_17691 and PHCO_19052 to TOS. 2. Add auditing of kill builtin to show which process is signalled. (PHCO_17691) ksh(1) coredumps with script using many heredocs. (PHCO_19052) 1. Posix shell can not keep the correct cursor position on multibyte locale. 2. Filename pattern match and case pattern match fail in posix shell. 3. Posix shell does not remove here-documents. 4. Posix shell coredumps with script using many heredocs. 5. Posix shell does not handle SIGWINCH correctly while executing functions. PHCO_17791: When a user with kernel multilevelops privilege executes privs -i multilevelops in a window with an SL greater than unclassified, the command fails with ksh: /tmp/sh2496.13 cannot create Memory fault Defect Description: PHCO_20481: Fail to restore the privileges back to the user base privileges. Resolution: Restore back the privileges in all cases. PHCO_19917: 1. Port of PHCO_17691 and PHCO_19052 to TOS. 2. When the shell builtin kill is used, it now looks up the process name being signalled and records that in the audit log. PHCO_17791: Privs -i multilevelops fails in the window with SL higher than Unclassified for non-root user. Longjmp is called during recovery process, although setjmp hasn't been called yet. Ksh tries to open with append the history file, but fails from the window higher than Unclassified, because this is an Unclassified file. Resolution: Modify io_mktmp subroutine to fail rather than try to recover with longjmp. SR: 4701413922 5003428490 1653264812 5003424754 5003417931 1653239947 1653236851 1653240390 1653240408 4701339309 1653182162 1653164350 1653174615 5003295741 5003340166 5003359547 1653210948 5003366856 1653205088 1653152892 1653216481 1653245894 4701424424 1653288449 4701413922 1653280933 1653239608 4701403345 5003427922 1653271627 1653264812 1653266940 5003424754 5003417931 1653249557 5003404186 1653240390 1653238170 5003341651 5003338087 5003331280 5003335273 1653182162 5003331256 5003333450 5003327981 1653172619 1653135228 1653177865 1653149930 5003315135 5003338046 5003340166 1653206532 5003343038 Patch Files: /usr/bin/ksh /usr/bin/rksh /usr/share/man/man1.Z/ksh.1 /usr/lib/nls/msg/C/psh.cat /usr/bin/rsh /usr/bin/sh /sbin/sh /usr/old/bin/sh /usr/share/man/man1.Z/sh-posix.1 /usr/share/man/man1.Z/rsh-posix.1 what(1) Output: /usr/bin/ksh: 1999/10/22 Hewlett-Packard HP-UX 10.26 TOS [ ic5dq - DAV17 ] 99/10/08 cmd/ksh88/sh/defs.c, hpux, hpux_10.26, ic5d q Revision 1.3 PATCH_10.26 (PHCO_19917) UNMO DIFIED 99/10/08 cmd/ksh88/sh/edit.c, hpux, hpux_10.26, ic5d q Revision 1.3 PATCH_10.26 (PHCO_19917) UNMO DIFIED 99/10/08 cmd/ksh88/sh/fault.c, hpux, hpux_10.26, ic5 dq Revision 1.3 PATCH_10.26 (PHCO_19917) UNM ODIFIED 99/10/08 cmd/ksh88/sh/io.c, hpux, hpux_10.26, ic5dq Revision 1.4 PATCH_10.26 (PHCO_19917) 99/10/08 cmd/ksh88/sh/stak.c, hpux, hpux_10.26, ic5d q Revision 1.3 PATCH_10.26 (PHCO_19917) $Revision: 78.5.1.45 $ 99/10/08 cmd/ksh88/sh/ksh_sec.c, hpux, hpux_10.26, i c5dq Revision 1.8 PATCH_10.26 (PHCO_19917) 99/10/08 cmd/ksh88/sh/builtin.c, hpux, hpux_10.26, i c5dq Revision 1.4 PATCH_10.26 (PHCO_19917) 99/10/08 cmd/ksh88/sh/cmd.c, hpux, hpux_10.26, ic5dq Revision 1.3 PATCH_10.26 (PHCO_19917) UNMOD IFIED 99/10/08 cmd/ksh88/sh/main.c, hpux, hpux_10.26, ic5d q Revision 1.6 PATCH_10.26 (PHCO_19917) Version 11/16/88 99/10/08 cmd/ksh88/sh/xec.c, hpux, hpux_10.26, ic5dq Revision 1.3 PATCH_10.26 (PHCO_19917) UNMOD IFIED 99/10/08 cmd/ksh88/sh/macro.c, hpux, hpux_10.26, ic5 dq Revision 1.3 PATCH_10.26 (PHCO_19917) UNM ODIFIED 99/10/08 cmd/ksh88/sh/error.c, hpux, hpux_10.26, ic5 dq Revision 1.3 PATCH_10.26 (PHCO_19917) UNM ODIFIED 99/10/20 cmd/ksh88/sh/service.c, hpux, hpux_10.26, i c5dq Revision 1.8 PATCH_10.26 (PHCO_19917) 99/10/08 cmd/ksh88/sh/jobs.c, hpux, hpux_10.26, ic5d q Revision 1.5 PATCH_10.26 (PHCO_19917) 99/10/08 cmd/ksh88/sh/history.c, hpux, hpux_10.26, i c5dq Revision 1.4 PATCH_10.26 (PHCO_19917) /usr/bin/rksh: 1999/10/22 Hewlett-Packard HP-UX 10.26 TOS [ ic5dq - DAV17 ] 99/10/08 cmd/ksh88/sh/defs.c, hpux, hpux_10.26, ic5d q Revision 1.3 PATCH_10.26 (PHCO_19917) UNMO DIFIED 99/10/08 cmd/ksh88/sh/edit.c, hpux, hpux_10.26, ic5d q Revision 1.3 PATCH_10.26 (PHCO_19917) UNMO DIFIED 99/10/08 cmd/ksh88/sh/fault.c, hpux, hpux_10.26, ic5 dq Revision 1.3 PATCH_10.26 (PHCO_19917) UNM ODIFIED 99/10/08 cmd/ksh88/sh/io.c, hpux, hpux_10.26, ic5dq Revision 1.4 PATCH_10.26 (PHCO_19917) 99/10/08 cmd/ksh88/sh/stak.c, hpux, hpux_10.26, ic5d q Revision 1.3 PATCH_10.26 (PHCO_19917) $Revision: 78.5.1.45 $ 99/10/08 cmd/ksh88/sh/ksh_sec.c, hpux, hpux_10.26, i c5dq Revision 1.8 PATCH_10.26 (PHCO_19917) 99/10/08 cmd/ksh88/sh/builtin.c, hpux, hpux_10.26, i c5dq Revision 1.4 PATCH_10.26 (PHCO_19917) 99/10/08 cmd/ksh88/sh/cmd.c, hpux, hpux_10.26, ic5dq Revision 1.3 PATCH_10.26 (PHCO_19917) UNMOD IFIED 99/10/08 cmd/ksh88/sh/main.c, hpux, hpux_10.26, ic5d q Revision 1.6 PATCH_10.26 (PHCO_19917) Version 11/16/88 99/10/08 cmd/ksh88/sh/xec.c, hpux, hpux_10.26, ic5dq Revision 1.3 PATCH_10.26 (PHCO_19917) UNMOD IFIED 99/10/08 cmd/ksh88/sh/macro.c, hpux, hpux_10.26, ic5 dq Revision 1.3 PATCH_10.26 (PHCO_19917) UNM ODIFIED 99/10/08 cmd/ksh88/sh/error.c, hpux, hpux_10.26, ic5 dq Revision 1.3 PATCH_10.26 (PHCO_19917) UNM ODIFIED 99/10/20 cmd/ksh88/sh/service.c, hpux, hpux_10.26, i c5dq Revision 1.8 PATCH_10.26 (PHCO_19917) 99/10/08 cmd/ksh88/sh/jobs.c, hpux, hpux_10.26, ic5d q Revision 1.5 PATCH_10.26 (PHCO_19917) 99/10/08 cmd/ksh88/sh/history.c, hpux, hpux_10.26, i c5dq Revision 1.4 PATCH_10.26 (PHCO_19917) /usr/share/man/man1.Z/ksh.1: None /usr/lib/nls/msg/C/psh.cat: None /usr/bin/rsh: 1999/11/17 Hewlett-Packard HP-UX 10.26 TOS [ ic5dx - DAV17 ] 99/09/15 cmd/OSF/ksh/builtin.c, hpux, hpux_10.26, ic 5dx Revision 1.3 PATCH_10.26 (PHCO_19917) 99/09/15 cmd/OSF/ksh/macro.c, hpux, hpux_10.26, ic5d x Revision 1.2 PATCH_10.26 (PHCO_19917) UNMO DIFIED Version M-11/16/88f 99/09/15 cmd/OSF/ksh/cmd.c, hpux, hpux_10.26, ic5dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNMODI FIED 99/09/15 cmd/OSF/ksh/print.c, hpux, hpux_10.26, ic5d x Revision 1.2 PATCH_10.26 (PHCO_19917) UNMO DIFIED 99/10/20 cmd/OSF/ksh/service.c, hpux, hpux_10.26, ic 5dx Revision 1.6 PATCH_10.26 (PHCO_19917) 99/09/15 cmd/OSF/ksh/xec.c, hpux, hpux_10.26, ic5dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNMODI FIED 99/11/16 cmd/OSF/ksh/main.c, hpux, hpux_10.26, ic5dx Revision 1.5 PATCH_10.26 (PHCO_20481) 99/09/15 cmd/OSF/ksh/args.c, hpux, hpux_10.26, ic5dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNMOD IFIED 99/09/15 cmd/OSF/ksh/defs.c, hpux, hpux_10.26, ic5dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNMOD IFIED 99/09/15 cmd/OSF/ksh/edit.c, hpux, hpux_10.26, ic5dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNMOD IFIED 99/09/15 cmd/OSF/ksh/error.c, hpux, hpux_10.26, ic5d x Revision 1.2 PATCH_10.26 (PHCO_19917) UNMO DIFIED 99/09/15 cmd/OSF/ksh/expand.c, hpux, hpux_10.26, ic5 dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNM ODIFIED 99/09/15 cmd/OSF/ksh/fault.c, hpux, hpux_10.26, ic5d x Revision 1.2 PATCH_10.26 (PHCO_19917) UNMO DIFIED 99/09/15 cmd/OSF/ksh/history.c, hpux, hpux_10.26, ic 5dx Revision 1.3 PATCH_10.26 (PHCO_19917) $Revision: 78.16.1.56 $ 99/09/15 cmd/OSF/ksh/io.c, hpux, hpux_10.26, ic5dx R evision 1.2 PATCH_10.26 (PHCO_19917) 99/09/29 cmd/OSF/ksh/jobs.c, hpux, hpux_10.26, ic5dx Revision 1.3 PATCH_10.26 (PHCO_19917) 99/09/15 cmd/OSF/ksh/stak.c, hpux, hpux_10.26, ic5dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNMOD IFIED 99/09/15 cmd/OSF/ksh/strmatch.c, hpux, hpux_10.26, i c5dx Revision 1.2 PATCH_10.26 (PHCO_19917) U NMODIFIED 99/09/15 cmd/OSF/ksh/test.c, hpux, hpux_10.26, ic5dx Revision 1.4 PATCH_10.26 (PHCO_19917) 99/09/15 cmd/OSF/ksh/vi.c, hpux, hpux_10.26, ic5dx R evision 1.2 PATCH_10.26 (PHCO_19917) UNMODIF IED 99/11/16 cmd/OSF/ksh/ksh_sec.c, hpux, hpux_10.26, ic 5dx Revision 1.6 PATCH_10.26 (PHCO_20481) /usr/bin/sh: 1999/11/17 Hewlett-Packard HP-UX 10.26 TOS [ ic5dx - DAV17 ] 99/09/15 cmd/OSF/ksh/builtin.c, hpux, hpux_10.26, ic 5dx Revision 1.3 PATCH_10.26 (PHCO_19917) 99/09/15 cmd/OSF/ksh/macro.c, hpux, hpux_10.26, ic5d x Revision 1.2 PATCH_10.26 (PHCO_19917) UNMO DIFIED Version M-11/16/88f 99/09/15 cmd/OSF/ksh/cmd.c, hpux, hpux_10.26, ic5dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNMODI FIED 99/09/15 cmd/OSF/ksh/print.c, hpux, hpux_10.26, ic5d x Revision 1.2 PATCH_10.26 (PHCO_19917) UNMO DIFIED 99/10/20 cmd/OSF/ksh/service.c, hpux, hpux_10.26, ic 5dx Revision 1.6 PATCH_10.26 (PHCO_19917) 99/09/15 cmd/OSF/ksh/xec.c, hpux, hpux_10.26, ic5dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNMODI FIED 99/11/16 cmd/OSF/ksh/main.c, hpux, hpux_10.26, ic5dx Revision 1.5 PATCH_10.26 (PHCO_20481) 99/09/15 cmd/OSF/ksh/args.c, hpux, hpux_10.26, ic5dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNMOD IFIED 99/09/15 cmd/OSF/ksh/defs.c, hpux, hpux_10.26, ic5dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNMOD IFIED 99/09/15 cmd/OSF/ksh/edit.c, hpux, hpux_10.26, ic5dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNMOD IFIED 99/09/15 cmd/OSF/ksh/error.c, hpux, hpux_10.26, ic5d x Revision 1.2 PATCH_10.26 (PHCO_19917) UNMO DIFIED 99/09/15 cmd/OSF/ksh/expand.c, hpux, hpux_10.26, ic5 dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNM ODIFIED 99/09/15 cmd/OSF/ksh/fault.c, hpux, hpux_10.26, ic5d x Revision 1.2 PATCH_10.26 (PHCO_19917) UNMO DIFIED 99/09/15 cmd/OSF/ksh/history.c, hpux, hpux_10.26, ic 5dx Revision 1.3 PATCH_10.26 (PHCO_19917) $Revision: 78.16.1.56 $ 99/09/15 cmd/OSF/ksh/io.c, hpux, hpux_10.26, ic5dx R evision 1.2 PATCH_10.26 (PHCO_19917) 99/09/29 cmd/OSF/ksh/jobs.c, hpux, hpux_10.26, ic5dx Revision 1.3 PATCH_10.26 (PHCO_19917) 99/09/15 cmd/OSF/ksh/stak.c, hpux, hpux_10.26, ic5dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNMOD IFIED 99/09/15 cmd/OSF/ksh/strmatch.c, hpux, hpux_10.26, i c5dx Revision 1.2 PATCH_10.26 (PHCO_19917) U NMODIFIED 99/09/15 cmd/OSF/ksh/test.c, hpux, hpux_10.26, ic5dx Revision 1.4 PATCH_10.26 (PHCO_19917) 99/09/15 cmd/OSF/ksh/vi.c, hpux, hpux_10.26, ic5dx R evision 1.2 PATCH_10.26 (PHCO_19917) UNMODIF IED 99/11/16 cmd/OSF/ksh/ksh_sec.c, hpux, hpux_10.26, ic 5dx Revision 1.6 PATCH_10.26 (PHCO_20481) /sbin/sh: 99/11/17 lib/libc/core/gen/ctime.c, hpux, hpux_10.26 , ic5dx Revision 1.2 PATCH_10.26 (PHCO_17823 ) UNMODIFIED 1999/11/17 Hewlett-Packard HP-UX 10.26 TOS [ ic5dx - DAV17 ] 99/09/15 cmd/OSF/ksh/builtin.c, hpux, hpux_10.26, ic 5dx Revision 1.3 PATCH_10.26 (PHCO_19917) 99/09/15 cmd/OSF/ksh/macro.c, hpux, hpux_10.26, ic5d x Revision 1.2 PATCH_10.26 (PHCO_19917) UNMO DIFIED Version M-11/16/88f 99/09/15 cmd/OSF/ksh/cmd.c, hpux, hpux_10.26, ic5dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNMODI FIED 99/09/15 cmd/OSF/ksh/print.c, hpux, hpux_10.26, ic5d x Revision 1.2 PATCH_10.26 (PHCO_19917) UNMO DIFIED 99/10/20 cmd/OSF/ksh/service.c, hpux, hpux_10.26, ic 5dx Revision 1.6 PATCH_10.26 (PHCO_19917) 99/09/15 cmd/OSF/ksh/xec.c, hpux, hpux_10.26, ic5dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNMODI FIED 99/11/16 cmd/OSF/ksh/main.c, hpux, hpux_10.26, ic5dx Revision 1.5 PATCH_10.26 (PHCO_20481) 99/09/15 cmd/OSF/ksh/args.c, hpux, hpux_10.26, ic5dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNMOD IFIED 99/09/15 cmd/OSF/ksh/defs.c, hpux, hpux_10.26, ic5dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNMOD IFIED 99/09/15 cmd/OSF/ksh/edit.c, hpux, hpux_10.26, ic5dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNMOD IFIED 99/09/15 cmd/OSF/ksh/error.c, hpux, hpux_10.26, ic5d x Revision 1.2 PATCH_10.26 (PHCO_19917) UNMO DIFIED 99/09/15 cmd/OSF/ksh/expand.c, hpux, hpux_10.26, ic5 dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNM ODIFIED 99/09/15 cmd/OSF/ksh/fault.c, hpux, hpux_10.26, ic5d x Revision 1.2 PATCH_10.26 (PHCO_19917) UNMO DIFIED 99/09/15 cmd/OSF/ksh/history.c, hpux, hpux_10.26, ic 5dx Revision 1.3 PATCH_10.26 (PHCO_19917) $Revision: 78.16.1.56 $ 99/09/15 cmd/OSF/ksh/io.c, hpux, hpux_10.26, ic5dx R evision 1.2 PATCH_10.26 (PHCO_19917) 99/09/29 cmd/OSF/ksh/jobs.c, hpux, hpux_10.26, ic5dx Revision 1.3 PATCH_10.26 (PHCO_19917) 99/09/15 cmd/OSF/ksh/stak.c, hpux, hpux_10.26, ic5dx Revision 1.2 PATCH_10.26 (PHCO_19917) UNMOD IFIED 99/09/15 cmd/OSF/ksh/strmatch.c, hpux, hpux_10.26, i c5dx Revision 1.2 PATCH_10.26 (PHCO_19917) U NMODIFIED 99/09/15 cmd/OSF/ksh/test.c, hpux, hpux_10.26, ic5dx Revision 1.4 PATCH_10.26 (PHCO_19917) 99/09/15 cmd/OSF/ksh/vi.c, hpux, hpux_10.26, ic5dx R evision 1.2 PATCH_10.26 (PHCO_19917) UNMODIF IED 99/11/16 cmd/OSF/ksh/ksh_sec.c, hpux, hpux_10.26, ic 5dx Revision 1.6 PATCH_10.26 (PHCO_20481) 99/11/09 lib/libsecurity/map_ids.c, hpux, hpux_10.26 , ic5dx Revision 1.13 PATCH_10.26 (PHCO_2043 0) 99/11/17 lib/libsecurity/mandlib.c, hpux, hpux_10.26 , ic5dx Revision 1.5 PATCH_10.26 (PHCO_17760 ) $ 99/05/21 lib/libsecurity/authcap.c, hpux, hpux_10.26 , ic5dx Revision 1.5 PATCH_10.26 (PHCO_18502 ) ic5ae_DAV17 lib/libc/archive_pa1/libc.a_01 Nov 17 1999 18:33:10 /usr/old/bin/sh: 1999/11/17 Hewlett-Packard HP-UX 10.26 TOS [ ic5dx - DAV17 ] $Revision: 74.3 $ 99/11/16 cmd/sh/sh_sec.c, hpux, hpux_10.26, ic5dx Re vision 1.5 PATCH_10.26 (PHCO_20481) /usr/share/man/man1.Z/sh-posix.1: None /usr/share/man/man1.Z/rsh-posix.1: None cksum(1) Output: 3719061229 167936 /usr/bin/ksh 3719061229 167936 /usr/bin/rksh 1854053865 43293 /usr/share/man/man1.Z/ksh.1 1521661560 5680 /usr/lib/nls/msg/C/psh.cat 1476360422 212992 /usr/bin/rsh 1476360422 212992 /usr/bin/sh 2217360155 577536 /sbin/sh 1640803519 81920 /usr/old/bin/sh 4224918430 46751 /usr/share/man/man1.Z/sh-posix.1 4224918430 46751 /usr/share/man/man1.Z/rsh-posix.1 Patch Conflicts: None Patch Dependencies: s700: 10.26: PHCO_18795 s800: 10.26: PHCO_18795 Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_17791 PHCO_19917 Equivalent Patches: PHCO_17691: s700: 10.20 s800: 10.20 PHCO_19052: s700: 10.20 s800: 10.20 Patch Package Size: 1170 KBytes Installation Instructions: Please review all instructions and the Hewlett-Packard SupportLine User Guide or your Hewlett-Packard support terms and conditions for precautions, scope of license, restrictions, and, limitation of liability and warranties, before installing this patch. ------------------------------------------------------------ 1. Back up your system before installing a patch. 2. Login as root. 3. Copy the patch to the /tmp directory. 4. Move to the /tmp directory and unshar the patch: cd /tmp sh PHCO_20481 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHCO_20481.depot By default swinstall will archive the original software in /var/adm/sw/patch/PHCO_20481. If you do not wish to retain a copy of the original software, you can create an empty file named /var/adm/sw/patch/PATCH_NOSAVE. WARNING: If this file exists when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. It is recommended that you move the PHCO_20481.text file to /var/adm/sw/patch for future reference. To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_20481.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None