1 using Microsoft.Win32.SafeHandles;
32 [SecuritySafeCritical]
86 for (
int i = 0; i < accessRules.
Count; i++)
111 for (
int i = 0; i < accessRules.
Count; i++)
190 if (inheritanceFlags != 0)
194 if (propagationFlags != 0)
198 return new PipeAccessRule(identityReference, accessMask, isInherited, type);
215 if (inheritanceFlags != 0)
219 if (propagationFlags != 0)
223 return new PipeAuditRule(identityReference, accessMask, isInherited, flags);
229 if (base.AccessRulesModified)
233 if (base.AuditRulesModified)
237 if (base.OwnerModified)
241 if (base.GroupModified)
245 return accessControlSections;
258 Persist(handle, accessControlSectionsFromChanges);
259 bool flag2 = base.AccessRulesModified =
false;
260 bool flag4 = base.AuditRulesModified = flag2;
261 bool ownerModified = base.GroupModified = flag4;
262 base.OwnerModified = ownerModified;
280 Persist(name, accessControlSectionsFromChanges);
281 bool flag2 = base.AccessRulesModified =
false;
282 bool flag4 = base.AuditRulesModified = flag2;
283 bool ownerModified = base.GroupModified = flag4;
284 base.OwnerModified = ownerModified;
Represents an abstraction of an access control entry (ACE) that defines an audit rule for a pipe.
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
PropagationFlags
Specifies how Access Control Entries (ACEs) are propagated to child objects. These flags are signific...
Describes a set of security permissions applied to code. This class cannot be inherited.
Represents an identity and is the base class for the T:System.Security.Principal.NTAccount and T:Syst...
void SetAccessRule(PipeAccessRule rule)
Sets an access rule in the Discretionary Access Control List (DACL) that is associated with the curre...
Represents a combination of a user's identity, an access mask, and an access control type (allow or d...
IdentityReference IdentityReference
Gets the T:System.Security.Principal.IdentityReference to which this rule applies.
PipeAccessRights PipeAccessRights
Gets the T:System.IO.Pipes.PipeAccessRights flags that are associated with the current T:System....
bool RemoveAccessRule(PipeAccessRule rule)
Removes an access rule from the Discretionary Access Control List (DACL) that is associated with the ...
Represents a wrapper class for operating system handles. This class must be inherited.
void AddAccessRule(PipeAccessRule rule)
Adds an access rule to the Discretionary Access Control List (DACL) that is associated with the curre...
Provides the ability to control access to native objects without direct manipulation of Access Contro...
internal void Persist(SafeHandle handle)
Saves the specified sections of the security descriptor that is associated with the current T:System....
SecurityAction
Specifies the security actions that can be performed using declarative security.
Represents a combination of a user’s identity and an access mask.
override Type AuditRuleType
Gets the T:System.Type object associated with the audit rules of the current T:System....
sealed override AuditRule AuditRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
Initializes a new instance of the T:System.Security.AccessControl.AuditRule class with the specified ...
void RemoveAuditRuleAll(PipeAuditRule rule)
Removes all audit rules that have the same security identifier as the specified audit rule from the S...
virtual int Count
Gets the number of elements contained in the T:System.Collections.ReadOnlyCollectionBase instance.
Represents type declarations: class types, interface types, array types, value types,...
bool RemoveAuditRule(PipeAuditRule rule)
Removes an audit rule from the System Access Control List (SACL) that is associated with the current ...
void RemoveAccessRuleSpecific(PipeAccessRule rule)
Removes the specified access rule from the Discretionary Access Control List (DACL) that is associate...
ResourceType
Specifies the defined native object types.
internal void Persist(string name)
Saves the specified sections of the security descriptor that is associated with the current T:System....
void AddAuditRule(PipeAuditRule rule)
Adds an audit rule to the System Access Control List (SACL)that is associated with the current T:Syst...
void ResetAccessRule(PipeAccessRule rule)
Removes all access rules in the Discretionary Access Control List (DACL) that is associated with the ...
AccessControlType
Specifies whether an T:System.Security.AccessControl.AccessRule object is used to allow or deny acces...
override Type AccessRuleType
Gets the T:System.Type of the object that is associated with the access rules of the current T:System...
Represents a collection of T:System.Security.AccessControl.AuthorizationRule objects.
override Type AccessRightType
Gets the T:System.Type of the securable object that is associated with the current T:System....
The exception that is thrown when one of the arguments provided to a method is not valid.
void SetAuditRule(PipeAuditRule rule)
Sets an audit rule in the System Access Control List (SACL) that is associated with the current T:Sys...
PipeAccessRights
Defines the access rights to use when you create access and audit rules.
Represents the access control and audit security for a pipe.
PipeSecurity()
Initializes a new instance of the T:System.IO.Pipes.PipeSecurity class.
void RemoveAuditRuleSpecific(PipeAuditRule rule)
Removes the specified audit rule from the System Access Control List (SACL) that is associated with t...
AuthorizationRuleCollection GetAccessRules(bool includeExplicit, bool includeInherited, Type targetType)
Gets a collection of the access rules associated with the specified security identifier.
AccessControlType AccessControlType
Gets the T:System.Security.AccessControl.AccessControlType value associated with this T:System....
Represents an abstraction of an access control entry (ACE) that defines an access rule for a pipe.
InheritanceFlags
Inheritance flags specify the semantics of inheritance for access control entries (ACEs).
AccessControlSections
Specifies which sections of a security descriptor to save or load.
override AccessRule AccessRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type)
Initializes a new instance of the T:System.Security.AccessControl.AccessRule class with the specified...
AuditFlags
Specifies the conditions for auditing attempts to access a securable object.