selinux: import NetLabel category bitmaps correctly
authorPaul Moore <paul@paul-moore.com>
Thu, 9 Jun 2016 14:40:37 +0000 (10:40 -0400)
committerPaul Moore <paul@paul-moore.com>
Thu, 9 Jun 2016 14:40:37 +0000 (10:40 -0400)
commit8bebe88c0995f331b0614f413285ce2b1d6fe09c
treeb8ad1ea05b35f57ad672d0806307d8e03a9da9a9
parent02f06918156b32a584ff2dd9ebfa653abf4d8d5d
selinux: import NetLabel category bitmaps correctly

The existing ebitmap_netlbl_import() code didn't correctly handle the
case where the ebitmap_node was not aligned/sized to a power of two,
this patch fixes this (on x86_64 ebitmap_node contains six bitmaps
making a range of 0..383).

Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/ebitmap.c