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

Change History (3)

comment:1 by cocobean, 2 years ago

Optional - per UNIX 2003 compliance. Result: UNRESOLVED on Linux. Please close this ticket.

Version 2, edited 2 years ago by cocobean (previous) (next) (diff)

comment:2 by cocobean, 2 years ago

Last edited 2 years ago by cocobean (previous) (diff)

comment:3 by waddlesplash, 6 weeks ago

Keywords: POSIX semaphores sem_unlink removed
Note: See TracTickets for help on using tickets.