cipso_ipv4.txt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. NetLabel CIPSO/IPv4 Protocol Engine
  2. ==============================================================================
  3. Paul Moore, paul.moore@hp.com
  4. May 17, 2006
  5. * Overview
  6. The NetLabel CIPSO/IPv4 protocol engine is based on the IETF Commercial IP
  7. Security Option (CIPSO) draft from July 16, 1992. A copy of this draft can be
  8. found in this directory, consult '00-INDEX' for the filename. While the IETF
  9. draft never made it to an RFC standard it has become a de-facto standard for
  10. labeled networking and is used in many trusted operating systems.
  11. * Outbound Packet Processing
  12. The CIPSO/IPv4 protocol engine applies the CIPSO IP option to packets by
  13. adding the CIPSO label to the socket. This causes all packets leaving the
  14. system through the socket to have the CIPSO IP option applied. The socket's
  15. CIPSO label can be changed at any point in time, however, it is recommended
  16. that it is set upon the socket's creation. The LSM can set the socket's CIPSO
  17. label by using the NetLabel security module API; if the NetLabel "domain" is
  18. configured to use CIPSO for packet labeling then a CIPSO IP option will be
  19. generated and attached to the socket.
  20. * Inbound Packet Processing
  21. The CIPSO/IPv4 protocol engine validates every CIPSO IP option it finds at the
  22. IP layer without any special handling required by the LSM. However, in order
  23. to decode and translate the CIPSO label on the packet the LSM must use the
  24. NetLabel security module API to extract the security attributes of the packet.
  25. This is typically done at the socket layer using the 'socket_sock_rcv_skb()'
  26. LSM hook.
  27. * Label Translation
  28. The CIPSO/IPv4 protocol engine contains a mechanism to translate CIPSO security
  29. attributes such as sensitivity level and category to values which are
  30. appropriate for the host. These mappings are defined as part of a CIPSO
  31. Domain Of Interpretation (DOI) definition and are configured through the
  32. NetLabel user space communication layer. Each DOI definition can have a
  33. different security attribute mapping table.
  34. * Label Translation Cache
  35. The NetLabel system provides a framework for caching security attribute
  36. mappings from the network labels to the corresponding LSM identifiers. The
  37. CIPSO/IPv4 protocol engine supports this caching mechanism.