You've already forked linux-packaging-mono
Imported Upstream version 5.10.0.69
Former-commit-id: fc39669a0b707dd3c063977486506b6793da2890
This commit is contained in:
parent
d8f8abd549
commit
e2950ec768
@@ -43,6 +43,7 @@ namespace System.Security.AccessControl
|
||||
}
|
||||
|
||||
[Fact]
|
||||
[ActiveIssue(24903, TargetFrameworkMonikers.NetFramework)]
|
||||
public void GetAccessRules_InvalidTargetType()
|
||||
{
|
||||
var activeDirectorySecurity = new ActiveDirectorySecurity();
|
||||
@@ -492,6 +493,23 @@ namespace System.Security.AccessControl
|
||||
Assert.False(existingRules.Contains(customAccessRuleSynchronize));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void RemoveAccessRuleAll_AccessControlType_Deny_ThrowException()
|
||||
{
|
||||
var descriptor = new CommonSecurityDescriptor(true, true, string.Empty);
|
||||
var customObjectSecurity = new CustomDirectoryObjectSecurity(descriptor);
|
||||
|
||||
var objectTypeGuid = Guid.NewGuid();
|
||||
var identityReference = new NTAccount(@"NT AUTHORITY\SYSTEM");
|
||||
var customAccessRuleReadWrite = new CustomAccessRule(
|
||||
identityReference, ReadWriteAccessMask, true, InheritanceFlags.ObjectInherit,
|
||||
PropagationFlags.InheritOnly, objectTypeGuid, Guid.NewGuid(), AccessControlType.Deny
|
||||
);
|
||||
|
||||
customObjectSecurity.AddAccessRule(customAccessRuleReadWrite);
|
||||
AssertExtensions.Throws<InvalidOperationException, SystemException>(() => customObjectSecurity.RemoveAccessRuleAll(customAccessRuleReadWrite));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void RemoveAccessRuleAll_AccessControlType_Deny_Succeeds()
|
||||
{
|
||||
|
Reference in New Issue
Block a user