Skip to content

Mirror changes from mono/coreclr,corefx#17609

Merged
vargaz merged 2 commits intomono:masterfrom
Dotnet-GitSync-Bot:mirror-merge-10428436
Oct 30, 2019
Merged

Mirror changes from mono/coreclr,corefx#17609
vargaz merged 2 commits intomono:masterfrom
Dotnet-GitSync-Bot:mirror-merge-10428436

Conversation

@Dotnet-GitSync-Bot
Copy link
Contributor

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot commented Oct 29, 2019

This PR contains mirrored changes from mono/coreclr,corefx

Please REBASE this PR when merging

cc @AaronRobinsonMSFT @carlossanlop

AaronRobinsonMSFT and others added 2 commits October 29, 2019 23:16
…() (#27473)

* Revert removal of SuppressGCTransition from SystemNative_GetTimestamp()

* Insert GC_POLL before statement with unmanaged call.

* JIT test for insertion of GCPoll

Signed-off-by: dotnet-bot <[email protected]>
Approved API Proposal: #41614
Related change for directory creation method that takes an ACL: #41834 -merged and ported to 3.1 Prev2

Description
We have extension methods in System.IO.FileSystem.AclExtensions that let the user get and set ACLs for existing files, but we do not have methods that create files with predefined ACLs.
.NET ACL (Access Control List) support is Windows specific. This change will reside inside the System.IO.FileSystem.AccessControl assembly.

Customer impact
Before this change, customers had to create a file or filestream, then set its ACLs. This presents a few problems:

Potential security hole as files can be accessed between creation and modification.
Porting difficulties as there isn't a 1-1 API replacement
Stability issues with background processes (file filters) can prevent modifying ACLs right after creation (typically surfaces as a security exception).
This change addresses those problems by adding a new extension method that allows creating a file and ensuring the provided ACLs are set during creation.
This change is expected to be backported to 3.1.

Signed-off-by: dotnet-bot <[email protected]>
@vargaz vargaz merged commit 3695d87 into mono:master Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants