Add Mutex creation extension methods that take an ACL (dotnet/corefx#42281)
Approved API Proposal: dotnet/corefx#41662
Description
We don't currently have a way to create a Mutex 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.
Customer impact
Before this change, customers had to create a Mutex, then set its ACLs. This presents a few problems:
Potential security hole as mutexes can be accessed between creation and modification.
Porting difficulties as there isn't a 1-1 API replacement
This change addresses those problems by adding a new extension method that allows creating a Mutex and ensuring the provided ACLs are set during creation.
Commit migrated from https://github.com/dotnet/corefx/commit/
46edc58620f29557e23fea29ed8392a0f2c9e31c