€•"Œsphinx.addnodes”Œdocument”“”)�”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)�”}”(hhh]”(hŒ pending_xref”“”)�”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…”�”}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ /translations/zh_CN/security/ipe”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)�”}”(hhh]”hŒChinese (Traditional)”…”�”}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ /translations/zh_TW/security/ipe”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ /translations/it_IT/security/ipe”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ /translations/ja_JP/security/ipe”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ /translations/ko_KR/security/ipe”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒPortuguese (Brazilian)”…”�”}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ /translations/pt_BR/security/ipe”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒSpanish”…”�”}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ /translations/sp_SP/security/ipe”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)�”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…”�”}”hh·sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1hµhhh²hh³Œ:/var/lib/git/docbuild/linux/Documentation/security/ipe.rst”h´KubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒ9Integrity Policy Enforcement (IPE) - Kernel Documentation”h]”hŒ9Integrity Policy Enforcement (IPE) - Kernel Documentation”…”�”}”(hhÏh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhhÊh²hh³hÇh´KubhŒnote”“”)�”}”(hŒ»This is documentation targeted at developers, instead of administrators. If you're looking for documentation on the usage of IPE, please see :doc:`IPE admin guide `.”h]”hŒ paragraph”“”)�”}”(hŒ»This is documentation targeted at developers, instead of administrators. If you're looking for documentation on the usage of IPE, please see :doc:`IPE admin guide `.”h]”(hŒ�This is documentation targeted at developers, instead of administrators. If you’re looking for documentation on the usage of IPE, please see ”…”�”}”(hhåh²hh³Nh´Nubh)�”}”(hŒ-:doc:`IPE admin guide `”h]”hŒinline”“”)�”}”(hhïh]”hŒIPE admin guide”…”�”}”(hhóh²hh³Nh´Nubah}”(h]”h ]”(Œxref”Œstd”Œstd-doc”eh"]”h$]”h&]”uh1hñhhíubah}”(h]”h ]”h"]”h$]”h&]”Œrefdoc”Œ security/ipe”Œ refdomain”hþŒreftype”Œdoc”Œ refexplicit”ˆŒrefwarn”ˆŒ reftarget”Œ/admin-guide/LSM/ipe”uh1hh³hÇh´KhhåubhŒ.”…”�”}”(hhåh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Khhßubah}”(h]”h ]”h"]”h$]”h&]”uh1hÝhhÊh²hh³hÇh´NubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒHistorical Motivation”h]”hŒHistorical Motivation”…”�”}”(hj%h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj"h²hh³hÇh´K ubhä)�”}”(hX‘The original issue that prompted IPE's implementation was the creation of a locked-down system. This system would be born-secure, and have strong integrity guarantees over both the executable code, and specific *data files* on the system, that were critical to its function. These specific data files would not be readable unless they passed integrity policy. A mandatory access control system would be present, and as a result, xattrs would have to be protected. This led to a selection of what would provide the integrity claims. At the time, there were two main mechanisms considered that could guarantee integrity for the system with these requirements:”h]”(hŒÕThe original issue that prompted IPE’s implementation was the creation of a locked-down system. This system would be born-secure, and have strong integrity guarantees over both the executable code, and specific ”…”�”}”(hj3h²hh³Nh´NubhŒemphasis”“”)�”}”(hŒ *data files*”h]”hŒ data files”…”�”}”(hj=h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j;hj3ubhX² on the system, that were critical to its function. These specific data files would not be readable unless they passed integrity policy. A mandatory access control system would be present, and as a result, xattrs would have to be protected. This led to a selection of what would provide the integrity claims. At the time, there were two main mechanisms considered that could guarantee integrity for the system with these requirements:”…”�”}”(hj3h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Khj"h²hubhŒ block_quote”“”)�”}”(hŒ%1. IMA + EVM Signatures 2. DM-Verity ”h]”hŒenumerated_list”“”)�”}”(hhh]”(hŒ list_item”“”)�”}”(hŒIMA + EVM Signatures”h]”hä)�”}”(hjdh]”hŒIMA + EVM Signatures”…”�”}”(hjfh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Khjbubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hj]ubja)�”}”(hŒ DM-Verity ”h]”hä)�”}”(hŒ DM-Verity”h]”hŒ DM-Verity”…”�”}”(hj}h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Khjyubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hj]ubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ.”uh1j[hjWubah}”(h]”h ]”h"]”h$]”h&]”uh1jUh³hÇh´Khj"h²hubhä)�”}”(hŒ´Both options were carefully considered, however the choice to use DM-Verity over IMA+EVM as the *integrity mechanism* in the original use case of IPE was due to three main reasons:”h]”(hŒ`Both options were carefully considered, however the choice to use DM-Verity over IMA+EVM as the ”…”�”}”(hj¢h²hh³Nh´Nubj<)�”}”(hŒ*integrity mechanism*”h]”hŒintegrity mechanism”…”�”}”(hjªh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j;hj¢ubhŒ? in the original use case of IPE was due to three main reasons:”…”�”}”(hj¢h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Khj"h²hubjV)�”}”(hXî1. Protection of additional attack vectors: * With IMA+EVM, without an encryption solution, the system is vulnerable to offline attack against the aforementioned specific data files. Unlike executables, read operations (like those on the protected data files), cannot be enforced to be globally integrity verified. This means there must be some form of selector to determine whether a read should enforce the integrity policy, or it should not. At the time, this was done with mandatory access control labels. An IMA policy would indicate what labels required integrity verification, which presented an issue: EVM would protect the label, but if an attacker could modify filesystem offline, the attacker could wipe all the xattrs - including the SELinux labels that would be used to determine whether the file should be subject to integrity policy. With DM-Verity, as the xattrs are saved as part of the Merkel tree, if offline mount occurs against the filesystem protected by dm-verity, the checksum no longer matches and the file fails to be read. * As userspace binaries are paged in Linux, dm-verity also offers the additional protection against a hostile block device. In such an attack, the block device reports the appropriate content for the IMA hash initially, passing the required integrity check. Then, on the page fault that accesses the real data, will report the attacker's payload. Since dm-verity will check the data when the page fault occurs (and the disk access), this attack is mitigated. 2. Performance: * dm-verity provides integrity verification on demand as blocks are read versus requiring the entire file being read into memory for validation. 3. Simplicity of signing: * No need for two signatures (IMA, then EVM): one signature covers an entire block device. * Signatures can be stored externally to the filesystem metadata. * The signature supports an x.509-based signing infrastructure. ”h]”(j\)�”}”(hhh]”ja)�”}”(hŒ)Protection of additional attack vectors: ”h]”hä)�”}”(hŒ(Protection of additional attack vectors:”h]”hŒ(Protection of additional attack vectors:”…”�”}”(hjÍh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K!hjÉubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjÆubah}”(h]”h ]”h"]”h$]”h&]”j—j˜j™hjšj›uh1j[hjÂubjV)�”}”(hXå* With IMA+EVM, without an encryption solution, the system is vulnerable to offline attack against the aforementioned specific data files. Unlike executables, read operations (like those on the protected data files), cannot be enforced to be globally integrity verified. This means there must be some form of selector to determine whether a read should enforce the integrity policy, or it should not. At the time, this was done with mandatory access control labels. An IMA policy would indicate what labels required integrity verification, which presented an issue: EVM would protect the label, but if an attacker could modify filesystem offline, the attacker could wipe all the xattrs - including the SELinux labels that would be used to determine whether the file should be subject to integrity policy. With DM-Verity, as the xattrs are saved as part of the Merkel tree, if offline mount occurs against the filesystem protected by dm-verity, the checksum no longer matches and the file fails to be read. * As userspace binaries are paged in Linux, dm-verity also offers the additional protection against a hostile block device. In such an attack, the block device reports the appropriate content for the IMA hash initially, passing the required integrity check. Then, on the page fault that accesses the real data, will report the attacker's payload. Since dm-verity will check the data when the page fault occurs (and the disk access), this attack is mitigated. ”h]”hŒ bullet_list”“”)�”}”(hhh]”(ja)�”}”(hXïWith IMA+EVM, without an encryption solution, the system is vulnerable to offline attack against the aforementioned specific data files. Unlike executables, read operations (like those on the protected data files), cannot be enforced to be globally integrity verified. This means there must be some form of selector to determine whether a read should enforce the integrity policy, or it should not. At the time, this was done with mandatory access control labels. An IMA policy would indicate what labels required integrity verification, which presented an issue: EVM would protect the label, but if an attacker could modify filesystem offline, the attacker could wipe all the xattrs - including the SELinux labels that would be used to determine whether the file should be subject to integrity policy. With DM-Verity, as the xattrs are saved as part of the Merkel tree, if offline mount occurs against the filesystem protected by dm-verity, the checksum no longer matches and the file fails to be read. ”h]”(hä)�”}”(hŒˆWith IMA+EVM, without an encryption solution, the system is vulnerable to offline attack against the aforementioned specific data files.”h]”hŒˆWith IMA+EVM, without an encryption solution, the system is vulnerable to offline attack against the aforementioned specific data files.”…”�”}”(hjôh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K#hjðubhä)�”}”(hXUnlike executables, read operations (like those on the protected data files), cannot be enforced to be globally integrity verified. This means there must be some form of selector to determine whether a read should enforce the integrity policy, or it should not.”h]”hXUnlike executables, read operations (like those on the protected data files), cannot be enforced to be globally integrity verified. This means there must be some form of selector to determine whether a read should enforce the integrity policy, or it should not.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K&hjðubhä)�”}”(hX“At the time, this was done with mandatory access control labels. An IMA policy would indicate what labels required integrity verification, which presented an issue: EVM would protect the label, but if an attacker could modify filesystem offline, the attacker could wipe all the xattrs - including the SELinux labels that would be used to determine whether the file should be subject to integrity policy.”h]”hX“At the time, this was done with mandatory access control labels. An IMA policy would indicate what labels required integrity verification, which presented an issue: EVM would protect the label, but if an attacker could modify filesystem offline, the attacker could wipe all the xattrs - including the SELinux labels that would be used to determine whether the file should be subject to integrity policy.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K+hjðubhä)�”}”(hŒÈWith DM-Verity, as the xattrs are saved as part of the Merkel tree, if offline mount occurs against the filesystem protected by dm-verity, the checksum no longer matches and the file fails to be read.”h]”hŒÈWith DM-Verity, as the xattrs are saved as part of the Merkel tree, if offline mount occurs against the filesystem protected by dm-verity, the checksum no longer matches and the file fails to be read.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K2hjðubeh}”(h]”h ]”h"]”h$]”h&]”uh1j`hjíubja)�”}”(hXÉAs userspace binaries are paged in Linux, dm-verity also offers the additional protection against a hostile block device. In such an attack, the block device reports the appropriate content for the IMA hash initially, passing the required integrity check. Then, on the page fault that accesses the real data, will report the attacker's payload. Since dm-verity will check the data when the page fault occurs (and the disk access), this attack is mitigated. ”h]”hä)�”}”(hXÈAs userspace binaries are paged in Linux, dm-verity also offers the additional protection against a hostile block device. In such an attack, the block device reports the appropriate content for the IMA hash initially, passing the required integrity check. Then, on the page fault that accesses the real data, will report the attacker's payload. Since dm-verity will check the data when the page fault occurs (and the disk access), this attack is mitigated.”h]”hXÊAs userspace binaries are paged in Linux, dm-verity also offers the additional protection against a hostile block device. In such an attack, the block device reports the appropriate content for the IMA hash initially, passing the required integrity check. Then, on the page fault that accesses the real data, will report the attacker’s payload. Since dm-verity will check the data when the page fault occurs (and the disk access), this attack is mitigated.”…”�”}”(hj6h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K6hj2ubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjíubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ*”uh1jëh³hÇh´K#hjçubah}”(h]”h ]”h"]”h$]”h&]”uh1jUh³hÇh´K#hjÂubj\)�”}”(hhh]”ja)�”}”(hŒ Performance: ”h]”hä)�”}”(hŒ Performance:”h]”hŒ Performance:”…”�”}”(hj_h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K>hj[ubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjXubah}”(h]”h ]”h"]”h$]”h&]”j—j˜j™hjšj›Œstart”Kuh1j[hjÂubjV)�”}”(hŒ•* dm-verity provides integrity verification on demand as blocks are read versus requiring the entire file being read into memory for validation. ”h]”jì)�”}”(hhh]”ja)�”}”(hŒ�dm-verity provides integrity verification on demand as blocks are read versus requiring the entire file being read into memory for validation. ”h]”hä)�”}”(hŒŽdm-verity provides integrity verification on demand as blocks are read versus requiring the entire file being read into memory for validation.”h]”hŒŽdm-verity provides integrity verification on demand as blocks are read versus requiring the entire file being read into memory for validation.”…”�”}”(hj…h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K@hj�ubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hj~ubah}”(h]”h ]”h"]”h$]”h&]”jPjQuh1jëh³hÇh´K@hjzubah}”(h]”h ]”h"]”h$]”h&]”uh1jUh³hÇh´K@hjÂubj\)�”}”(hhh]”ja)�”}”(hŒSimplicity of signing: ”h]”hä)�”}”(hŒSimplicity of signing:”h]”hŒSimplicity of signing:”…”�”}”(hj¬h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KDhj¨ubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hj¥ubah}”(h]”h ]”h"]”h$]”h&]”j—j˜j™hjšj›jyKuh1j[hjÂubjV)�”}”(hŒß* No need for two signatures (IMA, then EVM): one signature covers an entire block device. * Signatures can be stored externally to the filesystem metadata. * The signature supports an x.509-based signing infrastructure. ”h]”jì)�”}”(hhh]”(ja)�”}”(hŒXNo need for two signatures (IMA, then EVM): one signature covers an entire block device.”h]”hä)�”}”(hŒXNo need for two signatures (IMA, then EVM): one signature covers an entire block device.”h]”hŒXNo need for two signatures (IMA, then EVM): one signature covers an entire block device.”…”�”}”(hjÑh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KFhjÍubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjÊubja)�”}”(hŒ?Signatures can be stored externally to the filesystem metadata.”h]”hä)�”}”(hjçh]”hŒ?Signatures can be stored externally to the filesystem metadata.”…”�”}”(hjéh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KHhjåubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjÊubja)�”}”(hŒ>The signature supports an x.509-based signing infrastructure. ”h]”hä)�”}”(hŒ=The signature supports an x.509-based signing infrastructure.”h]”hŒ=The signature supports an x.509-based signing infrastructure.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KIhjüubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjÊubeh}”(h]”h ]”h"]”h$]”h&]”jPjQuh1jëh³hÇh´KFhjÆubah}”(h]”h ]”h"]”h$]”h&]”uh1jUh³hÇh´KFhjÂubeh}”(h]”h ]”h"]”h$]”h&]”uh1jUh³hÇh´K!hj"h²hubhä)�”}”(hŒxThe next step was to choose a *policy* to enforce the integrity mechanism. The minimum requirements for the policy were:”h]”(hŒThe next step was to choose a ”…”�”}”(hj&h²hh³Nh´Nubj<)�”}”(hŒ*policy*”h]”hŒpolicy”…”�”}”(hj.h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j;hj&ubhŒR to enforce the integrity mechanism. The minimum requirements for the policy were:”…”�”}”(hj&h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KKhj"h²hubjV)�”}”(hXË1. The policy itself must be integrity verified (preventing trivial attack against it). 2. The policy itself must be resistant to rollback attacks. 3. The policy enforcement must have a permissive-like mode. 4. The policy must be able to be updated, in its entirety, without a reboot. 5. Policy updates must be atomic. 6. The policy must support *revocations* of previously authored components. 7. The policy must be auditable, at any point-of-time. ”h]”j\)�”}”(hhh]”(ja)�”}”(hŒTThe policy itself must be integrity verified (preventing trivial attack against it).”h]”hä)�”}”(hŒTThe policy itself must be integrity verified (preventing trivial attack against it).”h]”hŒTThe policy itself must be integrity verified (preventing trivial attack against it).”…”�”}”(hjQh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KNhjMubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjJubja)�”}”(hŒ8The policy itself must be resistant to rollback attacks.”h]”hä)�”}”(hjgh]”hŒ8The policy itself must be resistant to rollback attacks.”…”�”}”(hjih²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KPhjeubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjJubja)�”}”(hŒ8The policy enforcement must have a permissive-like mode.”h]”hä)�”}”(hj~h]”hŒ8The policy enforcement must have a permissive-like mode.”…”�”}”(hj€h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KQhj|ubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjJubja)�”}”(hŒIThe policy must be able to be updated, in its entirety, without a reboot.”h]”hä)�”}”(hŒIThe policy must be able to be updated, in its entirety, without a reboot.”h]”hŒIThe policy must be able to be updated, in its entirety, without a reboot.”…”�”}”(hj—h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KRhj“ubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjJubja)�”}”(hŒPolicy updates must be atomic.”h]”hä)�”}”(hj­h]”hŒPolicy updates must be atomic.”…”�”}”(hj¯h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KThj«ubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjJubja)�”}”(hŒHThe policy must support *revocations* of previously authored components.”h]”hä)�”}”(hŒHThe policy must support *revocations* of previously authored components.”h]”(hŒThe policy must support ”…”�”}”(hjÆh²hh³Nh´Nubj<)�”}”(hŒ *revocations*”h]”hŒ revocations”…”�”}”(hjÎh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j;hjÆubhŒ# of previously authored components.”…”�”}”(hjÆh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KUhjÂubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjJubja)�”}”(hŒ4The policy must be auditable, at any point-of-time. ”h]”hä)�”}”(hŒ3The policy must be auditable, at any point-of-time.”h]”hŒ3The policy must be auditable, at any point-of-time.”…”�”}”(hjðh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KWhjìubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjJubeh}”(h]”h ]”h"]”h$]”h&]”j—j˜j™hjšj›uh1j[hjFubah}”(h]”h ]”h"]”h$]”h&]”uh1jUh³hÇh´KNhj"h²hubhä)�”}”(hXIMA, as the only integrity policy mechanism at the time, was considered against these list of requirements, and did not fulfill all of the minimum requirements. Extending IMA to cover these requirements was considered, but ultimately discarded for a two reasons:”h]”hXIMA, as the only integrity policy mechanism at the time, was considered against these list of requirements, and did not fulfill all of the minimum requirements. Extending IMA to cover these requirements was considered, but ultimately discarded for a two reasons:”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KYhj"h²hubjV)�”}”(hXQ1. Regression risk; many of these changes would result in dramatic code changes to IMA, which is already present in the kernel, and therefore might impact users. 2. IMA was used in the system for measurement and attestation; separation of measurement policy from local integrity policy enforcement was considered favorable. ”h]”j\)�”}”(hhh]”(ja)�”}”(hŒŸRegression risk; many of these changes would result in dramatic code changes to IMA, which is already present in the kernel, and therefore might impact users. ”h]”hä)�”}”(hŒžRegression risk; many of these changes would result in dramatic code changes to IMA, which is already present in the kernel, and therefore might impact users.”h]”hŒžRegression risk; many of these changes would result in dramatic code changes to IMA, which is already present in the kernel, and therefore might impact users.”…”�”}”(hj)h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K_hj%ubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hj"ubja)�”}”(hŒŸIMA was used in the system for measurement and attestation; separation of measurement policy from local integrity policy enforcement was considered favorable. ”h]”hä)�”}”(hŒžIMA was used in the system for measurement and attestation; separation of measurement policy from local integrity policy enforcement was considered favorable.”h]”hŒžIMA was used in the system for measurement and attestation; separation of measurement policy from local integrity policy enforcement was considered favorable.”…”�”}”(hjAh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Kchj=ubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hj"ubeh}”(h]”h ]”h"]”h$]”h&]”j—j˜j™hjšj›uh1j[hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jUh³hÇh´K_hj"h²hubhä)�”}”(hŒ‘Due to these reasons, it was decided that a new LSM should be created, whose responsibility would be only the local integrity policy enforcement.”h]”hŒ‘Due to these reasons, it was decided that a new LSM should be created, whose responsibility would be only the local integrity policy enforcement.”…”�”}”(hjah²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Kghj"h²hubeh}”(h]”Œhistorical-motivation”ah ]”h"]”Œhistorical motivation”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´K ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒRole and Scope”h]”hŒRole and Scope”…”�”}”(hjzh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjwh²hh³hÇh´Kkubhä)�”}”(hXÑIPE, as its name implies, is fundamentally an integrity policy enforcement solution; IPE does not mandate how integrity is provided, but instead leaves that decision to the system administrator to set the security bar, via the mechanisms that they select that suit their individual needs. There are several different integrity solutions that provide a different level of security guarantees; and IPE allows sysadmins to express policy for theoretically all of them.”h]”hXÑIPE, as its name implies, is fundamentally an integrity policy enforcement solution; IPE does not mandate how integrity is provided, but instead leaves that decision to the system administrator to set the security bar, via the mechanisms that they select that suit their individual needs. There are several different integrity solutions that provide a different level of security guarantees; and IPE allows sysadmins to express policy for theoretically all of them.”…”�”}”(hjˆh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Kmhjwh²hubhä)�”}”(hX.IPE does not have an inherent mechanism to ensure integrity on its own. Instead, there are more effective layers available for building systems that can guarantee integrity. It's important to note that the mechanism for proving integrity is independent of the policy for enforcing that integrity claim.”h]”hX0IPE does not have an inherent mechanism to ensure integrity on its own. Instead, there are more effective layers available for building systems that can guarantee integrity. It’s important to note that the mechanism for proving integrity is independent of the policy for enforcing that integrity claim.”…”�”}”(hj–h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Kuhjwh²hubhä)�”}”(hŒ#Therefore, IPE was designed around:”h]”hŒ#Therefore, IPE was designed around:”…”�”}”(hj¤h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Kzhjwh²hubjV)�”}”(hŒe1. Easy integrations with integrity providers. 2. Ease of use for platform administrators/sysadmins. ”h]”j\)�”}”(hhh]”(ja)�”}”(hŒ+Easy integrations with integrity providers.”h]”hä)�”}”(hj»h]”hŒ+Easy integrations with integrity providers.”…”�”}”(hj½h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K|hj¹ubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hj¶ubja)�”}”(hŒ3Ease of use for platform administrators/sysadmins. ”h]”hä)�”}”(hŒ2Ease of use for platform administrators/sysadmins.”h]”hŒ2Ease of use for platform administrators/sysadmins.”…”�”}”(hjÔh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K}hjÐubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hj¶ubeh}”(h]”h ]”h"]”h$]”h&]”j—j˜j™hjšj›uh1j[hj²ubah}”(h]”h ]”h"]”h$]”h&]”uh1jUh³hÇh´K|hjwh²hubeh}”(h]”Œrole-and-scope”ah ]”h"]”Œrole and scope”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´KkubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒDesign Rationale:”h]”hŒDesign Rationale:”…”�”}”(hjÿh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjüh²hh³hÇh´K€ubhä)�”}”(hŒÁIPE was designed after evaluating existing integrity policy solutions in other operating systems and environments. In this survey of other implementations, there were a few pitfalls identified:”h]”hŒÁIPE was designed after evaluating existing integrity policy solutions in other operating systems and environments. In this survey of other implementations, there were a few pitfalls identified:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K‚hjüh²hubjV)�”}”(hXZ1. Policies were not readable by humans, usually requiring a binary intermediary format. 2. A single, non-customizable action was implicitly taken as a default. 3. Debugging the policy required manual steps to determine what rule was violated. 4. Authoring a policy required an in-depth knowledge of the larger system, or operating system. ”h]”j\)�”}”(hhh]”(ja)�”}”(hŒUPolicies were not readable by humans, usually requiring a binary intermediary format.”h]”hä)�”}”(hŒUPolicies were not readable by humans, usually requiring a binary intermediary format.”h]”hŒUPolicies were not readable by humans, usually requiring a binary intermediary format.”…”�”}”(hj&h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K†hj"ubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjubja)�”}”(hŒDA single, non-customizable action was implicitly taken as a default.”h]”hä)�”}”(hj<h]”hŒDA single, non-customizable action was implicitly taken as a default.”…”�”}”(hj>h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Kˆhj:ubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjubja)�”}”(hŒODebugging the policy required manual steps to determine what rule was violated.”h]”hä)�”}”(hjSh]”hŒODebugging the policy required manual steps to determine what rule was violated.”…”�”}”(hjUh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K‰hjQubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjubja)�”}”(hŒ]Authoring a policy required an in-depth knowledge of the larger system, or operating system. ”h]”hä)�”}”(hŒ\Authoring a policy required an in-depth knowledge of the larger system, or operating system.”h]”hŒ\Authoring a policy required an in-depth knowledge of the larger system, or operating system.”…”�”}”(hjlh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KŠhjhubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjubeh}”(h]”h ]”h"]”h$]”h&]”j—j˜j™hjšj›uh1j[hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jUh³hÇh´K†hjüh²hubhä)�”}”(hŒ,IPE attempts to avoid all of these pitfalls.”h]”hŒ,IPE attempts to avoid all of these pitfalls.”…”�”}”(hjŒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K�hjüh²hubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒPolicy”h]”hŒPolicy”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjšh²hh³hÇh´K�ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ Plain Text”h]”hŒ Plain Text”…”�”}”(hj®h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj«h²hh³hÇh´K“ubhä)�”}”(hŒ¼IPE's policy is plain-text. This introduces slightly larger policy files than other LSMs, but solves two major problems that occurs with some integrity policy solutions on other platforms.”h]”hŒ¾IPE’s policy is plain-text. This introduces slightly larger policy files than other LSMs, but solves two major problems that occurs with some integrity policy solutions on other platforms.”…”�”}”(hj¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K•hj«h²hubhä)�”}”(hXåThe first issue is one of code maintenance and duplication. To author policies, the policy has to be some form of string representation (be it structured, through XML, JSON, YAML, etcetera), to allow the policy author to understand what is being written. In a hypothetical binary policy design, a serializer is necessary to write the policy from the human readable form, to the binary form, and a deserializer is needed to interpret the binary form into a data structure in the kernel.”h]”hXåThe first issue is one of code maintenance and duplication. To author policies, the policy has to be some form of string representation (be it structured, through XML, JSON, YAML, etcetera), to allow the policy author to understand what is being written. In a hypothetical binary policy design, a serializer is necessary to write the policy from the human readable form, to the binary form, and a deserializer is needed to interpret the binary form into a data structure in the kernel.”…”�”}”(hjÊh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K™hj«h²hubhä)�”}”(hXaEventually, another deserializer will be needed to transform the binary from back into the human-readable form with as much information preserved. This is because a user of this access control system will have to keep a lookup table of a checksum and the original file itself to try to understand what policies have been deployed on this system and what policies have not. For a single user, this may be alright, as old policies can be discarded almost immediately after the update takes hold. For users that manage computer fleets in the thousands, if not hundreds of thousands, with multiple different operating systems, and multiple different operational needs, this quickly becomes an issue, as stale policies from years ago may be present, quickly resulting in the need to recover the policy or fund extensive infrastructure to track what each policy contains.”h]”hXaEventually, another deserializer will be needed to transform the binary from back into the human-readable form with as much information preserved. This is because a user of this access control system will have to keep a lookup table of a checksum and the original file itself to try to understand what policies have been deployed on this system and what policies have not. For a single user, this may be alright, as old policies can be discarded almost immediately after the update takes hold. For users that manage computer fleets in the thousands, if not hundreds of thousands, with multiple different operating systems, and multiple different operational needs, this quickly becomes an issue, as stale policies from years ago may be present, quickly resulting in the need to recover the policy or fund extensive infrastructure to track what each policy contains.”…”�”}”(hjØh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K¡hj«h²hubhä)�”}”(hXWith now three separate serializer/deserializers, maintenance becomes costly. If the policy avoids the binary format, there is only one required serializer: from the human-readable form to the data structure in kernel, saving on code maintenance, and retaining operability.”h]”hXWith now three separate serializer/deserializers, maintenance becomes costly. If the policy avoids the binary format, there is only one required serializer: from the human-readable form to the data structure in kernel, saving on code maintenance, and retaining operability.”…”�”}”(hjæh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K­hj«h²hubhä)�”}”(hX¯The second issue with a binary format is one of transparency. As IPE controls access based on the trust of the system's resources, it's policy must also be trusted to be changed. This is done through signatures, resulting in needing signing as a process. Signing, as a process, is typically done with a high security bar, as anything signed can be used to attack integrity enforcement systems. It is also important that, when signing something, that the signer is aware of what they are signing. A binary policy can cause obfuscation of that fact; what signers see is an opaque binary blob. A plain-text policy, on the other hand, the signers see the actual policy submitted for signing.”h]”hX³The second issue with a binary format is one of transparency. As IPE controls access based on the trust of the system’s resources, it’s policy must also be trusted to be changed. This is done through signatures, resulting in needing signing as a process. Signing, as a process, is typically done with a high security bar, as anything signed can be used to attack integrity enforcement systems. It is also important that, when signing something, that the signer is aware of what they are signing. A binary policy can cause obfuscation of that fact; what signers see is an opaque binary blob. A plain-text policy, on the other hand, the signers see the actual policy submitted for signing.”…”�”}”(hjôh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´K²hj«h²hubeh}”(h]”Œ plain-text”ah ]”h"]”Œ plain text”ah$]”h&]”uh1hÈhjšh²hh³hÇh´K“ubeh}”(h]”Œpolicy”ah ]”h"]”Œpolicy”ah$]”h&]”uh1hÈhjüh²hh³hÇh´K�ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒ Boot Policy”h]”hŒ Boot Policy”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjh²hh³hÇh´K¾ubhä)�”}”(hXIPE, if configured appropriately, is able to enforce a policy as soon as a kernel is booted and usermode starts. That implies some level of storage of the policy to apply the minute usermode starts. Generally, that storage can be handled in one of three ways:”h]”hXIPE, if configured appropriately, is able to enforce a policy as soon as a kernel is booted and usermode starts. That implies some level of storage of the policy to apply the minute usermode starts. Generally, that storage can be handled in one of three ways:”…”�”}”(hj#h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KÀhjh²hubjV)�”}”(hXR1. The policy file(s) live on disk and the kernel loads the policy prior to a code path that would result in an enforcement decision. 2. The policy file(s) are passed by the bootloader to the kernel, who parses the policy. 3. There is a policy file that is compiled into the kernel that is parsed and enforced on initialization. ”h]”j\)�”}”(hhh]”(ja)�”}”(hŒ‚The policy file(s) live on disk and the kernel loads the policy prior to a code path that would result in an enforcement decision.”h]”hä)�”}”(hŒ‚The policy file(s) live on disk and the kernel loads the policy prior to a code path that would result in an enforcement decision.”h]”hŒ‚The policy file(s) live on disk and the kernel loads the policy prior to a code path that would result in an enforcement decision.”…”�”}”(hj<h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KÅhj8ubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hj5ubja)�”}”(hŒUThe policy file(s) are passed by the bootloader to the kernel, who parses the policy.”h]”hä)�”}”(hŒUThe policy file(s) are passed by the bootloader to the kernel, who parses the policy.”h]”hŒUThe policy file(s) are passed by the bootloader to the kernel, who parses the policy.”…”�”}”(hjTh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KÇhjPubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hj5ubja)�”}”(hŒgThere is a policy file that is compiled into the kernel that is parsed and enforced on initialization. ”h]”hä)�”}”(hŒfThere is a policy file that is compiled into the kernel that is parsed and enforced on initialization.”h]”hŒfThere is a policy file that is compiled into the kernel that is parsed and enforced on initialization.”…”�”}”(hjlh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KÉhjhubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hj5ubeh}”(h]”h ]”h"]”h$]”h&]”j—j˜j™hjšj›uh1j[hj1ubah}”(h]”h ]”h"]”h$]”h&]”uh1jUh³hÇh´KÅhjh²hubhä)�”}”(hŒ€The first option has problems: the kernel reading files from userspace is typically discouraged and very uncommon in the kernel.”h]”hŒ€The first option has problems: the kernel reading files from userspace is typically discouraged and very uncommon in the kernel.”…”�”}”(hjŒh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KÌhjh²hubhä)�”}”(hX#The second option also has problems: Linux supports a variety of bootloaders across its entire ecosystem - every bootloader would have to support this new methodology or there must be an independent source. It would likely result in more drastic changes to the kernel startup than necessary.”h]”hX#The second option also has problems: Linux supports a variety of bootloaders across its entire ecosystem - every bootloader would have to support this new methodology or there must be an independent source. It would likely result in more drastic changes to the kernel startup than necessary.”…”�”}”(hjšh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KÏhjh²hubhä)�”}”(hXDThe third option is the best but it's important to be aware that the policy will take disk space against the kernel it's compiled in. It's important to keep this policy generalized enough that userspace can load a new, more complicated policy, but restrictive enough that it will not overauthorize and cause security issues.”h]”hXJThe third option is the best but it’s important to be aware that the policy will take disk space against the kernel it’s compiled in. It’s important to keep this policy generalized enough that userspace can load a new, more complicated policy, but restrictive enough that it will not overauthorize and cause security issues.”…”�”}”(hj¨h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KÔhjh²hubhä)�”}”(hX…The initramfs provides a way that this bootup path can be established. The kernel starts with a minimal policy, that trusts the initramfs only. Inside the initramfs, when the real rootfs is mounted, but not yet transferred to, it deploys and activates a policy that trusts the new root filesystem. This prevents overauthorization at any step, and keeps the kernel policy to a minimal size.”h]”hX…The initramfs provides a way that this bootup path can be established. The kernel starts with a minimal policy, that trusts the initramfs only. Inside the initramfs, when the real rootfs is mounted, but not yet transferred to, it deploys and activates a policy that trusts the new root filesystem. This prevents overauthorization at any step, and keeps the kernel policy to a minimal size.”…”�”}”(hj¶h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KÚhjh²hubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒStartup”h]”hŒStartup”…”�”}”(hjÇh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjÄh²hh³hÇh´Kâubhä)�”}”(hXbNot every system, however starts with an initramfs, so the startup policy compiled into the kernel will need some flexibility to express how trust is established for the next phase of the bootup. To this end, if we just make the compiled-in policy a full IPE policy, it allows system builders to express the first stage bootup requirements appropriately.”h]”hXbNot every system, however starts with an initramfs, so the startup policy compiled into the kernel will need some flexibility to express how trust is established for the next phase of the bootup. To this end, if we just make the compiled-in policy a full IPE policy, it allows system builders to express the first stage bootup requirements appropriately.”…”�”}”(hjÕh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´KähjÄh²hubeh}”(h]”Œstartup”ah ]”h"]”Œstartup”ah$]”h&]”uh1hÈhjh²hh³hÇh´Kâubeh}”(h]”Œ boot-policy”ah ]”h"]”Œ boot policy”ah$]”h&]”uh1hÈhjüh²hh³hÇh´K¾ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒUpdatable, Rebootless Policy”h]”hŒUpdatable, Rebootless Policy”…”�”}”(hjöh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjóh²hh³hÇh´Këubhä)�”}”(hXòAs requirements change over time (vulnerabilities are found in previously trusted applications, keys roll, etcetera), updating a kernel to meet those security goals is not always a suitable option, as updates are not always risk-free, and blocking a security update leaves systems vulnerable. This means IPE requires a policy that can be completely updated (allowing revocations of existing policy) from a source external to the kernel (allowing policies to be updated without updating the kernel).”h]”hXòAs requirements change over time (vulnerabilities are found in previously trusted applications, keys roll, etcetera), updating a kernel to meet those security goals is not always a suitable option, as updates are not always risk-free, and blocking a security update leaves systems vulnerable. This means IPE requires a policy that can be completely updated (allowing revocations of existing policy) from a source external to the kernel (allowing policies to be updated without updating the kernel).”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Kíhjóh²hubhä)�”}”(hŒÁAdditionally, since the kernel is stateless between invocations, and reading policy files off the disk from kernel space is a bad idea(tm), then the policy updates have to be done rebootlessly.”h]”hŒÁAdditionally, since the kernel is stateless between invocations, and reading policy files off the disk from kernel space is a bad idea(tm), then the policy updates have to be done rebootlessly.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Kõhjóh²hubhä)�”}”(hXÕTo allow an update from an external source, it could be potentially malicious, so this policy needs to have a way to be identified as trusted. This is done via a signature chained to a trust source in the kernel. Arbitrarily, this is the ``SYSTEM_TRUSTED_KEYRING``, a keyring that is initially populated at kernel compile-time, as this matches the expectation that the author of the compiled-in policy described above is the same entity that can deploy policy updates.”h]”(hŒïTo allow an update from an external source, it could be potentially malicious, so this policy needs to have a way to be identified as trusted. This is done via a signature chained to a trust source in the kernel. Arbitrarily, this is the ”…”�”}”(hj h²hh³Nh´NubhŒliteral”“”)�”}”(hŒ``SYSTEM_TRUSTED_KEYRING``”h]”hŒSYSTEM_TRUSTED_KEYRING”…”�”}”(hj*h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j(hj ubhŒÌ, a keyring that is initially populated at kernel compile-time, as this matches the expectation that the author of the compiled-in policy described above is the same entity that can deploy policy updates.”…”�”}”(hj h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Kùhjóh²hubeh}”(h]”Œupdatable-rebootless-policy”ah ]”h"]”Œupdatable, rebootless policy”ah$]”h&]”uh1hÈhjüh²hh³hÇh´KëubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒAnti-Rollback / Anti-Replay”h]”hŒAnti-Rollback / Anti-Replay”…”�”}”(hjMh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhjJh²hh³hÇh´Mubhä)�”}”(hŒúOver time, vulnerabilities are found and trusted resources may not be trusted anymore. IPE's policy has no exception to this. There can be instances where a mistaken policy author deploys an insecure policy, before correcting it with a secure policy.”h]”hŒüOver time, vulnerabilities are found and trusted resources may not be trusted anymore. IPE’s policy has no exception to this. There can be instances where a mistaken policy author deploys an insecure policy, before correcting it with a secure policy.”…”�”}”(hj[h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MhjJh²hubhä)�”}”(hŒÆAssuming that as soon as the insecure policy is signed, and an attacker acquires the insecure policy, IPE needs a way to prevent rollback from the secure policy update to the insecure policy update.”h]”hŒÆAssuming that as soon as the insecure policy is signed, and an attacker acquires the insecure policy, IPE needs a way to prevent rollback from the secure policy update to the insecure policy update.”…”�”}”(hjih²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M hjJh²hubhä)�”}”(hŒÅInitially, IPE's policy can have a policy_version that states the minimum required version across all policies that can be active on the system. This will prevent rollback while the system is live.”h]”hŒÇInitially, IPE’s policy can have a policy_version that states the minimum required version across all policies that can be active on the system. This will prevent rollback while the system is live.”…”�”}”(hjwh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M hjJh²hubhŒwarning”“”)�”}”(hX@However, since the kernel is stateless across boots, this policy version will be reset to 0.0.0 on the next boot. System builders need to be aware of this, and ensure the new secure policies are deployed ASAP after a boot to ensure that the window of opportunity is minimal for an attacker to deploy the insecure policy.”h]”hä)�”}”(hX@However, since the kernel is stateless across boots, this policy version will be reset to 0.0.0 on the next boot. System builders need to be aware of this, and ensure the new secure policies are deployed ASAP after a boot to ensure that the window of opportunity is minimal for an attacker to deploy the insecure policy.”h]”hX@However, since the kernel is stateless across boots, this policy version will be reset to 0.0.0 on the next boot. System builders need to be aware of this, and ensure the new secure policies are deployed ASAP after a boot to ensure that the window of opportunity is minimal for an attacker to deploy the insecure policy.”…”�”}”(hj‹h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhj‡ubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hjJh²hh³hÇh´Nubeh}”(h]”Œanti-rollback-anti-replay”ah ]”h"]”Œanti-rollback / anti-replay”ah$]”h&]”uh1hÈhjüh²hh³hÇh´MubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒImplicit Actions:”h]”hŒImplicit Actions:”…”�”}”(hjªh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj§h²hh³hÇh´Mubhä)�”}”(hXqThe issue of implicit actions only becomes visible when you consider a mixed level of security bars across multiple operations in a system. For example, consider a system that has strong integrity guarantees over both the executable code, and specific *data files* on the system, that were critical to its function. In this system, three types of policies are possible:”h]”(hŒüThe issue of implicit actions only becomes visible when you consider a mixed level of security bars across multiple operations in a system. For example, consider a system that has strong integrity guarantees over both the executable code, and specific ”…”�”}”(hj¸h²hh³Nh´Nubj<)�”}”(hŒ *data files*”h]”hŒ data files”…”�”}”(hjÀh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j;hj¸ubhŒi on the system, that were critical to its function. In this system, three types of policies are possible:”…”�”}”(hj¸h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mhj§h²hubjV)�”}”(hX11. A policy in which failure to match any rules in the policy results in the action being denied. 2. A policy in which failure to match any rules in the policy results in the action being allowed. 3. A policy in which the action taken when no rules are matched is specified by the policy author. ”h]”j\)�”}”(hhh]”(ja)�”}”(hŒ^A policy in which failure to match any rules in the policy results in the action being denied.”h]”hä)�”}”(hŒ^A policy in which failure to match any rules in the policy results in the action being denied.”h]”hŒ^A policy in which failure to match any rules in the policy results in the action being denied.”…”�”}”(hjãh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M#hjßubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjÜubja)�”}”(hŒ_A policy in which failure to match any rules in the policy results in the action being allowed.”h]”hä)�”}”(hŒ_A policy in which failure to match any rules in the policy results in the action being allowed.”h]”hŒ_A policy in which failure to match any rules in the policy results in the action being allowed.”…”�”}”(hjûh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M%hj÷ubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjÜubja)�”}”(hŒ`A policy in which the action taken when no rules are matched is specified by the policy author. ”h]”hä)�”}”(hŒ_A policy in which the action taken when no rules are matched is specified by the policy author.”h]”hŒ_A policy in which the action taken when no rules are matched is specified by the policy author.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M'hjubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjÜubeh}”(h]”h ]”h"]”h$]”h&]”j—j˜j™hjšj›uh1j[hjØubah}”(h]”h ]”h"]”h$]”h&]”uh1jUh³hÇh´M#hj§h²hubhä)�”}”(hŒ0The first option could make a policy like this::”h]”hŒ/The first option could make a policy like this:”…”�”}”(hj3h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M*hj§h²hubhŒ literal_block”“”)�”}”(hŒ.op=EXECUTE integrity_verified=YES action=ALLOW”h]”hŒ.op=EXECUTE integrity_verified=YES action=ALLOW”…”�”}”hjCsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jAh³hÇh´M,hj§h²hubhä)�”}”(hX!In the example system, this works well for the executables, as all executables should have integrity guarantees, without exception. The issue becomes with the second requirement about specific data files. This would result in a policy like this (assuming each line is evaluated in order)::”h]”hX In the example system, this works well for the executables, as all executables should have integrity guarantees, without exception. The issue becomes with the second requirement about specific data files. This would result in a policy like this (assuming each line is evaluated in order):”…”�”}”(hjQh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M.hj§h²hubjB)�”}”(hŒop=EXECUTE integrity_verified=YES action=ALLOW op=READ integrity_verified=NO label=critical_t action=DENY op=READ action=ALLOW”h]”hŒop=EXECUTE integrity_verified=YES action=ALLOW op=READ integrity_verified=NO label=critical_t action=DENY op=READ action=ALLOW”…”�”}”hj_sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jAh³hÇh´M4hj§h²hubhä)�”}”(hX2This is somewhat clear if you read the docs, understand the policy is executed in order and that the default is a denial; however, the last line effectively changes that default to an ALLOW. This is required, because in a realistic system, there are some unverified reads (imagine appending to a log file).”h]”hX2This is somewhat clear if you read the docs, understand the policy is executed in order and that the default is a denial; however, the last line effectively changes that default to an ALLOW. This is required, because in a realistic system, there are some unverified reads (imagine appending to a log file).”…”�”}”(hjmh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M9hj§h²hubhä)�”}”(hŒbThe second option, matching no rules results in an allow, is clearer for the specific data files::”h]”hŒaThe second option, matching no rules results in an allow, is clearer for the specific data files:”…”�”}”(hj{h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M?hj§h²hubjB)�”}”(hŒ:op=READ integrity_verified=NO label=critical_t action=DENY”h]”hŒ:op=READ integrity_verified=NO label=critical_t action=DENY”…”�”}”hj‰sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jAh³hÇh´MBhj§h²hubhä)�”}”(hŒrAnd, like the first option, falls short with the execution scenario, effectively needing to override the default::”h]”hŒqAnd, like the first option, falls short with the execution scenario, effectively needing to override the default:”…”�”}”(hj—h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MDhj§h²hubjB)�”}”(hŒ�op=EXECUTE integrity_verified=YES action=ALLOW op=EXECUTE action=DENY op=READ integrity_verified=NO label=critical_t action=DENY”h]”hŒ�op=EXECUTE integrity_verified=YES action=ALLOW op=EXECUTE action=DENY op=READ integrity_verified=NO label=critical_t action=DENY”…”�”}”hj¥sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jAh³hÇh´MGhj§h²hubhä)�”}”(hŒßThis leaves the third option. Instead of making users be clever and override the default with an empty rule, force the end-user to consider what the appropriate default should be for their scenario and explicitly state it::”h]”hŒÞThis leaves the third option. Instead of making users be clever and override the default with an empty rule, force the end-user to consider what the appropriate default should be for their scenario and explicitly state it:”…”�”}”(hj³h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MLhj§h²hubjB)�”}”(hŒ¦DEFAULT op=EXECUTE action=DENY op=EXECUTE integrity_verified=YES action=ALLOW DEFAULT op=READ action=ALLOW op=READ integrity_verified=NO label=critical_t action=DENY”h]”hŒ¦DEFAULT op=EXECUTE action=DENY op=EXECUTE integrity_verified=YES action=ALLOW DEFAULT op=READ action=ALLOW op=READ integrity_verified=NO label=critical_t action=DENY”…”�”}”hjÁsbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jAh³hÇh´MQhj§h²hubeh}”(h]”Œimplicit-actions”ah ]”h"]”Œimplicit actions:”ah$]”h&]”uh1hÈhjüh²hh³hÇh´MubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒPolicy Debugging:”h]”hŒPolicy Debugging:”…”�”}”(hjÚh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj×h²hh³hÇh´MXubhä)�”}”(hX›When developing a policy, it is useful to know what line of the policy is being violated to reduce debugging costs; narrowing the scope of the investigation to the exact line that resulted in the action. Some integrity policy systems do not provide this information, instead providing the information that was used in the evaluation. This then requires a correlation with the policy to evaluate what went wrong.”h]”hX›When developing a policy, it is useful to know what line of the policy is being violated to reduce debugging costs; narrowing the scope of the investigation to the exact line that resulted in the action. Some integrity policy systems do not provide this information, instead providing the information that was used in the evaluation. This then requires a correlation with the policy to evaluate what went wrong.”…”�”}”(hjèh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MZhj×h²hubhä)�”}”(hX1Instead, IPE just emits the rule that was matched. This limits the scope of the investigation to the exact policy line (in the case of a specific rule), or the section (in the case of a DEFAULT). This decreases iteration and investigation times when policy failures are observed while evaluating policies.”h]”hX1Instead, IPE just emits the rule that was matched. This limits the scope of the investigation to the exact policy line (in the case of a specific rule), or the section (in the case of a DEFAULT). This decreases iteration and investigation times when policy failures are observed while evaluating policies.”…”�”}”(hjöh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mahj×h²hubhä)�”}”(hXIPE's policy engine is also designed in a way that it makes it obvious to a human of how to investigate a policy failure. Each line is evaluated in the sequence that is written, so the algorithm is very simple to follow for humans to recreate the steps and could have caused the failure. In other surveyed systems, optimizations occur (sorting rules, for instance) when loading the policy. In those systems, it requires multiple steps to debug, and the algorithm may not always be clear to the end-user without reading the code first.”h]”hXIPE’s policy engine is also designed in a way that it makes it obvious to a human of how to investigate a policy failure. Each line is evaluated in the sequence that is written, so the algorithm is very simple to follow for humans to recreate the steps and could have caused the failure. In other surveyed systems, optimizations occur (sorting rules, for instance) when loading the policy. In those systems, it requires multiple steps to debug, and the algorithm may not always be clear to the end-user without reading the code first.”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mghj×h²hubeh}”(h]”Œpolicy-debugging”ah ]”h"]”Œpolicy debugging:”ah$]”h&]”uh1hÈhjüh²hh³hÇh´MXubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒSimplified Policy:”h]”hŒSimplified Policy:”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj h²hh³hÇh´Mpubhä)�”}”(hX~Finally, IPE's policy is designed for sysadmins, not kernel developers. Instead of covering individual LSM hooks (or syscalls), IPE covers operations. This means instead of sysadmins needing to know that the syscalls ``mmap``, ``mprotect``, ``execve``, and ``uselib`` must have rules protecting them, they must simply know that they want to restrict code execution. This limits the amount of bypasses that could occur due to a lack of knowledge of the underlying system; whereas the maintainers of IPE, being kernel developers can make the correct choice to determine whether something maps to these operations, and under what conditions.”h]”(hŒÛFinally, IPE’s policy is designed for sysadmins, not kernel developers. Instead of covering individual LSM hooks (or syscalls), IPE covers operations. This means instead of sysadmins needing to know that the syscalls ”…”�”}”(hj+ h²hh³Nh´Nubj))�”}”(hŒ``mmap``”h]”hŒmmap”…”�”}”(hj3 h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j(hj+ ubhŒ, ”…”�”}”(hj+ h²hh³Nh´Nubj))�”}”(hŒ ``mprotect``”h]”hŒmprotect”…”�”}”(hjE h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j(hj+ ubhŒ, ”…”�”}”(hj+ h²hh³Nh´Nubj))�”}”(hŒ ``execve``”h]”hŒexecve”…”�”}”(hjW h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j(hj+ ubhŒ, and ”…”�”}”(hj+ h²hh³Nh´Nubj))�”}”(hŒ ``uselib``”h]”hŒuselib”…”�”}”(hji h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j(hj+ ubhXs must have rules protecting them, they must simply know that they want to restrict code execution. This limits the amount of bypasses that could occur due to a lack of knowledge of the underlying system; whereas the maintainers of IPE, being kernel developers can make the correct choice to determine whether something maps to these operations, and under what conditions.”…”�”}”(hj+ h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´Mrhj h²hubeh}”(h]”Œsimplified-policy”ah ]”h"]”Œsimplified policy:”ah$]”h&]”uh1hÈhjüh²hh³hÇh´Mpubeh}”(h]”Œdesign-rationale”ah ]”h"]”Œdesign rationale:”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´K€ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒImplementation Notes”h]”hŒImplementation Notes”…”�”}”(hj” h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj‘ h²hh³hÇh´M|ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒAnonymous Memory”h]”hŒAnonymous Memory”…”�”}”(hj¥ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj¢ h²hh³hÇh´Mubhä)�”}”(hXŸAnonymous memory isn't treated any differently from any other access in IPE. When anonymous memory is mapped with ``+X``, it still comes into the ``file_mmap`` or ``file_mprotect`` hook, but with a ``NULL`` file object. This is submitted to the evaluation, like any other file. However, all current trust properties will evaluate to false, as they are all file-based and the operation is not associated with a file.”h]”(hŒtAnonymous memory isn’t treated any differently from any other access in IPE. When anonymous memory is mapped with ”…”�”}”(hj³ h²hh³Nh´Nubj))�”}”(hŒ``+X``”h]”hŒ+X”…”�”}”(hj» h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j(hj³ ubhŒ, it still comes into the ”…”�”}”(hj³ h²hh³Nh´Nubj))�”}”(hŒ ``file_mmap``”h]”hŒ file_mmap”…”�”}”(hjÍ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j(hj³ ubhŒ or ”…”�”}”(hj³ h²hh³Nh´Nubj))�”}”(hŒ``file_mprotect``”h]”hŒ file_mprotect”…”�”}”(hjß h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j(hj³ ubhŒ hook, but with a ”…”�”}”(hj³ h²hh³Nh´Nubj))�”}”(hŒ``NULL``”h]”hŒNULL”…”�”}”(hjñ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j(hj³ ubhŒÑ file object. This is submitted to the evaluation, like any other file. However, all current trust properties will evaluate to false, as they are all file-based and the operation is not associated with a file.”…”�”}”(hj³ h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M�hj¢ h²hubj†)�”}”(hŒÕThis also occurs with the ``kernel_load_data`` hook, when the kernel is loading data from a userspace buffer that is not backed by a file. In this scenario all current trust properties will also evaluate to false.”h]”hä)�”}”(hŒÕThis also occurs with the ``kernel_load_data`` hook, when the kernel is loading data from a userspace buffer that is not backed by a file. In this scenario all current trust properties will also evaluate to false.”h]”(hŒThis also occurs with the ”…”�”}”(hj h²hh³Nh´Nubj))�”}”(hŒ``kernel_load_data``”h]”hŒkernel_load_data”…”�”}”(hj h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j(hj ubhŒ§ hook, when the kernel is loading data from a userspace buffer that is not backed by a file. In this scenario all current trust properties will also evaluate to false.”…”�”}”(hj h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´MŠhj ubah}”(h]”h ]”h"]”h$]”h&]”uh1j…hj¢ h²hh³hÇh´Nubeh}”(h]”Œanonymous-memory”ah ]”h"]”Œanonymous memory”ah$]”h&]”uh1hÈhj‘ h²hh³hÇh´MubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒSecurityfs Interface”h]”hŒSecurityfs Interface”…”�”}”(hj> h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj; h²hh³hÇh´M�ubhä)�”}”(hŒgThe per-policy securityfs tree is somewhat unique. For example, for a standard securityfs policy tree::”h]”hŒfThe per-policy securityfs tree is somewhat unique. For example, for a standard securityfs policy tree:”…”�”}”(hjL h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M‘hj; h²hubjB)�”}”(hŒZMyPolicy |- active |- delete |- name |- pkcs7 |- policy |- update |- version”h]”hŒZMyPolicy |- active |- delete |- name |- pkcs7 |- policy |- update |- version”…”�”}”hjZ sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jAh³hÇh´M”hj; h²hubhä)�”}”(hŒGThe policy is stored in the ``->i_private`` data of the MyPolicy inode.”h]”(hŒThe policy is stored in the ”…”�”}”(hjh h²hh³Nh´Nubj))�”}”(hŒ``->i_private``”h]”hŒ ->i_private”…”�”}”(hjp h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j(hjh ubhŒ data of the MyPolicy inode.”…”�”•e}”(hjh h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M�hj; h²hubeh}”(h]”Œsecurityfs-interface”ah ]”h"]”Œsecurityfs interface”ah$]”h&]”uh1hÈhj‘ h²hh³hÇh´M�ubeh}”(h]”Œimplementation-notes”ah ]”h"]”Œimplementation notes”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´M|ubhÉ)�”}”(hhh]”(hÎ)�”}”(hŒTests”h]”hŒTests”…”�”}”(hj› h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÍhj˜ h²hh³hÇh´M ubhä)�”}”(hŒDIPE has KUnit Tests for the policy parser. Recommended kunitconfig::”h]”hŒCIPE has KUnit Tests for the policy parser. Recommended kunitconfig:”…”�”}”(hj© h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M¢hj˜ h²hubjB)�”}”(hXCONFIG_KUNIT=y CONFIG_SECURITY=y CONFIG_SECURITYFS=y CONFIG_PKCS7_MESSAGE_PARSER=y CONFIG_SYSTEM_DATA_VERIFICATION=y CONFIG_FS_VERITY=y CONFIG_FS_VERITY_BUILTIN_SIGNATURES=y CONFIG_BLOCK=y CONFIG_MD=y CONFIG_BLK_DEV_DM=y CONFIG_DM_VERITY=y CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG=y CONFIG_NET=y CONFIG_AUDIT=y CONFIG_AUDITSYSCALL=y CONFIG_BLK_DEV_INITRD=y CONFIG_SECURITY_IPE=y CONFIG_IPE_PROP_DM_VERITY=y CONFIG_IPE_PROP_DM_VERITY_SIGNATURE=y CONFIG_IPE_PROP_FS_VERITY=y CONFIG_IPE_PROP_FS_VERITY_BUILTIN_SIG=y CONFIG_SECURITY_IPE_KUNIT_TEST=y”h]”hXCONFIG_KUNIT=y CONFIG_SECURITY=y CONFIG_SECURITYFS=y CONFIG_PKCS7_MESSAGE_PARSER=y CONFIG_SYSTEM_DATA_VERIFICATION=y CONFIG_FS_VERITY=y CONFIG_FS_VERITY_BUILTIN_SIGNATURES=y CONFIG_BLOCK=y CONFIG_MD=y CONFIG_BLK_DEV_DM=y CONFIG_DM_VERITY=y CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG=y CONFIG_NET=y CONFIG_AUDIT=y CONFIG_AUDITSYSCALL=y CONFIG_BLK_DEV_INITRD=y CONFIG_SECURITY_IPE=y CONFIG_IPE_PROP_DM_VERITY=y CONFIG_IPE_PROP_DM_VERITY_SIGNATURE=y CONFIG_IPE_PROP_FS_VERITY=y CONFIG_IPE_PROP_FS_VERITY_BUILTIN_SIG=y CONFIG_SECURITY_IPE_KUNIT_TEST=y”…”�”}”hj· sbah}”(h]”h ]”h"]”h$]”h&]”hÅhÆuh1jAh³hÇh´M¤hj˜ h²hubhä)�”}”(hŒ´In addition, IPE has a python based integration `test suite `_ that can test both user interfaces and enforcement functionalities.”h]”(hŒ0In addition, IPE has a python based integration ”…”�”}”(hjÅ h²hh³Nh´NubhŒ reference”“”)�”}”(hŒ@`test suite `_”h]”hŒ test suite”…”�”}”(hjÏ h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œname”Œ test suite”Œrefuri”Œ0https://github.com/microsoft/ipe/tree/test-suite”uh1jÍ hjÅ ubhŒtarget”“”)�”}”(hŒ3 ”h]”h}”(h]”Œ test-suite”ah ]”h"]”Œ test suite”ah$]”h&]”Œrefuri”jà uh1já Œ referenced”KhjÅ ubhŒD that can test both user interfaces and enforcement functionalities.”…”�”}”(hjÅ h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hãh³hÇh´M¼hj˜ h²hubeh}”(h]”Œtests”ah ]”h"]”Œtests”ah$]”h&]”uh1hÈhhÊh²hh³hÇh´M ubeh}”(h]”Œ5integrity-policy-enforcement-ipe-kernel-documentation”ah ]”h"]”Œ9integrity policy enforcement (ipe) - kernel documentation”ah$]”h&]”uh1hÈhhh²hh³hÇh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÇuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)�”}”(hÍNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”j. Œerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÇŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(j j jtjqjùjöjŽ j‹ jj jjjðjíjèjåjGjDj¤j¡jÔjÑj j j† jƒ j• j’ j8 j5 j� jŠ j jý jì jé uŒ nametypes”}”(j ‰jt‰jù‰jŽ ‰j‰j‰jð‰jè‰jG‰j¤‰jÔ‰j ‰j† ‰j• ‰j8 ‰j� ‰j ‰jì ˆuh}”(j hÊjqj"jöjwj‹ jüj jšjj«jíjjåjÄjDjój¡jJjÑj§j j×jƒ j j’ j‘ j5 j¢ jŠ j; jý j˜ jé jã uŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”(hŒsystem_message”“”)�”}”(hhh]”hä)�”}”(hŒ:Enumerated list start value not ordinal-1: "2" (ordinal 2)”h]”hŒ>Enumerated list start value not ordinal-1: “2â€� (ordinal 2)”…”�”}”(hj• h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãhj’ ubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”ŒINFO”Œsource”hÇŒline”Kuh1j� hjÂubj‘ )�”}”(hhh]”hä)�”}”(hŒ:Enumerated list start value not ordinal-1: "3" (ordinal 3)”h]”hŒ>Enumerated list start value not ordinal-1: “3â€� (ordinal 3)”…”�”}”(hj± h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hãhj® ubah}”(h]”h ]”h"]”h$]”h&]”Œlevel”KŒtype”j« Œsource”hÇŒline”Kuh1j� hjÂubeŒtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.