<PackageReference Include="System.Threading.AccessControl" Version="10.0.5" />

System.Threading.ThreadingAclExtensions

public static class ThreadingAclExtensions
Provides Windows-specific extension methods for managing the access control list (ACL) security descriptors for EventWaitHandle, Mutex, and Semaphore.

Returns the security descriptors for the specified handle.

public static MutexSecurity GetAccessControl(this Mutex mutex)

Returns the security descriptors for the specified mutex.

public static SemaphoreSecurity GetAccessControl(this Semaphore semaphore)

Returns the security descriptors for the specified semaphore.

public static void SetAccessControl(this EventWaitHandle handle, EventWaitHandleSecurity eventSecurity)

Sets the security descriptors for the specified event wait handle.

public static void SetAccessControl(this Mutex mutex, MutexSecurity mutexSecurity)

Sets the security descriptors for the specified mutex.

public static void SetAccessControl(this Semaphore semaphore, SemaphoreSecurity semaphoreSecurity)

Sets the security descriptors for the specified semaphore.