sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget,/translations/zh_CN/security/lsm-developmentmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget,/translations/zh_TW/security/lsm-developmentmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget,/translations/it_IT/security/lsm-developmentmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget,/translations/ja_JP/security/lsm-developmentmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget,/translations/ko_KR/security/lsm-developmentmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget,/translations/pt_BR/security/lsm-developmentmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget,/translations/sp_SP/security/lsm-developmentmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(h!Linux Security Module Developmenth]h!Linux Security Module Development}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhF/var/lib/git/docbuild/linux/Documentation/security/lsm-development.rsthKubh paragraph)}(hXBased on https://lore.kernel.org/r/20071026073721.618b4778@laptopd505.fenrus.org, a new LSM is accepted into the kernel when its intent (a description of what it tries to protect against and in what cases one would expect to use it) has been appropriately documented in ``Documentation/admin-guide/LSM/``. This allows an LSM's code to be easily compared to its goals, and so that end users and distros can make a more informed decision about which LSMs suit their requirements.h](h Based on }(hhhhhNhNubh reference)}(hGhttps://lore.kernel.org/r/20071026073721.618b4778@laptopd505.fenrus.orgh]hGhttps://lore.kernel.org/r/20071026073721.618b4778@laptopd505.fenrus.org}(hhhhhNhNubah}(h]h ]h"]h$]h&]refurihuh1hhhubh, a new LSM is accepted into the kernel when its intent (a description of what it tries to protect against and in what cases one would expect to use it) has been appropriately documented in }(hhhhhNhNubhliteral)}(h"``Documentation/admin-guide/LSM/``h]hDocumentation/admin-guide/LSM/}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhubh. This allows an LSM’s code to be easily compared to its goals, and so that end users and distros can make a more informed decision about which LSMs suit their requirements.}(hhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hFor extensive documentation on the available LSM hook interfaces, please see ``security/security.c`` and associated structures:h](hMFor extensive documentation on the available LSM hook interfaces, please see }(hjhhhNhNubh)}(h``security/security.c``h]hsecurity/security.c}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubh and associated structures:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhK hhhhubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](single#security_free_mnt_opts (C function)c.security_free_mnt_optshNtauh1j$hhhhhNhNubhdesc)}(hhh](hdesc_signature)}(h-void security_free_mnt_opts (void **mnt_opts)h]hdesc_signature_line)}(h,void security_free_mnt_opts(void **mnt_opts)h](hdesc_sig_keyword_type)}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]ktah"]h$]h&]uh1jFhjBhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubhdesc_sig_space)}(h h]h }(hjZhhhNhNubah}(h]h ]wah"]h$]h&]uh1jXhjBhhhjWhMubh desc_name)}(hsecurity_free_mnt_optsh]h desc_sig_name)}(hsecurity_free_mnt_optsh]hsecurity_free_mnt_opts}(hjqhhhNhNubah}(h]h ]nah"]h$]h&]uh1johjkubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1jihjBhhhjWhMubhdesc_parameterlist)}(h(void **mnt_opts)h]hdesc_parameter)}(hvoid **mnt_optsh](jG)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubhdesc_sig_punctuation)}(h*h]h*}(hjhhhNhNubah}(h]h ]pah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hmnt_optsh]hmnt_opts}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjBhhhjWhMubeh}(h]h ]h"]h$]h&]jj add_permalinkuh1j@sphinx_line_type declaratorhj<hhhjWhMubah}(h]j3ah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1j:hjWhMhj7hhubh desc_content)}(hhh]h)}(h)Free memory associated with mount optionsh]h)Free memory associated with mount options}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj7hhhjWhMubeh}(h]h ](cfunctioneh"]h$]h&]domainjobjtypejdesctypejnoindex noindexentrynocontentsentryuh1j5hhhhhNhNubh container)}(h|**Parameters** ``void **mnt_opts`` LSM processed mount options **Description** Free memory associated with **mnt_ops**.h](h)}(h**Parameters**h]hstrong)}(hj/h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj-ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj)ubhdefinition_list)}(hhh]hdefinition_list_item)}(h0``void **mnt_opts`` LSM processed mount options h](hterm)}(h``void **mnt_opts``h]h)}(hjVh]hvoid **mnt_opts}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjNubh definition)}(hhh]h)}(hLSM processed mount optionsh]hLSM processed mount options}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjnubah}(h]h ]h"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]uh1jLhjkhMhjIubah}(h]h ]h"]h$]h&]uh1jGhj)ubh)}(h**Description**h]j2)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj)ubh)}(h(Free memory associated with **mnt_ops**.h](hFree memory associated with }(hjhhhNhNubj2)}(h **mnt_ops**h]hmnt_ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1%security_sb_eat_lsm_opts (C function)c.security_sb_eat_lsm_optshNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h=int security_sb_eat_lsm_opts (char *options, void **mnt_opts)h]jA)}(hh]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj<ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj8ubjH)}(hhh](jM)}(h1``struct super_block *sb`` filesystem superblock h](jS)}(h``struct super_block *sb``h]h)}(hj]h]hstruct super_block *sb}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjWubjm)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjsubah}(h]h ]h"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]uh1jLhjrhMhjTubjM)}(h%``void *mnt_opts`` new mount options h](jS)}(h``void *mnt_opts``h]h)}(hjh]hvoid *mnt_opts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hnew mount optionsh]hnew mount options}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjTubeh}(h]h ]h"]h$]h&]uh1jGhj8ubh)}(h**Description**h]j2)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj8ubh)}(hDetermine if the new mount options in **mnt_opts** are allowed given the existing mounted filesystem at **sb**. **sb** superblock being compared.h](h&Determine if the new mount options in }(hjhhhNhNubj2)}(h **mnt_opts**h]hmnt_opts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubh6 are allowed given the existing mounted filesystem at }(hjhhhNhNubj2)}(h**sb**h]hsb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubh. }(hjhhhNhNubj2)}(h**sb**h]hsb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubh superblock being compared.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj8ubh)}(h **Return**h]j2)}(hj.h]hReturn}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj,ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj8ubh)}(h$Returns 0 if options are compatible.h]h$Returns 0 if options are compatible.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj8ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1 security_sb_remount (C function)c.security_sb_remounthNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h@int security_sb_remount (struct super_block *sb, void *mnt_opts)h]jA)}(h?int security_sb_remount(struct super_block *sb, void *mnt_opts)h](jG)}(hinth]hint}(hjshhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjohhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjohhhjhMubjj)}(hsecurity_sb_remounth]jp)}(hsecurity_sb_remounth]hsecurity_sb_remount}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjohhhjhMubj)}(h((struct super_block *sb, void *mnt_opts)h](j)}(hstruct super_block *sbh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(h super_blockh]h super_block}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.security_sb_remountasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hsbh]hsb}(hj hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hvoid *mnt_optsh](jG)}(hvoidh]hvoid}(hj"hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hj0hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hmnt_optsh]hmnt_opts}(hjKhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjohhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjkhhhjhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1j:hjhMhjhhhubj)}(hhh]h)}(h3Verify no incompatible mount changes during remounth]h3Verify no incompatible mount changes during remount}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjrhhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct super_block *sb`` filesystem superblock ``void *mnt_opts`` (re)mount options **Description** Extracts security system specific mount options and verifies no changes are being made to those options. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjH)}(hhh](jM)}(h1``struct super_block *sb`` filesystem superblock h](jS)}(h``struct super_block *sb``h]h)}(hjh]hstruct super_block *sb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubjM)}(h%``void *mnt_opts`` (re)mount options h](jS)}(h``void *mnt_opts``h]h)}(hjh]hvoid *mnt_opts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(h(re)mount optionsh]h(re)mount options}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhj hMhjubeh}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hj* h]h Description}(hj, hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj( ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(hhExtracts security system specific mount options and verifies no changes are being made to those options.h]hhExtracts security system specific mount options and verifies no changes are being made to those options.}(hj@ hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h **Return**h]j2)}(hjQ h]hReturn}(hjS hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjO ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1%security_sb_set_mnt_opts (C function)c.security_sb_set_mnt_optshNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h~int security_sb_set_mnt_opts (struct super_block *sb, void *mnt_opts, unsigned long kern_flags, unsigned long *set_kern_flags)h]jA)}(h}int security_sb_set_mnt_opts(struct super_block *sb, void *mnt_opts, unsigned long kern_flags, unsigned long *set_kern_flags)h](jG)}(hinth]hint}(hj hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMaubjY)}(h h]h }(hj hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj hhhj hMaubjj)}(hsecurity_sb_set_mnt_optsh]jp)}(hsecurity_sb_set_mnt_optsh]hsecurity_sb_set_mnt_opts}(hj hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj hhhj hMaubj)}(ha(struct super_block *sb, void *mnt_opts, unsigned long kern_flags, unsigned long *set_kern_flags)h](j)}(hstruct super_block *sbh](jL)}(hjOh]hstruct}(hj hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj ubjY)}(h h]h }(hj hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubh)}(hhh]jp)}(h super_blockh]h super_block}(hj hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j)}jj sbc.security_sb_set_mnt_optsasbuh1hhj ubjY)}(h h]h }(hj hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjp)}(hsbh]hsb}(hj, hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hvoid *mnt_optsh](jG)}(hvoidh]hvoid}(hjE hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjA ubjY)}(h h]h }(hjS hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjA ubj)}(hjh]h*}(hja hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjA ubjp)}(hmnt_optsh]hmnt_opts}(hjn hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjA ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned long kern_flagsh](jG)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj ubjY)}(h h]h }(hj hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubjG)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj ubjY)}(h h]h }(hj hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubjp)}(h kern_flagsh]h kern_flags}(hj hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned long *set_kern_flagsh](jG)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj ubjY)}(h h]h }(hj hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubjG)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj ubjY)}(h h]h }(hj hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjp)}(hset_kern_flagsh]hset_kern_flags}(hj hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hMaubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj hhhj hMaubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j:hj hMahj hhubj)}(hhh]h)}(h&Set the mount options for a filesystemh]h&Set the mount options for a filesystem}(hjG hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMahjD hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMaubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j_ j#j_ j$j%j&uh1j5hhhhhNhNubj()}(hX]**Parameters** ``struct super_block *sb`` filesystem superblock ``void *mnt_opts`` binary mount options ``unsigned long kern_flags`` kernel flags (in) ``unsigned long *set_kern_flags`` kernel flags (out) **Description** Set the security relevant mount options used for a superblock. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j2)}(hji h]h Parameters}(hjk hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjg ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMehjc ubjH)}(hhh](jM)}(h1``struct super_block *sb`` filesystem superblock h](jS)}(h``struct super_block *sb``h]h)}(hj h]hstruct super_block *sb}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMbhj ubjm)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMbhj ubah}(h]h ]h"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]uh1jLhj hMbhj ubjM)}(h(``void *mnt_opts`` binary mount options h](jS)}(h``void *mnt_opts``h]h)}(hj h]hvoid *mnt_opts}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMchj ubjm)}(hhh]h)}(hbinary mount optionsh]hbinary mount options}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMchj ubah}(h]h ]h"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]uh1jLhj hMchj ubjM)}(h/``unsigned long kern_flags`` kernel flags (in) h](jS)}(h``unsigned long kern_flags``h]h)}(hj h]hunsigned long kern_flags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMdhj ubjm)}(hhh]h)}(hkernel flags (in)h]hkernel flags (in)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMdhj ubah}(h]h ]h"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]uh1jLhj hMdhj ubjM)}(h5``unsigned long *set_kern_flags`` kernel flags (out) h](jS)}(h!``unsigned long *set_kern_flags``h]h)}(hj3 h]hunsigned long *set_kern_flags}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1 ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMehj- ubjm)}(hhh]h)}(hkernel flags (out)h]hkernel flags (out)}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH hMehjI ubah}(h]h ]h"]h$]h&]uh1jlhj- ubeh}(h]h ]h"]h$]h&]uh1jLhjH hMehj ubeh}(h]h ]h"]h$]h&]uh1jGhjc ubh)}(h**Description**h]j2)}(hjn h]h Description}(hjp hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjl ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMghjc ubh)}(h>Set the security relevant mount options used for a superblock.h]h>Set the security relevant mount options used for a superblock.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMfhjc ubh)}(h **Return**h]j2)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhhjc ubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMihjc ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1'security_sb_clone_mnt_opts (C function)c.security_sb_clone_mnt_optshNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hint security_sb_clone_mnt_opts (const struct super_block *oldsb, struct super_block *newsb, unsigned long kern_flags, unsigned long *set_kern_flags)h]jA)}(hint security_sb_clone_mnt_opts(const struct super_block *oldsb, struct super_block *newsb, unsigned long kern_flags, unsigned long *set_kern_flags)h](jG)}(hinth]hint}(hj hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM~ubjY)}(h h]h }(hj hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj hhhj hM~ubjj)}(hsecurity_sb_clone_mnt_optsh]jp)}(hsecurity_sb_clone_mnt_optsh]hsecurity_sb_clone_mnt_opts}(hj hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj hhhj hM~ubj)}(hu(const struct super_block *oldsb, struct super_block *newsb, unsigned long kern_flags, unsigned long *set_kern_flags)h](j)}(hconst struct super_block *oldsbh](jL)}(hconsth]hconst}(hj hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj ubjY)}(h h]h }(hj% hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubjL)}(hjOh]hstruct}(hj3 hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj ubjY)}(h h]h }(hj@ hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubh)}(hhh]jp)}(h super_blockh]h super_block}(hjQ hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjN ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjS modnameN classnameNjj)}j]j)}jj sbc.security_sb_clone_mnt_optsasbuh1hhj ubjY)}(h h]h }(hjq hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjp)}(holdsbh]holdsb}(hj hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct super_block *newsbh](jL)}(hjOh]hstruct}(hj hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj ubjY)}(h h]h }(hj hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubh)}(hhh]jp)}(h super_blockh]h super_block}(hj hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]jm c.security_sb_clone_mnt_optsasbuh1hhj ubjY)}(h h]h }(hj hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjp)}(hnewsbh]hnewsb}(hj hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned long kern_flagsh](jG)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hj#hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjG)}(hlongh]hlong}(hj1hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hj?hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjp)}(h kern_flagsh]h kern_flags}(hjMhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hunsigned long *set_kern_flagsh](jG)}(hunsignedh]hunsigned}(hjfhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjbubjY)}(h h]h }(hjthhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjbubjG)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjbubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjp)}(hset_kern_flagsh]hset_kern_flags}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hM~ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj hhhj hM~ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j:hj hM~hj hhubj)}(hhh]h)}(h"Duplicate superblock mount optionsh]h"Duplicate superblock mount options}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM~hjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hM~ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(hXn**Parameters** ``const struct super_block *oldsb`` source superblock ``struct super_block *newsb`` destination superblock ``unsigned long kern_flags`` kernel flags (in) ``unsigned long *set_kern_flags`` kernel flags (out) **Description** Copy all security options from a given superblock to another. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j2)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjH)}(hhh](jM)}(h6``const struct super_block *oldsb`` source superblock h](jS)}(h#``const struct super_block *oldsb``h]h)}(hjh]hconst struct super_block *oldsb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hsource superblockh]hsource superblock}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMhj,ubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhj+hMhj ubjM)}(h5``struct super_block *newsb`` destination superblock h](jS)}(h``struct super_block *newsb``h]h)}(hjOh]hstruct super_block *newsb}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjIubjm)}(hhh]h)}(hdestination superblockh]hdestination superblock}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhjeubah}(h]h ]h"]h$]h&]uh1jlhjIubeh}(h]h ]h"]h$]h&]uh1jLhjdhMhj ubjM)}(h/``unsigned long kern_flags`` kernel flags (in) h](jS)}(h``unsigned long kern_flags``h]h)}(hjh]hunsigned long kern_flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hkernel flags (in)h]hkernel flags (in)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhj ubjM)}(h5``unsigned long *set_kern_flags`` kernel flags (out) h](jS)}(h!``unsigned long *set_kern_flags``h]h)}(hjh]hunsigned long *set_kern_flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hkernel flags (out)h]hkernel flags (out)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhj ubeh}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h=Copy all security options from a given superblock to another.h]h=Copy all security options from a given superblock to another.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h **Return**h]j2)}(hj#h]hReturn}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj!ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1*security_dentry_init_security (C function)c.security_dentry_init_securityhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hint security_dentry_init_security (struct dentry *dentry, int mode, const struct qstr *name, const char **xattr_name, struct lsm_context *lsmctx)h]jA)}(hint security_dentry_init_security(struct dentry *dentry, int mode, const struct qstr *name, const char **xattr_name, struct lsm_context *lsmctx)h](jG)}(hinth]hint}(hjhhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjdhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjwhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjdhhhjvhMubjj)}(hsecurity_dentry_init_securityh]jp)}(hsecurity_dentry_init_securityh]hsecurity_dentry_init_security}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjdhhhjvhMubj)}(ho(struct dentry *dentry, int mode, const struct qstr *name, const char **xattr_name, struct lsm_context *lsmctx)h](j)}(hstruct dentry *dentryh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.security_dentry_init_securityasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint modeh](jG)}(hinth]hint}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hj%hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjp)}(hmodeh]hmode}(hj3hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct qstr *nameh](jL)}(hj h]hconst}(hjLhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjHubjY)}(h h]h }(hjYhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjHubjL)}(hjOh]hstruct}(hjghhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjHubjY)}(h h]h }(hjthhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjHubh)}(hhh]jp)}(hqstrh]hqstr}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.security_dentry_init_securityasbuh1hhjHubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjHubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjp)}(hnameh]hname}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char **xattr_nameh](jL)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjG)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(h xattr_nameh]h xattr_name}(hj(hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct lsm_context *lsmctxh](jL)}(hjOh]hstruct}(hjAhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj=ubjY)}(h h]h }(hjNhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj=ubh)}(hhh]jp)}(h lsm_contexth]h lsm_context}(hj_hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj\ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjamodnameN classnameNjj)}j]jc.security_dentry_init_securityasbuh1hhj=ubjY)}(h h]h }(hj}hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj=ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjp)}(hlsmctxh]hlsmctx}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjdhhhjvhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj`hhhjvhMubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1j:hjvhMhj]hhubj)}(hhh]h)}(hPerform dentry initializationh]hPerform dentry initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj]hhhjvhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(hXn**Parameters** ``struct dentry *dentry`` the dentry to initialize ``int mode`` mode used to determine resource type ``const struct qstr *name`` name of the last path component ``const char **xattr_name`` name of the security/LSM xattr ``struct lsm_context *lsmctx`` pointer to the resulting LSM context **Description** Compute a context for a dentry as the inode is not yet available since NFSv4 has no label backed by an EA anyway. It is important to note that **xattr_name** does not need to be free'd by the caller, it is a static string. **Return** Returns 0 on success, negative values on failure.h](h)}(h**Parameters**h]j2)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjH)}(hhh](jM)}(h3``struct dentry *dentry`` the dentry to initialize h](jS)}(h``struct dentry *dentry``h]h)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hthe dentry to initializeh]hthe dentry to initialize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubjM)}(h2``int mode`` mode used to determine resource type h](jS)}(h ``int mode``h]h)}(hj<h]hint mode}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj6ubjm)}(hhh]h)}(h$mode used to determine resource typeh]h$mode used to determine resource type}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]uh1jLhjQhMhjubjM)}(h<``const struct qstr *name`` name of the last path component h](jS)}(h``const struct qstr *name``h]h)}(hjuh]hconst struct qstr *name}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjoubjm)}(hhh]h)}(hname of the last path componenth]hname of the last path component}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubjM)}(h;``const char **xattr_name`` name of the security/LSM xattr h](jS)}(h``const char **xattr_name``h]h)}(hjh]hconst char **xattr_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hname of the security/LSM xattrh]hname of the security/LSM xattr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubjM)}(hD``struct lsm_context *lsmctx`` pointer to the resulting LSM context h](jS)}(h``struct lsm_context *lsmctx``h]h)}(hjh]hstruct lsm_context *lsmctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(h$pointer to the resulting LSM contexth]h$pointer to the resulting LSM context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubeh}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hj"h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(hCompute a context for a dentry as the inode is not yet available since NFSv4 has no label backed by an EA anyway. It is important to note that **xattr_name** does not need to be free'd by the caller, it is a static string.h](hCompute a context for a dentry as the inode is not yet available since NFSv4 has no label backed by an EA anyway. It is important to note that }(hj8hhhNhNubj2)}(h**xattr_name**h]h xattr_name}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj8ubhC does not need to be free’d by the caller, it is a static string.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h **Return**h]j2)}(hj[h]hReturn}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjYubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1,security_dentry_create_files_as (C function)!c.security_dentry_create_files_ashNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hint security_dentry_create_files_as (struct dentry *dentry, int mode, const struct qstr *name, const struct cred *old, struct cred *new)h]jA)}(hint security_dentry_create_files_as(struct dentry *dentry, int mode, const struct qstr *name, const struct cred *old, struct cred *new)h](jG)}(hinth]hint}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhjhMubjj)}(hsecurity_dentry_create_files_ash]jp)}(hsecurity_dentry_create_files_ash]hsecurity_dentry_create_files_as}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjhMubj)}(hd(struct dentry *dentry, int mode, const struct qstr *name, const struct cred *old, struct cred *new)h](j)}(hstruct dentry *dentryh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsb!c.security_dentry_create_files_asasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hdentryh]hdentry}(hj6hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hint modeh](jG)}(hinth]hint}(hjOhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjKubjY)}(h h]h }(hj]hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjKubjp)}(hmodeh]hmode}(hjkhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct qstr *nameh](jL)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hqstrh]hqstr}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j!c.security_dentry_create_files_asasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hnameh]hname}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct cred *oldh](jL)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj ubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubjL)}(hjOh]hstruct}(hj*hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj ubjY)}(h h]h }(hj7hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubh)}(hhh]jp)}(hcredh]hcred}(hjHhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjEubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjJmodnameN classnameNjj)}j]j!c.security_dentry_create_files_asasbuh1hhj ubjY)}(h h]h }(hjfhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjp)}(holdh]hold}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct cred *newh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j!c.security_dentry_create_files_asasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hj(hMhjhhubj)}(hhh]h)}(hPerform dentry initializationh]hPerform dentry initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j3j#j3j$j%j&uh1j5hhhhhNhNubj()}(hX[**Parameters** ``struct dentry *dentry`` the dentry to initialize ``int mode`` mode used to determine resource type ``const struct qstr *name`` name of the last path component ``const struct cred *old`` creds to use for LSM context calculations ``struct cred *new`` creds to modify **Description** Compute a context for a dentry as the inode is not yet available and set that context in passed in creds so that new files are created using that context. Context is calculated using the passed in creds and not the creds of the caller. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j2)}(hj=h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj;ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj7ubjH)}(hhh](jM)}(h3``struct dentry *dentry`` the dentry to initialize h](jS)}(h``struct dentry *dentry``h]h)}(hj\h]hstruct dentry *dentry}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjVubjm)}(hhh]h)}(hthe dentry to initializeh]hthe dentry to initialize}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjrubah}(h]h ]h"]h$]h&]uh1jlhjVubeh}(h]h ]h"]h$]h&]uh1jLhjqhMhjSubjM)}(h2``int mode`` mode used to determine resource type h](jS)}(h ``int mode``h]h)}(hjh]hint mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(h$mode used to determine resource typeh]h$mode used to determine resource type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjSubjM)}(h<``const struct qstr *name`` name of the last path component h](jS)}(h``const struct qstr *name``h]h)}(hjh]hconst struct qstr *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hname of the last path componenth]hname of the last path component}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjSubjM)}(hE``const struct cred *old`` creds to use for LSM context calculations h](jS)}(h``const struct cred *old``h]h)}(hjh]hconst struct cred *old}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(h)creds to use for LSM context calculationsh]h)creds to use for LSM context calculations}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjSubjM)}(h%``struct cred *new`` creds to modify h](jS)}(h``struct cred *new``h]h)}(hj@h]hstruct cred *new}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj:ubjm)}(hhh]h)}(hcreds to modifyh]hcreds to modify}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jlhj:ubeh}(h]h ]h"]h$]h&]uh1jLhjUhMhjSubeh}(h]h ]h"]h$]h&]uh1jGhj7ubh)}(h**Description**h]j2)}(hj{h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjyubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj7ubh)}(hCompute a context for a dentry as the inode is not yet available and set that context in passed in creds so that new files are created using that context. Context is calculated using the passed in creds and not the creds of the caller.h]hCompute a context for a dentry as the inode is not yet available and set that context in passed in creds so that new files are created using that context. Context is calculated using the passed in creds and not the creds of the caller.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj7ubh)}(h **Return**h]j2)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj7ubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1)security_inode_init_security (C function)c.security_inode_init_securityhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hint security_inode_init_security (struct inode *inode, struct inode *dir, const struct qstr *qstr, const initxattrs initxattrs, void *fs_data)h]jA)}(hint security_inode_init_security(struct inode *inode, struct inode *dir, const struct qstr *qstr, const initxattrs initxattrs, void *fs_data)h](jG)}(hinth]hint}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhjhMubjj)}(hsecurity_inode_init_securityh]jp)}(hsecurity_inode_init_securityh]hsecurity_inode_init_security}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjhMubj)}(hm(struct inode *inode, struct inode *dir, const struct qstr *qstr, const initxattrs initxattrs, void *fs_data)h](j)}(hstruct inode *inodeh](jL)}(hjOh]hstruct}(hj$hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj ubjY)}(h h]h }(hj1hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubh)}(hhh]jp)}(hinodeh]hinode}(hjBhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj?ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjDmodnameN classnameNjj)}j]j)}jj sbc.security_inode_init_securityasbuh1hhj ubjY)}(h h]h }(hjbhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjp)}(hinodeh]hinode}(hj}hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct inode *dirh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j^c.security_inode_init_securityasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst struct qstr *qstrh](jL)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjL)}(hjOh]hstruct}(hj!hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hj.hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hqstrh]hqstr}(hj?hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj<ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjAmodnameN classnameNjj)}j]j^c.security_inode_init_securityasbuh1hhjubjY)}(h h]h }(hj]hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hqstrh]hqstr}(hjxhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst initxattrs initxattrsh](jL)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(h initxattrsh]h initxattrs}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j^c.security_inode_init_securityasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjp)}(h initxattrsh]h initxattrs}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h void *fs_datah](jG)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hfs_datah]hfs_data}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjhMhjhhubj)}(hhh]h)}(h!Initialize an inode's LSM contexth]h#Initialize an inode’s LSM context}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjDhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j_j#j_j$j%j&uh1j5hhhhhNhNubj()}(hXd**Parameters** ``struct inode *inode`` the inode ``struct inode *dir`` parent directory ``const struct qstr *qstr`` last component of the pathname ``const initxattrs initxattrs`` callback function to write xattrs ``void *fs_data`` filesystem specific data **Description** Obtain the security attribute name suffix and value to set on a newly created inode and set up the incore security field for the new inode. This hook is called by the fs code as part of the inode creation transaction and provides for atomic labeling of the inode, unlike the post_create/mkdir/... hooks called by the VFS. The hook function is expected to populate the xattrs array, by calling lsm_get_xattr_slot() to retrieve the slots reserved by the security module with the lbs_xattr_count field of the lsm_blob_sizes structure. For each slot, the hook function should set ->name to the attribute name suffix (e.g. selinux), to allocate ->value (will be freed by the caller) and set it to the attribute value, to set ->value_len to the length of the value. If the security module does not use security attributes or does not wish to put a security attribute on this particular inode, then it should return -EOPNOTSUPP to skip this processing. **Return** Returns 0 if the LSM successfully initialized all of the inode security attributes that are required, negative values otherwise.h](h)}(h**Parameters**h]j2)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjgubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjcubjH)}(hhh](jM)}(h"``struct inode *inode`` the inode h](jS)}(h``struct inode *inode``h]h)}(hjh]hstruct inode *inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(h the inodeh]h the inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubjM)}(h'``struct inode *dir`` parent directory h](jS)}(h``struct inode *dir``h]h)}(hjh]hstruct inode *dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hparent directoryh]hparent directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubjM)}(h;``const struct qstr *qstr`` last component of the pathname h](jS)}(h``const struct qstr *qstr``h]h)}(hjh]hconst struct qstr *qstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hlast component of the pathnameh]hlast component of the pathname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubjM)}(hB``const initxattrs initxattrs`` callback function to write xattrs h](jS)}(h``const initxattrs initxattrs``h]h)}(hj3h]hconst initxattrs initxattrs}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj-ubjm)}(hhh]h)}(h!callback function to write xattrsh]h!callback function to write xattrs}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjIubah}(h]h ]h"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]uh1jLhjHhMhjubjM)}(h+``void *fs_data`` filesystem specific data h](jS)}(h``void *fs_data``h]h)}(hjlh]h void *fs_data}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjfubjm)}(hhh]h)}(hfilesystem specific datah]hfilesystem specific data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjfubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubeh}(h]h ]h"]h$]h&]uh1jGhjcubh)}(h**Description**h]j2)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjcubh)}(hXBObtain the security attribute name suffix and value to set on a newly created inode and set up the incore security field for the new inode. This hook is called by the fs code as part of the inode creation transaction and provides for atomic labeling of the inode, unlike the post_create/mkdir/... hooks called by the VFS.h]hXBObtain the security attribute name suffix and value to set on a newly created inode and set up the incore security field for the new inode. This hook is called by the fs code as part of the inode creation transaction and provides for atomic labeling of the inode, unlike the post_create/mkdir/... hooks called by the VFS.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjcubh)}(hXqThe hook function is expected to populate the xattrs array, by calling lsm_get_xattr_slot() to retrieve the slots reserved by the security module with the lbs_xattr_count field of the lsm_blob_sizes structure. For each slot, the hook function should set ->name to the attribute name suffix (e.g. selinux), to allocate ->value (will be freed by the caller) and set it to the attribute value, to set ->value_len to the length of the value. If the security module does not use security attributes or does not wish to put a security attribute on this particular inode, then it should return -EOPNOTSUPP to skip this processing.h]hXqThe hook function is expected to populate the xattrs array, by calling lsm_get_xattr_slot() to retrieve the slots reserved by the security module with the lbs_xattr_count field of the lsm_blob_sizes structure. For each slot, the hook function should set ->name to the attribute name suffix (e.g. selinux), to allocate ->value (will be freed by the caller) and set it to the attribute value, to set ->value_len to the length of the value. If the security module does not use security attributes or does not wish to put a security attribute on this particular inode, then it should return -EOPNOTSUPP to skip this processing.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM%hjcubh)}(h **Return**h]j2)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM/hjcubh)}(hReturns 0 if the LSM successfully initialized all of the inode security attributes that are required, negative values otherwise.h]hReturns 0 if the LSM successfully initialized all of the inode security attributes that are required, negative values otherwise.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM0hjcubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1 security_path_mknod (C function)c.security_path_mknodhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hgint security_path_mknod (const struct path *dir, struct dentry *dentry, umode_t mode, unsigned int dev)h]jA)}(hfint security_path_mknod(const struct path *dir, struct dentry *dentry, umode_t mode, unsigned int dev)h](jG)}(hinth]hint}(hj"hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMyubjY)}(h h]h }(hj1hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhj0hMyubjj)}(hsecurity_path_mknodh]jp)}(hsecurity_path_mknodh]hsecurity_path_mknod}(hjChhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhj0hMyubj)}(hO(const struct path *dir, struct dentry *dentry, umode_t mode, unsigned int dev)h](j)}(hconst struct path *dirh](jL)}(hj h]hconst}(hj_hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj[ubjY)}(h h]h }(hjlhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj[ubjL)}(hjOh]hstruct}(hjzhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj[ubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj[ubh)}(hhh]jp)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjEsbc.security_path_mknodasbuh1hhj[ubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjp)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubj)}(hstruct dentry *dentryh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hdentryh]hdentry}(hj hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]jc.security_path_mknodasbuh1hhjubjY)}(h h]h }(hj(hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hdentryh]hdentry}(hjChhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubj)}(h umode_t modeh](h)}(hhh]jp)}(humode_th]humode_t}(hj_hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj\ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjamodnameN classnameNjj)}j]jc.security_path_mknodasbuh1hhjXubjY)}(h h]h }(hj}hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjXubjp)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubj)}(hunsigned int devh](jG)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjG)}(hinth]hint}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjp)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjWubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj0hMyubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhj0hMyubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hj0hMyhjhhubj)}(hhh]h)}(h+Check if creating a special file is allowedh]h+Check if creating a special file is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMyhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj0hMyubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(hXn**Parameters** ``const struct path *dir`` parent directory ``struct dentry *dentry`` new file ``umode_t mode`` new file mode ``unsigned int dev`` device number **Description** Check permissions when creating a file. Note that this hook is called even if mknod operation is being done for a regular file. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hj(h]h Parameters}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj&ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM}hj"ubjH)}(hhh](jM)}(h,``const struct path *dir`` parent directory h](jS)}(h``const struct path *dir``h]h)}(hjGh]hconst struct path *dir}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMzhjAubjm)}(hhh]h)}(hparent directoryh]hparent directory}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMzhj]ubah}(h]h ]h"]h$]h&]uh1jlhjAubeh}(h]h ]h"]h$]h&]uh1jLhj\hMzhj>ubjM)}(h#``struct dentry *dentry`` new file h](jS)}(h``struct dentry *dentry``h]h)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM{hjzubjm)}(hhh]h)}(hnew fileh]hnew file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM{hjubah}(h]h ]h"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]uh1jLhjhM{hj>ubjM)}(h``umode_t mode`` new file mode h](jS)}(h``umode_t mode``h]h)}(hjh]h umode_t mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM|hjubjm)}(hhh]h)}(h new file modeh]h new file mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM|hjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhM|hj>ubjM)}(h#``unsigned int dev`` device number h](jS)}(h``unsigned int dev``h]h)}(hjh]hunsigned int dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM}hjubjm)}(hhh]h)}(h device numberh]h device number}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM}hj ubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhj hM}hj>ubeh}(h]h ]h"]h$]h&]uh1jGhj"ubh)}(h**Description**h]j2)}(hj- h]h Description}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj+ ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj"ubh)}(hCheck permissions when creating a file. Note that this hook is called even if mknod operation is being done for a regular file.h]hCheck permissions when creating a file. Note that this hook is called even if mknod operation is being done for a regular file.}(hjC hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM~hj"ubh)}(h **Return**h]j2)}(hjT h]hReturn}(hjV hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjR ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj"ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1 security_path_mkdir (C function)c.security_path_mkdirhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hUint security_path_mkdir (const struct path *dir, struct dentry *dentry, umode_t mode)h]jA)}(hTint security_path_mkdir(const struct path *dir, struct dentry *dentry, umode_t mode)h](jG)}(hinth]hint}(hj hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hj hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj hhhj hMubjj)}(hsecurity_path_mkdirh]jp)}(hsecurity_path_mkdirh]hsecurity_path_mkdir}(hj hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj hhhj hMubj)}(h=(const struct path *dir, struct dentry *dentry, umode_t mode)h](j)}(hconst struct path *dirh](jL)}(hj h]hconst}(hj hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj ubjY)}(h h]h }(hj hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubjL)}(hjOh]hstruct}(hj hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj ubjY)}(h h]h }(hj hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubh)}(hhh]jp)}(hpathh]hpath}(hj!hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj !ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj!modnameN classnameNjj)}j]j)}jj sbc.security_path_mkdirasbuh1hhj ubjY)}(h h]h }(hj/!hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubj)}(hjh]h*}(hj=!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjp)}(hdirh]hdir}(hjJ!hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(hstruct dentry *dentryh](jL)}(hjOh]hstruct}(hjc!hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj_!ubjY)}(h h]h }(hjp!hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj_!ubh)}(hhh]jp)}(hdentryh]hdentry}(hj!hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj~!ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj!modnameN classnameNjj)}j]j+!c.security_path_mkdirasbuh1hhj_!ubjY)}(h h]h }(hj!hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj_!ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_!ubjp)}(hdentryh]hdentry}(hj!hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj_!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubj)}(h umode_t modeh](h)}(hhh]jp)}(humode_th]humode_t}(hj!hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj!ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj!modnameN classnameNjj)}j]j+!c.security_path_mkdirasbuh1hhj!ubjY)}(h h]h }(hj!hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj!ubjp)}(hmodeh]hmode}(hj"hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j:hj hMhj hhubj)}(hhh]h)}(h,Check if creating a new directory is allowedh]h,Check if creating a new directory is allowed}(hj,"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj)"hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jD"j#jD"j$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``const struct path *dir`` parent directory ``struct dentry *dentry`` new directory ``umode_t mode`` new directory mode **Description** Check permissions to create a new directory in the existing directory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hjN"h]h Parameters}(hjP"hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjL"ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjH"ubjH)}(hhh](jM)}(h,``const struct path *dir`` parent directory h](jS)}(h``const struct path *dir``h]h)}(hjm"h]hconst struct path *dir}(hjo"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk"ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjg"ubjm)}(hhh]h)}(hparent directoryh]hparent directory}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jlhjg"ubeh}(h]h ]h"]h$]h&]uh1jLhj"hMhjd"ubjM)}(h(``struct dentry *dentry`` new directory h](jS)}(h``struct dentry *dentry``h]h)}(hj"h]hstruct dentry *dentry}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj"ubjm)}(hhh]h)}(h new directoryh]h new directory}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]uh1jLhj"hMhjd"ubjM)}(h$``umode_t mode`` new directory mode h](jS)}(h``umode_t mode``h]h)}(hj"h]h umode_t mode}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj"ubjm)}(hhh]h)}(hnew directory modeh]hnew directory mode}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]uh1jLhj"hMhjd"ubeh}(h]h ]h"]h$]h&]uh1jGhjH"ubh)}(h**Description**h]j2)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj#ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjH"ubh)}(hFCheck permissions to create a new directory in the existing directory.h]hFCheck permissions to create a new directory in the existing directory.}(hj0#hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjH"ubh)}(h **Return**h]j2)}(hjA#h]hReturn}(hjC#hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj?#ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjH"ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjW#hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjH"ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1!security_path_unlink (C function)c.security_path_unlinkhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hHint security_path_unlink (const struct path *dir, struct dentry *dentry)h]jA)}(hGint security_path_unlink(const struct path *dir, struct dentry *dentry)h](jG)}(hinth]hint}(hj#hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj#hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hj#hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj#hhhj#hMubjj)}(hsecurity_path_unlinkh]jp)}(hsecurity_path_unlinkh]hsecurity_path_unlink}(hj#hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj#ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj#hhhj#hMubj)}(h/(const struct path *dir, struct dentry *dentry)h](j)}(hconst struct path *dirh](jL)}(hj h]hconst}(hj#hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj#ubjY)}(h h]h }(hj#hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj#ubjL)}(hjOh]hstruct}(hj#hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj#ubjY)}(h h]h }(hj#hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj#ubh)}(hhh]jp)}(hpathh]hpath}(hj#hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj#ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj#modnameN classnameNjj)}j]j)}jj#sbc.security_path_unlinkasbuh1hhj#ubjY)}(h h]h }(hj$hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj#ubj)}(hjh]h*}(hj*$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjp)}(hdirh]hdir}(hj7$hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubj)}(hstruct dentry *dentryh](jL)}(hjOh]hstruct}(hjP$hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjL$ubjY)}(h h]h }(hj]$hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjL$ubh)}(hhh]jp)}(hdentryh]hdentry}(hjn$hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjk$ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjp$modnameN classnameNjj)}j]j$c.security_path_unlinkasbuh1hhjL$ubjY)}(h h]h }(hj$hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjL$ubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL$ubjp)}(hdentryh]hdentry}(hj$hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjL$ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubeh}(h]h ]h"]h$]h&]jjuh1jhj#hhhj#hMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj~#hhhj#hMubah}(h]jy#ah ](jjeh"]h$]h&]jj)jhuh1j:hj#hMhj{#hhubj)}(hhh]h)}(h(Check if removing a hard link is allowedh]h(Check if removing a hard link is allowed}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj$hhubah}(h]h ]h"]h$]h&]uh1jhj{#hhhj#hMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j$j#j$j$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``const struct path *dir`` parent directory ``struct dentry *dentry`` file **Description** Check the permission to remove a hard link to a file. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj$ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj$ubjH)}(hhh](jM)}(h,``const struct path *dir`` parent directory h](jS)}(h``const struct path *dir``h]h)}(hj%h]hconst struct path *dir}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj %ubjm)}(hhh]h)}(hparent directoryh]hparent directory}(hj+%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'%hMhj(%ubah}(h]h ]h"]h$]h&]uh1jlhj %ubeh}(h]h ]h"]h$]h&]uh1jLhj'%hMhj %ubjM)}(h``struct dentry *dentry`` file h](jS)}(h``struct dentry *dentry``h]h)}(hjK%h]hstruct dentry *dentry}(hjM%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjI%ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjE%ubjm)}(hhh]h)}(hfileh]hfile}(hjd%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`%hMhja%ubah}(h]h ]h"]h$]h&]uh1jlhjE%ubeh}(h]h ]h"]h$]h&]uh1jLhj`%hMhj %ubeh}(h]h ]h"]h$]h&]uh1jGhj$ubh)}(h**Description**h]j2)}(hj%h]h Description}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj%ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj$ubh)}(h5Check the permission to remove a hard link to a file.h]h5Check the permission to remove a hard link to a file.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj$ubh)}(h **Return**h]j2)}(hj%h]hReturn}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj%ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj$ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1!security_path_rename (C function)c.security_path_renamehNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hint security_path_rename (const struct path *old_dir, struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry, unsigned int flags)h]jA)}(hint security_path_rename(const struct path *old_dir, struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry, unsigned int flags)h](jG)}(hinth]hint}(hj%hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj%hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hj&hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj%hhhj&hMubjj)}(hsecurity_path_renameh]jp)}(hsecurity_path_renameh]hsecurity_path_rename}(hj&hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj%hhhj&hMubj)}(h(const struct path *old_dir, struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry, unsigned int flags)h](j)}(hconst struct path *old_dirh](jL)}(hj h]hconst}(hj/&hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj+&ubjY)}(h h]h }(hj<&hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj+&ubjL)}(hjOh]hstruct}(hjJ&hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj+&ubjY)}(h h]h }(hjW&hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj+&ubh)}(hhh]jp)}(hpathh]hpath}(hjh&hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johje&ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjj&modnameN classnameNjj)}j]j)}jj&sbc.security_path_renameasbuh1hhj+&ubjY)}(h h]h }(hj&hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj+&ubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+&ubjp)}(hold_dirh]hold_dir}(hj&hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj+&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'&ubj)}(hstruct dentry *old_dentryh](jL)}(hjOh]hstruct}(hj&hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj&ubjY)}(h h]h }(hj&hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj&ubh)}(hhh]jp)}(hdentryh]hdentry}(hj&hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj&ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj&modnameN classnameNjj)}j]j&c.security_path_renameasbuh1hhj&ubjY)}(h h]h }(hj&hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj&ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubjp)}(h old_dentryh]h old_dentry}(hj'hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj&ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'&ubj)}(hconst struct path *new_dirh](jL)}(hj h]hconst}(hj,'hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj('ubjY)}(h h]h }(hj9'hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj('ubjL)}(hjOh]hstruct}(hjG'hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj('ubjY)}(h h]h }(hjT'hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj('ubh)}(hhh]jp)}(hpathh]hpath}(hje'hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjb'ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjg'modnameN classnameNjj)}j]j&c.security_path_renameasbuh1hhj('ubjY)}(h h]h }(hj'hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj('ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj('ubjp)}(hnew_dirh]hnew_dir}(hj'hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj('ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'&ubj)}(hstruct dentry *new_dentryh](jL)}(hjOh]hstruct}(hj'hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj'ubjY)}(h h]h }(hj'hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj'ubh)}(hhh]jp)}(hdentryh]hdentry}(hj'hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj'ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj'modnameN classnameNjj)}j]j&c.security_path_renameasbuh1hhj'ubjY)}(h h]h }(hj'hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj'ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubjp)}(h new_dentryh]h new_dentry}(hj(hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'&ubj)}(hunsigned int flagsh](jG)}(hunsignedh]hunsigned}(hj'(hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj#(ubjY)}(h h]h }(hj5(hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj#(ubjG)}(hinth]hint}(hjC(hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj#(ubjY)}(h h]h }(hjQ(hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj#(ubjp)}(hflagsh]hflags}(hj_(hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj#(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj'&ubeh}(h]h ]h"]h$]h&]jjuh1jhj%hhhj&hMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj%hhhj&hMubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1j:hj&hMhj%hhubj)}(hhh]h)}(h#Check if renaming a file is allowedh]h#Check if renaming a file is allowed}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj(hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj&hMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j(j#j(j$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``const struct path *old_dir`` parent directory of the old file ``struct dentry *old_dentry`` the old file ``const struct path *new_dir`` parent directory of the new file ``struct dentry *new_dentry`` the new file ``unsigned int flags`` flags **Description** Check for permission to rename a file or directory. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj(ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj(ubjH)}(hhh](jM)}(h@``const struct path *old_dir`` parent directory of the old file h](jS)}(h``const struct path *old_dir``h]h)}(hj(h]hconst struct path *old_dir}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj(ubjm)}(hhh]h)}(h parent directory of the old fileh]h parent directory of the old file}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hMhj(ubah}(h]h ]h"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]uh1jLhj(hMhj(ubjM)}(h+``struct dentry *old_dentry`` the old file h](jS)}(h``struct dentry *old_dentry``h]h)}(hj)h]hstruct dentry *old_dentry}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj(ubjm)}(hhh]h)}(h the old fileh]h the old file}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj)ubah}(h]h ]h"]h$]h&]uh1jlhj(ubeh}(h]h ]h"]h$]h&]uh1jLhj)hMhj(ubjM)}(h@``const struct path *new_dir`` parent directory of the new file h](jS)}(h``const struct path *new_dir``h]h)}(hj<)h]hconst struct path *new_dir}(hj>)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:)ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj6)ubjm)}(hhh]h)}(h parent directory of the new fileh]h parent directory of the new file}(hjU)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQ)hMhjR)ubah}(h]h ]h"]h$]h&]uh1jlhj6)ubeh}(h]h ]h"]h$]h&]uh1jLhjQ)hMhj(ubjM)}(h+``struct dentry *new_dentry`` the new file h](jS)}(h``struct dentry *new_dentry``h]h)}(hju)h]hstruct dentry *new_dentry}(hjw)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs)ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjo)ubjm)}(hhh]h)}(h the new fileh]h the new file}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj)ubah}(h]h ]h"]h$]h&]uh1jlhjo)ubeh}(h]h ]h"]h$]h&]uh1jLhj)hMhj(ubjM)}(h``unsigned int flags`` flags h](jS)}(h``unsigned int flags``h]h)}(hj)h]hunsigned int flags}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj)ubjm)}(hhh]h)}(hflagsh]hflags}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj)ubah}(h]h ]h"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]uh1jLhj)hMhj(ubeh}(h]h ]h"]h$]h&]uh1jGhj(ubh)}(h**Description**h]j2)}(hj)h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj)ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj(ubh)}(h3Check for permission to rename a file or directory.h]h3Check for permission to rename a file or directory.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj(ubh)}(h **Return**h]j2)}(hj*h]hReturn}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj*ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj(ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj&*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1"security_inode_create (C function)c.security_inode_createhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hRint security_inode_create (struct inode *dir, struct dentry *dentry, umode_t mode)h]jA)}(hQint security_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode)h](jG)}(hinth]hint}(hjU*hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjQ*hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMPubjY)}(h h]h }(hjd*hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjQ*hhhjc*hMPubjj)}(hsecurity_inode_createh]jp)}(hsecurity_inode_createh]hsecurity_inode_create}(hjv*hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjr*ubah}(h]h ](jjeh"]h$]h&]jjuh1jihjQ*hhhjc*hMPubj)}(h8(struct inode *dir, struct dentry *dentry, umode_t mode)h](j)}(hstruct inode *dirh](jL)}(hjOh]hstruct}(hj*hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj*ubjY)}(h h]h }(hj*hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj*ubh)}(hhh]jp)}(hinodeh]hinode}(hj*hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj*ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj*modnameN classnameNjj)}j]j)}jjx*sbc.security_inode_createasbuh1hhj*ubjY)}(h h]h }(hj*hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj*ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjp)}(hdirh]hdir}(hj*hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(hstruct dentry *dentryh](jL)}(hjOh]hstruct}(hj+hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj+ubjY)}(h h]h }(hj+hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj+ubh)}(hhh]jp)}(hdentryh]hdentry}(hj"+hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj+ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj$+modnameN classnameNjj)}j]j*c.security_inode_createasbuh1hhj+ubjY)}(h h]h }(hj@+hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj+ubj)}(hjh]h*}(hjN+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjp)}(hdentryh]hdentry}(hj[+hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubj)}(h umode_t modeh](h)}(hhh]jp)}(humode_th]humode_t}(hjw+hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjt+ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjy+modnameN classnameNjj)}j]j*c.security_inode_createasbuh1hhjp+ubjY)}(h h]h }(hj+hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjp+ubjp)}(hmodeh]hmode}(hj+hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjp+ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubeh}(h]h ]h"]h$]h&]jjuh1jhjQ*hhhjc*hMPubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjM*hhhjc*hMPubah}(h]jH*ah ](jjeh"]h$]h&]jj)jhuh1j:hjc*hMPhjJ*hhubj)}(hhh]h)}(h#Check if creating a file is allowedh]h#Check if creating a file is allowed}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMPhj+hhubah}(h]h ]h"]h$]h&]uh1jhjJ*hhhjc*hMPubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j+j#j+j$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct inode *dir`` the parent directory ``struct dentry *dentry`` the file being created ``umode_t mode`` requested file mode **Description** Check permission to create a regular file. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hj+h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj+ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMThj+ubjH)}(hhh](jM)}(h+``struct inode *dir`` the parent directory h](jS)}(h``struct inode *dir``h]h)}(hj,h]hstruct inode *dir}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ,ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMQhj,ubjm)}(hhh]h)}(hthe parent directoryh]hthe parent directory}(hj',hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#,hMQhj$,ubah}(h]h ]h"]h$]h&]uh1jlhj,ubeh}(h]h ]h"]h$]h&]uh1jLhj#,hMQhj,ubjM)}(h1``struct dentry *dentry`` the file being created h](jS)}(h``struct dentry *dentry``h]h)}(hjG,h]hstruct dentry *dentry}(hjI,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjE,ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMRhjA,ubjm)}(hhh]h)}(hthe file being createdh]hthe file being created}(hj`,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\,hMRhj],ubah}(h]h ]h"]h$]h&]uh1jlhjA,ubeh}(h]h ]h"]h$]h&]uh1jLhj\,hMRhj,ubjM)}(h%``umode_t mode`` requested file mode h](jS)}(h``umode_t mode``h]h)}(hj,h]h umode_t mode}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~,ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMShjz,ubjm)}(hhh]h)}(hrequested file modeh]hrequested file mode}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMShj,ubah}(h]h ]h"]h$]h&]uh1jlhjz,ubeh}(h]h ]h"]h$]h&]uh1jLhj,hMShj,ubeh}(h]h ]h"]h$]h&]uh1jGhj+ubh)}(h**Description**h]j2)}(hj,h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj,ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMUhj+ubh)}(h*Check permission to create a regular file.h]h*Check permission to create a regular file.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMThj+ubh)}(h **Return**h]j2)}(hj,h]hReturn}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj,ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMVhj+ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMWhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1!security_inode_mkdir (C function)c.security_inode_mkdirhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hQint security_inode_mkdir (struct inode *dir, struct dentry *dentry, umode_t mode)h]jA)}(hPint security_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)h](jG)}(hinth]hint}(hj'-hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj#-hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hj6-hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj#-hhhj5-hMubjj)}(hsecurity_inode_mkdirh]jp)}(hsecurity_inode_mkdirh]hsecurity_inode_mkdir}(hjH-hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjD-ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj#-hhhj5-hMubj)}(h8(struct inode *dir, struct dentry *dentry, umode_t mode)h](j)}(hstruct inode *dirh](jL)}(hjOh]hstruct}(hjd-hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj`-ubjY)}(h h]h }(hjq-hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj`-ubh)}(hhh]jp)}(hinodeh]hinode}(hj-hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj-ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj-modnameN classnameNjj)}j]j)}jjJ-sbc.security_inode_mkdirasbuh1hhj`-ubjY)}(h h]h }(hj-hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj`-ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`-ubjp)}(hdirh]hdir}(hj-hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj`-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\-ubj)}(hstruct dentry *dentryh](jL)}(hjOh]hstruct}(hj-hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj-ubjY)}(h h]h }(hj-hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj-ubh)}(hhh]jp)}(hdentryh]hdentry}(hj-hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj-ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj-modnameN classnameNjj)}j]j-c.security_inode_mkdirasbuh1hhj-ubjY)}(h h]h }(hj.hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj-ubj)}(hjh]h*}(hj .hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjp)}(hdentryh]hdentry}(hj-.hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\-ubj)}(h umode_t modeh](h)}(hhh]jp)}(humode_th]humode_t}(hjI.hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjF.ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjK.modnameN classnameNjj)}j]j-c.security_inode_mkdirasbuh1hhjB.ubjY)}(h h]h }(hjg.hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjB.ubjp)}(hmodeh]hmode}(hju.hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjB.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\-ubeh}(h]h ]h"]h$]h&]jjuh1jhj#-hhhj5-hMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj-hhhj5-hMubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1j:hj5-hMhj-hhubj)}(hhh]h)}(h,Check if creating a new directory is allowedh]h,Check if creating a new directory is allowed}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj.hhubah}(h]h ]h"]h$]h&]uh1jhj-hhhj5-hMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j.j#j.j$j%j&uh1j5hhhhhNhNubj()}(hX<**Parameters** ``struct inode *dir`` parent directory ``struct dentry *dentry`` new directory ``umode_t mode`` new directory mode **Description** Check permissions to create a new directory in the existing directory associated with inode structure **dir**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hj.h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj.ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj.ubjH)}(hhh](jM)}(h'``struct inode *dir`` parent directory h](jS)}(h``struct inode *dir``h]h)}(hj.h]hstruct inode *dir}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj.ubjm)}(hhh]h)}(hparent directoryh]hparent directory}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj.ubah}(h]h ]h"]h$]h&]uh1jlhj.ubeh}(h]h ]h"]h$]h&]uh1jLhj.hMhj.ubjM)}(h(``struct dentry *dentry`` new directory h](jS)}(h``struct dentry *dentry``h]h)}(hj/h]hstruct dentry *dentry}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj/ubjm)}(hhh]h)}(h new directoryh]h new directory}(hj2/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj./hMhj//ubah}(h]h ]h"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]uh1jLhj./hMhj.ubjM)}(h$``umode_t mode`` new directory mode h](jS)}(h``umode_t mode``h]h)}(hjR/h]h umode_t mode}(hjT/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjP/ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjL/ubjm)}(hhh]h)}(hnew directory modeh]hnew directory mode}(hjk/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjg/hMhjh/ubah}(h]h ]h"]h$]h&]uh1jlhjL/ubeh}(h]h ]h"]h$]h&]uh1jLhjg/hMhj.ubeh}(h]h ]h"]h$]h&]uh1jGhj.ubh)}(h**Description**h]j2)}(hj/h]h Description}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj/ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj.ubh)}(hnCheck permissions to create a new directory in the existing directory associated with inode structure **dir**.h](hfCheck permissions to create a new directory in the existing directory associated with inode structure }(hj/hhhNhNubj2)}(h**dir**h]hdir}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj/ubh.}(hj/hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj.ubh)}(h **Return**h]j2)}(hj/h]hReturn}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj/ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj.ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj.ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1#security_inode_setattr (C function)c.security_inode_setattrhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h_int security_inode_setattr (struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr)h]jA)}(h^int security_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr)h](jG)}(hinth]hint}(hj 0hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj0hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM6ubjY)}(h h]h }(hj0hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj0hhhj0hM6ubjj)}(hsecurity_inode_setattrh]jp)}(hsecurity_inode_setattrh]hsecurity_inode_setattr}(hj,0hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj(0ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj0hhhj0hM6ubj)}(hD(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr)h](j)}(hstruct mnt_idmap *idmaph](jL)}(hjOh]hstruct}(hjH0hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjD0ubjY)}(h h]h }(hjU0hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjD0ubh)}(hhh]jp)}(h mnt_idmaph]h mnt_idmap}(hjf0hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjc0ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjh0modnameN classnameNjj)}j]j)}jj.0sbc.security_inode_setattrasbuh1hhjD0ubjY)}(h h]h }(hj0hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjD0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjD0ubjp)}(hidmaph]hidmap}(hj0hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjD0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@0ubj)}(hstruct dentry *dentryh](jL)}(hjOh]hstruct}(hj0hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj0ubjY)}(h h]h }(hj0hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj0ubh)}(hhh]jp)}(hdentryh]hdentry}(hj0hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj0ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj0modnameN classnameNjj)}j]j0c.security_inode_setattrasbuh1hhj0ubjY)}(h h]h }(hj0hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj0ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjp)}(hdentryh]hdentry}(hj1hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@0ubj)}(hstruct iattr *attrh](jL)}(hjOh]hstruct}(hj*1hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj&1ubjY)}(h h]h }(hj71hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj&1ubh)}(hhh]jp)}(hiattrh]hiattr}(hjH1hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjE1ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjJ1modnameN classnameNjj)}j]j0c.security_inode_setattrasbuh1hhj&1ubjY)}(h h]h }(hjf1hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj&1ubj)}(hjh]h*}(hjt1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&1ubjp)}(hattrh]hattr}(hj1hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj&1ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@0ubeh}(h]h ]h"]h$]h&]jjuh1jhj0hhhj0hM6ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj0hhhj0hM6ubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1j:hj0hM6hj0hhubj)}(hhh]h)}(h+Check if setting file attributes is allowedh]h+Check if setting file attributes is allowed}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM6hj1hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj0hM6ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j1j#j1j$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct mnt_idmap *idmap`` idmap of the mount ``struct dentry *dentry`` file ``struct iattr *attr`` new attributes **Description** Check permission before setting file attributes. Note that the kernel call to notify_change is performed from several locations, whenever file attributes change (such as when a file is truncated, chown/chmod operations, transferring disk quotas, etc). **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj1ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM:hj1ubjH)}(hhh](jM)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](jS)}(h``struct mnt_idmap *idmap``h]h)}(hj1h]hstruct mnt_idmap *idmap}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM7hj1ubjm)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2hM7hj2ubah}(h]h ]h"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]uh1jLhj2hM7hj1ubjM)}(h``struct dentry *dentry`` file h](jS)}(h``struct dentry *dentry``h]h)}(hj%2h]hstruct dentry *dentry}(hj'2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#2ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM8hj2ubjm)}(hhh]h)}(hfileh]hfile}(hj>2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:2hM8hj;2ubah}(h]h ]h"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]uh1jLhj:2hM8hj1ubjM)}(h&``struct iattr *attr`` new attributes h](jS)}(h``struct iattr *attr``h]h)}(hj^2h]hstruct iattr *attr}(hj`2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\2ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM9hjX2ubjm)}(hhh]h)}(hnew attributesh]hnew attributes}(hjw2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjs2hM9hjt2ubah}(h]h ]h"]h$]h&]uh1jlhjX2ubeh}(h]h ]h"]h$]h&]uh1jLhjs2hM9hj1ubeh}(h]h ]h"]h$]h&]uh1jGhj1ubh)}(h**Description**h]j2)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj2ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM;hj1ubh)}(hCheck permission before setting file attributes. Note that the kernel call to notify_change is performed from several locations, whenever file attributes change (such as when a file is truncated, chown/chmod operations, transferring disk quotas, etc).h]hCheck permission before setting file attributes. Note that the kernel call to notify_change is performed from several locations, whenever file attributes change (such as when a file is truncated, chown/chmod operations, transferring disk quotas, etc).}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM:hj1ubh)}(h **Return**h]j2)}(hj2h]hReturn}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj2ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM?hj1ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM@hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1(security_inode_listsecurity (C function)c.security_inode_listsecurityhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h]int security_inode_listsecurity (struct inode *inode, char **buffer, ssize_t *remaining_size)h]jA)}(h\int security_inode_listsecurity(struct inode *inode, char **buffer, ssize_t *remaining_size)h](jG)}(hinth]hint}(hj3hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj3hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hj3hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj3hhhj3hMubjj)}(hsecurity_inode_listsecurityh]jp)}(hsecurity_inode_listsecurityh]hsecurity_inode_listsecurity}(hj&3hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj"3ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj3hhhj3hMubj)}(h=(struct inode *inode, char **buffer, ssize_t *remaining_size)h](j)}(hstruct inode *inodeh](jL)}(hjOh]hstruct}(hjB3hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj>3ubjY)}(h h]h }(hjO3hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj>3ubh)}(hhh]jp)}(hinodeh]hinode}(hj`3hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj]3ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjb3modnameN classnameNjj)}j]j)}jj(3sbc.security_inode_listsecurityasbuh1hhj>3ubjY)}(h h]h }(hj3hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj>3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>3ubjp)}(hinodeh]hinode}(hj3hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj>3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:3ubj)}(h char **bufferh](jG)}(hcharh]hchar}(hj3hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj3ubjY)}(h h]h }(hj3hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjp)}(hbufferh]hbuffer}(hj3hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:3ubj)}(hssize_t *remaining_sizeh](h)}(hhh]jp)}(hssize_th]hssize_t}(hj4hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj4ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj4modnameN classnameNjj)}j]j|3c.security_inode_listsecurityasbuh1hhj3ubjY)}(h h]h }(hj$4hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj3ubj)}(hjh]h*}(hj24hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubjp)}(hremaining_sizeh]hremaining_size}(hj?4hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:3ubeh}(h]h ]h"]h$]h&]jjuh1jhj3hhhj3hMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj2hhhj3hMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1j:hj3hMhj2hhubj)}(hhh]h)}(h#List the xattr security label namesh]h#List the xattr security label names}(hji4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjf4hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj3hMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j4j#j4j$j%j&uh1j5hhhhhNhNubj()}(hX **Parameters** ``struct inode *inode`` inode ``char **buffer`` pointer to buffer ``ssize_t *remaining_size`` pointer to remaining size of buffer **Description** Copy the extended attribute names for the security labels associated with **inode** into *(**buffer**). The remaining size of **buffer** is specified by *(**remaining_size**). *(**buffer**) may be NULL to request the size of the buffer required. Updates *(**buffer**) and *(**remaining_size**). **Return** Returns 0 on success, or -errno on failure.h](h)}(h**Parameters**h]j2)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj4ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj4ubjH)}(hhh](jM)}(h``struct inode *inode`` inode h](jS)}(h``struct inode *inode``h]h)}(hj4h]hstruct inode *inode}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj4ubjm)}(hhh]h)}(hinodeh]hinode}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]uh1jLhj4hMhj4ubjM)}(h$``char **buffer`` pointer to buffer h](jS)}(h``char **buffer``h]h)}(hj4h]h char **buffer}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj4ubjm)}(hhh]h)}(hpointer to bufferh]hpointer to buffer}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]uh1jLhj4hMhj4ubjM)}(h@``ssize_t *remaining_size`` pointer to remaining size of buffer h](jS)}(h``ssize_t *remaining_size``h]h)}(hj5h]hssize_t *remaining_size}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj5ubjm)}(hhh]h)}(h#pointer to remaining size of bufferh]h#pointer to remaining size of buffer}(hj55hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj15hMhj25ubah}(h]h ]h"]h$]h&]uh1jlhj5ubeh}(h]h ]h"]h$]h&]uh1jLhj15hMhj4ubeh}(h]h ]h"]h$]h&]uh1jGhj4ubh)}(h**Description**h]j2)}(hjW5h]h Description}(hjY5hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjU5ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj4ubh)}(hX(Copy the extended attribute names for the security labels associated with **inode** into *(**buffer**). The remaining size of **buffer** is specified by *(**remaining_size**). *(**buffer**) may be NULL to request the size of the buffer required. Updates *(**buffer**) and *(**remaining_size**).h](hJCopy the extended attribute names for the security labels associated with }(hjm5hhhNhNubj2)}(h **inode**h]hinode}(hju5hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjm5ubh into }(hjm5hhhNhNubhemphasis)}(h *(**buffer**h]h (**buffer*}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j5hjm5ubh). The remaining size of }(hjm5hhhNhNubj2)}(h **buffer**h]hbuffer}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjm5ubh is specified by }(hjm5hhhNhNubj5)}(h*(**remaining_size**h]h(**remaining_size*}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j5hjm5ubh). }(hjm5hhhNhNubj5)}(h *(**buffer**h]h (**buffer*}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j5hjm5ubhB) may be NULL to request the size of the buffer required. Updates }(hjm5hhhNhNubj5)}(h *(**buffer**h]h (**buffer*}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j5hjm5ubh) and }(hjm5hhhNhNubj5)}(h*(**remaining_size**h]h(**remaining_size*}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j5hjm5ubh).}(hjm5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj4ubh)}(h **Return**h]j2)}(hj5h]hReturn}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj5ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj4ubh)}(h+Returns 0 on success, or -errno on failure.h]h+Returns 0 on success, or -errno on failure.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1#security_inode_copy_up (C function)c.security_inode_copy_uphNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hBint security_inode_copy_up (struct dentry *src, struct cred **new)h]jA)}(hAint security_inode_copy_up(struct dentry *src, struct cred **new)h](jG)}(hinth]hint}(hjC6hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj?6hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjR6hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj?6hhhjQ6hMubjj)}(hsecurity_inode_copy_uph]jp)}(hsecurity_inode_copy_uph]hsecurity_inode_copy_up}(hjd6hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj`6ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj?6hhhjQ6hMubj)}(h'(struct dentry *src, struct cred **new)h](j)}(hstruct dentry *srch](jL)}(hjOh]hstruct}(hj6hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj|6ubjY)}(h h]h }(hj6hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj|6ubh)}(hhh]jp)}(hdentryh]hdentry}(hj6hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj6ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6modnameN classnameNjj)}j]j)}jjf6sbc.security_inode_copy_upasbuh1hhj|6ubjY)}(h h]h }(hj6hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj|6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|6ubjp)}(hsrch]hsrc}(hj6hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj|6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx6ubj)}(hstruct cred **newh](jL)}(hjOh]hstruct}(hj6hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj6ubjY)}(h h]h }(hj6hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj6ubh)}(hhh]jp)}(hcredh]hcred}(hj7hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj 7ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj7modnameN classnameNjj)}j]j6c.security_inode_copy_upasbuh1hhj6ubjY)}(h h]h }(hj.7hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj6ubj)}(hjh]h*}(hj<7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hjI7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjp)}(hnewh]hnew}(hjV7hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjx6ubeh}(h]h ]h"]h$]h&]jjuh1jhj?6hhhjQ6hMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj;6hhhjQ6hMubah}(h]j66ah ](jjeh"]h$]h&]jj)jhuh1j:hjQ6hMhj86hhubj)}(hhh]h)}(h,Create new creds for an overlayfs copy-up oph]h,Create new creds for an overlayfs copy-up op}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj}7hhubah}(h]h ]h"]h$]h&]uh1jhj86hhhjQ6hMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j7j#j7j$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct dentry *src`` union dentry of copy-up file ``struct cred **new`` newly created creds **Description** A file is about to be copied up from lower layer to upper layer of overlay filesystem. Security module can prepare a set of new creds and modify as need be and return new creds. Caller will switch to new creds temporarily to create new file and release newly allocated creds. **Return** Returns 0 on success or a negative error code on error.h](h)}(h**Parameters**h]j2)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj7ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj7ubjH)}(hhh](jM)}(h4``struct dentry *src`` union dentry of copy-up file h](jS)}(h``struct dentry *src``h]h)}(hj7h]hstruct dentry *src}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj7ubjm)}(hhh]h)}(hunion dentry of copy-up fileh]hunion dentry of copy-up file}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]uh1jLhj7hMhj7ubjM)}(h*``struct cred **new`` newly created creds h](jS)}(h``struct cred **new``h]h)}(hj7h]hstruct cred **new}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj7ubjm)}(hhh]h)}(hnewly created credsh]hnewly created creds}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj8ubah}(h]h ]h"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]uh1jLhj8hMhj7ubeh}(h]h ]h"]h$]h&]uh1jGhj7ubh)}(h**Description**h]j2)}(hj58h]h Description}(hj78hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj38ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj7ubh)}(hXA file is about to be copied up from lower layer to upper layer of overlay filesystem. Security module can prepare a set of new creds and modify as need be and return new creds. Caller will switch to new creds temporarily to create new file and release newly allocated creds.h]hXA file is about to be copied up from lower layer to upper layer of overlay filesystem. Security module can prepare a set of new creds and modify as need be and return new creds. Caller will switch to new creds temporarily to create new file and release newly allocated creds.}(hjK8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj7ubh)}(h **Return**h]j2)}(hj\8h]hReturn}(hj^8hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjZ8ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj7ubh)}(h7Returns 0 on success or a negative error code on error.h]h7Returns 0 on success or a negative error code on error.}(hjr8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1)security_inode_copy_up_xattr (C function)c.security_inode_copy_up_xattrhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hGint security_inode_copy_up_xattr (struct dentry *src, const char *name)h]jA)}(hFint security_inode_copy_up_xattr(struct dentry *src, const char *name)h](jG)}(hinth]hint}(hj8hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj8hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjY)}(h h]h }(hj8hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj8hhhj8hM ubjj)}(hsecurity_inode_copy_up_xattrh]jp)}(hsecurity_inode_copy_up_xattrh]hsecurity_inode_copy_up_xattr}(hj8hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj8ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj8hhhj8hM ubj)}(h&(struct dentry *src, const char *name)h](j)}(hstruct dentry *srch](jL)}(hjOh]hstruct}(hj8hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj8ubjY)}(h h]h }(hj8hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj8ubh)}(hhh]jp)}(hdentryh]hdentry}(hj8hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj8ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj8modnameN classnameNjj)}j]j)}jj8sbc.security_inode_copy_up_xattrasbuh1hhj8ubjY)}(h h]h }(hj9hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj8ubj)}(hjh]h*}(hj*9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjp)}(hsrch]hsrc}(hj79hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(hconst char *nameh](jL)}(hj h]hconst}(hjP9hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjL9ubjY)}(h h]h }(hj]9hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjL9ubjG)}(hcharh]hchar}(hjk9hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjL9ubjY)}(h h]h }(hjy9hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjL9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL9ubjp)}(hnameh]hname}(hj9hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjL9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubeh}(h]h ]h"]h$]h&]jjuh1jhj8hhhj8hM ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj8hhhj8hM ubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1j:hj8hM hj8hhubj)}(hhh]h)}(h(Filter xattrs in an overlayfs copy-up oph]h(Filter xattrs in an overlayfs copy-up op}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj9hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hM ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j9j#j9j$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct dentry *src`` union dentry of copy-up file ``const char *name`` xattr name **Description** Filter the xattrs being copied up when a unioned file is copied up from a lower layer to the union/overlay layer. The caller is responsible for reading and writing the xattrs, this hook is merely a filter. **Return** Returns 0 to accept the xattr, -ECANCELED to discard the xattr, -EOPNOTSUPP if the security module does not know about attribute, or a negative error code to abort the copy up.h](h)}(h**Parameters**h]j2)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj9ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj9ubjH)}(hhh](jM)}(h4``struct dentry *src`` union dentry of copy-up file h](jS)}(h``struct dentry *src``h]h)}(hj9h]hstruct dentry *src}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj9ubjm)}(hhh]h)}(hunion dentry of copy-up fileh]hunion dentry of copy-up file}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hM hj:ubah}(h]h ]h"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]uh1jLhj:hM hj9ubjM)}(h ``const char *name`` xattr name h](jS)}(h``const char *name``h]h)}(hj8:h]hconst char *name}(hj::hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6:ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj2:ubjm)}(hhh]h)}(h xattr nameh]h xattr name}(hjQ:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM:hM hjN:ubah}(h]h ]h"]h$]h&]uh1jlhj2:ubeh}(h]h ]h"]h$]h&]uh1jLhjM:hM hj9ubeh}(h]h ]h"]h$]h&]uh1jGhj9ubh)}(h**Description**h]j2)}(hjs:h]h Description}(hju:hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjq:ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj9ubh)}(hFilter the xattrs being copied up when a unioned file is copied up from a lower layer to the union/overlay layer. The caller is responsible for reading and writing the xattrs, this hook is merely a filter.h]hFilter the xattrs being copied up when a unioned file is copied up from a lower layer to the union/overlay layer. The caller is responsible for reading and writing the xattrs, this hook is merely a filter.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj9ubh)}(h **Return**h]j2)}(hj:h]hReturn}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj:ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj9ubh)}(hReturns 0 to accept the xattr, -ECANCELED to discard the xattr, -EOPNOTSUPP if the security module does not know about attribute, or a negative error code to abort the copy up.h]hReturns 0 to accept the xattr, -ECANCELED to discard the xattr, -EOPNOTSUPP if the security module does not know about attribute, or a negative error code to abort the copy up.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1(security_inode_setintegrity (C function)c.security_inode_setintegrityhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hyint security_inode_setintegrity (const struct inode *inode, enum lsm_integrity_type type, const void *value, size_t size)h]jA)}(hxint security_inode_setintegrity(const struct inode *inode, enum lsm_integrity_type type, const void *value, size_t size)h](jG)}(hinth]hint}(hj:hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj:hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjY)}(h h]h }(hj:hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj:hhhj:hM ubjj)}(hsecurity_inode_setintegrityh]jp)}(hsecurity_inode_setintegrityh]hsecurity_inode_setintegrity}(hj;hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj:hhhj:hM ubj)}(hY(const struct inode *inode, enum lsm_integrity_type type, const void *value, size_t size)h](j)}(hconst struct inode *inodeh](jL)}(hj h]hconst}(hj;hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj;ubjY)}(h h]h }(hj);hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj;ubjL)}(hjOh]hstruct}(hj7;hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj;ubjY)}(h h]h }(hjD;hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj;ubh)}(hhh]jp)}(hinodeh]hinode}(hjU;hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjR;ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjW;modnameN classnameNjj)}j]j)}jj;sbc.security_inode_setintegrityasbuh1hhj;ubjY)}(h h]h }(hju;hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjp)}(hinodeh]hinode}(hj;hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(henum lsm_integrity_type typeh](jL)}(henumh]henum}(hj;hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj;ubjY)}(h h]h }(hj;hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj;ubh)}(hhh]jp)}(hlsm_integrity_typeh]hlsm_integrity_type}(hj;hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj;ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj;modnameN classnameNjj)}j]jq;c.security_inode_setintegrityasbuh1hhj;ubjY)}(h h]h }(hj;hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj;ubjp)}(htypeh]htype}(hj;hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(hconst void *valueh](jL)}(hj h]hconst}(hj <hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj <ubjY)}(h h]h }(hj<hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj <ubjG)}(hvoidh]hvoid}(hj(<hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj <ubjY)}(h h]h }(hj6<hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj <ubj)}(hjh]h*}(hjD<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj <ubjp)}(hvalueh]hvalue}(hjQ<hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj <ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubj)}(h size_t sizeh](h)}(hhh]jp)}(hsize_th]hsize_t}(hjm<hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjj<ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjo<modnameN classnameNjj)}j]jq;c.security_inode_setintegrityasbuh1hhjf<ubjY)}(h h]h }(hj<hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjf<ubjp)}(hsizeh]hsize}(hj<hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjf<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubeh}(h]h ]h"]h$]h&]jjuh1jhj:hhhj:hM ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj:hhhj:hM ubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1j:hj:hM hj:hhubj)}(hhh]h)}(hSet the inode's integrity datah]h Set the inode’s integrity data}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj<hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj:hM ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j<j#j<j$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``const struct inode *inode`` inode ``enum lsm_integrity_type type`` type of integrity, e.g. hash digest, signature, etc ``const void *value`` the integrity value ``size_t size`` size of the integrity value **Description** Register a verified integrity measurement of a inode with LSMs. LSMs should free the previously saved data if **value** is NULL. **Return** Returns 0 on success, negative values on failure.h](h)}(h**Parameters**h]j2)}(hj<h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj<ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM$ hj<ubjH)}(hhh](jM)}(h$``const struct inode *inode`` inode h](jS)}(h``const struct inode *inode``h]h)}(hj=h]hconst struct inode *inode}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM! hj<ubjm)}(hhh]h)}(hinodeh]hinode}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hM! hj=ubah}(h]h ]h"]h$]h&]uh1jlhj<ubeh}(h]h ]h"]h$]h&]uh1jLhj=hM! hj<ubjM)}(hU``enum lsm_integrity_type type`` type of integrity, e.g. hash digest, signature, etc h](jS)}(h ``enum lsm_integrity_type type``h]h)}(hj==h]henum lsm_integrity_type type}(hj?=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;=ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM" hj7=ubjm)}(hhh]h)}(h3type of integrity, e.g. hash digest, signature, etch]h3type of integrity, e.g. hash digest, signature, etc}(hjV=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjR=hM" hjS=ubah}(h]h ]h"]h$]h&]uh1jlhj7=ubeh}(h]h ]h"]h$]h&]uh1jLhjR=hM" hj<ubjM)}(h*``const void *value`` the integrity value h](jS)}(h``const void *value``h]h)}(hjv=h]hconst void *value}(hjx=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjt=ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM# hjp=ubjm)}(hhh]h)}(hthe integrity valueh]hthe integrity value}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hM# hj=ubah}(h]h ]h"]h$]h&]uh1jlhjp=ubeh}(h]h ]h"]h$]h&]uh1jLhj=hM# hj<ubjM)}(h,``size_t size`` size of the integrity value h](jS)}(h``size_t size``h]h)}(hj=h]h size_t size}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM$ hj=ubjm)}(hhh]h)}(hsize of the integrity valueh]hsize of the integrity value}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hM$ hj=ubah}(h]h ]h"]h$]h&]uh1jlhj=ubeh}(h]h ]h"]h$]h&]uh1jLhj=hM$ hj<ubeh}(h]h ]h"]h$]h&]uh1jGhj<ubh)}(h**Description**h]j2)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj=ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM& hj<ubh)}(hRegister a verified integrity measurement of a inode with LSMs. LSMs should free the previously saved data if **value** is NULL.h](hnRegister a verified integrity measurement of a inode with LSMs. LSMs should free the previously saved data if }(hj>hhhNhNubj2)}(h **value**h]hvalue}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj>ubh is NULL.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM% hj<ubh)}(h **Return**h]j2)}(hj#>h]hReturn}(hj%>hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj!>ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM( hj<ubh)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(hj9>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM) hj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1 security_file_ioctl (C function)c.security_file_ioctlhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hPint security_file_ioctl (struct file *file, unsigned int cmd, unsigned long arg)h]jA)}(hOint security_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg)h](jG)}(hinth]hint}(hjh>hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjd>hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjY)}(h h]h }(hjw>hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjd>hhhjv>hM ubjj)}(hsecurity_file_ioctlh]jp)}(hsecurity_file_ioctlh]hsecurity_file_ioctl}(hj>hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj>ubah}(h]h ](jjeh"]h$]h&]jjuh1jihjd>hhhjv>hM ubj)}(h8(struct file *file, unsigned int cmd, unsigned long arg)h](j)}(hstruct file *fileh](jL)}(hjOh]hstruct}(hj>hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj>ubjY)}(h h]h }(hj>hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj>ubh)}(hhh]jp)}(hfileh]hfile}(hj>hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj>ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj>modnameN classnameNjj)}j]j)}jj>sbc.security_file_ioctlasbuh1hhj>ubjY)}(h h]h }(hj>hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjp)}(hfileh]hfile}(hj>hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(hunsigned int cmdh](jG)}(hunsignedh]hunsigned}(hj?hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj?ubjY)}(h h]h }(hj%?hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj?ubjG)}(hinth]hint}(hj3?hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj?ubjY)}(h h]h }(hjA?hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj?ubjp)}(hcmdh]hcmd}(hjO?hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubj)}(hunsigned long argh](jG)}(hunsignedh]hunsigned}(hjh?hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjd?ubjY)}(h h]h }(hjv?hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjd?ubjG)}(hlongh]hlong}(hj?hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjd?ubjY)}(h h]h }(hj?hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjd?ubjp)}(hargh]harg}(hj?hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjd?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubeh}(h]h ]h"]h$]h&]jjuh1jhjd>hhhjv>hM ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj`>hhhjv>hM ubah}(h]j[>ah ](jjeh"]h$]h&]jj)jhuh1j:hjv>hM hj]>hhubj)}(hhh]h)}(hCheck if an ioctl is allowedh]hCheck if an ioctl is allowed}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj?hhubah}(h]h ]h"]h$]h&]uh1jhj]>hhhjv>hM ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j?j#j?j$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct file *file`` associated file ``unsigned int cmd`` ioctl cmd ``unsigned long arg`` ioctl arguments **Description** Check permission for an ioctl operation on **file**. Note that **arg** sometimes represents a user space pointer; in other cases, it may be a simple integer value. When **arg** represents a user space pointer, it should never be used by the security module. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hj?h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj?ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj?ubjH)}(hhh](jM)}(h&``struct file *file`` associated file h](jS)}(h``struct file *file``h]h)}(hj @h]hstruct file *file}(hj @hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj @ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj@ubjm)}(hhh]h)}(hassociated fileh]hassociated file}(hj$@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj @hM hj!@ubah}(h]h ]h"]h$]h&]uh1jlhj@ubeh}(h]h ]h"]h$]h&]uh1jLhj @hM hj@ubjM)}(h``unsigned int cmd`` ioctl cmd h](jS)}(h``unsigned int cmd``h]h)}(hjD@h]hunsigned int cmd}(hjF@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjB@ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj>@ubjm)}(hhh]h)}(h ioctl cmdh]h ioctl cmd}(hj]@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY@hM hjZ@ubah}(h]h ]h"]h$]h&]uh1jlhj>@ubeh}(h]h ]h"]h$]h&]uh1jLhjY@hM hj@ubjM)}(h&``unsigned long arg`` ioctl arguments h](jS)}(h``unsigned long arg``h]h)}(hj}@h]hunsigned long arg}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{@ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjw@ubjm)}(hhh]h)}(hioctl argumentsh]hioctl arguments}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hM hj@ubah}(h]h ]h"]h$]h&]uh1jlhjw@ubeh}(h]h ]h"]h$]h&]uh1jLhj@hM hj@ubeh}(h]h ]h"]h$]h&]uh1jGhj?ubh)}(h**Description**h]j2)}(hj@h]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj@ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj?ubh)}(hXCheck permission for an ioctl operation on **file**. Note that **arg** sometimes represents a user space pointer; in other cases, it may be a simple integer value. When **arg** represents a user space pointer, it should never be used by the security module.h](h+Check permission for an ioctl operation on }(hj@hhhNhNubj2)}(h**file**h]hfile}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj@ubh . Note that }(hj@hhhNhNubj2)}(h**arg**h]harg}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj@ubhd sometimes represents a user space pointer; in other cases, it may be a simple integer value. When }(hj@hhhNhNubj2)}(h**arg**h]harg}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj@ubhQ represents a user space pointer, it should never be used by the security module.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj?ubh)}(h **Return**h]j2)}(hjAh]hReturn}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjAubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj?ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj+AhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1'security_file_ioctl_compat (C function)c.security_file_ioctl_compathNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hWint security_file_ioctl_compat (struct file *file, unsigned int cmd, unsigned long arg)h]jA)}(hVint security_file_ioctl_compat(struct file *file, unsigned int cmd, unsigned long arg)h](jG)}(hinth]hint}(hjZAhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjVAhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjY)}(h h]h }(hjiAhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjVAhhhjhAhM ubjj)}(hsecurity_file_ioctl_compath]jp)}(hsecurity_file_ioctl_compath]hsecurity_file_ioctl_compat}(hj{AhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjwAubah}(h]h ](jjeh"]h$]h&]jjuh1jihjVAhhhjhAhM ubj)}(h8(struct file *file, unsigned int cmd, unsigned long arg)h](j)}(hstruct file *fileh](jL)}(hjOh]hstruct}(hjAhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjAubjY)}(h h]h }(hjAhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjAubh)}(hhh]jp)}(hfileh]hfile}(hjAhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjAubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjAmodnameN classnameNjj)}j]j)}jj}Asbc.security_file_ioctl_compatasbuh1hhjAubjY)}(h h]h }(hjAhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjp)}(hfileh]hfile}(hjAhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hunsigned int cmdh](jG)}(hunsignedh]hunsigned}(hj BhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjBubjY)}(h h]h }(hjBhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjBubjG)}(hinth]hint}(hj%BhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjBubjY)}(h h]h }(hj3BhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjBubjp)}(hcmdh]hcmd}(hjABhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hunsigned long argh](jG)}(hunsignedh]hunsigned}(hjZBhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjVBubjY)}(h h]h }(hjhBhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjVBubjG)}(hlongh]hlong}(hjvBhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjVBubjY)}(h h]h }(hjBhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjVBubjp)}(hargh]harg}(hjBhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjVBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubeh}(h]h ]h"]h$]h&]jjuh1jhjVAhhhjhAhM ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjRAhhhjhAhM ubah}(h]jMAah ](jjeh"]h$]h&]jj)jhuh1j:hjhAhM hjOAhhubj)}(hhh]h)}(h+Check if an ioctl is allowed in compat modeh]h+Check if an ioctl is allowed in compat mode}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjBhhubah}(h]h ]h"]h$]h&]uh1jhjOAhhhjhAhM ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jBj#jBj$j%j&uh1j5hhhhhNhNubj()}(hX0**Parameters** ``struct file *file`` associated file ``unsigned int cmd`` ioctl cmd ``unsigned long arg`` ioctl arguments **Description** Compat version of security_file_ioctl() that correctly handles 32-bit processes running on 64-bit kernels. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hjBh]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjBubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjBubjH)}(hhh](jM)}(h&``struct file *file`` associated file h](jS)}(h``struct file *file``h]h)}(hjBh]hstruct file *file}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjBubjm)}(hhh]h)}(hassociated fileh]hassociated file}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChM hjCubah}(h]h ]h"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]uh1jLhjChM hjBubjM)}(h``unsigned int cmd`` ioctl cmd h](jS)}(h``unsigned int cmd``h]h)}(hj6Ch]hunsigned int cmd}(hj8ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4Cubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj0Cubjm)}(hhh]h)}(h ioctl cmdh]h ioctl cmd}(hjOChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKChM hjLCubah}(h]h ]h"]h$]h&]uh1jlhj0Cubeh}(h]h ]h"]h$]h&]uh1jLhjKChM hjBubjM)}(h&``unsigned long arg`` ioctl arguments h](jS)}(h``unsigned long arg``h]h)}(hjoCh]hunsigned long arg}(hjqChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmCubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjiCubjm)}(hhh]h)}(hioctl argumentsh]hioctl arguments}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChM hjCubah}(h]h ]h"]h$]h&]uh1jlhjiCubeh}(h]h ]h"]h$]h&]uh1jLhjChM hjBubeh}(h]h ]h"]h$]h&]uh1jGhjBubh)}(h**Description**h]j2)}(hjCh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjCubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjBubh)}(hjCompat version of security_file_ioctl() that correctly handles 32-bit processes running on 64-bit kernels.h]hjCompat version of security_file_ioctl() that correctly handles 32-bit processes running on 64-bit kernels.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjBubh)}(h **Return**h]j2)}(hjCh]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjCubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjBubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjBubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1'security_mmap_backing_file (C function)c.security_mmap_backing_filehNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hnint security_mmap_backing_file (struct vm_area_struct *vma, struct file *backing_file, struct file *user_file)h]jA)}(hmint security_mmap_backing_file(struct vm_area_struct *vma, struct file *backing_file, struct file *user_file)h](jG)}(hinth]hint}(hjDhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjDhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjY)}(h h]h }(hj%DhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjDhhhj$DhM ubjj)}(hsecurity_mmap_backing_fileh]jp)}(hsecurity_mmap_backing_fileh]hsecurity_mmap_backing_file}(hj7DhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj3Dubah}(h]h ](jjeh"]h$]h&]jjuh1jihjDhhhj$DhM ubj)}(hO(struct vm_area_struct *vma, struct file *backing_file, struct file *user_file)h](j)}(hstruct vm_area_struct *vmah](jL)}(hjOh]hstruct}(hjSDhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjODubjY)}(h h]h }(hj`DhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjODubh)}(hhh]jp)}(hvm_area_structh]hvm_area_struct}(hjqDhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjnDubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjsDmodnameN classnameNjj)}j]j)}jj9Dsbc.security_mmap_backing_fileasbuh1hhjODubjY)}(h h]h }(hjDhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjODubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjODubjp)}(hvmah]hvma}(hjDhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjODubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKDubj)}(hstruct file *backing_fileh](jL)}(hjOh]hstruct}(hjDhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjDubjY)}(h h]h }(hjDhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjDubh)}(hhh]jp)}(hfileh]hfile}(hjDhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjDubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjDmodnameN classnameNjj)}j]jDc.security_mmap_backing_fileasbuh1hhjDubjY)}(h h]h }(hjEhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjDubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjp)}(h backing_fileh]h backing_file}(hjEhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKDubj)}(hstruct file *user_fileh](jL)}(hjOh]hstruct}(hj5EhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj1EubjY)}(h h]h }(hjBEhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj1Eubh)}(hhh]jp)}(hfileh]hfile}(hjSEhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjPEubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjUEmodnameN classnameNjj)}j]jDc.security_mmap_backing_fileasbuh1hhj1EubjY)}(h h]h }(hjqEhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj1Eubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1Eubjp)}(h user_fileh]h user_file}(hjEhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj1Eubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjKDubeh}(h]h ]h"]h$]h&]jjuh1jhjDhhhj$DhM ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjDhhhj$DhM ubah}(h]j Dah ](jjeh"]h$]h&]jj)jhuh1j:hj$DhM hj Dhhubj)}(hhh]h)}(h+Check if mmap'ing a backing file is allowedh]h-Check if mmap’ing a backing file is allowed}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjEhhubah}(h]h ]h"]h$]h&]uh1jhj Dhhhj$DhM ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jEj#jEj$j%j&uh1j5hhhhhNhNubj()}(hXb**Parameters** ``struct vm_area_struct *vma`` the vm_area_struct for the mmap'd region ``struct file *backing_file`` the backing file being mmap'd ``struct file *user_file`` the user file being mmap'd **Description** Check permissions for a mmap operation on a stacked filesystem. This hook is called after the security_mmap_file() and is responsible for authorizing the mmap on **backing_file**. It is important to note that the mmap operation on **user_file** has already been authorized and the **vma->vm_file** has been set to **backing_file**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hjEh]h Parameters}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjEubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjEubjH)}(hhh](jM)}(hH``struct vm_area_struct *vma`` the vm_area_struct for the mmap'd region h](jS)}(h``struct vm_area_struct *vma``h]h)}(hjEh]hstruct vm_area_struct *vma}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjEubjm)}(hhh]h)}(h(the vm_area_struct for the mmap'd regionh]h*the vm_area_struct for the mmap’d region}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj FhM hj Fubah}(h]h ]h"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]uh1jLhj FhM hjEubjM)}(h<``struct file *backing_file`` the backing file being mmap'd h](jS)}(h``struct file *backing_file``h]h)}(hj0Fh]hstruct file *backing_file}(hj2FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.Fubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj*Fubjm)}(hhh]h)}(hthe backing file being mmap'dh]hthe backing file being mmap’d}(hjIFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEFhM hjFFubah}(h]h ]h"]h$]h&]uh1jlhj*Fubeh}(h]h ]h"]h$]h&]uh1jLhjEFhM hjEubjM)}(h6``struct file *user_file`` the user file being mmap'd h](jS)}(h``struct file *user_file``h]h)}(hjiFh]hstruct file *user_file}(hjkFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgFubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjcFubjm)}(hhh]h)}(hthe user file being mmap'dh]hthe user file being mmap’d}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~FhM hjFubah}(h]h ]h"]h$]h&]uh1jlhjcFubeh}(h]h ]h"]h$]h&]uh1jLhj~FhM hjEubeh}(h]h ]h"]h$]h&]uh1jGhjEubh)}(h**Description**h]j2)}(hjFh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjFubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjEubh)}(hXMCheck permissions for a mmap operation on a stacked filesystem. This hook is called after the security_mmap_file() and is responsible for authorizing the mmap on **backing_file**. It is important to note that the mmap operation on **user_file** has already been authorized and the **vma->vm_file** has been set to **backing_file**.h](hCheck permissions for a mmap operation on a stacked filesystem. This hook is called after the security_mmap_file() and is responsible for authorizing the mmap on }(hjFhhhNhNubj2)}(h**backing_file**h]h backing_file}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjFubh6. It is important to note that the mmap operation on }(hjFhhhNhNubj2)}(h **user_file**h]h user_file}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjFubh% has already been authorized and the }(hjFhhhNhNubj2)}(h**vma->vm_file**h]h vma->vm_file}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjFubh has been set to }(hjFhhhNhNubj2)}(h**backing_file**h]h backing_file}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjFubh.}(hjFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjEubh)}(h **Return**h]j2)}(hjGh]hReturn}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjGubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM$ hjEubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj)GhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM% hjEubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1$security_file_post_open (C function)c.security_file_post_openhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h9int security_file_post_open (struct file *file, int mask)h]jA)}(h8int security_file_post_open(struct file *file, int mask)h](jG)}(hinth]hint}(hjXGhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjTGhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjY)}(h h]h }(hjgGhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjTGhhhjfGhM ubjj)}(hsecurity_file_post_openh]jp)}(hsecurity_file_post_openh]hsecurity_file_post_open}(hjyGhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjuGubah}(h]h ](jjeh"]h$]h&]jjuh1jihjTGhhhjfGhM ubj)}(h(struct file *file, int mask)h](j)}(hstruct file *fileh](jL)}(hjOh]hstruct}(hjGhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjGubjY)}(h h]h }(hjGhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjGubh)}(hhh]jp)}(hfileh]hfile}(hjGhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjGubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjGmodnameN classnameNjj)}j]j)}jj{Gsbc.security_file_post_openasbuh1hhjGubjY)}(h h]h }(hjGhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjGubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjp)}(hfileh]hfile}(hjGhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hint maskh](jG)}(hinth]hint}(hjHhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjHubjY)}(h h]h }(hjHhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjHubjp)}(hmaskh]hmask}(hj#HhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjHubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubeh}(h]h ]h"]h$]h&]jjuh1jhjTGhhhjfGhM ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjPGhhhjfGhM ubah}(h]jKGah ](jjeh"]h$]h&]jj)jhuh1j:hjfGhM hjMGhhubj)}(hhh]h)}(h(Evaluate a file after it has been openedh]h(Evaluate a file after it has been opened}(hjMHhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjJHhhubah}(h]h ]h"]h$]h&]uh1jhjMGhhhjfGhM ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jeHj#jeHj$j%j&uh1j5hhhhhNhNubj()}(hX8**Parameters** ``struct file *file`` the file ``int mask`` access mask **Description** Evaluate an opened file and the access mask requested with open(). The hook is useful for LSMs that require the file content to be available in order to make decisions. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hjoHh]h Parameters}(hjqHhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjmHubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjiHubjH)}(hhh](jM)}(h``struct file *file`` the file h](jS)}(h``struct file *file``h]h)}(hjHh]hstruct file *file}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjHubjm)}(hhh]h)}(hthe fileh]hthe file}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhM hjHubah}(h]h ]h"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]uh1jLhjHhM hjHubjM)}(h``int mask`` access mask h](jS)}(h ``int mask``h]h)}(hjHh]hint mask}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjHubjm)}(hhh]h)}(h access maskh]h access mask}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhM hjHubah}(h]h ]h"]h$]h&]uh1jlhjHubeh}(h]h ]h"]h$]h&]uh1jLhjHhM hjHubeh}(h]h ]h"]h$]h&]uh1jGhjiHubh)}(h**Description**h]j2)}(hjIh]h Description}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjIubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjiHubh)}(hEvaluate an opened file and the access mask requested with open(). The hook is useful for LSMs that require the file content to be available in order to make decisions.h]hEvaluate an opened file and the access mask requested with open(). The hook is useful for LSMs that require the file content to be available in order to make decisions.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjiHubh)}(h **Return**h]j2)}(hj)Ih]hReturn}(hj+IhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj'Iubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjiHubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj?IhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjiHubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1#security_cred_getsecid (C function)c.security_cred_getsecidhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h>void security_cred_getsecid (const struct cred *c, u32 *secid)h]jA)}(h=void security_cred_getsecid(const struct cred *c, u32 *secid)h](jG)}(hvoidh]hvoid}(hjnIhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjjIhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMJ ubjY)}(h h]h }(hj}IhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjjIhhhj|IhMJ ubjj)}(hsecurity_cred_getsecidh]jp)}(hsecurity_cred_getsecidh]hsecurity_cred_getsecid}(hjIhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjIubah}(h]h ](jjeh"]h$]h&]jjuh1jihjjIhhhj|IhMJ ubj)}(h"(const struct cred *c, u32 *secid)h](j)}(hconst struct cred *ch](jL)}(hj h]hconst}(hjIhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjIubjY)}(h h]h }(hjIhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjIubjL)}(hjOh]hstruct}(hjIhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjIubjY)}(h h]h }(hjIhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjIubh)}(hhh]jp)}(hcredh]hcred}(hjIhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjIubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjImodnameN classnameNjj)}j]j)}jjIsbc.security_cred_getsecidasbuh1hhjIubjY)}(h h]h }(hjJhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjIubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjp)}(hjh]hc}(hjJhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjIubj)}(h u32 *secidh](h)}(hhh]jp)}(hu32h]hu32}(hj:JhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj7Jubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjVhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj:Vubah}(h]h ](jjeh"]h$]h&]jjuh1jihjVhhhj+VhM ubj)}(hH(char *buf, loff_t size, enum kernel_load_data_id id, char *description)h](j)}(h char *bufh](jG)}(hcharh]hchar}(hjZVhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjVVubjY)}(h h]h }(hjhVhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjVVubj)}(hjh]h*}(hjvVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVVubjp)}(hbufh]hbuf}(hjVhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjVVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRVubj)}(h loff_t sizeh](h)}(hhh]jp)}(hloff_th]hloff_t}(hjVhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjVubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjVmodnameN classnameNjj)}j]j)}jj@Vsb c.security_kernel_post_load_dataasbuh1hhjVubjY)}(h h]h }(hjVhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjVubjp)}(hsizeh]hsize}(hjVhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRVubj)}(henum kernel_load_data_id idh](jL)}(hj;h]henum}(hjVhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjVubjY)}(h h]h }(hjVhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjVubh)}(hhh]jp)}(hkernel_load_data_idh]hkernel_load_data_id}(hjWhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjWubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjWmodnameN classnameNjj)}j]jV c.security_kernel_post_load_dataasbuh1hhjVubjY)}(h h]h }(hj"WhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjVubjp)}(hidh]hid}(hj0WhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRVubj)}(hchar *descriptionh](jG)}(hcharh]hchar}(hjIWhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjEWubjY)}(h h]h }(hjWWhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjEWubj)}(hjh]h*}(hjeWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEWubjp)}(h descriptionh]h description}(hjrWhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjEWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRVubeh}(h]h ]h"]h$]h&]jjuh1jhjVhhhj+VhM ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjVhhhj+VhM ubah}(h]jVah ](jjeh"]h$]h&]jj)jhuh1j:hj+VhM hjVhhubj)}(hhh]h)}(h*Load userspace data from a non-file sourceh]h*Load userspace data from a non-file source}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjWhhubah}(h]h ]h"]h$]h&]uh1jhjVhhhj+VhM ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jWj#jWj$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``char *buf`` data ``loff_t size`` size of data ``enum kernel_load_data_id id`` data identifier ``char *description`` text description of data, specific to the id value **Description** Load data provided by a non-file source (usually userspace buffer). This must be paired with a prior security_kernel_load_data() call that indicated this hook would also be called, see security_kernel_load_data() for more information. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hjWh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjWubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjWubjH)}(hhh](jM)}(h``char *buf`` data h](jS)}(h ``char *buf``h]h)}(hjWh]h char *buf}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjWubjm)}(hhh]h)}(hdatah]hdata}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM hjWubah}(h]h ]h"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]uh1jLhjWhM hjWubjM)}(h``loff_t size`` size of data h](jS)}(h``loff_t size``h]h)}(hjXh]h loff_t size}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjXubjm)}(hhh]h)}(h size of datah]h size of data}(hj/XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+XhM hj,Xubah}(h]h ]h"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]uh1jLhj+XhM hjWubjM)}(h0``enum kernel_load_data_id id`` data identifier h](jS)}(h``enum kernel_load_data_id id``h]h)}(hjOXh]henum kernel_load_data_id id}(hjQXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMXubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjIXubjm)}(hhh]h)}(hdata identifierh]hdata identifier}(hjhXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdXhM hjeXubah}(h]h ]h"]h$]h&]uh1jlhjIXubeh}(h]h ]h"]h$]h&]uh1jLhjdXhM hjWubjM)}(hI``char *description`` text description of data, specific to the id value h](jS)}(h``char *description``h]h)}(hjXh]hchar *description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjXubjm)}(hhh]h)}(h2text description of data, specific to the id valueh]h2text description of data, specific to the id value}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhM hjXubah}(h]h ]h"]h$]h&]uh1jlhjXubeh}(h]h ]h"]h$]h&]uh1jLhjXhM hjWubeh}(h]h ]h"]h$]h&]uh1jGhjWubh)}(h**Description**h]j2)}(hjXh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjXubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjWubh)}(hLoad data provided by a non-file source (usually userspace buffer). This must be paired with a prior security_kernel_load_data() call that indicated this hook would also be called, see security_kernel_load_data() for more information.h]hLoad data provided by a non-file source (usually userspace buffer). This must be paired with a prior security_kernel_load_data() call that indicated this hook would also be called, see security_kernel_load_data() for more information.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjWubh)}(h **Return**h]j2)}(hjXh]hReturn}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjXubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjWubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjWubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1-security_current_getlsmprop_subj (C function)"c.security_current_getlsmprop_subjhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h=void security_current_getlsmprop_subj (struct lsm_prop *prop)h]jA)}(hYhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj+Yhhhj=YhMB ubjj)}(h security_current_getlsmprop_subjh]jp)}(h security_current_getlsmprop_subjh]h security_current_getlsmprop_subj}(hjPYhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjLYubah}(h]h ](jjeh"]h$]h&]jjuh1jihj+Yhhhj=YhMB ubj)}(h(struct lsm_prop *prop)h]j)}(hstruct lsm_prop *proph](jL)}(hjOh]hstruct}(hjlYhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjhYubjY)}(h h]h }(hjyYhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhYubh)}(hhh]jp)}(hlsm_proph]hlsm_prop}(hjYhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjYubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjYmodnameN classnameNjj)}j]j)}jjRYsb"c.security_current_getlsmprop_subjasbuh1hhjhYubjY)}(h h]h }(hjYhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhYubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhYubjp)}(hproph]hprop}(hjYhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjhYubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjdYubah}(h]h ]h"]h$]h&]jjuh1jhj+Yhhhj=YhMB ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj'Yhhhj=YhMB ubah}(h]j"Yah ](jjeh"]h$]h&]jj)jhuh1j:hj=YhMB phj$Yhhubj)}(hhh]h)}(h"Current task's subjective LSM datah]h$Current task’s subjective LSM data}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMB hjYhhubah}(h]h ]h"]h$]h&]uh1jhj$Yhhhj=YhMB ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jZj#jZj$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``struct lsm_prop *prop`` lsm specific information **Description** Retrieve the subjective security identifier of the current task and return it in **prop**.h](h)}(h**Parameters**h]j2)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjZubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMF hj ZubjH)}(hhh]jM)}(h3``struct lsm_prop *prop`` lsm specific information h](jS)}(h``struct lsm_prop *prop``h]h)}(hj0Zh]hstruct lsm_prop *prop}(hj2ZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.Zubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMC hj*Zubjm)}(hhh]h)}(hlsm specific informationh]hlsm specific information}(hjIZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEZhMC hjFZubah}(h]h ]h"]h$]h&]uh1jlhj*Zubeh}(h]h ]h"]h$]h&]uh1jLhjEZhMC hj'Zubah}(h]h ]h"]h$]h&]uh1jGhj Zubh)}(h**Description**h]j2)}(hjkZh]h Description}(hjmZhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjiZubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chME hj Zubh)}(hZRetrieve the subjective security identifier of the current task and return it in **prop**.h](hQRetrieve the subjective security identifier of the current task and return it in }(hjZhhhNhNubj2)}(h**prop**h]hprop}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjZubh.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMD hj Zubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1)security_task_getlsmprop_obj (C function)c.security_task_getlsmprop_objhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hPvoid security_task_getlsmprop_obj (struct task_struct *p, struct lsm_prop *prop)h]jA)}(hOvoid security_task_getlsmprop_obj(struct task_struct *p, struct lsm_prop *prop)h](jG)}(hvoidh]hvoid}(hjZhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjZhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMP ubjY)}(h h]h }(hjZhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjZhhhjZhMP ubjj)}(hsecurity_task_getlsmprop_objh]jp)}(hsecurity_task_getlsmprop_objh]hsecurity_task_getlsmprop_obj}(hjZhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjZubah}(h]h ](jjeh"]h$]h&]jjuh1jihjZhhhjZhMP ubj)}(h.(struct task_struct *p, struct lsm_prop *prop)h](j)}(hstruct task_struct *ph](jL)}(hjOh]hstruct}(hjZhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjZubjY)}(h h]h }(hj [hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjZubh)}(hhh]jp)}(h task_structh]h task_struct}(hj[hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj[ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj[modnameN classnameNjj)}j]j)}jjZsbc.security_task_getlsmprop_objasbuh1hhjZubjY)}(h h]h }(hj=[hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjZubj)}(hjh]h*}(hjK[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZubjp)}(hjh]hp}(hjX[hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubj)}(hstruct lsm_prop *proph](jL)}(hjOh]hstruct}(hjp[hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjl[ubjY)}(h h]h }(hj}[hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjl[ubh)}(hhh]jp)}(hlsm_proph]hlsm_prop}(hj[hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj[ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj[modnameN classnameNjj)}j]j9[c.security_task_getlsmprop_objasbuh1hhjl[ubjY)}(h h]h }(hj[hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjl[ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl[ubjp)}(hproph]hprop}(hj[hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjl[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubeh}(h]h ]h"]h$]h&]jjuh1jhjZhhhjZhMP ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjZhhhjZhMP ubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1j:hjZhMP hjZhhubj)}(hhh]h)}(hGet a task's objective LSM datah]h!Get a task’s objective LSM data}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMP hj[hhubah}(h]h ]h"]h$]h&]uh1jhjZhhhjZhMP ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j \j#j \j$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``struct task_struct *p`` target task ``struct lsm_prop *prop`` lsm specific information **Description** Retrieve the objective security identifier of the task_struct in **p** and return it in **prop**.h](h)}(h**Parameters**h]j2)}(hj\h]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj\ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMT hj \ubjH)}(hhh](jM)}(h&``struct task_struct *p`` target task h](jS)}(h``struct task_struct *p``h]h)}(hj2\h]hstruct task_struct *p}(hj4\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0\ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMQ hj,\ubjm)}(hhh]h)}(h target taskh]h target task}(hjK\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjG\hMQ hjH\ubah}(h]h ]h"]h$]h&]uh1jlhj,\ubeh}(h]h ]h"]h$]h&]uh1jLhjG\hMQ hj)\ubjM)}(h3``struct lsm_prop *prop`` lsm specific information h](jS)}(h``struct lsm_prop *prop``h]h)}(hjk\h]hstruct lsm_prop *prop}(hjm\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhji\ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMR hje\ubjm)}(hhh]h)}(hlsm specific informationh]hlsm specific information}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMR hj\ubah}(h]h ]h"]h$]h&]uh1jlhje\ubeh}(h]h ]h"]h$]h&]uh1jLhj\hMR hj)\ubeh}(h]h ]h"]h$]h&]uh1jGhj \ubh)}(h**Description**h]j2)}(hj\h]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj\ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMT hj \ubh)}(haRetrieve the objective security identifier of the task_struct in **p** and return it in **prop**.h](hARetrieve the objective security identifier of the task_struct in }(hj\hhhNhNubj2)}(h**p**h]hp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj\ubh and return it in }(hj\hhhNhNubj2)}(h**prop**h]hprop}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj\ubh.}(hj\hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMS hj \ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1#security_d_instantiate (C function)c.security_d_instantiatehNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hHvoid security_d_instantiate (struct dentry *dentry, struct inode *inode)h]jA)}(hGvoid security_d_instantiate(struct dentry *dentry, struct inode *inode)h](jG)}(hvoidh]hvoid}(hj]hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj ]hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMnubjY)}(h h]h }(hj]hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ]hhhj]hMnubjj)}(hsecurity_d_instantiateh]jp)}(hsecurity_d_instantiateh]hsecurity_d_instantiate}(hj0]hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj,]ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj ]hhhj]hMnubj)}(h,(struct dentry *dentry, struct inode *inode)h](j)}(hstruct dentry *dentryh](jL)}(hjOh]hstruct}(hjL]hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjH]ubjY)}(h h]h }(hjY]hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjH]ubh)}(hhh]jp)}(hdentryh]hdentry}(hjj]hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjg]ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjl]modnameN classnameNjj)}j]j)}jj2]sbc.security_d_instantiateasbuh1hhjH]ubjY)}(h h]h }(hj]hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjH]ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH]ubjp)}(hdentryh]hdentry}(hj]hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjH]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjD]ubj)}(hstruct inode *inodeh](jL)}(hjOh]hstruct}(hj]hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj]ubjY)}(h h]h }(hj]hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj]ubh)}(hhh]jp)}(hinodeh]hinode}(hj]hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj]ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj]modnameN classnameNjj)}j]j]c.security_d_instantiateasbuh1hhj]ubjY)}(h h]h }(hj]hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj]ubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjp)}(hinodeh]hinode}(hj^hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj]ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjD]ubeh}(h]h ]h"]h$]h&]jjuh1jhj ]hhhj]hMnubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj]hhhj]hMnubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1j:hj]hMnhj]hhubj)}(hhh]h)}(h/Populate an inode's LSM state based on a dentryh]h1Populate an inode’s LSM state based on a dentry}(hj?^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMnhj<^hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhj]hMnubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jW^j#jW^j$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``struct dentry *dentry`` dentry ``struct inode *inode`` inode **Description** Fill in **inode** security information for a **dentry** if allowed.h](h)}(h**Parameters**h]j2)}(hja^h]h Parameters}(hjc^hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj_^ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMrhj[^ubjH)}(hhh](jM)}(h!``struct dentry *dentry`` dentry h](jS)}(h``struct dentry *dentry``h]h)}(hj^h]hstruct dentry *dentry}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~^ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMohjz^ubjm)}(hhh]h)}(hdentryh]hdentry}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMohj^ubah}(h]h ]h"]h$]h&]uh1jlhjz^ubeh}(h]h ]h"]h$]h&]uh1jLhj^hMohjw^ubjM)}(h``struct inode *inode`` inode h](jS)}(h``struct inode *inode``h]h)}(hj^h]hstruct inode *inode}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMphj^ubjm)}(hhh]h)}(hinodeh]hinode}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMphj^ubah}(h]h ]h"]h$]h&]uh1jlhj^ubeh}(h]h ]h"]h$]h&]uh1jLhj^hMphjw^ubeh}(h]h ]h"]h$]h&]uh1jGhj[^ubh)}(h**Description**h]j2)}(hj^h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj^ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMrhj[^ubh)}(hCFill in **inode** security information for a **dentry** if allowed.h](hFill in }(hj _hhhNhNubj2)}(h **inode**h]hinode}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj _ubh security information for a }(hj _hhhNhNubj2)}(h **dentry**h]hdentry}(hj$_hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj _ubh if allowed.}(hj _hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMqhj[^ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1 security_ismaclabel (C function)c.security_ismaclabelhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h*int security_ismaclabel (const char *name)h]jA)}(h)int security_ismaclabel(const char *name)h](jG)}(hinth]hint}(hj]_hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjY_hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMAubjY)}(h h]h }(hjl_hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjY_hhhjk_hMAubjj)}(hsecurity_ismaclabelh]jp)}(hsecurity_ismaclabelh]hsecurity_ismaclabel}(hj~_hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjz_ubah}(h]h ](jjeh"]h$]h&]jjuh1jihjY_hhhjk_hMAubj)}(h(const char *name)h]j)}(hconst char *nameh](jL)}(hj h]hconst}(hj_hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj_ubjY)}(h h]h }(hj_hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj_ubjG)}(hcharh]hchar}(hj_hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj_ubjY)}(h h]h }(hj_hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj_ubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubjp)}(hnameh]hname}(hj_hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubah}(h]h ]h"]h$]h&]jjuh1jhjY_hhhjk_hMAubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjU_hhhjk_hMAubah}(h]jP_ah ](jjeh"]h$]h&]jj)jhuh1j:hjk_hMAhjR_hhubj)}(hhh]h)}(h+Check if the named attribute is a MAC labelh]h+Check if the named attribute is a MAC label}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMAhj`hhubah}(h]h ]h"]h$]h&]uh1jhjR_hhhjk_hMAubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j `j#j `j$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``const char *name`` full extended attribute name **Description** Check if the extended attribute specified by **name** represents a MAC label. **Return** Returns 1 if name is a MAC attribute otherwise returns 0.h](h)}(h**Parameters**h]j2)}(hj*`h]h Parameters}(hj,`hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj(`ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMEhj$`ubjH)}(hhh]jM)}(h2``const char *name`` full extended attribute name h](jS)}(h``const char *name``h]h)}(hjI`h]hconst char *name}(hjK`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjG`ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMBhjC`ubjm)}(hhh]h)}(hfull extended attribute nameh]hfull extended attribute name}(hjb`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^`hMBhj_`ubah}(h]h ]h"]h$]h&]uh1jlhjC`ubeh}(h]h ]h"]h$]h&]uh1jLhj^`hMBhj@`ubah}(h]h ]h"]h$]h&]uh1jGhj$`ubh)}(h**Description**h]j2)}(hj`h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj`ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMDhj$`ubh)}(hMCheck if the extended attribute specified by **name** represents a MAC label.h](h-Check if the extended attribute specified by }(hj`hhhNhNubj2)}(h**name**h]hname}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj`ubh represents a MAC label.}(hj`hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMChj$`ubh)}(h **Return**h]j2)}(hj`h]hReturn}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj`ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMEhj$`ubh)}(h9Returns 1 if name is a MAC attribute otherwise returns 0.h]h9Returns 1 if name is a MAC attribute otherwise returns 0.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMFhj$`ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1%security_secid_to_secctx (C function)c.security_secid_to_secctxhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h@int security_secid_to_secctx (u32 secid, struct lsm_context *cp)h]jA)}(h?int security_secid_to_secctx(u32 secid, struct lsm_context *cp)h](jG)}(hinth]hint}(hjahhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj`hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMOubjY)}(h h]h }(hjahhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj`hhhjahMOubjj)}(hsecurity_secid_to_secctxh]jp)}(hsecurity_secid_to_secctxh]hsecurity_secid_to_secctx}(hj#ahhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjaubah}(h]h ](jjeh"]h$]h&]jjuh1jihj`hhhjahMOubj)}(h#(u32 secid, struct lsm_context *cp)h](j)}(h u32 secidh](h)}(hhh]jp)}(hu32h]hu32}(hjBahhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj?aubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjDamodnameN classnameNjj)}j]j)}jj%asbc.security_secid_to_secctxasbuh1hhj;aubjY)}(h h]h }(hjbahhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj;aubjp)}(hsecidh]hsecid}(hjpahhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj;aubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7aubj)}(hstruct lsm_context *cph](jL)}(hjOh]hstruct}(hjahhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjaubjY)}(h h]h }(hjahhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjaubh)}(hhh]jp)}(h lsm_contexth]h lsm_context}(hjahhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjaubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjamodnameN classnameNjj)}j]j^ac.security_secid_to_secctxasbuh1hhjaubjY)}(h h]h }(hjahhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjaubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjp)}(hcph]hcp}(hjahhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7aubeh}(h]h ]h"]h$]h&]jjuh1jhj`hhhjahMOubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj`hhhjahMOubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1j:hjahMOhj`hhubj)}(hhh]h)}(hConvert a secid to a secctxh]hConvert a secid to a secctx}(hj bhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMOhjbhhubah}(h]h ]h"]h$]h&]uh1jhj`hhhjahMOubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j"bj#j"bj$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``u32 secid`` secid ``struct lsm_context *cp`` the LSM context **Description** Convert secid to security context. If **cp** is NULL the length of the result will be returned, but no data will be returned. This does mean that the length could change between calls to check the length and the next call which actually allocates and returns the data. **Return** Return length of data on success, error on failure.h](h)}(h**Parameters**h]j2)}(hj,bh]h Parameters}(hj.bhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj*bubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMShj&bubjH)}(hhh](jM)}(h``u32 secid`` secid h](jS)}(h ``u32 secid``h]h)}(hjKbh]h u32 secid}(hjMbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIbubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMPhjEbubjm)}(hhh]h)}(hsecidh]hsecid}(hjdbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`bhMPhjabubah}(h]h ]h"]h$]h&]uh1jlhjEbubeh}(h]h ]h"]h$]h&]uh1jLhj`bhMPhjBbubjM)}(h+``struct lsm_context *cp`` the LSM context h](jS)}(h``struct lsm_context *cp``h]h)}(hjbh]hstruct lsm_context *cp}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMQhj~bubjm)}(hhh]h)}(hthe LSM contexth]hthe LSM context}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMQhjbubah}(h]h ]h"]h$]h&]uh1jlhj~bubeh}(h]h ]h"]h$]h&]uh1jLhjbhMQhjBbubeh}(h]h ]h"]h$]h&]uh1jGhj&bubh)}(h**Description**h]j2)}(hjbh]h Description}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjbubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMShj&bubh)}(hXConvert secid to security context. If **cp** is NULL the length of the result will be returned, but no data will be returned. This does mean that the length could change between calls to check the length and the next call which actually allocates and returns the data.h](h'Convert secid to security context. If }(hjbhhhNhNubj2)}(h**cp**h]hcp}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjbubh is NULL the length of the result will be returned, but no data will be returned. This does mean that the length could change between calls to check the length and the next call which actually allocates and returns the data.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMRhj&bubh)}(h **Return**h]j2)}(hjbh]hReturn}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjbubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMWhj&bubh)}(h3Return length of data on success, error on failure.h]h3Return length of data on success, error on failure.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMXhj&bubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1'security_lsmprop_to_secctx (C function)c.security_lsmprop_to_secctxhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hYint security_lsmprop_to_secctx (struct lsm_prop *prop, struct lsm_context *cp, int lsmid)h]jA)}(hXint security_lsmprop_to_secctx(struct lsm_prop *prop, struct lsm_context *cp, int lsmid)h](jG)}(hinth]hint}(hj=chhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj9chhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMaubjY)}(h h]h }(hjLchhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj9chhhjKchMaubjj)}(hsecurity_lsmprop_to_secctxh]jp)}(hsecurity_lsmprop_to_secctxh]hsecurity_lsmprop_to_secctx}(hj^chhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjZcubah}(h]h ](jjeh"]h$]h&]jjuh1jihj9chhhjKchMaubj)}(h:(struct lsm_prop *prop, struct lsm_context *cp, int lsmid)h](j)}(hstruct lsm_prop *proph](jL)}(hjOh]hstruct}(hjzchhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjvcubjY)}(h h]h }(hjchhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjvcubh)}(hhh]jp)}(hlsm_proph]hlsm_prop}(hjchhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjcubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjcmodnameN classnameNjj)}j]j)}jj`csbc.security_lsmprop_to_secctxasbuh1hhjvcubjY)}(h h]h }(hjchhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjvcubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvcubjp)}(hproph]hprop}(hjchhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjvcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrcubj)}(hstruct lsm_context *cph](jL)}(hjOh]hstruct}(hjchhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjcubjY)}(h h]h }(hjchhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjcubh)}(hhh]jp)}(h lsm_contexth]h lsm_context}(hj dhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjdubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj dmodnameN classnameNjj)}j]jcc.security_lsmprop_to_secctxasbuh1hhjcubjY)}(h h]h }(hj(dhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjcubj)}(hjh]h*}(hj6dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjp)}(hcph]hcp}(hjCdhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrcubj)}(h int lsmidh](jG)}(hinth]hint}(hj\dhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjXdubjY)}(h h]h }(hjjdhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjXdubjp)}(hlsmidh]hlsmid}(hjxdhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjXdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrcubeh}(h]h ]h"]h$]h&]jjuh1jhj9chhhjKchMaubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj5chhhjKchMaubah}(h]j0cah ](jjeh"]h$]h&]jj)jhuh1j:hjKchMahj2chhubj)}(hhh]h)}(hConvert a lsm_prop to a secctxh]hConvert a lsm_prop to a secctx}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMahjdhhubah}(h]h ]h"]h$]h&]uh1jhj2chhhjKchMaubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jdj#jdj$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct lsm_prop *prop`` lsm specific information ``struct lsm_context *cp`` the LSM context ``int lsmid`` which security module to report **Description** Convert a **prop** entry to security context. If **cp** is NULL the length of the result will be returned. This does mean that the length could change between calls to check the length and the next call which actually allocates and returns the **cp**. **lsmid** identifies which LSM should supply the context. A value of LSM_ID_UNDEF indicates that the first LSM suppling the hook should be used. This is used in cases where the ID of the supplying LSM is unambiguous. **Return** Return length of data on success, error on failure.h](h)}(h**Parameters**h]j2)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjdubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMehjdubjH)}(hhh](jM)}(h3``struct lsm_prop *prop`` lsm specific information h](jS)}(h``struct lsm_prop *prop``h]h)}(hjdh]hstruct lsm_prop *prop}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMbhjdubjm)}(hhh]h)}(hlsm specific informationh]hlsm specific information}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMbhjdubah}(h]h ]h"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]uh1jLhjdhMbhjdubjM)}(h+``struct lsm_context *cp`` the LSM context h](jS)}(h``struct lsm_context *cp``h]h)}(hjeh]hstruct lsm_context *cp}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjeubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMchjeubjm)}(hhh]h)}(hthe LSM contexth]hthe LSM context}(hj5ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1ehMchj2eubah}(h]h ]h"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]uh1jLhj1ehMchjdubjM)}(h.``int lsmid`` which security module to report h](jS)}(h ``int lsmid``h]h)}(hjUeh]h int lsmid}(hjWehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjSeubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMdhjOeubjm)}(hhh]h)}(hwhich security module to reporth]hwhich security module to report}(hjnehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjehMdhjkeubah}(h]h ]h"]h$]h&]uh1jlhjOeubeh}(h]h ]h"]h$]h&]uh1jLhjjehMdhjdubeh}(h]h ]h"]h$]h&]uh1jGhjdubh)}(h**Description**h]j2)}(hjeh]h Description}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjeubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMfhjdubh)}(hConvert a **prop** entry to security context. If **cp** is NULL the length of the result will be returned. This does mean that the length could change between calls to check the length and the next call which actually allocates and returns the **cp**.h](h Convert a }(hjehhhNhNubj2)}(h**prop**h]hprop}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjeubh entry to security context. If }(hjehhhNhNubj2)}(h**cp**h]hcp}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjeubh is NULL the length of the result will be returned. This does mean that the length could change between calls to check the length and the next call which actually allocates and returns the }(hjehhhNhNubj2)}(h**cp**h]hcp}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjeubh.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMehjdubh)}(h**lsmid** identifies which LSM should supply the context. A value of LSM_ID_UNDEF indicates that the first LSM suppling the hook should be used. This is used in cases where the ID of the supplying LSM is unambiguous.h](j2)}(h **lsmid**h]hlsmid}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjeubh identifies which LSM should supply the context. A value of LSM_ID_UNDEF indicates that the first LSM suppling the hook should be used. This is used in cases where the ID of the supplying LSM is unambiguous.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMjhjdubh)}(h **Return**h]j2)}(hj fh]hReturn}(hj fhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjfubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMohjdubh)}(h3Return length of data on success, error on failure.h]h3Return length of data on success, error on failure.}(hj fhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMphjdubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1%security_secctx_to_secid (C function)c.security_secctx_to_secidhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hJint security_secctx_to_secid (const char *secdata, u32 seclen, u32 *secid)h]jA)}(hIint security_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid)h](jG)}(hinth]hint}(hjOfhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjKfhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hj^fhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjKfhhhj]fhMubjj)}(hsecurity_secctx_to_secidh]jp)}(hsecurity_secctx_to_secidh]hsecurity_secctx_to_secid}(hjpfhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjlfubah}(h]h ](jjeh"]h$]h&]jjuh1jihjKfhhhj]fhMubj)}(h-(const char *secdata, u32 seclen, u32 *secid)h](j)}(hconst char *secdatah](jL)}(hj h]hconst}(hjfhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjfubjY)}(h h]h }(hjfhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjfubjG)}(hcharh]hchar}(hjfhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjfubjY)}(h h]h }(hjfhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjp)}(hsecdatah]hsecdata}(hjfhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubj)}(h u32 seclenh](h)}(hhh]jp)}(hu32h]hu32}(hjfhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjfubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjfmodnameN classnameNjj)}j]j)}jjrfsbc.security_secctx_to_secidasbuh1hhjfubjY)}(h h]h }(hj ghhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjfubjp)}(hseclenh]hseclen}(hjghhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubj)}(h u32 *secidh](h)}(hhh]jp)}(hu32h]hu32}(hj6ghhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj3gubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj8gmodnameN classnameNjj)}j]jgc.security_secctx_to_secidasbuh1hhj/gubjY)}(h h]h }(hjTghhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj/gubj)}(hjh]h*}(hjbghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/gubjp)}(hsecidh]hsecid}(hjoghhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj/gubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjfubeh}(h]h ]h"]h$]h&]jjuh1jhjKfhhhj]fhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjGfhhhj]fhMubah}(h]jBfah ](jjeh"]h$]h&]jj)jhuh1j:hj]fhMhjDfhhubj)}(hhh]h)}(hConvert a secctx to a secidh]hConvert a secctx to a secid}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjghhubah}(h]h ]h"]h$]h&]uh1jhjDfhhhj]fhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jgj#jgj$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``const char *secdata`` secctx ``u32 seclen`` length of secctx ``u32 *secid`` secid **Description** Convert security context to secid. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j2)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjgubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjgubjH)}(hhh](jM)}(h``const char *secdata`` secctx h](jS)}(h``const char *secdata``h]h)}(hjgh]hconst char *secdata}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjgubjm)}(hhh]h)}(hsecctxh]hsecctx}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjgubah}(h]h ]h"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]uh1jLhjghMhjgubjM)}(h ``u32 seclen`` length of secctx h](jS)}(h``u32 seclen``h]h)}(hjhh]h u32 seclen}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj hubjm)}(hhh]h)}(hlength of secctxh]hlength of secctx}(hj,hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hhMhj)hubah}(h]h ]h"]h$]h&]uh1jlhj hubeh}(h]h ]h"]h$]h&]uh1jLhj(hhMhjgubjM)}(h``u32 *secid`` secid h](jS)}(h``u32 *secid``h]h)}(hjLhh]h u32 *secid}(hjNhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjFhubjm)}(hhh]h)}(hsecidh]hsecid}(hjehhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahhMhjbhubah}(h]h ]h"]h$]h&]uh1jlhjFhubeh}(h]h ]h"]h$]h&]uh1jLhjahhMhjgubeh}(h]h ]h"]h$]h&]uh1jGhjgubh)}(h**Description**h]j2)}(hjhh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjhubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjgubh)}(h"Convert security context to secid.h]h"Convert security context to secid.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjgubh)}(h **Return**h]j2)}(hjhh]hReturn}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjhubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjgubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjgubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1$security_release_secctx (C function)c.security_release_secctxhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h5void security_release_secctx (struct lsm_context *cp)h]jA)}(h4void security_release_secctx(struct lsm_context *cp)h](jG)}(hvoidh]hvoid}(hjhhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjihhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhhjihMubjj)}(hsecurity_release_secctxh]jp)}(hsecurity_release_secctxh]hsecurity_release_secctx}(hjihhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjiubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhhjihMubj)}(h(struct lsm_context *cp)h]j)}(hstruct lsm_context *cph](jL)}(hjOh]hstruct}(hj0ihhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj,iubjY)}(h h]h }(hj=ihhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj,iubh)}(hhh]jp)}(h lsm_contexth]h lsm_context}(hjNihhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjKiubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjPimodnameN classnameNjj)}j]j)}jjisbc.security_release_secctxasbuh1hhj,iubjY)}(h h]h }(hjnihhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj,iubj)}(hjh]h*}(hj|ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,iubjp)}(hcph]hcp}(hjihhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj,iubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(iubah}(h]h ]h"]h$]h&]jjuh1jhjhhhhjihMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhhjihMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1j:hjihMhjhhhubj)}(hhh]h)}(hFree a secctx bufferh]hFree a secctx buffer}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjihhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjihMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jij#jij$j%j&uh1j5hhhhhNhNubj()}(hq**Parameters** ``struct lsm_context *cp`` the security context **Description** Release the security context.h](h)}(h**Parameters**h]j2)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjiubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjiubjH)}(hhh]jM)}(h0``struct lsm_context *cp`` the security context h](jS)}(h``struct lsm_context *cp``h]h)}(hjih]hstruct lsm_context *cp}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjiubjm)}(hhh]h)}(hthe security contexth]hthe security context}(hj jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj jhMhj jubah}(h]h ]h"]h$]h&]uh1jlhjiubeh}(h]h ]h"]h$]h&]uh1jLhj jhMhjiubah}(h]h ]h"]h$]h&]uh1jGhjiubh)}(h**Description**h]j2)}(hj/jh]h Description}(hj1jhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj-jubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjiubh)}(hRelease the security context.h]hRelease the security context.}(hjEjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjiubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1-security_inode_invalidate_secctx (C function)"c.security_inode_invalidate_secctxhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h;void security_inode_invalidate_secctx (struct inode *inode)h]jA)}(h:void security_inode_invalidate_secctx(struct inode *inode)h](jG)}(hvoidh]hvoid}(hjtjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjpjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjpjhhhjjhMubjj)}(h security_inode_invalidate_secctxh]jp)}(h security_inode_invalidate_secctxh]h security_inode_invalidate_secctx}(hjjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjpjhhhjjhMubj)}(h(struct inode *inode)h]j)}(hstruct inode *inodeh](jL)}(hjOh]hstruct}(hjjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjjubjY)}(h h]h }(hjjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjjubh)}(hhh]jp)}(hinodeh]hinode}(hjjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjjmodnameN classnameNjj)}j]j)}jjjsb"c.security_inode_invalidate_secctxasbuh1hhjjubjY)}(h h]h }(hjjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjp)}(hinodeh]hinode}(hj khhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjjubah}(h]h ]h"]h$]h&]jjuh1jhjpjhhhjjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjljhhhjjhMubah}(h]jgjah ](jjeh"]h$]h&]jj)jhuh1j:hjjhMhjijhhubj)}(hhh]h)}(h$Invalidate an inode's security labelh]h&Invalidate an inode’s security label}(hj4khhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj1khhubah}(h]h ]h"]h$]h&]uh1jhjijhhhjjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jLkj#jLkj$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``struct inode *inode`` inode **Description** Notify the security module that it must revalidate the security context of an inode.h](h)}(h**Parameters**h]j2)}(hjVkh]h Parameters}(hjXkhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjTkubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjPkubjH)}(hhh]jM)}(h``struct inode *inode`` inode h](jS)}(h``struct inode *inode``h]h)}(hjukh]hstruct inode *inode}(hjwkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjskubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjokubjm)}(hhh]h)}(hinodeh]hinode}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjkubah}(h]h ]h"]h$]h&]uh1jlhjokubeh}(h]h ]h"]h$]h&]uh1jLhjkhMhjlkubah}(h]h ]h"]h$]h&]uh1jGhjPkubh)}(h**Description**h]j2)}(hjkh]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjkubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjPkubh)}(hTNotify the security module that it must revalidate the security context of an inode.h]hTNotify the security module that it must revalidate the security context of an inode.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjPkubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1(security_inode_notifysecctx (C function)c.security_inode_notifysecctxhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hLint security_inode_notifysecctx (struct inode *inode, void *ctx, u32 ctxlen)h]jA)}(hKint security_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen)h](jG)}(hinth]hint}(hjkhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjkhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjlhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjkhhhjlhMubjj)}(hsecurity_inode_notifysecctxh]jp)}(hsecurity_inode_notifysecctxh]hsecurity_inode_notifysecctx}(hjlhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjlubah}(h]h ](jjeh"]h$]h&]jjuh1jihjkhhhjlhMubj)}(h,(struct inode *inode, void *ctx, u32 ctxlen)h](j)}(hstruct inode *inodeh](jL)}(hjOh]hstruct}(hj2lhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj.lubjY)}(h h]h }(hj?lhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj.lubh)}(hhh]jp)}(hinodeh]hinode}(hjPlhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjMlubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjRlmodnameN classnameNjj)}j]j)}jjlsbc.security_inode_notifysecctxasbuh1hhj.lubjY)}(h h]h }(hjplhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj.lubj)}(hjh]h*}(hj~lhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.lubjp)}(hinodeh]hinode}(hjlhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj.lubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*lubj)}(h void *ctxh](jG)}(hvoidh]hvoid}(hjlhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjlubjY)}(h h]h }(hjlhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjlubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjp)}(hctxh]hctx}(hjlhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*lubj)}(h u32 ctxlenh](h)}(hhh]jp)}(hu32h]hu32}(hjlhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjlubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjlmodnameN classnameNjj)}j]jllc.security_inode_notifysecctxasbuh1hhjlubjY)}(h h]h }(hjmhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjlubjp)}(hctxlenh]hctxlen}(hjmhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*lubeh}(h]h ]h"]h$]h&]jjuh1jhjkhhhjlhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjkhhhjlhMubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1j:hjlhMhjkhhubj)}(hhh]h)}(h+Notify the LSM of an inode's security labelh]h-Notify the LSM of an inode’s security label}(hj?mhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhji_mutex locked. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j2)}(hjamh]h Parameters}(hjcmhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj_mubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj[mubjH)}(hhh](jM)}(h``struct inode *inode`` inode h](jS)}(h``struct inode *inode``h]h)}(hjmh]hstruct inode *inode}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~mubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjzmubjm)}(hhh]h)}(hinodeh]hinode}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jlhjzmubeh}(h]h ]h"]h$]h&]uh1jLhjmhMhjwmubjM)}(h``void *ctx`` secctx h](jS)}(h ``void *ctx``h]h)}(hjmh]h void *ctx}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjmubjm)}(hhh]h)}(hsecctxh]hsecctx}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]uh1jLhjmhMhjwmubjM)}(h ``u32 ctxlen`` length of secctx h](jS)}(h``u32 ctxlen``h]h)}(hjmh]h u32 ctxlen}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjmubjm)}(hhh]h)}(hlength of secctxh]hlength of secctx}(hj nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjnubah}(h]h ]h"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]uh1jLhjnhMhjwmubeh}(h]h ]h"]h$]h&]uh1jGhj[mubh)}(h**Description**h]j2)}(hj-nh]h Description}(hj/nhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj+nubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj[mubh)}(hXNotify the security module of what the security context of an inode should be. Initializes the incore security context managed by the security module for this inode. Example usage: NFS client invokes this hook to initialize the security context in its incore inode to the value provided by the server for the file when the server returned the file's attributes to the client. Must be called with inode->i_mutex locked.h]hXNotify the security module of what the security context of an inode should be. Initializes the incore security context managed by the security module for this inode. Example usage: NFS client invokes this hook to initialize the security context in its incore inode to the value provided by the server for the file when the server returned the file’s attributes to the client. Must be called with inode->i_mutex locked.}(hjCnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj[mubh)}(h **Return**h]j2)}(hjTnh]hReturn}(hjVnhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjRnubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj[mubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj[mubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1%security_inode_setsecctx (C function)c.security_inode_setsecctxhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hKint security_inode_setsecctx (struct dentry *dentry, void *ctx, u32 ctxlen)h]jA)}(hJint security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen)h](jG)}(hinth]hint}(hjnhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjnhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjnhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjnhhhjnhMubjj)}(hsecurity_inode_setsecctxh]jp)}(hsecurity_inode_setsecctxh]hsecurity_inode_setsecctx}(hjnhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjnubah}(h]h ](jjeh"]h$]h&]jjuh1jihjnhhhjnhMubj)}(h.(struct dentry *dentry, void *ctx, u32 ctxlen)h](j)}(hstruct dentry *dentryh](jL)}(hjOh]hstruct}(hjnhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjnubjY)}(h h]h }(hjnhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjnubh)}(hhh]jp)}(hdentryh]hdentry}(hjnhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjnubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjnmodnameN classnameNjj)}j]j)}jjnsbc.security_inode_setsecctxasbuh1hhjnubjY)}(h h]h }(hjohhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjnubj)}(hjh]h*}(hj"ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjp)}(hdentryh]hdentry}(hj/ohhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(h void *ctxh](jG)}(hvoidh]hvoid}(hjHohhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjDoubjY)}(h h]h }(hjVohhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjDoubj)}(hjh]h*}(hjdohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDoubjp)}(hctxh]hctx}(hjqohhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjDoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(h u32 ctxlenh](h)}(hhh]jp)}(hu32h]hu32}(hjohhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjoubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjomodnameN classnameNjj)}j]joc.security_inode_setsecctxasbuh1hhjoubjY)}(h h]h }(hjohhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjoubjp)}(hctxlenh]hctxlen}(hjohhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubeh}(h]h ]h"]h$]h&]jjuh1jhjnhhhjnhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjnhhhjnhMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1j:hjnhMhjnhhubj)}(hhh]h)}(h%Change the security label of an inodeh]h%Change the security label of an inode}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjohhubah}(h]h ]h"]h$]h&]uh1jhjnhhhjnhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"joj#joj$j%j&uh1j5hhhhhNhNubj()}(hX{**Parameters** ``struct dentry *dentry`` inode ``void *ctx`` secctx ``u32 ctxlen`` length of secctx **Description** Change the security context of an inode. Updates the incore security context managed by the security module and invokes the fs code as needed (via __vfs_setxattr_noperm) to update any backing xattrs that represent the context. Example usage: NFS server invokes this hook to change the security context in its incore inode and on the backing filesystem to a value provided by the client on a SETATTR operation. Must be called with inode->i_mutex locked. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j2)}(hjph]h Parameters}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjpubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjoubjH)}(hhh](jM)}(h ``struct dentry *dentry`` inode h](jS)}(h``struct dentry *dentry``h]h)}(hj$ph]hstruct dentry *dentry}(hj&phhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"pubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjpubjm)}(hhh]h)}(hinodeh]hinode}(hj=phhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9phMhj:pubah}(h]h ]h"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]uh1jLhj9phMhjpubjM)}(h``void *ctx`` secctx h](jS)}(h ``void *ctx``h]h)}(hj]ph]h void *ctx}(hj_phhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[pubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjWpubjm)}(hhh]h)}(hsecctxh]hsecctx}(hjvphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrphMhjspubah}(h]h ]h"]h$]h&]uh1jlhjWpubeh}(h]h ]h"]h$]h&]uh1jLhjrphMhjpubjM)}(h ``u32 ctxlen`` length of secctx h](jS)}(h``u32 ctxlen``h]h)}(hjph]h u32 ctxlen}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjpubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjpubjm)}(hhh]h)}(hlength of secctxh]hlength of secctx}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjpubah}(h]h ]h"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]uh1jLhjphMhjpubeh}(h]h ]h"]h$]h&]uh1jGhjoubh)}(h**Description**h]j2)}(hjph]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjpubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjoubh)}(hXChange the security context of an inode. Updates the incore security context managed by the security module and invokes the fs code as needed (via __vfs_setxattr_noperm) to update any backing xattrs that represent the context. Example usage: NFS server invokes this hook to change the security context in its incore inode and on the backing filesystem to a value provided by the client on a SETATTR operation. Must be called with inode->i_mutex locked.h]hXChange the security context of an inode. Updates the incore security context managed by the security module and invokes the fs code as needed (via __vfs_setxattr_noperm) to update any backing xattrs that represent the context. Example usage: NFS server invokes this hook to change the security context in its incore inode and on the backing filesystem to a value provided by the client on a SETATTR operation. Must be called with inode->i_mutex locked.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjoubh)}(h **Return**h]j2)}(hjph]hReturn}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjpubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjoubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjoubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1%security_inode_getsecctx (C function)c.security_inode_getsecctxhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hJint security_inode_getsecctx (struct inode *inode, struct lsm_context *cp)h]jA)}(hIint security_inode_getsecctx(struct inode *inode, struct lsm_context *cp)h](jG)}(hinth]hint}(hj=qhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj9qhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjLqhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj9qhhhjKqhMubjj)}(hsecurity_inode_getsecctxh]jp)}(hsecurity_inode_getsecctxh]hsecurity_inode_getsecctx}(hj^qhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjZqubah}(h]h ](jjeh"]h$]h&]jjuh1jihj9qhhhjKqhMubj)}(h-(struct inode *inode, struct lsm_context *cp)h](j)}(hstruct inode *inodeh](jL)}(hjOh]hstruct}(hjzqhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjvqubjY)}(h h]h }(hjqhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjvqubh)}(hhh]jp)}(hinodeh]hinode}(hjqhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjqubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjqmodnameN classnameNjj)}j]j)}jj`qsbc.security_inode_getsecctxasbuh1hhjvqubjY)}(h h]h }(hjqhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjvqubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvqubjp)}(hinodeh]hinode}(hjqhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjvqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrqubj)}(hstruct lsm_context *cph](jL)}(hjOh]hstruct}(hjqhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjqubjY)}(h h]h }(hjqhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjqubh)}(hhh]jp)}(h lsm_contexth]h lsm_context}(hj rhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjrubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj rmodnameN classnameNjj)}j]jqc.security_inode_getsecctxasbuh1hhjqubjY)}(h h]h }(hj(rhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjqubj)}(hjh]h*}(hj6rhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjp)}(hcph]hcp}(hjCrhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjrqubeh}(h]h ]h"]h$]h&]jjuh1jhj9qhhhjKqhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj5qhhhjKqhMubah}(h]j0qah ](jjeh"]h$]h&]jj)jhuh1j:hjKqhMhj2qhhubj)}(hhh]h)}(h"Get the security label of an inodeh]h"Get the security label of an inode}(hjmrhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjjrhhubah}(h]h ]h"]h$]h&]uh1jhj2qhhhjKqhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jrj#jrj$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct inode *inode`` inode ``struct lsm_context *cp`` security context **Description** On success, returns 0 and fills out **cp** with the security context for the given **inode**. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j2)}(hjrh]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjrubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjrubjH)}(hhh](jM)}(h``struct inode *inode`` inode h](jS)}(h``struct inode *inode``h]h)}(hjrh]hstruct inode *inode}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjrubjm)}(hhh]h)}(hinodeh]hinode}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]uh1jLhjrhMhjrubjM)}(h,``struct lsm_context *cp`` security context h](jS)}(h``struct lsm_context *cp``h]h)}(hjrh]hstruct lsm_context *cp}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjrubjm)}(hhh]h)}(hsecurity contexth]hsecurity context}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]uh1jLhjrhMhjrubeh}(h]h ]h"]h$]h&]uh1jGhjrubh)}(h**Description**h]j2)}(hj"sh]h Description}(hj$shhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj subah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjrubh)}(h]On success, returns 0 and fills out **cp** with the security context for the given **inode**.h](h$On success, returns 0 and fills out }(hj8shhhNhNubj2)}(h**cp**h]hcp}(hj@shhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj8subh) with the security context for the given }(hj8shhhNhNubj2)}(h **inode**h]hinode}(hjRshhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj8subh.}(hj8shhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjrubh)}(h **Return**h]j2)}(hjmsh]hReturn}(hjoshhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjksubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjrubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1)security_unix_stream_connect (C function)c.security_unix_stream_connecthNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h\int security_unix_stream_connect (struct sock *sock, struct sock *other, struct sock *newsk)h]jA)}(h[int security_unix_stream_connect(struct sock *sock, struct sock *other, struct sock *newsk)h](jG)}(hinth]hint}(hjshhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjshhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjshhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjshhhjshMubjj)}(hsecurity_unix_stream_connecth]jp)}(hsecurity_unix_stream_connecth]hsecurity_unix_stream_connect}(hjshhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjsubah}(h]h ](jjeh"]h$]h&]jjuh1jihjshhhjshMubj)}(h;(struct sock *sock, struct sock *other, struct sock *newsk)h](j)}(hstruct sock *sockh](jL)}(hjOh]hstruct}(hjshhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjsubjY)}(h h]h }(hjshhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjsubh)}(hhh]jp)}(hsockh]hsock}(hj thhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj tubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjtmodnameN classnameNjj)}j]j)}jjssbc.security_unix_stream_connectasbuh1hhjsubjY)}(h h]h }(hj-thhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjsubj)}(hjh]h*}(hj;thhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjp)}(hsockh]hsock}(hjHthhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hstruct sock *otherh](jL)}(hjOh]hstruct}(hjathhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj]tubjY)}(h h]h }(hjnthhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj]tubh)}(hhh]jp)}(hsockh]hsock}(hjthhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj|tubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjtmodnameN classnameNjj)}j]j)tc.security_unix_stream_connectasbuh1hhj]tubjY)}(h h]h }(hjthhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj]tubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]tubjp)}(hotherh]hother}(hjthhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj]tubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hstruct sock *newskh](jL)}(hjOh]hstruct}(hjthhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjtubjY)}(h h]h }(hjthhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjtubh)}(hhh]jp)}(hsockh]hsock}(hjthhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjtubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjtmodnameN classnameNjj)}j]j)tc.security_unix_stream_connectasbuh1hhjtubjY)}(h h]h }(hj uhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjtubj)}(hjh]h*}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjp)}(hnewskh]hnewsk}(hj(uhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubeh}(h]h ]h"]h$]h&]jjuh1jhjshhhjshMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjshhhjshMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1j:hjshMhjshhubj)}(hhh]h)}(h$Check if a AF_UNIX stream is allowedh]h$Check if a AF_UNIX stream is allowed}(hjRuhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjOuhhubah}(h]h ]h"]h$]h&]uh1jhjshhhjshMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jjuj#jjuj$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct sock *sock`` originating sock ``struct sock *other`` peer sock ``struct sock *newsk`` new sock **Description** Check permissions before establishing a Unix domain stream connection between **sock** and **other**. The **unix_stream_connect** and **unix_may_send** hooks were necessary because Linux provides an alternative to the conventional file name space for Unix domain sockets. Whereas binding and connecting to sockets in the file name space is mediated by the typical file permissions (and caught by the mknod and permission hooks in inode_security_ops), binding and connecting to sockets in the abstract name space is completely unmediated. Sufficient control of Unix domain sockets in the abstract name space isn't possible using only the socket layer hooks, since we need to know the actual target socket, which is not looked up until we are inside the af_unix code. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hjtuh]h Parameters}(hjvuhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjruubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM"hjnuubjH)}(hhh](jM)}(h'``struct sock *sock`` originating sock h](jS)}(h``struct sock *sock``h]h)}(hjuh]hstruct sock *sock}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjuubjm)}(hhh]h)}(horiginating sockh]horiginating sock}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhMhjuubah}(h]h ]h"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]uh1jLhjuhMhjuubjM)}(h!``struct sock *other`` peer sock h](jS)}(h``struct sock *other``h]h)}(hjuh]hstruct sock *other}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjuubjm)}(hhh]h)}(h peer sockh]h peer sock}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuhM hjuubah}(h]h ]h"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]uh1jLhjuhM hjuubjM)}(h ``struct sock *newsk`` new sock h](jS)}(h``struct sock *newsk``h]h)}(hjvh]hstruct sock *newsk}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM!hjuubjm)}(hhh]h)}(hnew sockh]hnew sock}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhM!hjvubah}(h]h ]h"]h$]h&]uh1jlhjuubeh}(h]h ]h"]h$]h&]uh1jLhjvhM!hjuubeh}(h]h ]h"]h$]h&]uh1jGhjnuubh)}(h**Description**h]j2)}(hj@vh]h Description}(hjBvhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj>vubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM#hjnuubh)}(heCheck permissions before establishing a Unix domain stream connection between **sock** and **other**.h](hNCheck permissions before establishing a Unix domain stream connection between }(hjVvhhhNhNubj2)}(h**sock**h]hsock}(hj^vhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjVvubh and }(hjVvhhhNhNubj2)}(h **other**h]hother}(hjpvhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjVvubh.}(hjVvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM"hjnuubh)}(hXThe **unix_stream_connect** and **unix_may_send** hooks were necessary because Linux provides an alternative to the conventional file name space for Unix domain sockets. Whereas binding and connecting to sockets in the file name space is mediated by the typical file permissions (and caught by the mknod and permission hooks in inode_security_ops), binding and connecting to sockets in the abstract name space is completely unmediated. Sufficient control of Unix domain sockets in the abstract name space isn't possible using only the socket layer hooks, since we need to know the actual target socket, which is not looked up until we are inside the af_unix code.h](hThe }(hjvhhhNhNubj2)}(h**unix_stream_connect**h]hunix_stream_connect}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjvubh and }(hjvhhhNhNubj2)}(h**unix_may_send**h]h unix_may_send}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjvubhXj hooks were necessary because Linux provides an alternative to the conventional file name space for Unix domain sockets. Whereas binding and connecting to sockets in the file name space is mediated by the typical file permissions (and caught by the mknod and permission hooks in inode_security_ops), binding and connecting to sockets in the abstract name space is completely unmediated. Sufficient control of Unix domain sockets in the abstract name space isn’t possible using only the socket layer hooks, since we need to know the actual target socket, which is not looked up until we are inside the af_unix code.}(hjvhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM%hjnuubh)}(h **Return**h]j2)}(hjvh]hReturn}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjvubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM/hjnuubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM0hjnuubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1#security_unix_may_send (C function)c.security_unix_may_sendhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hFint security_unix_may_send (struct socket *sock, struct socket *other)h]jA)}(hEint security_unix_may_send(struct socket *sock, struct socket *other)h](jG)}(hinth]hint}(hjwhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjvhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM:ubjY)}(h h]h }(hjwhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjvhhhjwhM:ubjj)}(hsecurity_unix_may_sendh]jp)}(hsecurity_unix_may_sendh]hsecurity_unix_may_send}(hj$whhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj wubah}(h]h ](jjeh"]h$]h&]jjuh1jihjvhhhjwhM:ubj)}(h+(struct socket *sock, struct socket *other)h](j)}(hstruct socket *sockh](jL)}(hjOh]hstruct}(hj@whhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjhjOxubjH)}(hhh](jM)}(h)``struct socket *sock`` originating sock h](jS)}(h``struct socket *sock``h]h)}(hjtxh]hstruct socket *sock}(hjvxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrxubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM;hjnxubjm)}(hhh]h)}(horiginating sockh]horiginating sock}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhM;hjxubah}(h]h ]h"]h$]h&]uh1jlhjnxubeh}(h]h ]h"]h$]h&]uh1jLhjxhM;hjkxubjM)}(h#``struct socket *other`` peer sock h](jS)}(h``struct socket *other``h]h)}(hjxh]hstruct socket *other}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM<hjxubjm)}(hhh]h)}(h peer sockh]h peer sock}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhM<hjxubah}(h]h ]h"]h$]h&]uh1jlhjxubeh}(h]h ]h"]h$]h&]uh1jLhjxhM<hjkxubeh}(h]h ]h"]h$]h&]uh1jGhjOxubh)}(h**Description**h]j2)}(hjxh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjxubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM>hjOxubh)}(hTCheck permissions before connecting or sending datagrams from **sock** to **other**.h](h>Check permissions before connecting or sending datagrams from }(hjxhhhNhNubj2)}(h**sock**h]hsock}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjxubh to }(hjxhhhNhNubj2)}(h **other**h]hother}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjxubh.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM=hjOxubh)}(hXThe **unix_stream_connect** and **unix_may_send** hooks were necessary because Linux provides an alternative to the conventional file name space for Unix domain sockets. Whereas binding and connecting to sockets in the file name space is mediated by the typical file permissions (and caught by the mknod and permission hooks in inode_security_ops), binding and connecting to sockets in the abstract name space is completely unmediated. Sufficient control of Unix domain sockets in the abstract name space isn't possible using only the socket layer hooks, since we need to know the actual target socket, which is not looked up until we are inside the af_unix code.h](hThe }(hj1yhhhNhNubj2)}(h**unix_stream_connect**h]hunix_stream_connect}(hj9yhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj1yubh and }(hj1yhhhNhNubj2)}(h**unix_may_send**h]h unix_may_send}(hjKyhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj1yubhXj hooks were necessary because Linux provides an alternative to the conventional file name space for Unix domain sockets. Whereas binding and connecting to sockets in the file name space is mediated by the typical file permissions (and caught by the mknod and permission hooks in inode_security_ops), binding and connecting to sockets in the abstract name space is completely unmediated. Sufficient control of Unix domain sockets in the abstract name space isn’t possible using only the socket layer hooks, since we need to know the actual target socket, which is not looked up until we are inside the af_unix code.}(hj1yhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM@hjOxubh)}(h **Return**h]j2)}(hjfyh]hReturn}(hjhyhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjdyubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMJhjOxubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj|yhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMKhjOxubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1'security_socket_socketpair (C function)c.security_socket_socketpairhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hKint security_socket_socketpair (struct socket *socka, struct socket *sockb)h]jA)}(hJint security_socket_socketpair(struct socket *socka, struct socket *sockb)h](jG)}(hinth]hint}(hjyhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjyhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM}ubjY)}(h h]h }(hjyhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjyhhhjyhM}ubjj)}(hsecurity_socket_socketpairh]jp)}(hsecurity_socket_socketpairh]hsecurity_socket_socketpair}(hjyhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjyubah}(h]h ](jjeh"]h$]h&]jjuh1jihjyhhhjyhM}ubj)}(h,(struct socket *socka, struct socket *sockb)h](j)}(hstruct socket *sockah](jL)}(hjOh]hstruct}(hjyhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjyubjY)}(h h]h }(hjyhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjyubh)}(hhh]jp)}(hsocketh]hsocket}(hjzhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjzubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjzmodnameN classnameNjj)}j]j)}jjysbc.security_socket_socketpairasbuh1hhjyubjY)}(h h]h }(hj&zhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjyubj)}(hjh]h*}(hj4zhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubjp)}(hsockah]hsocka}(hjAzhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjyubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(hstruct socket *sockbh](jL)}(hjOh]hstruct}(hjZzhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjVzubjY)}(h h]h }(hjgzhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjVzubh)}(hhh]jp)}(hsocketh]hsocket}(hjxzhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjuzubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjzzmodnameN classnameNjj)}j]j"zc.security_socket_socketpairasbuh1hhjVzubjY)}(h h]h }(hjzhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjVzubj)}(hjh]h*}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVzubjp)}(hsockbh]hsockb}(hjzhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjVzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjyhM}ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjyhhhjyhM}ubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1j:hjyhM}hjyhhubj)}(hhh]h)}(h)Check if creating a socketpair is allowedh]h)Check if creating a socketpair is allowed}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM}hjzhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjyhM}ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jzj#jzj$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct socket *socka`` first socket ``struct socket *sockb`` second socket **Description** Check permissions before creating a fresh pair of sockets. **Return** Returns 0 if permission is granted and the connection was established.h](h)}(h**Parameters**h]j2)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjzubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjzubjH)}(hhh](jM)}(h&``struct socket *socka`` first socket h](jS)}(h``struct socket *socka``h]h)}(hj{h]hstruct socket *socka}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM~hj{ubjm)}(hhh]h)}(h first socketh]h first socket}(hj5{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1{hM~hj2{ubah}(h]h ]h"]h$]h&]uh1jlhj{ubeh}(h]h ]h"]h$]h&]uh1jLhj1{hM~hj{ubjM)}(h'``struct socket *sockb`` second socket h](jS)}(h``struct socket *sockb``h]h)}(hjU{h]hstruct socket *sockb}(hjW{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS{ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjO{ubjm)}(hhh]h)}(h second socketh]h second socket}(hjn{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj{hMhjk{ubah}(h]h ]h"]h$]h&]uh1jlhjO{ubeh}(h]h ]h"]h$]h&]uh1jLhjj{hMhj{ubeh}(h]h ]h"]h$]h&]uh1jGhjzubh)}(h**Description**h]j2)}(hj{h]h Description}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj{ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjzubh)}(h:Check permissions before creating a fresh pair of sockets.h]h:Check permissions before creating a fresh pair of sockets.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjzubh)}(h **Return**h]j2)}(hj{h]hReturn}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj{ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjzubh)}(hFReturns 0 if permission is granted and the connection was established.h]hFReturns 0 if permission is granted and the connection was established.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1"security_sock_rcv_skb (C function)c.security_sock_rcv_skbhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h@int security_sock_rcv_skb (struct sock *sk, struct sk_buff *skb)h]jA)}(h?int security_sock_rcv_skb(struct sock *sk, struct sk_buff *skb)h](jG)}(hinth]hint}(hj{hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj{hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM7ubjY)}(h h]h }(hj |hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj{hhhj |hM7ubjj)}(hsecurity_sock_rcv_skbh]jp)}(hsecurity_sock_rcv_skbh]hsecurity_sock_rcv_skb}(hj|hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj{hhhj |hM7ubj)}(h&(struct sock *sk, struct sk_buff *skb)h](j)}(hstruct sock *skh](jL)}(hjOh]hstruct}(hj9|hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj5|ubjY)}(h h]h }(hjF|hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj5|ubh)}(hhh]jp)}(hsockh]hsock}(hjW|hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjT|ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjY|modnameN classnameNjj)}j]j)}jj|sbc.security_sock_rcv_skbasbuh1hhj5|ubjY)}(h h]h }(hjw|hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj5|ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5|ubjp)}(hskh]hsk}(hj|hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj5|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1|ubj)}(hstruct sk_buff *skbh](jL)}(hjOh]hstruct}(hj|hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj|ubjY)}(h h]h }(hj|hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj|ubh)}(hhh]jp)}(hsk_buffh]hsk_buff}(hj|hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj|ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj|modnameN classnameNjj)}j]js|c.security_sock_rcv_skbasbuh1hhj|ubjY)}(h h]h }(hj|hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj|ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjp)}(hskbh]hskb}(hj}hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj1|ubeh}(h]h ]h"]h$]h&]jjuh1jhj{hhhj |hM7ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj{hhhj |hM7ubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1j:hj |hM7hj{hhubj)}(hhh]h)}(h.Check if an incoming network packet is allowedh]h.Check if an incoming network packet is allowed}(hj,}hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM7hj)}hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhj |hM7ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jD}j#jD}j$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct sock *sk`` destination sock ``struct sk_buff *skb`` incoming packet **Description** Check permissions on incoming network packets. This hook is distinct from Netfilter's IP input hooks since it is the first time that the incoming sk_buff **skb** has been associated with a particular socket, **sk**. Must not sleep inside this hook because some callers hold spinlocks. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hjN}h]h Parameters}(hjP}hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjL}ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM;hjH}ubjH)}(hhh](jM)}(h%``struct sock *sk`` destination sock h](jS)}(h``struct sock *sk``h]h)}(hjm}h]hstruct sock *sk}(hjo}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk}ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM8hjg}ubjm)}(hhh]h)}(hdestination sockh]hdestination sock}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hM8hj}ubah}(h]h ]h"]h$]h&]uh1jlhjg}ubeh}(h]h ]h"]h$]h&]uh1jLhj}hM8hjd}ubjM)}(h(``struct sk_buff *skb`` incoming packet h](jS)}(h``struct sk_buff *skb``h]h)}(hj}h]hstruct sk_buff *skb}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM9hj}ubjm)}(hhh]h)}(hincoming packeth]hincoming packet}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hM9hj}ubah}(h]h ]h"]h$]h&]uh1jlhj}ubeh}(h]h ]h"]h$]h&]uh1jLhj}hM9hjd}ubeh}(h]h ]h"]h$]h&]uh1jGhjH}ubh)}(h**Description**h]j2)}(hj}h]h Description}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj}ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM;hjH}ubh)}(hXCheck permissions on incoming network packets. This hook is distinct from Netfilter's IP input hooks since it is the first time that the incoming sk_buff **skb** has been associated with a particular socket, **sk**. Must not sleep inside this hook because some callers hold spinlocks.h](hCheck permissions on incoming network packets. This hook is distinct from Netfilter’s IP input hooks since it is the first time that the incoming sk_buff }(hj}hhhNhNubj2)}(h**skb**h]hskb}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj}ubh/ has been associated with a particular socket, }(hj}hhhNhNubj2)}(h**sk**h]hsk}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj}ubhG. Must not sleep inside this hook because some callers hold spinlocks.}(hj}hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM:hjH}ubh)}(h **Return**h]j2)}(hj,~h]hReturn}(hj.~hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj*~ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM?hjH}ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjB~hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM@hjH}ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1-security_socket_getpeersec_dgram (C function)"c.security_socket_getpeersec_dgramhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h[int security_socket_getpeersec_dgram (struct socket *sock, struct sk_buff *skb, u32 *secid)h]jA)}(hZint security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid)h](jG)}(hinth]hint}(hjq~hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjm~hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM_ubjY)}(h h]h }(hj~hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjm~hhhj~hM_ubjj)}(h security_socket_getpeersec_dgramh]jp)}(h security_socket_getpeersec_dgramh]h security_socket_getpeersec_dgram}(hj~hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj~ubah}(h]h ](jjeh"]h$]h&]jjuh1jihjm~hhhj~hM_ubj)}(h6(struct socket *sock, struct sk_buff *skb, u32 *secid)h](j)}(hstruct socket *sockh](jL)}(hjOh]hstruct}(hj~hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj~ubjY)}(h h]h }(hj~hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj~ubh)}(hhh]jp)}(hsocketh]hsocket}(hj~hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj~ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj~modnameN classnameNjj)}j]j)}jj~sb"c.security_socket_getpeersec_dgramasbuh1hhj~ubjY)}(h h]h }(hj~hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj~ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubjp)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(hstruct sk_buff *skbh](jL)}(hjOh]hstruct}(hj hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hj-hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hsk_buffh]hsk_buff}(hj>hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj;ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj@modnameN classnameNjj)}j]j~"c.security_socket_getpeersec_dgramasbuh1hhjubjY)}(h h]h }(hj\hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hskbh]hskb}(hjwhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubj)}(h u32 *secidh](h)}(hhh]jp)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j~"c.security_socket_getpeersec_dgramasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hsecidh]hsecid}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj~ubeh}(h]h ]h"]h$]h&]jjuh1jhjm~hhhj~hM_ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhji~hhhj~hM_ubah}(h]jd~ah ](jjeh"]h$]h&]jj)jhuh1j:hj~hM_hjf~hhubj)}(hhh]h)}(hGet the remote peer labelh]hGet the remote peer label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM_hjhhubah}(h]h ]h"]h$]h&]uh1jhjf~hhhj~hM_ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(hX0**Parameters** ``struct socket *sock`` socket ``struct sk_buff *skb`` datagram packet ``u32 *secid`` remote peer label secid **Description** This hook allows the security module to provide peer socket security state for udp sockets on a per-packet basis to userspace via getsockopt SO_GETPEERSEC. The application must first have indicated the IP_PASSSEC option via getsockopt. It can then retrieve the security state returned by this hook for a packet via the SCM_SECURITY ancillary message type. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j2)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMchjubjH)}(hhh](jM)}(h``struct socket *sock`` socket h](jS)}(h``struct socket *sock``h]h)}(hj7h]hstruct socket *sock}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM`hj1ubjm)}(hhh]h)}(hsocketh]hsocket}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhM`hjMubah}(h]h ]h"]h$]h&]uh1jlhj1ubeh}(h]h ]h"]h$]h&]uh1jLhjLhM`hj.ubjM)}(h(``struct sk_buff *skb`` datagram packet h](jS)}(h``struct sk_buff *skb``h]h)}(hjph]hstruct sk_buff *skb}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMahjjubjm)}(hhh]h)}(hdatagram packeth]hdatagram packet}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMahjubah}(h]h ]h"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]uh1jLhjhMahj.ubjM)}(h'``u32 *secid`` remote peer label secid h](jS)}(h``u32 *secid``h]h)}(hjh]h u32 *secid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMbhjubjm)}(hhh]h)}(hremote peer label secidh]hremote peer label secid}(hj€hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMbhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMbhj.ubeh}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMdhjubh)}(hXcThis hook allows the security module to provide peer socket security state for udp sockets on a per-packet basis to userspace via getsockopt SO_GETPEERSEC. The application must first have indicated the IP_PASSSEC option via getsockopt. It can then retrieve the security state returned by this hook for a packet via the SCM_SECURITY ancillary message type.h]hXcThis hook allows the security module to provide peer socket security state for udp sockets on a per-packet basis to userspace via getsockopt SO_GETPEERSEC. The application must first have indicated the IP_PASSSEC option via getsockopt. It can then retrieve the security state returned by this hook for a packet via the SCM_SECURITY ancillary message type.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMchjubh)}(h **Return**h]j2)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMihjubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMjhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1security_sk_clone (C function)c.security_sk_clonehNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hBvoid security_sk_clone (const struct sock *sk, struct sock *newsk)h]jA)}(hAvoid security_sk_clone(const struct sock *sk, struct sock *newsk)h](jG)}(hvoidh]hvoid}(hjPhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjLhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hj_hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjLhhhj^hMubjj)}(hsecurity_sk_cloneh]jp)}(hsecurity_sk_cloneh]hsecurity_sk_clone}(hjqhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjmubah}(h]h ](jjeh"]h$]h&]jjuh1jihjLhhhj^hMubj)}(h+(const struct sock *sk, struct sock *newsk)h](j)}(hconst struct sock *skh](jL)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hsockh]hsock}(hjƁhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjÁubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjȁmodnameN classnameNjj)}j]j)}jjssbc.security_sk_cloneasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hskh]hsk}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sock *newskh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hj'hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hsockh]hsock}(hj8hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj5ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj:modnameN classnameNjj)}j]jc.security_sk_cloneasbuh1hhjubjY)}(h h]h }(hjVhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hnewskh]hnewsk}(hjqhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjLhhhj^hMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjHhhhj^hMubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1j:hj^hMhjEhhubj)}(hhh]h)}(hClone a sock's LSM stateh]hClone a sock’s LSM state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjEhhhj^hMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``const struct sock *sk`` original sock ``struct sock *newsk`` target sock **Description** Clone/copy security structure.h](h)}(h**Parameters**h]j2)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjH)}(hhh](jM)}(h(``const struct sock *sk`` original sock h](jS)}(h``const struct sock *sk``h]h)}(hj܂h]hconst struct sock *sk}(hjނhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjڂubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjւubjm)}(hhh]h)}(h original sockh]h original sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjւubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjӂubjM)}(h#``struct sock *newsk`` target sock h](jS)}(h``struct sock *newsk``h]h)}(hjh]hstruct sock *newsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(h target sockh]h target sock}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMhj+ubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhj*hMhjӂubeh}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hjPh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(hClone/copy security structure.h]hClone/copy security structure.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1&security_sk_classify_flow (C function)c.security_sk_classify_flowhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hQvoid security_sk_classify_flow (const struct sock *sk, struct flowi_common *flic)h]jA)}(hPvoid security_sk_classify_flow(const struct sock *sk, struct flowi_common *flic)h](jG)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhjhMubjj)}(hsecurity_sk_classify_flowh]jp)}(hsecurity_sk_classify_flowh]hsecurity_sk_classify_flow}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjhMubj)}(h2(const struct sock *sk, struct flowi_common *flic)h](j)}(hconst struct sock *skh](jL)}(hj h]hconst}(hj҃hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj΃ubjY)}(h h]h }(hj߃hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj΃ubjL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj΃ubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj΃ubh)}(hhh]jp)}(hsockh]hsock}(hj hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j)}jjsbc.security_sk_classify_flowasbuh1hhj΃ubjY)}(h h]h }(hj+hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj΃ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj΃ubjp)}(hskh]hsk}(hjFhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj΃ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjʃubj)}(hstruct flowi_common *flich](jL)}(hjOh]hstruct}(hj_hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj[ubjY)}(h h]h }(hjlhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj[ubh)}(hhh]jp)}(h flowi_commonh]h flowi_common}(hj}hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjzubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j'c.security_sk_classify_flowasbuh1hhj[ubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjp)}(hflich]hflic}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjʃubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjhMhjhhubj)}(hhh]h)}(h"Set a flow's secid based on socketh]h$Set a flow’s secid based on socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj݄hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``const struct sock *sk`` original socket ``struct flowi_common *flic`` target flow **Description** Set the target flow's secid to socket's secid.h](h)}(h**Parameters**h]j2)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjH)}(hhh](jM)}(h*``const struct sock *sk`` original socket h](jS)}(h``const struct sock *sk``h]h)}(hj!h]hconst struct sock *sk}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(horiginal socketh]horiginal socket}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]Hh&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhj6hMhjubjM)}(h*``struct flowi_common *flic`` target flow h](jS)}(h``struct flowi_common *flic``h]h)}(hjZh]hstruct flowi_common *flic}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjTubjm)}(hhh]h)}(h target flowh]h target flow}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjpubah}(h]h ]h"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]uh1jLhjohMhjubeh}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h.Set the target flow's secid to socket's secid.h]h2Set the target flow’s secid to socket’s secid.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1'security_req_classify_flow (C function)c.security_req_classify_flowhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h[void security_req_classify_flow (const struct request_sock *req, struct flowi_common *flic)h]jA)}(hZvoid security_req_classify_flow(const struct request_sock *req, struct flowi_common *flic)h](jG)}(hvoidh]hvoid}(hjڅhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjօhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjօhhhjhMubjj)}(hsecurity_req_classify_flowh]jp)}(hsecurity_req_classify_flowh]hsecurity_req_classify_flow}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjօhhhjhMubj)}(h;(const struct request_sock *req, struct flowi_common *flic)h](j)}(hconst struct request_sock *reqh](jL)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hj$hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjL)}(hjOh]hstruct}(hj2hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hj?hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(h request_sockh]h request_sock}(hjPhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjMubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjRmodnameN classnameNjj)}j]j)}jjsbc.security_req_classify_flowasbuh1hhjubjY)}(h h]h }(hjphhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hreqh]hreq}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct flowi_common *flich](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(h flowi_commonh]h flowi_common}(hj†hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjĆmodnameN classnameNjj)}j]jlc.security_req_classify_flowasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hflich]hflic}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjօhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj҅hhhjhMubah}(h]jͅah ](jjeh"]h$]h&]jj)jhuh1j:hjhMhjυhhubj)}(hhh]h)}(h(Set a flow's secid based on request_sockh]h*Set a flow’s secid based on request_sock}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj"hhubah}(h]h ]h"]h$]h&]uh1jhjυhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j=j#j=j$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``const struct request_sock *req`` request_sock ``struct flowi_common *flic`` target flow **Description** Sets **flic**'s secid to **req**'s secid.h](h)}(h**Parameters**h]j2)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjEubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjAubjH)}(hhh](jM)}(h0``const struct request_sock *req`` request_sock h](jS)}(h"``const struct request_sock *req``h]h)}(hjfh]hconst struct request_sock *req}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj`ubjm)}(hhh]h)}(h request_sockh]h request_sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]uh1jLhj{hMhj]ubjM)}(h*``struct flowi_common *flic`` target flow h](jS)}(h``struct flowi_common *flic``h]h)}(hjh]hstruct flowi_common *flic}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(h target flowh]h target flow}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhj]ubeh}(h]h ]h"]h$]h&]uh1jGhjAubh)}(h**Description**h]j2)}(hjڇh]h Description}(hj܇hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj؇ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjAubh)}(h)Sets **flic**'s secid to **req**'s secid.h](hSets }(hjhhhNhNubj2)}(h**flic**h]hflic}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubh’s secid to }(hjhhhNhNubj2)}(h**req**h]hreq}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubh ’s secid.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1 security_sock_graft (C function)c.security_sock_grafthNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hAvoid security_sock_graft (struct sock *sk, struct socket *parent)h]jA)}(h@void security_sock_graft(struct sock *sk, struct socket *parent)h](jG)}(hvoidh]hvoid}(hjChhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj?hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjRhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj?hhhjQhMubjj)}(hsecurity_sock_grafth]jp)}(hsecurity_sock_grafth]hsecurity_sock_graft}(hjdhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj?hhhjQhMubj)}(h((struct sock *sk, struct socket *parent)h](j)}(hstruct sock *skh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj|ubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj|ubh)}(hhh]jp)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjfsbc.security_sock_graftasbuh1hhj|ubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj|ubj)}(hjh]h*}(hj̈hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjp)}(hskh]hsk}(hjوhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hstruct socket *parenth](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.security_sock_graftasbuh1hhjubjY)}(h h]h }(hj.hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hparenth]hparent}(hjIhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubeh}(h]h ]h"]h$]h&]jjuh1jhj?hhhjQhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj;hhhjQhMubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1j:hjQhMhj8hhubj)}(hhh]h)}(h4Reconcile LSM state when grafting a sock on a socketh]h4Reconcile LSM state when grafting a sock on a socket}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjphhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjQhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``struct sock *sk`` sock being grafted ``struct socket *parent`` target parent socket **Description** Sets **parent**'s inode secid to **sk**'s secid and update **sk** with any necessary LSM state from **parent**.h](h)}(h**Parameters**h]j2)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjH)}(hhh](jM)}(h'``struct sock *sk`` sock being grafted h](jS)}(h``struct sock *sk``h]h)}(hjh]hstruct sock *sk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hsock being graftedh]hsock being grafted}(hj͉hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjɉhMhjʉubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjɉhMhjubjM)}(h/``struct socket *parent`` target parent socket h](jS)}(h``struct socket *parent``h]h)}(hjh]hstruct socket *parent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(htarget parent socketh]htarget parent socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubeh}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hj(h]h Description}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj&ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(hoSets **parent**'s inode secid to **sk**'s secid and update **sk** with any necessary LSM state from **parent**.h](hSets }(hj>hhhNhNubj2)}(h **parent**h]hparent}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj>ubh’s inode secid to }(hj>hhhNhNubj2)}(h**sk**h]hsk}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj>ubh’s secid and update }(hj>hhhNhNubj2)}(h**sk**h]hsk}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj>ubh# with any necessary LSM state from }(hj>hhhNhNubj2)}(h **parent**h]hparent}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj>ubh.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1'security_inet_conn_request (C function)c.security_inet_conn_requesthNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(heint security_inet_conn_request (const struct sock *sk, struct sk_buff *skb, struct request_sock *req)h]jA)}(hdint security_inet_conn_request(const struct sock *sk, struct sk_buff *skb, struct request_sock *req)h](jG)}(hinth]hint}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjĊhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhjÊhMubjj)}(hsecurity_inet_conn_requesth]jp)}(hsecurity_inet_conn_requesth]hsecurity_inet_conn_request}(hj֊hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjҊubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjÊhMubj)}(hF(const struct sock *sk, struct sk_buff *skb, struct request_sock *req)h](j)}(hconst struct sock *skh](jL)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjL)}(hjOh]hstruct}(hj hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hsockh]hsock}(hj+hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj(ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj-modnameN classnameNjj)}j]j)}jj؊sbc.security_inet_conn_requestasbuh1hhjubjY)}(h h]h }(hjKhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hskh]hsk}(hjfhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sk_buff *skbh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj{ubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj{ubh)}(hhh]jp)}(hsk_buffh]hsk_buff}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jGc.security_inet_conn_requestasbuh1hhj{ubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj{ubj)}(hjh]h*}(hjɋhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubjp)}(hskbh]hskb}(hj֋hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj{ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct request_sock *reqh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(h request_sockh]h request_sock}(hj hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jGc.security_inet_conn_requestasbuh1hhjubjY)}(h h]h }(hj+hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hreqh]hreq}(hjFhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjÊhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjÊhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjÊhMhjhhubj)}(hhh]h)}(h-Set request_sock state using incoming connecth]h-Set request_sock state using incoming connect}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjmhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjÊhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(hX:**Parameters** ``const struct sock *sk`` parent listening sock ``struct sk_buff *skb`` incoming connection ``struct request_sock *req`` new request_sock **Description** Initialize the **req** LSM state based on **sk** and the incoming connect in **skb**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjH)}(hhh](jM)}(h0``const struct sock *sk`` parent listening sock h](jS)}(h``const struct sock *sk``h]h)}(hjh]hconst struct sock *sk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hparent listening sockh]hparent listening sock}(hjʌhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjƌhMhjnjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjƌhMhjubjM)}(h,``struct sk_buff *skb`` incoming connection h](jS)}(h``struct sk_buff *skb``h]h)}(hjh]hstruct sk_buff *skb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hincoming connectionh]hincoming connection}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubjM)}(h.``struct request_sock *req`` new request_sock h](jS)}(h``struct request_sock *req``h]h)}(hj#h]hstruct request_sock *req}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hnew request_sockh]hnew request_sock}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hMhj9ubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhj8hMhjubeh}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hj^h]h Description}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj\ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(hUInitialize the **req** LSM state based on **sk** and the incoming connect in **skb**.h](hInitialize the }(hjthhhNhNubj2)}(h**req**h]hreq}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjtubh LSM state based on }(hjthhhNhNubj2)}(h**sk**h]hsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjtubh and the incoming connect in }(hjthhhNhNubj2)}(h**skb**h]hskb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjtubh.}(hjthhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h **Return**h]j2)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjэhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1+security_inet_conn_established (C function) c.security_inet_conn_establishedhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hJvoid security_inet_conn_established (struct sock *sk, struct sk_buff *skb)h]jA)}(hIvoid security_inet_conn_established(struct sock *sk, struct sk_buff *skb)h](jG)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhjhMubjj)}(hsecurity_inet_conn_establishedh]jp)}(hsecurity_inet_conn_establishedh]hsecurity_inet_conn_established}(hj!hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjhMubj)}(h&(struct sock *sk, struct sk_buff *skb)h](j)}(hstruct sock *skh](jL)}(hjOh]hstruct}(hj=hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj9ubjY)}(h h]h }(hjJhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj9ubh)}(hhh]jp)}(hsockh]hsock}(hj[hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjXubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj]modnameN classnameNjj)}j]j)}jj#sb c.security_inet_conn_establishedasbuh1hhj9ubjY)}(h h]h }(hj{hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjp)}(hskh]hsk}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(hstruct sk_buff *skbh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hsk_buffh]hsk_buff}(hj͎hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjʎubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjώmodnameN classnameNjj)}j]jw c.security_inet_conn_establishedasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hskbh]hskb}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjhMhjhhubj)}(hhh]h)}(h'Update sock's LSM state with connectionh]h)Update sock’s LSM state with connection}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj-hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jHj#jHj$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``struct sock *sk`` sock ``struct sk_buff *skb`` connection packet **Description** Update **sock**'s LSM state to represent a new connection from **skb**.h](h)}(h**Parameters**h]j2)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjPubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjLubjH)}(hhh](jM)}(h``struct sock *sk`` sock h](jS)}(h``struct sock *sk``h]h)}(hjqh]hstruct sock *sk}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjoubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjkubjm)}(hhh]h)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjhubjM)}(h*``struct sk_buff *skb`` connection packet h](jS)}(h``struct sk_buff *skb``h]h)}(hjh]hstruct sk_buff *skb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hconnection packeth]hconnection packet}(hjÏhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjhubeh}(h]h ]h"]h$]h&]uh1jGhjLubh)}(h**Description**h]j2)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjLubh)}(hGUpdate **sock**'s LSM state to represent a new connection from **skb**.h](hUpdate }(hjhhhNhNubj2)}(h**sock**h]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubh2’s LSM state to represent a new connection from }(hjhhhNhNubj2)}(h**skb**h]hskb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1,security_secmark_relabel_packet (C function)!c.security_secmark_relabel_packethNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h/int security_secmark_relabel_packet (u32 secid)h]jA)}(h.int security_secmark_relabel_packet(u32 secid)h](jG)}(hinth]hint}(hjNhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjJhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hj]hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjJhhhj\hMubjj)}(hsecurity_secmark_relabel_packeth]jp)}(hsecurity_secmark_relabel_packeth]hsecurity_secmark_relabel_packet}(hjohhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjkubah}(h]h ](jjeh"]h$]h&]jjuh1jihjJhhhj\hMubj)}(h (u32 secid)h]j)}(h u32 secidh](h)}(hhh]jp)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjqsb!c.security_secmark_relabel_packetasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjp)}(hsecidh]hsecid}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjJhhhj\hMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjFhhhj\hMubah}(h]jAah ](jjeh"]h$]h&]jj)jhuh1j:hj\hMhjChhubj)}(hhh]h)}(h%Check if setting a secmark is allowedh]h%Check if setting a secmark is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjChhhj\hMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``u32 secid`` new secmark value **Description** Check if the process should be allowed to relabel packets to **secid**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjubjH)}(hhh]jM)}(h ``u32 secid`` new secmark value h](jS)}(h ``u32 secid``h]h)}(hj'h]h u32 secid}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj!ubjm)}(hhh]h)}(hnew secmark valueh]hnew secmark value}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hM hj=ubah}(h]h ]h"]h$]h&]uh1jlhj!ubeh}(h]h ]h"]h$]h&]uh1jLhj<hM hjubah}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hjbh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj`ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjubh)}(hGCheck if the process should be allowed to relabel packets to **secid**.h](h=Check if the process should be allowed to relabel packets to }(hjxhhhNhNubj2)}(h **secid**h]hsecid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjxubh.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjubh)}(h **Return**h]j2)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1*security_secmark_refcount_inc (C function)c.security_secmark_refcount_inchNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h)void security_secmark_refcount_inc (void)h]jA)}(h(void security_secmark_refcount_inc(void)h](jG)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjܑhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjܑhhhjhMubjj)}(hsecurity_secmark_refcount_inch]jp)}(hsecurity_secmark_refcount_inch]hsecurity_secmark_refcount_inc}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjܑhhhjhMubj)}(h(void)h]j)}(hvoidh]jG)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjܑhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjؑhhhjhMubah}(h]jӑah ](jjeh"]h$]h&]jj)jhuh1j:hjhMhjՑhhubj)}(hhh]h)}(h)Increment the secmark labeling rule counth]h)Increment the secmark labeling rule count}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjDhhubah}(h]h ]h"]h$]h&]uh1jhjՑhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j_j#j_j$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``void`` no arguments **Description** Tells the LSM to increment the number of secmark labeling rules loaded.h](h)}(h**Parameters**h]j2)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjgubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjcubjH)}(hhh]jM)}(h``void`` no arguments h](jS)}(h``void``h]h)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chKhjubjm)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhKhjubah}(h]h ]h"]h$]h&]uh1jGhjcubh)}(h**Description**h]j2)}(hjÒh]h Description}(hjŒhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chKhjcubh)}(hGTells the LSM to increment the number of secmark labeling rules loaded.h]hGTells the LSM to increment the number of secmark labeling rules loaded.}(hjْhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1*security_secmark_refcount_dec (C function)c.security_secmark_refcount_dechNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h)void security_secmark_refcount_dec (void)h]jA)}(h(void security_secmark_refcount_dec(void)h](jG)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM!ubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhjhM!ubjj)}(hsecurity_secmark_refcount_dech]jp)}(hsecurity_secmark_refcount_dech]hsecurity_secmark_refcount_dec}(hj)hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjhM!ubj)}(h(void)h]j)}(hvoidh]jG)}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjAubah}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM!ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjhM!ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjhM!hjhhubj)}(hhh]h)}(h)Decrement the secmark labeling rule counth]h)Decrement the secmark labeling rule count}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM!hjlhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM!ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``void`` no arguments **Description** Tells the LSM to decrement the number of secmark labeling rules loaded.h](h)}(h**Parameters**h]j2)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM%hjubjH)}(hhh]jM)}(h``void`` no arguments h](jS)}(h``void``h]h)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chKhjubjm)}(hhh]h)}(h no argumentsh]h no arguments}(hjɓhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjœhKhjƓubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjœhKhjubah}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chKhjubh)}(hGTells the LSM to decrement the number of secmark labeling rules loaded.h]hGTells the LSM to decrement the number of secmark labeling rules loaded.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM"hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1,security_tun_dev_alloc_security (C function)!c.security_tun_dev_alloc_securityhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h5int security_tun_dev_alloc_security (void **security)h]jA)}(h4int security_tun_dev_alloc_security(void **security)h](jG)}(hinth]hint}(hj0hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj,hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM,ubjY)}(h h]h }(hj?hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj,hhhj>hM,ubjj)}(hsecurity_tun_dev_alloc_securityh]jp)}(hsecurity_tun_dev_alloc_securityh]hsecurity_tun_dev_alloc_security}(hjQhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjMubah}(h]h ](jjeh"]h$]h&]jjuh1jihj,hhhj>hM,ubj)}(h(void **security)h]j)}(hvoid **securityh](jG)}(hvoidh]hvoid}(hjmhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjiubjY)}(h h]h }(hj{hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubjp)}(hsecurityh]hsecurity}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjiubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubah}(h]h ]h"]h$]h&]jjuh1jhj,hhhj>hM,ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj(hhhj>hM,ubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1j:hj>hM,hj%hhubj)}(hhh]h)}(h$Allocate a LSM blob for a TUN deviceh]h$Allocate a LSM blob for a TUN device}(hj͔hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM,hjʔhhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj>hM,ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``void **security`` pointer to the LSM blob **Description** This hook allows a module to allocate a security structure for a TUN device, returning the pointer in **security**. **Return** Returns a zero on success, negative values on failure.h](h)}(h**Parameters**h]j2)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM0hjubjH)}(hhh]jM)}(h,``void **security`` pointer to the LSM blob h](jS)}(h``void **security``h]h)}(hjh]hvoid **security}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM-hjubjm)}(hhh]h)}(hpointer to the LSM blobh]hpointer to the LSM blob}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hM-hj$ubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhj#hM-hjubah}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hjIh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjGubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM/hjubh)}(hsThis hook allows a module to allocate a security structure for a TUN device, returning the pointer in **security**.h](hfThis hook allows a module to allocate a security structure for a TUN device, returning the pointer in }(hj_hhhNhNubj2)}(h **security**h]hsecurity}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj_ubh.}(hj_hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM.hjubh)}(h **Return**h]j2)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM1hjubh)}(h6Returns a zero on success, negative values on failure.h]h6Returns a zero on success, negative values on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM2hjubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1+security_tun_dev_free_security (C function) c.security_tun_dev_free_securityhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h4void security_tun_dev_free_security (void *security)h]jA)}(h3void security_tun_dev_free_security(void *security)h](jG)}(hvoidh]hvoid}(hjǕhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjÕhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMFubjY)}(h h]h }(hj֕hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjÕhhhjՕhMFubjj)}(hsecurity_tun_dev_free_securityh]jp)}(hsecurity_tun_dev_free_securityh]hsecurity_tun_dev_free_security}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjÕhhhjՕhMFubj)}(h(void *security)h]j)}(hvoid *securityh](jG)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hsecurityh]hsecurity}(hj-hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjÕhhhjՕhMFubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjՕhMFubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjՕhMFhjhhubj)}(hhh]h)}(hFree a TUN device LSM blobh]hFree a TUN device LSM blob}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMFhjThhubah}(h]h ]h"]h$]h&]uh1jhjhhhjՕhMFubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"joj#joj$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``void *security`` LSM blob **Description** This hook allows a module to free the security structure for a TUN device.h](h)}(h**Parameters**h]j2)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjwubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMJhjsubjH)}(hhh]jM)}(h``void *security`` LSM blob h](jS)}(h``void *security``h]h)}(hjh]hvoid *security}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMGhjubjm)}(hhh]h)}(hLSM blobh]hLSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMGhjubah}(h]h ]h"]h$]h&]uh1jGhjsubh)}(h**Description**h]j2)}(hjӖh]h Description}(hjՖhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjіubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMIhjsubh)}(hJThis hook allows a module to free the security structure for a TUN device.h]hJThis hook allows a module to free the security structure for a TUN device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMHhjsubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1$security_tun_dev_create (C function)c.security_tun_dev_createhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h"int security_tun_dev_create (void)h]jA)}(h!int security_tun_dev_create(void)h](jG)}(hinth]hint}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMRubjY)}(h h]h }(hj'hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhj&hMRubjj)}(hsecurity_tun_dev_createh]jp)}(hsecurity_tun_dev_createh]hsecurity_tun_dev_create}(hj9hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhj&hMRubj)}(h(void)h]j)}(hvoidh]jG)}(hvoidh]hvoid}(hjUhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjQubah}(h]h ]h"]h$]h&]noemphjjuh1jhjMubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj&hMRubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhj&hMRubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j:hj&hMRhj hhubj)}(hhh]h)}(h)Check if creating a TUN device is allowedh]h)Check if creating a TUN device is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMRhj|hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj&hMRubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``void`` no arguments **Description** Check permissions prior to creating a new TUN device. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMVhjubjH)}(hhh]jM)}(h``void`` no arguments h](jS)}(h``void``h]h)}(hjh]hvoid}(hj—hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chKhjubjm)}(hhh]h)}(h no argumentsh]h no arguments}(hjٗhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj՗hKhj֗ubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhj՗hKhjubah}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chKhjubh)}(h5Check permissions prior to creating a new TUN device.h]h5Check permissions prior to creating a new TUN device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMShjubh)}(h **Return**h]j2)}(hj"h]hReturn}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMUhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMVhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1*security_tun_dev_attach_queue (C function)c.security_tun_dev_attach_queuehNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h2int security_tun_dev_attach_queue (void *security)h]jA)}(h1int security_tun_dev_attach_queue(void *security)h](jG)}(hinth]hint}(hjghhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjchhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM_ubjY)}(h h]h }(hjvhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjchhhjuhM_ubjj)}(hsecurity_tun_dev_attach_queueh]jp)}(hsecurity_tun_dev_attach_queueh]hsecurity_tun_dev_attach_queue}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjchhhjuhM_ubj)}(h(void *security)h]j)}(hvoid *securityh](jG)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hsecurityh]hsecurity}(hj͘hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjchhhjuhM_ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj_hhhjuhM_ubah}(h]jZah ](jjeh"]h$]h&]jj)jhuh1j:hjuhM_hj\hhubj)}(hhh]h)}(h)Check if attaching a TUN queue is allowedh]h)Check if attaching a TUN queue is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM_hjhhubah}(h]h ]h"]h$]h&]uh1jhj\hhhjuhM_ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``void *security`` TUN device LSM blob **Description** Check permissions prior to attaching to a TUN device queue. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMchjubjH)}(hhh]jM)}(h'``void *security`` TUN device LSM blob h](jS)}(h``void *security``h]h)}(hj8h]hvoid *security}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM`hj2ubjm)}(hhh]h)}(hTUN device LSM blobh]hTUN device LSM blob}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjMhM`hjNubah}(h]h ]h"]h$]h&]uh1jlhj2ubeh}(h]h ]h"]h$]h&]uh1jLhjMhM`hj/ubah}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hjsh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjqubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMbhjubh)}(h;Check permissions prior to attaching to a TUN device queue.h]h;Check permissions prior to attaching to a TUN device queue.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMahjubh)}(h **Return**h]j2)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMchjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMdhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1$security_tun_dev_attach (C function)c.security_tun_dev_attachhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h=int security_tun_dev_attach (struct sock *sk, void *security)h]jA)}(hskb** of the association INIT packet to the LSM. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j2)}(hj̞h]h Parameters}(hjΞhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjʞubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjƞubjH)}(hhh](jM)}(h3``struct sctp_association *asoc`` SCTP association h](jS)}(h!``struct sctp_association *asoc``h]h)}(hjh]hstruct sctp_association *asoc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hSCTP associationh]hSCTP association}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubjM)}(h:``struct sk_buff *skb`` packet requesting the association h](jS)}(h``struct sk_buff *skb``h]h)}(hj$h]hstruct sk_buff *skb}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(h!packet requesting the associationh]h!packet requesting the association}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhj9hMhjubeh}(h]h ]h"]h$]h&]uh1jGhjƞubh)}(h**Description**h]j2)}(hj_h]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj]ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjƞubh)}(hQPasses the **asoc** and **chunk->skb** of the association INIT packet to the LSM.h](h Passes the }(hjuhhhNhNubj2)}(h**asoc**h]hasoc}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjuubh and }(hjuhhhNhNubj2)}(h**chunk->skb**h]h chunk->skb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjuubh+ of the association INIT packet to the LSM.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjƞubh)}(h **Return**h]j2)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjƞubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjƞubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1'security_sctp_bind_connect (C function)c.security_sctp_bind_connecthNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hdint security_sctp_bind_connect (struct sock *sk, int optname, struct sockaddr *address, int addrlen)h]jA)}(hcint security_sctp_bind_connect(struct sock *sk, int optname, struct sockaddr *address, int addrlen)h](jG)}(hinth]hint}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhjhMubjj)}(hsecurity_sctp_bind_connecth]jp)}(hsecurity_sctp_bind_connecth]hsecurity_sctp_bind_connect}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjhMubj)}(hE(struct sock *sk, int optname, struct sockaddr *address, int addrlen)h](j)}(hstruct sock *skh](jL)}(hjOh]hstruct}(hj,hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj(ubjY)}(h h]h }(hj9hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj(ubh)}(hhh]jp)}(hsockh]hsock}(hjJhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjGubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjLmodnameN classnameNjj)}j]j)}jjsbc.security_sctp_bind_connectasbuh1hhj(ubjY)}(h h]h }(hjjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj(ubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjp)}(hskh]hsk}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(h int optnameh](jG)}(hinth]hint}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjp)}(hoptnameh]hoptname}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(hstruct sockaddr *addressh](jL)}(hjOh]hstruct}(hjӠhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjϠubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjϠubh)}(hhh]jp)}(hsockaddrh]hsockaddr}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jfc.security_sctp_bind_connectasbuh1hhjϠubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjϠubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϠubjp)}(haddressh]haddress}(hj*hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjϠubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubj)}(h int addrlenh](jG)}(hinth]hint}(hjChhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj?ubjY)}(h h]h }(hjQhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj?ubjp)}(haddrlenh]haddrlen}(hj_hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjhMhjhhubj)}(hhh]h)}(h*Validate a list of addrs for a SCTP optionh]h*Validate a list of addrs for a SCTP option}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(hX4**Parameters** ``struct sock *sk`` socket ``int optname`` SCTP option to validate ``struct sockaddr *address`` list of IP addresses to validate ``int addrlen`` length of the address list **Description** Validiate permissions required for each address associated with sock **sk**. Depending on **optname**, the addresses will be treated as either a connect or bind service. The **addrlen** is calculated on each IPv4 and IPv6 address using sizeof(struct sockaddr_in) or sizeof(struct sockaddr_in6). **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j2)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjH)}(hhh](jM)}(h``struct sock *sk`` socket h](jS)}(h``struct sock *sk``h]h)}(hjʡh]hstruct sock *sk}(hj̡hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȡubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjġubjm)}(hhh]h)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjߡhMhjubah}(h]h ]h"]h$]h&]uh1jlhjġubeh}(h]h ]h"]h$]h&]uh1jLhjߡhMhjubjM)}(h(``int optname`` SCTP option to validate h](jS)}(h``int optname``h]h)}(hjh]h int optname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hSCTP option to validateh]hSCTP option to validate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubjM)}(h>``struct sockaddr *address`` list of IP addresses to validate h](jS)}(h``struct sockaddr *address``h]h)}(hj<h]hstruct sockaddr *address}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj6ubjm)}(hhh]h)}(h list of IP addresses to validateh]h list of IP addresses to validate}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1jlhj6ubeh}(h]h ]h"]h$]h&]uh1jLhjQhMhjubjM)}(h+``int addrlen`` length of the address list h](jS)}(h``int addrlen``h]h)}(hjuh]h int addrlen}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjoubjm)}(hhh]h)}(hlength of the address listh]hlength of the address list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubeh}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(hX&Validiate permissions required for each address associated with sock **sk**. Depending on **optname**, the addresses will be treated as either a connect or bind service. The **addrlen** is calculated on each IPv4 and IPv6 address using sizeof(struct sockaddr_in) or sizeof(struct sockaddr_in6).h](hEValidiate permissions required for each address associated with sock }(hjƢhhhNhNubj2)}(h**sk**h]hsk}(hj΢hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjƢubh. Depending on }(hjƢhhhNhNubj2)}(h **optname**h]hoptname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjƢubhI, the addresses will be treated as either a connect or bind service. The }(hjƢhhhNhNubj2)}(h **addrlen**h]haddrlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjƢubhm is calculated on each IPv4 and IPv6 address using sizeof(struct sockaddr_in) or sizeof(struct sockaddr_in6).}(hjƢhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h **Return**h]j2)}(hj h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1#security_sctp_sk_clone (C function)c.security_sctp_sk_clonehNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h`void security_sctp_sk_clone (struct sctp_association *asoc, struct sock *sk, struct sock *newsk)h]jA)}(h_void security_sctp_sk_clone(struct sctp_association *asoc, struct sock *sk, struct sock *newsk)h](jG)}(hvoidh]hvoid}(hjRhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjNhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjahhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjNhhhj`hMubjj)}(hsecurity_sctp_sk_cloneh]jp)}(hsecurity_sctp_sk_cloneh]hsecurity_sctp_sk_clone}(hjshhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjoubah}(h]h ](jjeh"]h$]h&]jjuh1jihjNhhhj`hMubj)}(hD(struct sctp_association *asoc, struct sock *sk, struct sock *newsk)h](j)}(hstruct sctp_association *asoch](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hsctp_associationh]hsctp_association}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjusbc.security_sctp_sk_cloneasbuh1hhjubjY)}(h h]h }(hjͣhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjۣhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hasoch]hasoc}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sock *skh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj!modnameN classnameNjj)}j]jɣc.security_sctp_sk_cloneasbuh1hhjubjY)}(h h]h }(hj=hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hskh]hsk}(hjXhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sock *newskh](jL)}(hjOh]hstruct}(hjqhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjmubjY)}(h h]h }(hj~hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjmubh)}(hhh]jp)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jɣc.security_sctp_sk_cloneasbuh1hhjmubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjmubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubjp)}(hnewskh]hnewsk}(hjȤhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjmubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjNhhhj`hMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjJhhhj`hMubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1j:hj`hMhjGhhubj)}(hhh]h)}(hClone a SCTP sock's LSM stateh]hClone a SCTP sock’s LSM state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjGhhhj`hMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j j#j j$j%j&uh1j5hhhhhNhNubj()}(hX6**Parameters** ``struct sctp_association *asoc`` SCTP association ``struct sock *sk`` original sock ``struct sock *newsk`` target sock **Description** Called whenever a new socket is created by accept(2) (i.e. a TCP style socket) or when a socket is 'peeled off' e.g userspace calls sctp_peeloff(3).h](h)}(h**Parameters**h]j2)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjH)}(hhh](jM)}(h3``struct sctp_association *asoc`` SCTP association h](jS)}(h!``struct sctp_association *asoc``h]h)}(hj3h]hstruct sctp_association *asoc}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj-ubjm)}(hhh]h)}(hSCTP associationh]hSCTP association}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjIubah}(h]h ]h"]h$]h&]uh1jlhj-ubeh}(h]h ]h"]h$]h&]uh1jLhjHhMhj*ubjM)}(h"``struct sock *sk`` original sock h](jS)}(h``struct sock *sk``h]h)}(hjlh]hstruct sock *sk}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjfubjm)}(hhh]h)}(h original sockh]h original sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjfubeh}(h]h ]h"]h$]h&]uh1jLhjhMhj*ubjM)}(h#``struct sock *newsk`` target sock h](jS)}(h``struct sock *newsk``h]h)}(hjh]hstruct sock *newsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(h target sockh]h target sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhj*ubeh}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjޥubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(hCalled whenever a new socket is created by accept(2) (i.e. a TCP style socket) or when a socket is 'peeled off' e.g userspace calls sctp_peeloff(3).h]hCalled whenever a new socket is created by accept(2) (i.e. a TCP style socket) or when a socket is ‘peeled off’ e.g userspace calls sctp_peeloff(3).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1,security_sctp_assoc_established (C function)!c.security_sctp_assoc_establishedhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hXint security_sctp_assoc_established (struct sctp_association *asoc, struct sk_buff *skb)h]jA)}(hWint security_sctp_assoc_established(struct sctp_association *asoc, struct sk_buff *skb)h](jG)}(hinth]hint}(hj%hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj!hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hj4hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj!hhhj3hMubjj)}(hsecurity_sctp_assoc_establishedh]jp)}(hsecurity_sctp_assoc_establishedh]hsecurity_sctp_assoc_established}(hjFhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjBubah}(h]h ](jjeh"]h$]h&]jjuh1jihj!hhhj3hMubj)}(h4(struct sctp_association *asoc, struct sk_buff *skb)h](j)}(hstruct sctp_association *asoch](jL)}(hjOh]hstruct}(hjbhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj^ubjY)}(h h]h }(hjohhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj^ubh)}(hhh]jp)}(hsctp_associationh]hsctp_association}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj}ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjHsb!c.security_sctp_assoc_establishedasbuh1hhj^ubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj^ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^ubjp)}(hasoch]hasoc}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubj)}(hstruct sk_buff *skbh](jL)}(hjOh]hstruct}(hjԦhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjЦubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjЦubh)}(hhh]jp)}(hsk_buffh]hsk_buff}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j!c.security_sctp_assoc_establishedasbuh1hhjЦubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjЦubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЦubjp)}(hskbh]hskb}(hj+hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjЦubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjZubeh}(h]h ]h"]h$]h&]jjuh1jhj!hhhj3hMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhj3hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hj3hMhjhhubj)}(hhh]h)}(h'Update LSM state when assoc establishedh]h'Update LSM state when assoc established}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjRhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj3hMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jmj#jmj$j%j&uh1j5hhhhhNhNubj()}(hX***Parameters** ``struct sctp_association *asoc`` SCTP association ``struct sk_buff *skb`` packet establishing the association **Description** Passes the **asoc** and **chunk->skb** of the association COOKIE_ACK packet to the security module. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjuubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjqubjH)}(hhh](jM)}(h3``struct sctp_association *asoc`` SCTP association h](jS)}(h!``struct sctp_association *asoc``h]h)}(hjh]hstruct sctp_association *asoc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hSCTP associationh]hSCTP association}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubjM)}(h<``struct sk_buff *skb`` packet establishing the association h](jS)}(h``struct sk_buff *skb``h]h)}(hjϧh]hstruct sk_buff *skb}(hjѧhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjͧubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjɧubjm)}(hhh]h)}(h#packet establishing the associationh]h#packet establishing the association}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjɧubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubeh}(h]h ]h"]h$]h&]uh1jGhjqubh)}(h**Description**h]j2)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjqubh)}(hcPasses the **asoc** and **chunk->skb** of the association COOKIE_ACK packet to the security module.h](h Passes the }(hj hhhNhNubj2)}(h**asoc**h]hasoc}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj ubh and }(hj hhhNhNubj2)}(h**chunk->skb**h]h chunk->skb}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj ubh= of the association COOKIE_ACK packet to the security module.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjqubh)}(h **Return**h]j2)}(hjUh]hReturn}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjSubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjqubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1security_unix_find (C function)c.security_unix_findhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hOint security_unix_find (const struct path *path, struct sock *other, int flags)h]jA)}(hNint security_unix_find(const struct path *path, struct sock *other, int flags)h](jG)}(hinth]hint}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhjhMubjj)}(hsecurity_unix_findh]jp)}(hsecurity_unix_findh]hsecurity_unix_find}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjhMubj)}(h8(const struct path *path, struct sock *other, int flags)h](j)}(hconst struct path *pathh](jL)}(hj h]hconst}(hjרhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjӨubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjӨubjL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjӨubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjӨubh)}(hhh]jp)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.security_unix_findasbuh1hhjӨubjY)}(h h]h }(hj0hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjӨubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӨubjp)}(hpathh]hpath}(hjKhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjӨubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjϨubj)}(hstruct sock *otherh](jL)}(hjOh]hstruct}(hjdhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj`ubjY)}(h h]h }(hjqhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj`ubh)}(hhh]jp)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j,c.security_unix_findasbuh1hhj`ubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj`ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjp)}(hotherh]hother}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjϨubj)}(h int flagsh](jG)}(hinth]hint}(hjԩhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjЩubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjЩubjp)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjЩubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjϨubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjhMhjhhubj)}(hhh]h)}(h+Check if a named AF_UNIX socket can connecth]h+Check if a named AF_UNIX socket can connect}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j2j#j2j$j%j&uh1j5hhhhhNhNubj()}(hXs**Parameters** ``const struct path *path`` path of the socket being connected to ``struct sock *other`` peer sock ``int flags`` flags associated with the socket **Description** This hook is called to check permissions before connecting to a named AF_UNIX socket. The caller does not hold any locks on **other**. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hj<h]h Parameters}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj:ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj6ubjH)}(hhh](jM)}(hB``const struct path *path`` path of the socket being connected to h](jS)}(h``const struct path *path``h]h)}(hj[h]hconst struct path *path}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjUubjm)}(hhh]h)}(h%path of the socket being connected toh]h%path of the socket being connected to}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjqubah}(h]h ]h"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]uh1jLhjphMhjRubjM)}(h!``struct sock *other`` peer sock h](jS)}(h``struct sock *other``h]h)}(hjh]hstruct sock *other}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(h peer sockh]h peer sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjRubjM)}(h/``int flags`` flags associated with the socket h](jS)}(h ``int flags``h]h)}(hjͪh]h int flags}(hjϪhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj˪ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjǪubjm)}(hhh]h)}(h flags associated with the socketh]h flags associated with the socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjǪubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjRubeh}(h]h ]h"]h$]h&]uh1jGhj6ubh)}(h**Description**h]j2)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj6ubh)}(hThis hook is called to check permissions before connecting to a named AF_UNIX socket. The caller does not hold any locks on **other**.h](h|This hook is called to check permissions before connecting to a named AF_UNIX socket. The caller does not hold any locks on }(hjhhhNhNubj2)}(h **other**h]hother}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj6ubh)}(h **Return**h]j2)}(hjAh]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj?ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj6ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj6ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1$security_ib_pkey_access (C function)c.security_ib_pkey_accesshNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hDint security_ib_pkey_access (void *sec, u64 subnet_prefix, u16 pkey)h]jA)}(hCint security_ib_pkey_access(void *sec, u64 subnet_prefix, u16 pkey)h](jG)}(hinth]hint}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhjhMubjj)}(hsecurity_ib_pkey_accessh]jp)}(hsecurity_ib_pkey_accessh]hsecurity_ib_pkey_access}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjhMubj)}(h((void *sec, u64 subnet_prefix, u16 pkey)h](j)}(h void *sech](jG)}(hvoidh]hvoid}(hjëhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hjѫhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hj߫hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hsech]hsec}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu64 subnet_prefixh](h)}(hhh]jp)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j)}jjsbc.security_ib_pkey_accessasbuh1hhjubjY)}(h h]h }(hj(hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjp)}(h subnet_prefixh]h subnet_prefix}(hj6hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hu16 pkeyh](h)}(hhh]jp)}(hu16h]hu16}(hjRhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjOubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjTmodnameN classnameNjj)}j]j$c.security_ib_pkey_accessasbuh1hhjKubjY)}(h h]h }(hjphhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjKubjp)}(hpkeyh]hpkey}(hj~hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj~hhhjhMubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1j:hjhMhj{hhubj)}(hhh]h)}(h(Check if access to an IB pkey is allowedh]h(Check if access to an IB pkey is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj{hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``void *sec`` LSM blob ``u64 subnet_prefix`` subnet prefix of the port ``u16 pkey`` IB pkey **Description** Check permission to access a pkey when modifying a QP. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hjʬh]h Parameters}(hj̬hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjȬubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjĬubjH)}(hhh](jM)}(h``void *sec`` LSM blob h](jS)}(h ``void *sec``h]h)}(hjh]h void *sec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hLSM blobh]hLSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubjM)}(h0``u64 subnet_prefix`` subnet prefix of the port h](jS)}(h``u64 subnet_prefix``h]h)}(hj"h]hu64 subnet_prefix}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hsubnet prefix of the porth]hsubnet prefix of the port}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhj7hMhjubjM)}(h``u16 pkey`` IB pkey h](jS)}(h ``u16 pkey``h]h)}(hj[h]hu16 pkey}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjUubjm)}(hhh]h)}(hIB pkeyh]hIB pkey}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjqubah}(h]h ]h"]h$]h&]uh1jlhjUubeh}(h]h ]h"]h$]h&]uh1jLhjphMhjubeh}(h]h ]h"]h$]h&]uh1jGhjĬubh)}(h**Description**h]j2)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjĬubh)}(h6Check permission to access a pkey when modifying a QP.h]h6Check permission to access a pkey when modifying a QP.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjĬubh)}(h **Return**h]j2)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjĬubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjӭhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjĬubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1.security_ib_endport_manage_subnet (C function)#c.security_ib_endport_manage_subnethNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hTint security_ib_endport_manage_subnet (void *sec, const char *dev_name, u8 port_num)h]jA)}(hSint security_ib_endport_manage_subnet(void *sec, const char *dev_name, u8 port_num)h](jG)}(hinth]hint}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhjhM ubjj)}(h!security_ib_endport_manage_subneth]jp)}(h!security_ib_endport_manage_subneth]h!security_ib_endport_manage_subnet}(hj#hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjhM ubj)}(h.(void *sec, const char *dev_name, u8 port_num)h](j)}(h void *sech](jG)}(hvoidh]hvoid}(hj?hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj;ubjY)}(h h]h }(hjMhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj;ubj)}(hjh]h*}(hj[hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjp)}(hsech]hsec}(hjhhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hconst char *dev_nameh](jL)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj}ubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj}ubjG)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj}ubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj}ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubjp)}(hdev_nameh]hdev_name}(hjŮhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(h u8 port_numh](h)}(hhh]jp)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjޮubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jj%sb#c.security_ib_endport_manage_subnetasbuh1hhjڮubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjڮubjp)}(hport_numh]hport_num}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjڮubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjhM hjhhubj)}(hhh]h)}(h Check if SMPs traffic is allowedh]h Check if SMPs traffic is allowed}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj6hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jQj#jQj$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``void *sec`` LSM blob ``const char *dev_name`` IB device name ``u8 port_num`` port number **Description** Check permissions to send and receive SMPs on a end port. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hj[h]h Parameters}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjYubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjUubjH)}(hhh](jM)}(h``void *sec`` LSM blob h](jS)}(h ``void *sec``h]h)}(hjzh]h void *sec}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjtubjm)}(hhh]h)}(hLSM blobh]hLSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jlhjtubeh}(h]h ]h"]h$]h&]uh1jLhjhM hjqubjM)}(h(``const char *dev_name`` IB device name h](jS)}(h``const char *dev_name``h]h)}(hjh]hconst char *dev_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjubjm)}(hhh]h)}(hIB device nameh]hIB device name}(hj̯hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȯhM hjɯubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjȯhM hjqubjM)}(h``u8 port_num`` port number h](jS)}(h``u8 port_num``h]h)}(hjh]h u8 port_num}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(h port numberh]h port number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjqubeh}(h]h ]h"]h$]h&]uh1jGhjUubh)}(h**Description**h]j2)}(hj'h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj%ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjUubh)}(h9Check permissions to send and receive SMPs on a end port.h]h9Check permissions to send and receive SMPs on a end port.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjUubh)}(h **Return**h]j2)}(hjNh]hReturn}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjLubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjUubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjUubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1'security_ib_alloc_security (C function)c.security_ib_alloc_securityhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h+int security_ib_alloc_security (void **sec)h]jA)}(h*int security_ib_alloc_security(void **sec)h](jG)}(hinth]hint}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhjhMubjj)}(hsecurity_ib_alloc_securityh]jp)}(hsecurity_ib_alloc_securityh]hsecurity_ib_alloc_security}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjhMubj)}(h (void **sec)h]j)}(h void **sech](jG)}(hvoidh]hvoid}(hjаhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj̰ubjY)}(h h]h }(hjްhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj̰ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̰ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̰ubjp)}(hsech]hsec}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj̰ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjȰubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjhMhjhhubj)}(hhh]h)}(hAllocate an Infiniband LSM blobh]hAllocate an Infiniband LSM blob}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj-hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jHj#jHj$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``void **sec`` LSM blob **Description** Allocate a security structure for Infiniband objects. **Return** Returns 0 on success, non-zero on failure.h](h)}(h**Parameters**h]j2)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjPubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjLubjH)}(hhh]jM)}(h``void **sec`` LSM blob h](jS)}(h``void **sec``h]h)}(hjqh]h void **sec}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjoubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjkubjm)}(hhh]h)}(hLSM blobh]hLSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjhubah}(h]h ]h"]h$]h&]uh1jGhjLubh)}(h**Description**h]j2)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjLubh)}(h5Allocate a security structure for Infiniband objects.h]h5Allocate a security structure for Infiniband objects.}(hj±hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjLubh)}(h **Return**h]j2)}(hjӱh]hReturn}(hjձhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjѱubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjLubh)}(h*Returns 0 on success, non-zero on failure.h]h*Returns 0 on success, non-zero on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM!hjLubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1&security_ib_free_security (C function)c.security_ib_free_securityhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h*void security_ib_free_security (void *sec)h]jA)}(h)void security_ib_free_security(void *sec)h](jG)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM5ubjY)}(h h]h }(hj'hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhj&hM5ubjj)}(hsecurity_ib_free_securityh]jp)}(hsecurity_ib_free_securityh]hsecurity_ib_free_security}(hj9hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhj&hM5ubj)}(h (void *sec)h]j)}(h void *sech](jG)}(hvoidh]hvoid}(hjUhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjQubjY)}(h h]h }(hjchhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjQubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQubjp)}(hsech]hsec}(hj~hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj&hM5ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhj&hM5ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j:hj&hM5hj hhubj)}(hhh]h)}(hFree an Infiniband LSM blobh]hFree an Infiniband LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM5hjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj&hM5ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(hg**Parameters** ``void *sec`` LSM blob **Description** Deallocate an Infiniband security structure.h](h)}(h**Parameters**h]j2)}(hjʲh]h Parameters}(hj̲hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjȲubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM9hjIJubjH)}(hhh]jM)}(h``void *sec`` LSM blob h](jS)}(h ``void *sec``h]h)}(hjh]h void *sec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM6hjubjm)}(hhh]h)}(hLSM blobh]hLSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhM6hjubah}(h]h ]h"]h$]h&]uh1jGhjIJubh)}(h**Description**h]j2)}(hj$h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj"ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM8hjIJubh)}(h,Deallocate an Infiniband security structure.h]h,Deallocate an Infiniband security structure.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM7hjIJubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1'security_xfrm_policy_alloc (C function)c.security_xfrm_policy_allochNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hiint security_xfrm_policy_alloc (struct xfrm_sec_ctx **ctxp, struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp)h]jA)}(hhint security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp)h](jG)}(hinth]hint}(hjihhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjehhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMCubjY)}(h h]h }(hjxhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjehhhjwhMCubjj)}(hsecurity_xfrm_policy_alloch]jp)}(hsecurity_xfrm_policy_alloch]hsecurity_xfrm_policy_alloc}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjehhhjwhMCubj)}(hJ(struct xfrm_sec_ctx **ctxp, struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp)h](j)}(hstruct xfrm_sec_ctx **ctxph](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjijhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjƳmodnameN classnameNjj)}j]j)}jjsbc.security_xfrm_policy_allocasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hctxph]hctxp}(hj hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h!struct xfrm_user_sec_ctx *sec_ctxh](jL)}(hjOh]hstruct}(hj%hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj!ubjY)}(h h]h }(hj2hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj!ubh)}(hhh]jp)}(hxfrm_user_sec_ctxh]hxfrm_user_sec_ctx}(hjChhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj@ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjEmodnameN classnameNjj)}j]jc.security_xfrm_policy_allocasbuh1hhj!ubjY)}(h h]h }(hjahhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj!ubj)}(hjh]h*}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjp)}(hsec_ctxh]hsec_ctx}(hj|hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h gfp_t gfph](h)}(hhh]jp)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.security_xfrm_policy_allocasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjp)}(hgfph]hgfp}(hjĴhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjehhhjwhMCubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjahhhjwhMCubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1j:hjwhMChj^hhubj)}(hhh]h)}(hAllocate a xfrm policy LSM blobh]hAllocate a xfrm policy LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMChjhhubah}(h]h ]h"]h$]h&]uh1jhj^hhhjwhMCubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct xfrm_sec_ctx **ctxp`` xfrm security context being added to the SPD ``struct xfrm_user_sec_ctx *sec_ctx`` security label provided by userspace ``gfp_t gfp`` gfp flags **Description** Allocate a security structure to the xp->security field; the security field is initialized to NULL when the xfrm_policy is allocated. **Return** Return 0 if operation was successful.h](h)}(h**Parameters**h]j2)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMGhj ubjH)}(hhh](jM)}(hL``struct xfrm_sec_ctx **ctxp`` xfrm security context being added to the SPD h](jS)}(h``struct xfrm_sec_ctx **ctxp``h]h)}(hj/h]hstruct xfrm_sec_ctx **ctxp}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMDhj)ubjm)}(hhh]h)}(h,xfrm security context being added to the SPDh]h,xfrm security context being added to the SPD}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMDhjEubah}(h]h ]h"]h$]h&]uh1jlhj)ubeh}(h]h ]h"]h$]h&]uh1jLhjDhMDhj&ubjM)}(hK``struct xfrm_user_sec_ctx *sec_ctx`` security label provided by userspace h](jS)}(h%``struct xfrm_user_sec_ctx *sec_ctx``h]h)}(hjhh]h!struct xfrm_user_sec_ctx *sec_ctx}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMEhjbubjm)}(hhh]h)}(h$security label provided by userspaceh]h$security label provided by userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMEhj~ubah}(h]h ]h"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]uh1jLhj}hMEhj&ubjM)}(h``gfp_t gfp`` gfp flags h](jS)}(h ``gfp_t gfp``h]h)}(hjh]h gfp_t gfp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMFhjubjm)}(hhh]h)}(h gfp flagsh]h gfp flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMFhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMFhj&ubeh}(h]h ]h"]h$]h&]uh1jGhj ubh)}(h**Description**h]j2)}(hjܵh]h Description}(hj޵hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjڵubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMHhj ubh)}(hAllocate a security structure to the xp->security field; the security field is initialized to NULL when the xfrm_policy is allocated.h]hAllocate a security structure to the xp->security field; the security field is initialized to NULL when the xfrm_policy is allocated.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMGhj ubh)}(h **Return**h]j2)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMJhj ubh)}(h%Return 0 if operation was successful.h]h%Return 0 if operation was successful.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1&security_xfrm_policy_free (C function)c.security_xfrm_policy_freehNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h9void security_xfrm_policy_free (struct xfrm_sec_ctx *ctx)h]jA)}(h8void security_xfrm_policy_free(struct xfrm_sec_ctx *ctx)h](jG)}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjDhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMfubjY)}(h h]h }(hjWhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjDhhhjVhMfubjj)}(hsecurity_xfrm_policy_freeh]jp)}(hsecurity_xfrm_policy_freeh]hsecurity_xfrm_policy_free}(hjihhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjeubah}(h]h ](jjeh"]h$]h&]jjuh1jihjDhhhjVhMfubj)}(h(struct xfrm_sec_ctx *ctx)h]j)}(hstruct xfrm_sec_ctx *ctxh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjksbc.security_xfrm_policy_freeasbuh1hhjubjY)}(h h]h }(hjöhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjѶhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hctxh]hctx}(hj޶hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj}ubah}(h]h ]h"]h$]h&]jjuh1jhjDhhhjVhMfubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj@hhhjVhMfubah}(h]j;ah ](jjeh"]h$]h&]jj)jhuh1j:hjVhMfhj=hhubj)}(hhh]h)}(hFree a xfrm security contexth]hFree a xfrm security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMfhjhhubah}(h]h ]h"]h$]h&]uh1jhj=hhhjVhMfubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j j#j j$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``struct xfrm_sec_ctx *ctx`` xfrm security context **Description** Free LSM resources associated with **ctx**.h](h)}(h**Parameters**h]j2)}(hj*h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj(ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMjhj$ubjH)}(hhh]jM)}(h3``struct xfrm_sec_ctx *ctx`` xfrm security context h](jS)}(h``struct xfrm_sec_ctx *ctx``h]h)}(hjIh]hstruct xfrm_sec_ctx *ctx}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMghjCubjm)}(hhh]h)}(hxfrm security contexth]hxfrm security context}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMghj_ubah}(h]h ]h"]h$]h&]uh1jlhjCubeh}(h]h ]h"]h$]h&]uh1jLhj^hMghj@ubah}(h]h ]h"]h$]h&]uh1jGhj$ubh)}(h**Description**h]j2)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMihj$ubh)}(h+Free LSM resources associated with **ctx**.h](h#Free LSM resources associated with }(hjhhhNhNubj2)}(h**ctx**h]hctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhhj$ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1&security_xfrm_state_alloc (C function)c.security_xfrm_state_allochNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hWint security_xfrm_state_alloc (struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx)h]jA)}(hVint security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx)h](jG)}(hinth]hint}(hj۷hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj׷hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj׷hhhjhMubjj)}(hsecurity_xfrm_state_alloch]jp)}(hsecurity_xfrm_state_alloch]hsecurity_xfrm_state_alloc}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihj׷hhhjhMubj)}(h9(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx)h](j)}(hstruct xfrm_state *xh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hj%hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(h xfrm_stateh]h xfrm_state}(hj6hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj3ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj8modnameN classnameNjj)}j]j)}jjsbc.security_xfrm_state_allocasbuh1hhjubjY)}(h h]h }(hjVhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hxh]hx}(hjqhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h!struct xfrm_user_sec_ctx *sec_ctxh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hxfrm_user_sec_ctxh]hxfrm_user_sec_ctx}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jRc.security_xfrm_state_allocasbuh1hhjubjY)}(h h]h }(hjƸhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjԸhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hsec_ctxh]hsec_ctx}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj׷hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjӷhhhjhMubah}(h]jηah ](jjeh"]h$]h&]jj)jhuh1j:hjhMhjзhhubj)}(hhh]h)}(hAllocate a xfrm state LSM blobh]hAllocate a xfrm state LSM blob}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjзhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j#j#j#j$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct xfrm_state *x`` xfrm state being added to the SAD ``struct xfrm_user_sec_ctx *sec_ctx`` security label provided by userspace **Description** Allocate a security structure to the **x->security** field; the security field is initialized to NULL when the xfrm_state is allocated. Set the context to correspond to **sec_ctx**. **Return** Return 0 if operation was successful.h](h)}(h**Parameters**h]j2)}(hj-h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj+ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj'ubjH)}(hhh](jM)}(h;``struct xfrm_state *x`` xfrm state being added to the SAD h](jS)}(h``struct xfrm_state *x``h]h)}(hjLh]hstruct xfrm_state *x}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjFubjm)}(hhh]h)}(h!xfrm state being added to the SADh]h!xfrm state being added to the SAD}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjbubah}(h]h ]h"]h$]h&]uh1jlhjFubeh}(h]h ]h"]h$]h&]uh1jLhjahMhjCubjM)}(hK``struct xfrm_user_sec_ctx *sec_ctx`` security label provided by userspace h](jS)}(h%``struct xfrm_user_sec_ctx *sec_ctx``h]h)}(hjh]h!struct xfrm_user_sec_ctx *sec_ctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(h$security label provided by userspaceh]h$security label provided by userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjCubeh}(h]h ]h"]h$]h&]uh1jGhj'ubh)}(h**Description**h]j2)}(hjh]h Description}(hj¹hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj'ubh)}(hAllocate a security structure to the **x->security** field; the security field is initialized to NULL when the xfrm_state is allocated. Set the context to correspond to **sec_ctx**.h](h%Allocate a security structure to the }(hjֹhhhNhNubj2)}(h**x->security**h]h x->security}(hj޹hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjֹubhu field; the security field is initialized to NULL when the xfrm_state is allocated. Set the context to correspond to }(hjֹhhhNhNubj2)}(h **sec_ctx**h]hsec_ctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjֹubh.}(hjֹhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj'ubh)}(h **Return**h]j2)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj'ubh)}(h%Return 0 if operation was successful.h]h%Return 0 if operation was successful.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1'security_xfrm_state_delete (C function)c.security_xfrm_state_deletehNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h5int security_xfrm_state_delete (struct xfrm_state *x)h]jA)}(h4int security_xfrm_state_delete(struct xfrm_state *x)h](jG)}(hinth]hint}(hjPhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjLhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hj_hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjLhhhj^hMubjj)}(hsecurity_xfrm_state_deleteh]jp)}(hsecurity_xfrm_state_deleteh]hsecurity_xfrm_state_delete}(hjqhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjmubah}(h]h ](jjeh"]h$]h&]jjuh1jihjLhhhj^hMubj)}(h(struct xfrm_state *x)h]j)}(hstruct xfrm_state *xh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(h xfrm_stateh]h xfrm_state}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjssbc.security_xfrm_state_deleteasbuh1hhjubjY)}(h h]h }(hj˺hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjٺhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hjsh]hx}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjLhhhj^hMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjHhhhj^hMubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1j:hj^hMhjEhhubj)}(hhh]h)}(h)Check if deleting a xfrm state is allowedh]h)Check if deleting a xfrm state is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjEhhhj^hMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j'j#j'j$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``struct xfrm_state *x`` xfrm state **Description** Authorize deletion of x->security. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hj1h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj/ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj+ubjH)}(hhh]jM)}(h$``struct xfrm_state *x`` xfrm state h](jS)}(h``struct xfrm_state *x``h]h)}(hjPh]hstruct xfrm_state *x}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjJubjm)}(hhh]h)}(h xfrm stateh]h xfrm state}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjfubah}(h]h ]h"]h$]h&]uh1jlhjJubeh}(h]h ]h"]h$]h&]uh1jLhjehMhjGubah}(h]h ]h"]h$]h&]uh1jGhj+ubh)}(h**Description**h]j2)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj+ubh)}(h"Authorize deletion of x->security.h]h"Authorize deletion of x->security.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj+ubh)}(h **Return**h]j2)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj+ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjȻhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj+ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1!security_locked_down (C function)c.security_locked_downhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h4int security_locked_down (enum lockdown_reason what)h]jA)}(h3int security_locked_down(enum lockdown_reason what)h](jG)}(hinth]hint}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMmubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhjhMmubjj)}(hsecurity_locked_downh]jp)}(hsecurity_locked_downh]hsecurity_locked_down}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjhMmubj)}(h(enum lockdown_reason what)h]j)}(henum lockdown_reason whath](jL)}(hj;h]henum}(hj4hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj0ubjY)}(h h]h }(hjAhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj0ubh)}(hhh]jp)}(hlockdown_reasonh]hlockdown_reason}(hjRhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjOubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjTmodnameN classnameNjj)}j]j)}jjsbc.security_locked_downasbuh1hhj0ubjY)}(h h]h }(hjrhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj0ubjp)}(hwhath]hwhat}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMmubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjhMmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjhMmhjhhubj)}(hhh]h)}(h$Check if a kernel feature is allowedh]h$Check if a kernel feature is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMmhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMmubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j¼j#j¼j$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``enum lockdown_reason what`` requested kernel feature **Description** Determine whether a kernel feature that potentially enables arbitrary code execution in kernel space should be permitted. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hj̼h]h Parameters}(hjμhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjʼubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMqhjƼubjH)}(hhh]jM)}(h7``enum lockdown_reason what`` requested kernel feature h](jS)}(h``enum lockdown_reason what``h]h)}(hjh]henum lockdown_reason what}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMnhjubjm)}(hhh]h)}(hrequested kernel featureh]hrequested kernel feature}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMnhjubah}(h]h ]h"]h$]h&]uh1jGhjƼubh)}(h**Description**h]j2)}(hj&h]h Description}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj$ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMphjƼubh)}(hyDetermine whether a kernel feature that potentially enables arbitrary code execution in kernel space should be permitted.h]hyDetermine whether a kernel feature that potentially enables arbitrary code execution in kernel space should be permitted.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMohjƼubh)}(h **Return**h]j2)}(hjMh]hReturn}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjKubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMrhjƼubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMshjƼubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1 security_bdev_alloc (C function)c.security_bdev_allochNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h3int security_bdev_alloc (struct block_device *bdev)h]jA)}(h2int security_bdev_alloc(struct block_device *bdev)h](jG)}(hinth]hint}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM|ubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhjhM|ubjj)}(hsecurity_bdev_alloch]jp)}(hsecurity_bdev_alloch]hsecurity_bdev_alloc}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjhM|ubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](jL)}(hjOh]hstruct}(hjϽhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj˽ubjY)}(h h]h }(hjܽhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj˽ubh)}(hhh]jp)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.security_bdev_allocasbuh1hhj˽ubjY)}(h h]h }(hj hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj˽ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj˽ubjp)}(hbdevh]hbdev}(hj(hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj˽ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjǽubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM|ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjhM|ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjhM|hjhhubj)}(hhh]h)}(h Allocate a block device LSM blobh]h Allocate a block device LSM blob}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM|hjOhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM|ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jjj#jjj$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct block_device *bdev`` block device **Description** Allocate and attach a security structure to **bdev->bd_security**. The security field is initialized to NULL when the bdev structure is allocated. **Return** Return 0 if operation was successful.h](h)}(h**Parameters**h]j2)}(hjth]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjrubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjnubjH)}(hhh]jM)}(h+``struct block_device *bdev`` block device h](jS)}(h``struct block_device *bdev``h]h)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM}hjubjm)}(hhh]h)}(h block deviceh]h block device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM}hjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhM}hjubah}(h]h ]h"]h$]h&]uh1jGhjnubh)}(h**Description**h]j2)}(hjξh]h Description}(hjоhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj̾ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjnubh)}(hAllocate and attach a security structure to **bdev->bd_security**. The security field is initialized to NULL when the bdev structure is allocated.h](h,Allocate and attach a security structure to }(hjhhhNhNubj2)}(h**bdev->bd_security**h]hbdev->bd_security}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubhR. The security field is initialized to NULL when the bdev structure is allocated.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM~hjnubh)}(h **Return**h]j2)}(hjh]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjnubh)}(h%Return 0 if operation was successful.h]h%Return 0 if operation was successful.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1security_bdev_free (C function)c.security_bdev_freehNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(h3void security_bdev_free (struct block_device *bdev)h]jA)}(h2void security_bdev_free(struct block_device *bdev)h](jG)}(hvoidh]hvoid}(hjLhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjHhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hj[hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjHhhhjZhMubjj)}(hsecurity_bdev_freeh]jp)}(hsecurity_bdev_freeh]hsecurity_bdev_free}(hjmhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjiubah}(h]h ](jjeh"]h$]h&]jjuh1jihjHhhhjZhMubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjosbc.security_bdev_freeasbuh1hhjubjY)}(h h]h }(hjǿhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjտhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjHhhhjZhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjDhhhjZhMubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1j:hjZhMhjAhhubj)}(hhh]h)}(hFree a block device's LSM blobh]h Free a block device’s LSM blob}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj hhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjZhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j$j#j$j$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``struct block_device *bdev`` block device **Description** Deallocate the bdev security structure and set **bdev->bd_security** to NULL.h](h)}(h**Parameters**h]j2)}(hj.h]h Parameters}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj,ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj(ubjH)}(hhh]jM)}(h+``struct block_device *bdev`` block device h](jS)}(h``struct block_device *bdev``h]h)}(hjMh]hstruct block_device *bdev}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjGubjm)}(hhh]h)}(h block deviceh]h block device}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMhjcubah}(h]h ]h"]h$]h&]uh1jlhjGubeh}(h]h ]h"]h$]h&]uh1jLhjbhMhjDubah}(h]h ]h"]h$]h&]uh1jGhj(ubh)}(h**Description**h]j2)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj(ubh)}(hMDeallocate the bdev security structure and set **bdev->bd_security** to NULL.h](h/Deallocate the bdev security structure and set }(hjhhhNhNubj2)}(h**bdev->bd_security**h]hbdev->bd_security}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubh to NULL.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj(ubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1'security_bdev_setintegrity (C function)c.security_bdev_setintegrityhNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hxint security_bdev_setintegrity (struct block_device *bdev, enum lsm_integrity_type type, const void *value, size_t size)h]jA)}(hwint security_bdev_setintegrity(struct block_device *bdev, enum lsm_integrity_type type, const void *value, size_t size)h](jG)}(hinth]hint}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhjhMubjj)}(hsecurity_bdev_setintegrityh]jp)}(hsecurity_bdev_setintegrityh]hsecurity_bdev_setintegrity}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjhMubj)}(hY(struct block_device *bdev, enum lsm_integrity_type type, const void *value, size_t size)h](j)}(hstruct block_device *bdevh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hj)hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(h block_deviceh]h block_device}(hj:hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj7ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj<modnameN classnameNjj)}j]j)}jjsbc.security_bdev_setintegrityasbuh1hhjubjY)}(h h]h }(hjZhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hbdevh]hbdev}(hjuhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum lsm_integrity_type typeh](jL)}(hj;h]henum}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hlsm_integrity_typeh]hlsm_integrity_type}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jVc.security_bdev_setintegrityasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjp)}(htypeh]htype}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst void *valueh](jL)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjG)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hvalueh]hvalue}(hj5hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]jp)}(hsize_th]hsize_t}(hjQhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjNubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjSmodnameN classnameNjj)}j]jVc.security_bdev_setintegrityasbuh1hhjJubjY)}(h h]h }(hjohhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjJubjp)}(hsizeh]hsize}(hj}hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjhMhjhhubj)}(hhh]h)}(hSet the device's integrity datah]h!Set the device’s integrity data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct block_device *bdev`` block device ``enum lsm_integrity_type type`` type of integrity, e.g. hash digest, signature, etc ``const void *value`` the integrity value ``size_t size`` size of the integrity value **Description** Register a verified integrity measurement of a bdev with LSMs. LSMs should free the previously saved data if **value** is NULL. Please note that the new hook should be invoked every time the security information is updated to keep these data current. For example, in dm-verity, if the mapping table is reloaded and configured to use a different dm-verity target with a new roothash and signing information, the previously stored data in the LSM blob will become obsolete. It is crucial to re-invoke the hook to refresh these data and ensure they are up to date. This necessity arises from the design of device-mapper, where a device-mapper device is first created, and then targets are subsequently loaded into it. These targets can be modified multiple times during the device's lifetime. Therefore, while the LSM blob is allocated during the creation of the block device, its actual contents are not initialized at this stage and can change substantially over time. This includes alterations from data that the LSMs 'trusts' to those they do not, making it essential to handle these changes correctly. Failure to address this dynamic aspect could potentially allow for bypassing LSM checks. **Return** Returns 0 on success, negative values on failure.h](h)}(h**Parameters**h]j2)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjH)}(hhh](jM)}(h+``struct block_device *bdev`` block device h](jS)}(h``struct block_device *bdev``h]h)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(h block deviceh]h block device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubjM)}(hU``enum lsm_integrity_type type`` type of integrity, e.g. hash digest, signature, etc h](jS)}(h ``enum lsm_integrity_type type``h]h)}(hj!h]henum lsm_integrity_type type}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(h3type of integrity, e.g. hash digest, signature, etch]h3type of integrity, e.g. hash digest, signature, etc}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6hMhj7ubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhj6hMhjubjM)}(h*``const void *value`` the integrity value h](jS)}(h``const void *value``h]h)}(hjZh]hconst void *value}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjTubjm)}(hhh]h)}(hthe integrity valueh]hthe integrity value}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjpubah}(h]h ]h"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]uh1jLhjohMhjubjM)}(h,``size_t size`` size of the integrity value h](jS)}(h``size_t size``h]h)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjm)}(hhh]h)}(hsize of the integrity valueh]hsize of the integrity value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubeh}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(hXRegister a verified integrity measurement of a bdev with LSMs. LSMs should free the previously saved data if **value** is NULL. Please note that the new hook should be invoked every time the security information is updated to keep these data current. For example, in dm-verity, if the mapping table is reloaded and configured to use a different dm-verity target with a new roothash and signing information, the previously stored data in the LSM blob will become obsolete. It is crucial to re-invoke the hook to refresh these data and ensure they are up to date. This necessity arises from the design of device-mapper, where a device-mapper device is first created, and then targets are subsequently loaded into it. These targets can be modified multiple times during the device's lifetime. Therefore, while the LSM blob is allocated during the creation of the block device, its actual contents are not initialized at this stage and can change substantially over time. This includes alterations from data that the LSMs 'trusts' to those they do not, making it essential to handle these changes correctly. Failure to address this dynamic aspect could potentially allow for bypassing LSM checks.h](hmRegister a verified integrity measurement of a bdev with LSMs. LSMs should free the previously saved data if }(hjhhhNhNubj2)}(h **value**h]hvalue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubhX8 is NULL. Please note that the new hook should be invoked every time the security information is updated to keep these data current. For example, in dm-verity, if the mapping table is reloaded and configured to use a different dm-verity target with a new roothash and signing information, the previously stored data in the LSM blob will become obsolete. It is crucial to re-invoke the hook to refresh these data and ensure they are up to date. This necessity arises from the design of device-mapper, where a device-mapper device is first created, and then targets are subsequently loaded into it. These targets can be modified multiple times during the device’s lifetime. Therefore, while the LSM blob is allocated during the creation of the block device, its actual contents are not initialized at this stage and can change substantially over time. This includes alterations from data that the LSMs ‘trusts’ to those they do not, making it essential to handle these changes correctly. Failure to address this dynamic aspect could potentially allow for bypassing LSM checks.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h **Return**h]j2)}(hjh]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubeh}(h]!linux-security-module-developmentah ]h"]!linux security module developmentah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerj^error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehʌ _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}j8j5s nametypes}j8sh}(j5hj3j<jjjjjfjkj j j j j[j`jjjjjjj j jy#j~#j%j%jH*jM*j-j-j/j0j2j2j66j;6j8j8j:j:j[>j`>jMAjRAj DjDjKGjPGjaIjfIjKjKjNjNjPjPjTj TjVjVj"Yj'YjZjZj]j]jP_jU_j`j`j0cj5cjBfjGfjhjhjgjjljjkjkjnjnj0qj5qjsjsjvjvjyjyj{j{jd~ji~jCjHjjjͅj҅j6j;jjjjjAjFjӑjؑjjj#j(jjj jjZj_jҙjיjjjmjrjjjEjJjjjjjyj~jjjjj jj\jaj;j@jηjӷjCjHjjjjj?jDjju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.