Exemple #1
0
 /// <summary>
 /// Creates a FilePath CustomRule after creating a PowerShell variable
 /// </summary>
 /// <param name="psVar">XmlNode holding the rule</param>
 /// <param name="ruleIndex">Is it a FileRule or a SignerRule</param>
 /// <param name="refFile">The document which contains node.</param>
 /// <param name="_Type">is the file a user mode file?</param>
 ///
 public PolicyCustomRules(string psVar, string ruleIndex, string refFile, RulePermission _Permission)
 {
     this.Permission    = RulePermission.Allow; // Allow by default to match the default state of the UI
     this.Level         = RuleLevel.FilePath;
     this.ReferenceFile = refFile;
     this.PSVariable    = psVar;
     this.RuleIndex     = ruleIndex;
     this.ExceptionList = new List <RuleException>();
     this.FileInfo      = new Dictionary <string, string>();
 }
Exemple #2
0
 public void SetRulePermission(RulePermission rulePermission)
 {
     this.Permission = rulePermission;
 }