A System.Security.AccessControl.SemaphoreSecurity object that represents the access control security for the named system semaphore.
The Semaphore.GetAccessControl method uses the following combination of flags (combined using the bitwise OR operation) to search for permissions: System.Security.AccessControl.AccessControlSections.Access, System.Security.AccessControl.AccessControlSections.Owner, and System.Security.AccessControl.AccessControlSections.Group.
The user must have System.Security.AccessControl.SemaphoreRights.ReadPermissions rights to call this method, and the semaphore must have been opened with System.Security.AccessControl.SemaphoreRights.ReadPermissions rights.
On a local semaphore, access control security is irrelevant. If the System.Threading.Semaphore object does not represent a named system semaphore, this method returns a System.Security.AccessControl.SemaphoreSecurity object that grants all rights to any user.