diff options
author | Huw Davies <huw@codeweavers.com> | 2016-06-27 15:02:51 -0400 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2016-06-27 15:02:51 -0400 |
commit | 3faa8f982f958961fda68b8d63e682fe77a032d4 (patch) | |
tree | f614cad676a663d2341056c6e2e082edc2605fbd /include/net | |
parent | e67ae213c72f72be50561c060ae17e92426651da (diff) |
netlabel: Move bitmap manipulation functions to the NetLabel core.
This is to allow the CALIPSO labelling engine to use these.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/netlabel.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/netlabel.h b/include/net/netlabel.h index 2c0513b0cc88..9fc2cab9be98 100644 --- a/include/net/netlabel.h +++ b/include/net/netlabel.h | |||
@@ -434,6 +434,12 @@ int netlbl_catmap_setlong(struct netlbl_lsm_catmap **catmap, | |||
434 | unsigned long bitmap, | 434 | unsigned long bitmap, |
435 | gfp_t flags); | 435 | gfp_t flags); |
436 | 436 | ||
437 | /* Bitmap functions | ||
438 | */ | ||
439 | int netlbl_bitmap_walk(const unsigned char *bitmap, u32 bitmap_len, | ||
440 | u32 offset, u8 state); | ||
441 | void netlbl_bitmap_setbit(unsigned char *bitmap, u32 bit, u8 state); | ||
442 | |||
437 | /* | 443 | /* |
438 | * LSM protocol operations (NetLabel LSM/kernel API) | 444 | * LSM protocol operations (NetLabel LSM/kernel API) |
439 | */ | 445 | */ |