⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lsm_interface.txt

📁 linux 内核源代码
💻 TXT
字号:
NetLabel Linux Security Module Interface==============================================================================Paul Moore, paul.moore@hp.comMay 17, 2006 * OverviewNetLabel is a mechanism which can set and retrieve security attributes fromnetwork packets.  It is intended to be used by LSM developers who want to makeuse of a common code base for several different packet labeling protocols.The NetLabel security module API is defined in 'include/net/netlabel.h' but abrief overview is given below. * NetLabel Security AttributesSince NetLabel supports multiple different packet labeling protocols and LSMsit uses the concept of security attributes to refer to the packet's securitylabels.  The NetLabel security attributes are defined by the'netlbl_lsm_secattr' structure in the NetLabel header file.  Internally theNetLabel subsystem converts the security attributes to and from the correctlow-level packet label depending on the NetLabel build time and run timeconfiguration.  It is up to the LSM developer to translate the NetLabelsecurity attributes into whatever security identifiers are in use for theirparticular LSM. * NetLabel LSM Protocol OperationsThese are the functions which allow the LSM developer to manipulate the labelson outgoing packets as well as read the labels on incoming packets.  Functionsexist to operate both on sockets as well as the sk_buffs directly.  These highlevel functions are translated into low level protocol operations based on howthe administrator has configured the NetLabel subsystem. * NetLabel Label Mapping Cache OperationsDepending on the exact configuration, translation between the network packetlabel and the internal LSM security identifier can be time consuming.  TheNetLabel label mapping cache is a caching mechanism which can be used tosidestep much of this overhead once a mapping has been established.  Once theLSM has received a packet, used NetLabel to decode it's security attributes,and translated the security attributes into a LSM internal identifier the LSMcan use the NetLabel caching functions to associate the LSM internalidentifier with the network packet's label.  This means that in the futurewhen a incoming packet matches a cached value not only are the internalNetLabel translation mechanisms bypassed but the LSM translation mechanisms arebypassed as well which should result in a significant reduction in overhead.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -