|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 0555 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 0555.
Report 0555 Actions
Problem Report Number 0555 Submitter's Classification Test Suite problem State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0159 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published null Product Standard Commands and Utilities V3 (UNIX 98) Certification Program The Open Brand certification program Test Suite VSC version 5.0.1 Test Identification XOPEN.cmd/ipcrm 1008,1009 Problem Summary PG4C.00119 This test may fail on implementations that do not run ipcs with appropriate privelege (suid root). VSC patch 5.0.1A provides a workaround for this problem. Problem Text
The following failure is a result of TSD4C.00212 in which the ipcrm
tests cases fail due to incorrect privileges for ipcs execution.
The ipcrm test cases create message queues but due to the failure
condition the message queues are retained as no root privilage
condition exists to perform the removal of the queues.
If the system is not rebooted, additional full runs of VSC, the ipcrm test
cases that were previously created but not removed will fail.
This points to the ipcrm test cases not attempting to clean up the queues
prior to a test case being executed. The solution is to always remove the
queues during the create phase. A code solution follows:
$ diff ipcrm.sh.orig ipcrm.sh
184c184,185
<
---
> /* Clean up before creating */
> ExecWithPriv ALLPRV ipcrm -Q $1 > /dev/null 2> /dev/null
224c225,226
<
---
> /* Clean up before creating */
> ExecWithPriv ALLPRV ipcrm -M $1 > /dev/null 2> /dev/null
264c266,267
<
---
> /* Clean up before creating */
> ExecWithPriv ALLPRV ipcrm -S $1 > /dev/null 2> /dev/null
Test Output
520|541 1 11993 1 1|Assertion #1008 (A): Options can be provided in any order
520|541 1 11993 1 11|SETUP: save ipcs state
520|541 1 11993 1 12|SETUP: create ipcs
520|541 1 11993 1 13|TEST: ipcrm -q msgid -m shmid -s semid -Q msg_key2 -M shm_
520|541 1 11993 1 14| <LC> key2 -S shm_key2 520|541 1 11993 1 15|Expected
exit code = 0; Received 2 520|541 1 11993 1 16|Standard error isn't empty
520|541 1 11993 1 17|Contents of out.stderr:
520|541 1 11993 1 18|ipcrm: msqid(300): permission denied
520|541 1 11993 1 19|usage: ipcrm [ [-q msqid] [-m shmid] [-s semid]
520|541 1 11993 1 20| [-Q msgkey] [-M shmkey] [-S semkey] ... ]
520|541 1 11993 1 21|VERIFY: ipcs state is back to the original state
520|541 1 11993 1 22|SETUP: create ipcs
520|541 1 11993 1 23|TEST: ipcrm -Q msg_key2 -M shm_key2 -S shm_key2 -q msgid -
520|541 1 11993 1 24| <LC> m shmid -s semid 520|541 1 11993 1 25|Expected
exit code = 0; Received 2 520|541 1 11993 1 26|Standard error isn't empty
520|541 1 11993 1 27|Contents of out.stderr:
520|541 1 11993 1 28|ipcrm: msqid(300): permission denied
520|541 1 11993 1 29|usage: ipcrm [ [-q msqid] [-m shmid] [-s semid]
520|541 1 11993 1 30| [-Q msgkey] [-M shmkey] [-S semkey] ... ]
520|541 1 11993 1 31|VERIFY: ipcs state is back to the original state
220|541 1 1 00:21:42|FAIL
410|541 1008 1 00:21:42|IC End
400|541 1009 1 00:21:42|IC Start
200|541 1 00:21:42|TP Start
520|541 1 11993 1 1|Assertion #1009 (A): Creator/owner can remove a messageque
520|541 1 11993 1 2| <LC> ue using -q
520|541 1 11993 1 11|SETUP: create shared memory
520|541 1 11993 1 12|VERIFY: shared memory exists
520|541 1 11993 1 13|Command failed: 'ipcs -q | grep 0x1000 >/dev/null'
520|541 1 11993 1 14|TEST: ipcrm -q 300
520|541 1 11993 1 15|Expected exit code = 0; Received 2
520|541 1 11993 1 16|Standard error isn't empty
520|541 1 11993 1 17|Contents of out.stderr:
520|541 1 11993 1 18|ipcrm: msqid(300): permission denied
520|541 1 11993 1 19|usage: ipcrm [ [-q msqid] [-m shmid] [-s semid]
520|541 1 11993 1 20| [-Q msgkey] [-M shmkey] [-S semkey] ... ]
520|541 1 11993 1 21|VERIFY: shared memory is gone
220|541 1 1 00:21:43|FAIL
410|541 1009 1 00:21:43|IC End
Review Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
We recommend this request be refused.
A workaround for these failures has been provided. We
recommend that the implementation be required to apply this
prior to making a single branding run.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Rejected (REJ) Review Conclusion
This request is refused.
Problem Reporting System Options:
- View Report 0555
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority