API Proposal: Add Mutex, Semaphore, and EventWaitHandle creation extension methods that take an ACL #31114
Labels
api-approved
API was approved in API review, it can be implemented
area-System.Threading
os-windows
Security
Milestone
Summary
Similar to #31095, we don't currently have a way to create a synchronization object with a given ACL in .NET Core. We can modify the ACL, but it would be more secure to have the proper ACL on the object from the start.
The related ACLs are already exposed in the
System.Threading.AccessControl
assembly , we should add creation extension methods to the existingThreadingAclExtensions
.Proposal
Add the following three creation methods to the existing
ThreadingAclExtensions
class in theSystem.Threading.AccessControl
assembly:Details
These primitives live in CoreLib.
We can not support creating unnamed objects without adding new constructors to the types. With names, we can create and then call the open existing methods. If we want to support unnamed I would suggest we add new
OpenExisting()
overloads that take the handle that our extension methods create. It may not be critical as you need the handle to the unnamed object, so discrete ACL setting should be ok...Related Issues
#31095 API Proposal: Add file and directory creation methods that take an ACL
CC: @danmosemsft, @ericstj, @terrajobst, @kouvel
The text was updated successfully, but these errors were encountered: