Skip to contentSkip to conversation

libsepol - fix assertion copying

PATCH In review Joshua Brindle 1 participant 1 message Jan 31, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 libsepol - fix assertion copying

currently permission maps for assertions are not being copied correctly during linking. This patch addresses that issue.

src/link.c +1 -1
diff -purN -x.svn libsepol/src/link.c libsepol/src/link.c
@@ -869,7 +869,7 @@ static int copy_avrule_list(avrule_t *li
                         new_perm->class = module->map[SYM_CLASSES][cur_perm->class - 1];
                         assert(new_perm->class);
 
-                        if (new_rule->specified & AVRULE_AV) {
+                        if (new_rule->specified & (AVRULE_AV | AVRULE_NEVERALLOW)) {
                                 for (i = 0; i < 32; i++) {
                                         if (!(cur_perm->data & (1U << i)))
                                                 continue;