Lines Matching defs:rule

73     struct hbac_rule *rule;
74 /* Create a rule that ALLOWs all services, users and
77 rule = talloc_zero(mem_ctx, struct hbac_rule);
78 fail_if (rule == NULL);
80 rule->enabled = true;
82 rule->services = talloc_zero(rule, struct hbac_rule_element);
83 fail_if (rule->services == NULL);
84 rule->services->category = HBAC_CATEGORY_ALL;
85 rule->services->names = NULL;
86 rule->services->groups = NULL;
88 rule->users = talloc_zero(rule, struct hbac_rule_element);
89 fail_if (rule->users == NULL);
90 rule->users->category = HBAC_CATEGORY_ALL;
91 rule->users->names = NULL;
92 rule->users->groups = NULL;
94 rule->targethosts = talloc_zero(rule, struct hbac_rule_element);
95 fail_if (rule->targethosts == NULL);
96 rule->targethosts->category = HBAC_CATEGORY_ALL;
97 rule->targethosts->names = NULL;
98 rule->targethosts->groups = NULL;
100 rule->srchosts = talloc_zero(rule, struct hbac_rule_element);
101 fail_if (rule->srchosts == NULL);
102 rule->srchosts->category = HBAC_CATEGORY_ALL;
103 rule->srchosts->names = NULL;
104 rule->srchosts->groups = NULL;
106 *allow_rule = rule;
215 /* Validate this rule */
260 /* Modify the rule to allow only a specific user */
273 /* Validate this rule */
292 /* Validate this rule */
347 /* Modify the rule to allow only a specific user */
354 /* Modify the rule to allow only a specific service */
363 /* Modify the rule to allow only a specific service */
374 /* Validate this rule */
410 /* Validate this rule */
456 /* Modify the rule to allow only a group of users */
470 /* Validate this rule */
489 /* Validate this rule */
535 /* Modify the rule to allow only a specific service */
548 /* Validate this rule */
567 /* Validate this rule */
613 /* Modify the rule to allow only a group of users */
627 /* Validate this rule */
646 /* Validate this rule */
692 /* Modify the rule to allow only a specific service */
705 /* Validate this rule */
724 /* Validate this rule */
770 /* Modify the rule to allow only a group of users */
784 /* Validate this rule */
803 /* Validate this rule */
826 struct hbac_rule *rule;
832 rule = talloc_zero(test_ctx, struct hbac_rule);
834 /* Validate this rule */
835 is_valid = hbac_rule_is_complete(rule, &missing_attrs);