From: Joshua Roys Date: Wed, 24 Feb 2010 23:52:44 +0000 (-0500) Subject: netlabel: fix export of SELinux categories > 127 X-Git-Tag: v2.6.34-rc1~295^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c36f74e67fa12202dbcb4ad92c5ac844f9d36b98;p=pandora-kernel.git netlabel: fix export of SELinux categories > 127 This fixes corrupted CIPSO packets when SELinux categories greater than 127 are used. The bug occured on the second (and later) loops through the while; the inner for loop through the ebitmap->maps array used the same index as the NetLabel catmap->bitmap array, even though the NetLabel bitmap is twice as long as the SELinux bitmap. Signed-off-by: Joshua Roys Acked-by: Paul Moore Signed-off-by: James Morris --- Reading git-diff-tree failed