Opened 4 years ago
Last modified 6 weeks ago
#16695 new bug
SEM: Test FAILED - conformance/interfaces/sem_unlink/3-1.c
Reported by: | cocobean | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | System/POSIX | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
This sample test aims to check the following assertion:
sem_unlink will return -1 and set errno to EACCESS if the process has not priviledge to unlink the sem.
The steps are:
-> open a semaphore with 0744 mask -> fork -> change child uid -> child attempts to unlink the semaphore. It should fail. -> join the child -> sem_unlink (should be OK)
The test fails if the child process is able to unlink the semaphore.
Ref: conformance/interfaces/sem_unlink/3-1.c
Expected result: Test passed
Actual Result: [18:27:27]Testing with user 'user' (uid: 0) [18:27:27]sem_unlink did not fail in child[18:27:27]Test conformance/interfaces/sem_unlink/3-1.c FAILED: Test failed in child
Tested on: Haiku hrev54811 x86_gcc2 with Open POSIX Test 1.5.2
Note:
See TracTickets
for help on using tickets.
Optional - per UNIX 2003 compliance. Result: UNRESOLVED on Linux.