~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/netlabel/cipso_ipv4.rst

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

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

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php