Lines Matching refs:source_rule
1899 avrule_t * source_rule, avtab_t * dest_avtab, in expand_rule_helper() argument
1911 if (source_rule->flags & RULE_SELF) { in expand_rule_helper()
1912 if (source_rule->specified & (AVRULE_AV | AVRULE_XPERMS)) { in expand_rule_helper()
1913 retval = expand_avrule_helper(handle, source_rule->specified, in expand_rule_helper()
1914 cond, i, i, source_rule->perms, in expand_rule_helper()
1915 dest_avtab, enabled, source_rule->xperms); in expand_rule_helper()
1920 source_rule->specified, cond, in expand_rule_helper()
1921 other, i, i, source_rule->perms, in expand_rule_helper()
1930 if (source_rule->specified & (AVRULE_AV | AVRULE_XPERMS)) { in expand_rule_helper()
1931 retval = expand_avrule_helper(handle, source_rule->specified, in expand_rule_helper()
1932 cond, i, j, source_rule->perms, in expand_rule_helper()
1933 dest_avtab, enabled, source_rule->xperms); in expand_rule_helper()
1938 source_rule->specified, cond, in expand_rule_helper()
1939 other, i, j, source_rule->perms, in expand_rule_helper()
1958 avrule_t * source_rule, avtab_t * dest_avtab, in convert_and_expand_rule() argument
1967 if (!do_neverallow && source_rule->specified & AVRULE_NEVERALLOW) in convert_and_expand_rule()
1969 if (!do_neverallow && source_rule->specified & AVRULE_XPERMS_NEVERALLOW) in convert_and_expand_rule()
1976 alwaysexpand = ((source_rule->specified & AVRULE_TYPE) || in convert_and_expand_rule()
1977 (source_rule->flags & RULE_SELF)); in convert_and_expand_rule()
1980 (dest_pol, typemap, &source_rule->stypes, &stypes, alwaysexpand)) in convert_and_expand_rule()
1983 (dest_pol, typemap, &source_rule->ttypes, &ttypes, alwaysexpand)) in convert_and_expand_rule()
1987 source_rule, dest_avtab, in convert_and_expand_rule()
2395 avrule_t * source_rule, avtab_t * dest_avtab, in expand_rule() argument
2401 if ((source_rule->specified & AVRULE_NEVERALLOW) in expand_rule()
2402 || (source_rule->specified & AVRULE_XPERMS_NEVERALLOW)) in expand_rule()
2408 if (type_set_expand(&source_rule->stypes, &stypes, source_pol, 1)) in expand_rule()
2410 if (type_set_expand(&source_rule->ttypes, &ttypes, source_pol, 1)) in expand_rule()
2413 source_rule, dest_avtab, in expand_rule()
2627 avrule_t * source_rule) in copy_neverallow() argument
2638 (dest_pol, typemap, &source_rule->stypes, &stypes, 1)) in copy_neverallow()
2641 (dest_pol, typemap, &source_rule->ttypes, &ttypes, 1)) in copy_neverallow()
2649 avrule->specified = source_rule->specified; in copy_neverallow()
2650 avrule->line = source_rule->line; in copy_neverallow()
2651 avrule->flags = source_rule->flags; in copy_neverallow()
2652 avrule->source_line = source_rule->source_line; in copy_neverallow()
2653 if (source_rule->source_filename) { in copy_neverallow()
2654 avrule->source_filename = strdup(source_rule->source_filename); in copy_neverallow()
2665 cur_perm = source_rule->perms; in copy_neverallow()
2689 if (source_rule->xperms) { in copy_neverallow()
2693 memcpy(xperms, source_rule->xperms, sizeof(av_extended_perms_t)); in copy_neverallow()