€•º+Œ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/admin-guide/LSM/index”Œ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/admin-guide/LSM/index”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒItalian”…”�”}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ)/translations/it_IT/admin-guide/LSM/index”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒJapanese”…”�”}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ)/translations/ja_JP/admin-guide/LSM/index”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)�”}”(hhh]”hŒKorean”…”�”}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ)/translations/ko_KR/admin-guide/LSM/index”Œ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/admin-guide/LSM/index”Œ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/admin-guide/LSM/index”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒsection”“”)�”}”(hhh]”(hŒtitle”“”)�”}”(hŒLinux Security Module Usage”h]”hŒLinux Security Module Usage”…”�”}”(hh¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhh·h²hh³ŒC/var/lib/git/docbuild/linux/Documentation/admin-guide/LSM/index.rst”h´KubhŒ paragraph”“”)�”}”(hXNThe Linux Security Module (LSM) framework provides a mechanism for various security checks to be hooked by new kernel extensions. The name "module" is a bit of a misnomer since these extensions are not actually loadable kernel modules. Instead, they are selectable at build-time via CONFIG_LSM, an ordered list of the LSMs to enable, and can be overridden at boot-time via the ``"lsm=..."`` kernel command line argument. The ``"security=..."`` kernel command line argument remains available to choose a legacy "major" security module, but has been deprecated by the ``"lsm=..."`` parameter.”h]”(hX}The Linux Security Module (LSM) framework provides a mechanism for various security checks to be hooked by new kernel extensions. The name “moduleâ€� is a bit of a misnomer since these extensions are not actually loadable kernel modules. Instead, they are selectable at build-time via CONFIG_LSM, an ordered list of the LSMs to enable, and can be overridden at boot-time via the ”…”�”}”(hhÍh²hh³Nh´NubhŒliteral”“”)�”}”(hŒ ``"lsm=..."``”h]”hŒ "lsm=..."”…”�”}”(hh×h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÕhhÍubhŒ# kernel command line argument. The ”…”�”}”(hhÍh²hh³Nh´NubhÖ)�”}”(hŒ``"security=..."``”h]”hŒ"security=..."”…”�”}”(hhéh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÕhhÍubhŒ kernel command line argument remains available to choose a legacy “majorâ€� security module, but has been deprecated by the ”…”�”}”(hhÍh²hh³Nh´NubhÖ)�”}”(hŒ ``"lsm=..."``”h]”hŒ "lsm=..."”…”�”}”(hhûh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÕhhÍubhŒ parameter.”…”�”}”(hhÍh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÌ)�”}”(hX�The primary users of the LSM interface are Mandatory Access Control (MAC) extensions which provide a comprehensive security policy. Examples include SELinux, Smack, Tomoyo, and AppArmor. In addition to the larger MAC extensions, other extensions can be built using the LSM to provide specific changes to system operation when these tweaks are not available in the core functionality of Linux itself.”h]”hX�The primary users of the LSM interface are Mandatory Access Control (MAC) extensions which provide a comprehensive security policy. Examples include SELinux, Smack, Tomoyo, and AppArmor. In addition to the larger MAC extensions, other extensions can be built using the LSM to provide specific changes to system operation when these tweaks are not available in the core functionality of Linux itself.”…”�”}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÌ)�”}”(hŒçThe Linux capabilities modules will always be included. This may be followed by any number of "minor" modules and at most one "major" module. For more details on capabilities, see ``capabilities(7)`` in the Linux man-pages project.”h]”(hŒ¼The Linux capabilities modules will always be included. This may be followed by any number of “minorâ€� modules and at most one “majorâ€� module. For more details on capabilities, see ”…”�”}”(hj!h²hh³Nh´NubhÖ)�”}”(hŒ``capabilities(7)``”h]”hŒcapabilities(7)”…”�”}”(hj)h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÕhj!ubhŒ in the Linux man-pages project.”…”�”}”(hj!h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÌ)�”}”(hX¿A list of the active security modules can be found by reading ``/sys/kernel/security/lsm``. This is a comma separated list, and will always include the capability module. The list reflects the order in which checks are made. The capability module will be first, unless CONFIG_SECURITY_LOCKDOWN_LSM_EARLY is enabled, in which case the lockdown module will precede it. The integrity modules (e.g. IMA and EVM), if enabled in the kernel configuration, are always placed at the end of the list. Any other "minor" modules (e.g. Yama) and the one "major" module (e.g. SELinux), if there is one configured, appear in between, in the order given by CONFIG_LSM or the ``"lsm=..."`` kernel command line parameter.”h]”(hŒ>A list of the active security modules can be found by reading ”…”�”}”(hjAh²hh³Nh´NubhÖ)�”}”(hŒ``/sys/kernel/security/lsm``”h]”hŒ/sys/kernel/security/lsm”…”�”}”(hjIh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÕhjAubhXA. This is a comma separated list, and will always include the capability module. The list reflects the order in which checks are made. The capability module will be first, unless CONFIG_SECURITY_LOCKDOWN_LSM_EARLY is enabled, in which case the lockdown module will precede it. The integrity modules (e.g. IMA and EVM), if enabled in the kernel configuration, are always placed at the end of the list. Any other “minorâ€� modules (e.g. Yama) and the one “majorâ€� module (e.g. SELinux), if there is one configured, appear in between, in the order given by CONFIG_LSM or the ”…”�”}”(hjAh²hh³Nh´NubhÖ)�”}”(hŒ ``"lsm=..."``”h]”hŒ "lsm=..."”…”�”}”(hj[h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÕhjAubhŒ kernel command line parameter.”…”�”}”(hjAh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÌ)�”}”(hX½Process attributes associated with "major" security modules should be accessed and maintained using the special files in ``/proc/.../attr``. A security module may maintain a module specific subdirectory there, named after the module. ``/proc/.../attr/smack`` is provided by the Smack security module and contains all its special files. The files directly in ``/proc/.../attr`` remain as legacy interfaces for modules that provide subdirectories.”h]”(hŒ}Process attributes associated with “majorâ€� security modules should be accessed and maintained using the special files in ”…”�”}”(hjsh²hh³Nh´NubhÖ)�”}”(hŒ``/proc/.../attr``”h]”hŒ/proc/.../attr”…”�”}”(hj{h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÕhjsubhŒ_. A security module may maintain a module specific subdirectory there, named after the module. ”…”�”}”(hjsh²hh³Nh´NubhÖ)�”}”(hŒ``/proc/.../attr/smack``”h]”hŒ/proc/.../attr/smack”…”�”}”(hj�h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÕhjsubhŒd is provided by the Smack security module and contains all its special files. The files directly in ”…”�”}”(hjsh²hh³Nh´NubhÖ)�”}”(hŒ``/proc/.../attr``”h]”hŒ/proc/.../attr”…”�”}”(hjŸh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÕhjsubhŒE remain as legacy interfaces for modules that provide subdirectories.”…”�”}”(hjsh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K(hh·h²hubhŒcompound”“”)�”}”(hhh]”hŒtoctree”“”)�”}”(hhh]”h}”(h]”h ]”h"]”h$]”h&]”hŒadmin-guide/LSM/index”Œentries”]”(NŒadmin-guide/LSM/apparmor”†”NŒadmin-guide/LSM/LoadPin”†”NŒadmin-guide/LSM/SELinux”†”NŒadmin-guide/LSM/Smack”†”NŒadmin-guide/LSM/tomoyo”†”NŒadmin-guide/LSM/Yama”†”NŒadmin-guide/LSM/SafeSetID”†”NŒadmin-guide/LSM/ipe”†”NŒadmin-guide/LSM/landlock”†”eŒ includefiles”]”(jÊjÌjÎjÐjÒjÔjÖjØjÚeŒmaxdepth”KŒcaption”NŒglob”‰Œhidden”‰Œ includehidden”‰Œnumbered”KŒ titlesonly”‰Œ rawentries”]”uh1j¼h³hÊh´K0hj¹ubah}”(h]”h ]”Œtoctree-wrapper”ah"]”h$]”h&]”uh1j·hh·h²hh³hÊh´Nubeh}”(h]”Œlinux-security-module-usage”ah ]”h"]”Œlinux security module usage”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ðsŒ nametypes”}”jó‰sh}”jðh·sŒ 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”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.