diff options
Diffstat (limited to 'src/expand.c')
-rw-r--r-- | src/expand.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/expand.c b/src/expand.c index 7f3c3f5..947bee0 100644 --- a/src/expand.c +++ b/src/expand.c @@ -2650,6 +2650,10 @@ static int copy_neverallow(policydb_t * dest_pol, uint32_t * typemap, avrule->specified = AVRULE_NEVERALLOW; avrule->line = source_rule->line; avrule->flags = source_rule->flags; + avrule->source_line = source_rule->source_line; + avrule->source_filename = strdup(source_rule->source_filename); + if (!avrule->source_filename) + goto err; if (ebitmap_cpy(&avrule->stypes.types, &stypes)) goto err; |