All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] libsepol - fix assertion copying
@ 2006-01-31 19:42 Joshua Brindle
  0 siblings, 0 replies; only message in thread
From: Joshua Brindle @ 2006-01-31 19:42 UTC (permalink / raw)
  To: SELinux; +Cc: Stephen Smalley

[-- Attachment #1: Type: text/plain, Size: 123 bytes --]

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


[-- Attachment #2: 1-assertion-perm-map.diff --]
[-- Type: text/x-patch, Size: 727 bytes --]

diff -purN -x.svn libsepol/src/link.c libsepol/src/link.c
--- libsepol/src/link.c	2006-01-30 23:42:08.000000000 -0500
+++ libsepol/src/link.c	2006-01-31 16:30:03.000000000 -0500
@@ -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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-01-31 19:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-31 19:42 [PATCH 1/2] libsepol - fix assertion copying Joshua Brindle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.