Lines Matching refs:source_rule

1879 			      avrule_t * source_rule, avtab_t * dest_avtab,  in expand_rule_helper()  argument
1889 if (source_rule->flags & RULE_SELF) { in expand_rule_helper()
1890 if (source_rule->specified & (AVRULE_AV | AVRULE_XPERMS)) { in expand_rule_helper()
1891 retval = expand_avrule_helper(handle, source_rule->specified, in expand_rule_helper()
1892 cond, i, i, source_rule->perms, in expand_rule_helper()
1893 dest_avtab, enabled, source_rule->xperms); in expand_rule_helper()
1898 source_rule->specified, cond, in expand_rule_helper()
1899 other, i, i, source_rule->perms, in expand_rule_helper()
1906 if (source_rule->specified & (AVRULE_AV | AVRULE_XPERMS)) { in expand_rule_helper()
1907 retval = expand_avrule_helper(handle, source_rule->specified, in expand_rule_helper()
1908 cond, i, j, source_rule->perms, in expand_rule_helper()
1909 dest_avtab, enabled, source_rule->xperms); in expand_rule_helper()
1914 source_rule->specified, cond, in expand_rule_helper()
1915 other, i, j, source_rule->perms, in expand_rule_helper()
1934 avrule_t * source_rule, avtab_t * dest_avtab, in convert_and_expand_rule() argument
1943 if (!do_neverallow && source_rule->specified & AVRULE_NEVERALLOW) in convert_and_expand_rule()
1945 if (!do_neverallow && source_rule->specified & AVRULE_XPERMS_NEVERALLOW) in convert_and_expand_rule()
1952 alwaysexpand = ((source_rule->specified & AVRULE_TYPE) || in convert_and_expand_rule()
1953 (source_rule->flags & RULE_SELF)); in convert_and_expand_rule()
1956 (dest_pol, typemap, &source_rule->stypes, &stypes, alwaysexpand)) in convert_and_expand_rule()
1959 (dest_pol, typemap, &source_rule->ttypes, &ttypes, alwaysexpand)) in convert_and_expand_rule()
1963 source_rule, dest_avtab, in convert_and_expand_rule()
2390 avrule_t * source_rule, avtab_t * dest_avtab, in expand_rule() argument
2396 if ((source_rule->specified & AVRULE_NEVERALLOW) in expand_rule()
2397 || (source_rule->specified & AVRULE_XPERMS_NEVERALLOW)) in expand_rule()
2403 if (type_set_expand(&source_rule->stypes, &stypes, source_pol, 1)) in expand_rule()
2405 if (type_set_expand(&source_rule->ttypes, &ttypes, source_pol, 1)) in expand_rule()
2408 source_rule, dest_avtab, in expand_rule()
2607 avrule_t * source_rule) in copy_neverallow() argument
2618 (dest_pol, typemap, &source_rule->stypes, &stypes, 1)) in copy_neverallow()
2621 (dest_pol, typemap, &source_rule->ttypes, &ttypes, 1)) in copy_neverallow()
2629 avrule->specified = source_rule->specified; in copy_neverallow()
2630 avrule->line = source_rule->line; in copy_neverallow()
2631 avrule->flags = source_rule->flags; in copy_neverallow()
2632 avrule->source_line = source_rule->source_line; in copy_neverallow()
2633 if (source_rule->source_filename) { in copy_neverallow()
2634 avrule->source_filename = strdup(source_rule->source_filename); in copy_neverallow()
2645 cur_perm = source_rule->perms; in copy_neverallow()
2669 if (source_rule->xperms) { in copy_neverallow()
2673 memcpy(xperms, source_rule->xperms, sizeof(av_extended_perms_t)); in copy_neverallow()