Patch-ID# 100650-02
Synopsis: 4.1.1,4.1.2,4.1.3: ipcs aborts with "shmctl: Permission denied"
Date: May/07/93

SunOS release: 4.1.1, 4.1.2, 4.1.3

Unbundled Product: 

Unbundled Release: 

Topic: This patch fixes some anomalies in the way 4.1.x ipcs handles
       checking permissions of shared memory segments and semaphores

BugId's fixed with this patch: 1046490

Changes incorporated in this version: ported to 4.1.3

Architectures for which this patch is available: sun3, sun4

Patches which may conflict with this patch: 

Obsoleted by: 

Files included with this patch: /usr/bin/ipcs

Problem Description: 

	For a non-root user, the ipcs program abnormally terminates
	with "shmctl: Permission denied" when there exists a shared 
	memory segment "owned" by another user and its permission bits
	don't allow read access by the user executing "ipcs".  This patch
	fixes the ipcs command in this regard.

Install Instructions: 

        1) Save the original ipcs:
                mv /usr/bin/ipcs /usr/bin/ipcs.FCS
         
        2) cd to the appropriate SunOS release subdirectory (4.1.1,
	   4.1.2, 4.1.3) and copy the patched ipcs to /usr/bin:

                cp OS-rel/`arch`/ipcs /usr/bin/ipcs

        3) fix the ownership and permissions of the new ipcs:

		chown root /usr/bin/ipcs
		chgrp kmem /usr/bin/ipcs
                chmod 2755 /usr/bin/ipcs
