Inheritance: AuthorizationRule
 public override bool ModifyAuditRule(AccessControlModification modification, AuditRule rule, out bool modified)
 {
     if (!this.SaclRetrieved())
     {
         throw new InvalidOperationException(Res.GetString("CannotModifySacl"));
     }
     return(base.ModifyAuditRule(modification, rule, out modified));
 }
Exemplo n.º 2
0
        public void AuditRule_Constructor(string sid, int accessMask, bool isInherited, int inheritanceFlags, int propagationFlags, int AuditFlags)
        {
            IdentityReference identityReference = new SecurityIdentifier(sid);
            AuditRule         AuditRule         = Constructor(identityReference, accessMask, isInherited, (InheritanceFlags)inheritanceFlags, (PropagationFlags)propagationFlags, (AuditFlags)AuditFlags);

            Assert.Equal(identityReference, AuditRule.IdentityReference);
            Assert.Equal((InheritanceFlags)inheritanceFlags, AuditRule.InheritanceFlags);
            Assert.Equal((PropagationFlags)propagationFlags, AuditRule.PropagationFlags);
            Assert.Equal((AuditFlags)AuditFlags, AuditRule.AuditFlags);
        }
 protected abstract bool ModifyAudit(AccessControlModification modification, AuditRule rule, out bool modified);
 protected void RemoveAuditRuleSpecific(AuditRule rule);
 protected bool RemoveAuditRule(AuditRule rule);
 protected void AddAuditRule(AuditRule rule);
 protected override bool ModifyAudit(AccessControlModification modification, AuditRule rule, out bool modified);
Exemplo n.º 8
0
 ///  <summary>
 ///  This member is not implemented.
 ///  </summary>
 ///  <param name="modification">
 ///         The modification to apply to the SACL.
 ///  </param>
 ///  <param name="rule">
 ///         The audit rule to modify.
 ///  </param>
 ///  <param name="modified">
 ///         <strong>True</strong> if the SACL is successfully modified; otherwise, <strong>False</strong>.
 ///  </param>
 /// <exception cref="NotSupportedException">The exception is thrown when the method is invoked.</exception>
 /// <returns>This method always throws exception.</returns>
 ///  <remarks>This member is not implemented.</remarks>
 public override bool ModifyAuditRule(AccessControlModification modification, AuditRule rule, out Boolean modified)
 {
     throw new NotSupportedException("Audit rules are not supported for this object");
 }
 ///  <summary>
 ///  This member is not implemented.
 ///  </summary>
 ///  <param name="modification">
 ///         The modification to apply to the SACL.
 ///  </param>
 ///  <param name="rule">
 ///         The audit rule to modify.
 ///  </param>
 ///  <param name="modified">
 ///         <strong>True</strong> if the SACL is successfully modified; otherwise, <strong>False</strong>.
 ///  </param>
 /// <exception cref="NotSupportedException">The exception is thrown when the method is invoked.</exception>
 /// <returns>This method always throws exception.</returns>
 /// <remarks>This member is not implemented.</remarks>
 public override Boolean ModifyAuditRule(AccessControlModification modification, AuditRule rule, out Boolean modified)
 {
     modified = false;
     return(modified);
 }
Exemplo n.º 10
0
 protected void RemoveAuditRuleSpecific(AuditRule rule)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 11
0
 protected bool RemoveAuditRule(AuditRule rule)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 12
0
 protected void AddAuditRule(AuditRule rule)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 13
0
 protected override bool ModifyAudit(AccessControlModification modification,
                                     AuditRule rule, out bool modified)
 {
     modify_audit_called = true;
     return(base.ModifyAudit(modification, rule, out modified));
 }
Exemplo n.º 14
0
 public void AddAuditRuleTest(AuditRule rule)
 {
     AddAuditRule(rule);
 }
Exemplo n.º 15
0
 protected override bool ModifyAudit(AccessControlModification modification,
                                     AuditRule rule, out bool modified)
 {
     modified = false; return(modified);
 }
 public virtual bool ModifyAuditRule(AccessControlModification modification, AuditRule rule, out bool modified);
 public virtual bool ModifyAuditRule(AccessControlModification modification, AuditRule ruleout, System.Boolean& modified)
 {
 }
	public virtual bool ModifyAuditRule(AccessControlModification modification, AuditRule ruleout , System.Boolean& modified) {}
 protected void AddAuditRule(AuditRule rule);
 public virtual bool ModifyAuditRule(AccessControlModification modification, AuditRule rule, out bool modified)
 {
     throw new NotImplementedException();
 }
 protected bool RemoveAuditRule(AuditRule rule);
Exemplo n.º 22
0
 protected override bool ModifyAudit(AccessControlModification modification, AuditRule rule, out bool modified)
 {
     throw new NotImplementedException();
 }
 protected void RemoveAuditRuleAll(AuditRule rule);
 protected override bool ModifyAudit(AccessControlModification modification, AuditRule rule, out bool modified);
 protected void RemoveAuditRuleSpecific(AuditRule rule);
 protected void RemoveAuditRuleAll(AuditRule rule);
 protected void SetAuditRule(AuditRule rule);
 protected void SetAuditRule(AuditRule rule);
 protected abstract bool ModifyAudit(AccessControlModification modification, AuditRule rule, out bool modified);
 public virtual bool ModifyAuditRule(AccessControlModification modification, AuditRule rule, out bool modified);
 public virtual bool ModifyAuditRule(AccessControlModification modification, AuditRule rule, out bool modified)
 {
     return(_fileSystemSecurity.ModifyAuditRule(modification, rule, out modified));
 }