Lines Matching refs:rule

284                         error->rule_name ? error->rule_name : "no rule");
541 "(set) A set of categories this rule falls into");
567 "HbacRuleElement() -> new empty rule element\n"
645 free_hbac_rule(struct hbac_rule *rule);
925 struct hbac_rule *rule;
934 rule = HbacRule_to_native(self);
935 if (!rule) {
944 is_valid = hbac_rule_is_complete(rule, &missing);
945 free_hbac_rule(rule);
991 "Validate an HBAC rule\n"
993 "the rule is valid. If it is False, then the set lists all the missing "
994 "rule elements as HBAC_RULE_ELEMENT_* constants\n");
1005 "(HbacRuleElement) Users and user groups for which this rule applies");
1007 "(HbacRuleElement) Services and service groups for which this rule applies");
1009 "(HbacRuleElement) Target hosts for which this rule applies");
1011 "(HbacRuleElement) Source hosts for which this rule applies");
1034 "(bool) Is the rule enabled");
1036 "(string) The name of the rule");
1056 "HbacRule(name, [enabled]) -> instantiate an empty rule, optionally\n"
1079 free_hbac_rule(struct hbac_rule *rule)
1081 if (!rule) return;
1083 free_hbac_rule_element(rule->services);
1084 free_hbac_rule_element(rule->users);
1085 free_hbac_rule_element(rule->targethosts);
1086 free_hbac_rule_element(rule->srchosts);
1088 PyMem_Free(discard_const_p(char, rule->name));
1089 PyMem_Free(rule);
1095 struct hbac_rule *rule = NULL;
1098 rule = PyMem_Malloc(sizeof(struct hbac_rule));
1099 if (!rule) {
1107 "The rule must be of type HbacRule\n");
1116 rule->name = py_strdup(PyBytes_AsString(utf_name));
1118 if (rule->name == NULL) {
1122 rule->services = HbacRuleElement_to_native(pyrule->services);
1123 rule->users = HbacRuleElement_to_native(pyrule->users);
1124 rule->targethosts = HbacRuleElement_to_native(pyrule->targethosts);
1125 rule->srchosts = HbacRuleElement_to_native(pyrule->srchosts);
1126 if (!rule->services || !rule->users ||
1127 !rule->targethosts || !rule->srchosts) {
1131 rule->enabled = pyrule->enabled;
1132 return rule;
1135 free_hbac_rule(rule);
1529 "contain the name of the rule that matched. Otherwise, the attribute\n"
1587 "A rule must be of type HbacRule\n");
1761 "the name of the rule that allowed it. Otherwise, this attribute contains \n"
1910 "rule. HbacError.args argument is a tuple that contains error code and\n"
1911 "the name of the rule that was being processed. Use hbac_error_string()\n"
1954 /* HBAC rule categories */
1960 /* HBAC rule elements */