• Paul Moore's avatar
    netlabel: handle sparse category maps in netlbl_catmap_getlong() · 50b8629a
    Paul Moore authored
    In cases where the category bitmap is sparse enough that gaps exist
    between netlbl_lsm_catmap structs, callers to netlbl_catmap_getlong()
    could find themselves prematurely ending their search through the
    category bitmap.  Further, the methods used to calculate the 'idx'
    and 'off' values were incorrect for bitmaps this large.  This patch
    changes the netlbl_catmap_getlong() behavior so that it always skips
    over gaps and calculates the index and offset values correctly.
    Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
    50b8629a
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
netlabel_addrlist.c Loading commit data...
netlabel_addrlist.h Loading commit data...
netlabel_cipso_v4.c Loading commit data...
netlabel_cipso_v4.h Loading commit data...
netlabel_domainhash.c Loading commit data...
netlabel_domainhash.h Loading commit data...
netlabel_kapi.c Loading commit data...
netlabel_mgmt.c Loading commit data...
netlabel_mgmt.h Loading commit data...
netlabel_unlabeled.c Loading commit data...
netlabel_unlabeled.h Loading commit data...
netlabel_user.c Loading commit data...
netlabel_user.h Loading commit data...