Skip to content

NetLabel: add the remaining CIPSO tag types from the IETF draft

[email protected] netdev selinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3NetLabel: convert to an extensibile/sparse category bitmapinclude/net/netlabel.h net/ipv4/cipso_ipv4.c net/netlabel/netlabel_kapi.c +5 more+568 -3520 replies
2/3NetLabel: add the enumerated tag to the CIPSOv4 protocolnet/ipv4/cipso_ipv4.c+233 -00 replies
3/3NetLabel: add the ranged tag to the CIPSOv4 protocolnet/ipv4/cipso_ipv4.c+268 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] NetLabel: add the remaining CIPSO tag types from the IETF draft

This patchset consists of three patches that add support for the remaining two tag types from the CIPSO draft specification, the enumerated and range tags. The most significant part about adding these two tags is that NetLabel now has the ability to represent more than 240 categories (limitation imposed by the current restricted bitmap tag).

In addition, the first patch in the set converts NetLabel's contiguous char string category bitmap stored in network friendly bit/byte order into a sparse bitmap stored in host friendly bit/byte order. While this change was not required to support the new CIPSO tags, it should make life much easier as the old category bitmap would have proven problematic as the number of usable categories increases with the new tag types. It also has a side effect of making the LSM specific code much less ugly.

During testing I have not seen any regressions with this patchset; please consider this for net-2.6.20. Thanks.

--
paul moore
linux security @ hp

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.