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;)}(hWint security_inode_listsecurity (struct inode *inode, char *buffer, size_t buffer_size)h]jA)}(hVint security_inode_listsecurity(struct inode *inode, char *buffer, size_t buffer_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)}(h7(struct inode *inode, char *buffer, size_t buffer_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&]uh1jhj3ubjp)}(hbufferh]hbuffer}(hj3hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj3ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:3ubj)}(hsize_t buffer_sizeh](h)}(hhh]jp)}(hsize_th]hsize_t}(hj3hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj3ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj3modnameN classnameNjj)}j]j|3c.security_inode_listsecurityasbuh1hhj3ubjY)}(h h]h }(hj4hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj3ubjp)}(h buffer_sizeh]h buffer_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}(hjO4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjL4hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj3hMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jg4j#jg4j$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct inode *inode`` inode ``char *buffer`` buffer ``size_t buffer_size`` size of buffer **Description** Copy the extended attribute names for the security labels associated with **inode** into **buffer**. The maximum size of **buffer** is specified by **buffer_size**. **buffer** may be NULL to request the size of the buffer required. **Return** Returns number of bytes used/required on success.h](h)}(h**Parameters**h]j2)}(hjq4h]h Parameters}(hjs4hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjo4ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjk4ubjH)}(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`` 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)}(hbufferh]hbuffer}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj4ubah}(h]h ]h"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]uh1jLhj4hMhj4ubjM)}(h&``size_t buffer_size`` size of buffer h](jS)}(h``size_t buffer_size``h]h)}(hj5h]hsize_t buffer_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.chMhj4ubjm)}(hhh]h)}(hsize of bufferh]hsize of buffer}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj5ubah}(h]h ]h"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]uh1jLhj5hMhj4ubeh}(h]h ]h"]h$]h&]uh1jGhjk4ubh)}(h**Description**h]j2)}(hj=5h]h Description}(hj?5hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj;5ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjk4ubh)}(hCopy the extended attribute names for the security labels associated with **inode** into **buffer**. The maximum size of **buffer** is specified by **buffer_size**. **buffer** may be NULL to request the size of the buffer required.h](hJCopy the extended attribute names for the security labels associated with }(hjS5hhhNhNubj2)}(h **inode**h]hinode}(hj[5hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjS5ubh into }(hjS5hhhNhNubj2)}(h **buffer**h]hbuffer}(hjm5hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjS5ubh. The maximum size of }(hjS5hhhNhNubj2)}(h **buffer**h]hbuffer}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjS5ubh is specified by }(hjS5hhhNhNubj2)}(h**buffer_size**h]h buffer_size}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjS5ubh. }(hjS5hhhNhNubj2)}(h **buffer**h]hbuffer}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjS5ubh8 may be NULL to request the size of the buffer required.}(hjS5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjk4ubh)}(h **Return**h]j2)}(hj5h]hReturn}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj5ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjk4ubh)}(h1Returns number of bytes used/required on success.h]h1Returns number of bytes used/required on success.}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjk4ubeh}(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}(hj6hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj5hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hj6hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj5hhhj6hMubjj)}(hsecurity_inode_copy_uph]jp)}(hsecurity_inode_copy_uph]hsecurity_inode_copy_up}(hj$6hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj 6ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj5hhhj6hMubj)}(h'(struct dentry *src, struct cred **new)h](j)}(hstruct dentry *srch](jL)}(hjOh]hstruct}(hj@6hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj<6ubjY)}(h h]h }(hjM6hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj<6ubh)}(hhh]jp)}(hdentryh]hdentry}(hj^6hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj[6ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj`6modnameN classnameNjj)}j]j)}jj&6sbc.security_inode_copy_upasbuh1hhj<6ubjY)}(h h]h }(hj~6hhhNhNubah}(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&]noemphjjuh1jhj86ubj)}(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}(hj6hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj6ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6modnameN classnameNjj)}j]jz6c.security_inode_copy_upasbuh1hhj6ubjY)}(h h]h }(hj6hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hj 7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubjp)}(hnewh]hnew}(hj7hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj86ubeh}(h]h ]h"]h$]h&]jjuh1jhj5hhhj6hMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj5hhhj6hMubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1j:hj6hMhj5hhubj)}(hhh]h)}(h,Create new creds for an overlayfs copy-up oph]h,Create new creds for an overlayfs copy-up op}(hj@7hhhNhNubah}(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&]uh1jhj5hhhj6hMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jX7j#jX7j$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)}(hjb7h]h Parameters}(hjd7hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj`7ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj\7ubjH)}(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.chMhj{7ubjm)}(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&]uh1jlhj{7ubeh}(h]h ]h"]h$]h&]uh1jLhj7hMhjx7ubjM)}(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}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1jlhj7ubeh}(h]h ]h"]h$]h&]uh1jLhj7hMhjx7ubeh}(h]h ]h"]h$]h&]uh1jGhj\7ubh)}(h**Description**h]j2)}(hj7h]h Description}(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.chMhj\7ubh)}(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.}(hj 8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj\7ubh)}(h **Return**h]j2)}(hj8h]hReturn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj8ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj\7ubh)}(h7Returns 0 on success or a negative error code on error.h]h7Returns 0 on success or a negative error code on error.}(hj28hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj\7ubeh}(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}(hja8hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj]8hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjY)}(h h]h }(hjp8hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj]8hhhjo8hM ubjj)}(hsecurity_inode_copy_up_xattrh]jp)}(hsecurity_inode_copy_up_xattrh]hsecurity_inode_copy_up_xattr}(hj8hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj~8ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj]8hhhjo8hM 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 }(hj8hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubjp)}(hsrch]hsrc}(hj8hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj8ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(hconst char *nameh](jL)}(hj h]hconst}(hj9hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj 9ubjY)}(h h]h }(hj9hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj 9ubjG)}(hcharh]hchar}(hj+9hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj 9ubjY)}(h h]h }(hj99hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj 9ubj)}(hjh]h*}(hjG9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj 9ubjp)}(hnameh]hname}(hjT9hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj 9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubeh}(h]h ]h"]h$]h&]jjuh1jhj]8hhhjo8hM ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjY8hhhjo8hM ubah}(h]jT8ah ](jjeh"]h$]h&]jj)jhuh1j:hjo8hM hjV8hhubj)}(hhh]h)}(h(Filter xattrs in an overlayfs copy-up oph]h(Filter xattrs in an overlayfs copy-up op}(hj~9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj{9hhubah}(h]h ]h"]h$]h&]uh1jhjV8hhhjo8hM 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}(hj9hhhNhNubah}(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}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hM hj9ubah}(h]h ]h"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]uh1jLhj9hM hj9ubjM)}(h ``const char *name`` xattr name h](jS)}(h``const char *name``h]h)}(hj9h]hconst char *name}(hj9hhhNhNubah}(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)}(h xattr nameh]h xattr name}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj :hM hj:ubah}(h]h ]h"]h$]h&]uh1jlhj9ubeh}(h]h ]h"]h$]h&]uh1jLhj :hM hj9ubeh}(h]h ]h"]h$]h&]uh1jGhj9ubh)}(h**Description**h]j2)}(hj3:h]h Description}(hj5:hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj1: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.}(hjI: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)}(hjZ:h]hReturn}(hj\:hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjX: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.}(hjp: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}(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)}jj:sbc.security_inode_setintegrityasbuh1hhj:ubjY)}(h h]h }(hj5;hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj:ubj)}(hjh]h*}(hjC;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubjp)}(hinodeh]hinode}(hjP;hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj:ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj:ubj)}(henum lsm_integrity_type typeh](jL)}(henumh]henum}(hji;hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhje;ubjY)}(h h]h }(hjw;hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhje;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]j1;c.security_inode_setintegrityasbuh1hhje;ubjY)}(h h]h }(hj;hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhje;ubjp)}(htypeh]htype}(hj;hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johje;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 }(hj;hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj;ubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjp)}(hvalueh]hvalue}(hj<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}(hj-<hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj*<ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj/<modnameN classnameNjj)}j]j1;c.security_inode_setintegrityasbuh1hhj&<ubjY)}(h h]h }(hjK<hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj&<ubjp)}(hsizeh]hsize}(hjY<hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj&<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" hj<ubjm)}(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&]uh1hhj=hM" hj=ubah}(h]h ]h"]h$]h&]uh1jlhj<ubeh}(h]h ]h"]h$]h&]uh1jLhj=hM" hj<ubjM)}(h*``const void *value`` the integrity value h](jS)}(h``const void *value``h]h)}(hj6=h]hconst void *value}(hj8=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4=ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM# hj0=ubjm)}(hhh]h)}(hthe integrity valueh]hthe integrity value}(hjO=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjK=hM# hjL=ubah}(h]h ]h"]h$]h&]uh1jlhj0=ubeh}(h]h ]h"]h$]h&]uh1jLhjK=hM# hj<ubjM)}(h,``size_t size`` size of the integrity value h](jS)}(h``size_t size``h]h)}(hjo=h]h size_t size}(hjq=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjm=ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM$ hji=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&]uh1jlhji=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.}(hj=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}(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 }(hj7>hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj$>hhhj6>hM ubjj)}(hsecurity_file_ioctlh]jp)}(hsecurity_file_ioctlh]hsecurity_file_ioctl}(hjI>hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjE>ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj$>hhhj6>hM ubj)}(h8(struct file *file, unsigned int cmd, unsigned long arg)h](j)}(hstruct file *fileh](jL)}(hjOh]hstruct}(hje>hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhja>ubjY)}(h h]h }(hjr>hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhja>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)}jjK>sbc.security_file_ioctlasbuh1hhja>ubjY)}(h h]h }(hj>hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhja>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhja>ubjp)}(hfileh]hfile}(hj>hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johja>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}(hj>hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj>ubjY)}(h h]h }(hj?hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj>ubjp)}(hcmdh]hcmd}(hj?hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]>ubj)}(hunsigned long argh](jG)}(hunsignedh]hunsigned}(hj(?hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj$?ubjY)}(h h]h }(hj6?hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj$?ubjG)}(hlongh]hlong}(hjD?hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj$?ubjY)}(h h]h }(hjR?hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj$?ubjp)}(hargh]harg}(hj`?hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj$?ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]>ubeh}(h]h ]h"]h$]h&]jjuh1jhj$>hhhj6>hM ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj >hhhj6>hM ubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1j:hj6>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>hhhj6>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)}(hj@h]hunsigned int cmd}(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 ioctl cmdh]h ioctl cmd}(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 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 hj7@ubjm)}(hhh]h)}(hioctl argumentsh]hioctl arguments}(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?ubeh}(h]h ]h"]h$]h&]uh1jGhj?ubh)}(h**Description**h]j2)}(hjx@h]h Description}(hjz@hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjv@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)}(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)}(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.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}(hjAhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjAhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjY)}(h h]h }(hj)AhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjAhhhj(AhM ubjj)}(hsecurity_file_ioctl_compath]jp)}(hsecurity_file_ioctl_compath]hsecurity_file_ioctl_compat}(hj;AhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj7Aubah}(h]h ](jjeh"]h$]h&]jjuh1jihjAhhhj(AhM ubj)}(h8(struct file *file, unsigned int cmd, unsigned long arg)h](j)}(hstruct file *fileh](jL)}(hjOh]hstruct}(hjWAhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjSAubjY)}(h h]h }(hjdAhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjSAubh)}(hhh]jp)}(hfileh]hfile}(hjuAhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjrAubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjwAmodnameN classnameNjj)}j]j)}jj=Asbc.security_file_ioctl_compatasbuh1hhjSAubjY)}(h h]h }(hjAhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjSAubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSAubjp)}(hfileh]hfile}(hjAhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjSAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOAubj)}(hunsigned int cmdh](jG)}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjAubjY)}(h h]h }(hjAhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjAubjG)}(hinth]hint}(hjAhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjAubjY)}(h h]h }(hjAhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjAubjp)}(hcmdh]hcmd}(hjBhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOAubj)}(hunsigned long argh](jG)}(hunsignedh]hunsigned}(hjBhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjBubjY)}(h h]h }(hj(BhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjBubjG)}(hlongh]hlong}(hj6BhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjBubjY)}(h h]h }(hjDBhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjBubjp)}(hargh]harg}(hjRBhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOAubeh}(h]h ]h"]h$]h&]jjuh1jhjAhhhj(AhM ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjAhhhj(AhM ubah}(h]j Aah ](jjeh"]h$]h&]jj)jhuh1j:hj(AhM hjAhhubj)}(hhh]h)}(h+Check if an ioctl is allowed in compat modeh]h+Check if an ioctl is allowed in compat mode}(hj|BhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjyBhhubah}(h]h ]h"]h$]h&]uh1jhjAhhhj(AhM 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}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM hjBubah}(h]h ]h"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]uh1jLhjBhM hjBubjM)}(h``unsigned int cmd`` ioctl cmd h](jS)}(h``unsigned int cmd``h]h)}(hjBh]hunsigned int cmd}(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)}(h ioctl cmdh]h ioctl cmd}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ChM hj Cubah}(h]h ]h"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]uh1jLhj ChM hjBubjM)}(h&``unsigned long arg`` ioctl arguments h](jS)}(h``unsigned long arg``h]h)}(hj/Ch]hunsigned long arg}(hj1ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-Cubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj)Cubjm)}(hhh]h)}(hioctl argumentsh]hioctl arguments}(hjHChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDChM hjECubah}(h]h ]h"]h$]h&]uh1jlhj)Cubeh}(h]h ]h"]h$]h&]uh1jLhjDChM hjBubeh}(h]h ]h"]h$]h&]uh1jGhjBubh)}(h**Description**h]j2)}(hjjCh]h Description}(hjlChhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjhCubah}(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.c>hM 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}(hjChhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjChhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjY)}(h h]h }(hjChhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjChhhjChM ubjj)}(hsecurity_mmap_backing_fileh]jp)}(hsecurity_mmap_backing_fileh]hsecurity_mmap_backing_file}(hjChhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjCubah}(h]h ](jjeh"]h$]h&]jjuh1jihjChhhjChM 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}(hjDhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjDubjY)}(h h]h }(hj DhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjDubh)}(hhh]jp)}(hvm_area_structh]hvm_area_struct}(hj1DhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj.Dubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj3DmodnameN classnameNjj)}j]j)}jjCsbc.security_mmap_backing_fileasbuh1hhjDubjY)}(h h]h }(hjQDhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjDubj)}(hjh]h*}(hj_DhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjp)}(hvmah]hvma}(hjlDhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Dubj)}(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]jMDc.security_mmap_backing_fileasbuh1hhjDubjY)}(h h]h }(hjDhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjDubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjp)}(h backing_fileh]h backing_file}(hjDhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Dubj)}(hstruct file *user_fileh](jL)}(hjOh]hstruct}(hjDhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjDubjY)}(h h]h }(hjEhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjDubh)}(hhh]jp)}(hfileh]hfile}(hjEhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjEubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjEmodnameN classnameNjj)}j]jMDc.security_mmap_backing_fileasbuh1hhjDubjY)}(h h]h }(hj1EhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjDubj)}(hjh]h*}(hj?EhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjp)}(h user_fileh]h user_file}(hjLEhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Dubeh}(h]h ]h"]h$]h&]jjuh1jhjChhhjChM ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjChhhjChM ubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1j:hjChM hjChhubj)}(hhh]h)}(h+Check if mmap'ing a backing file is allowedh]h-Check if mmap’ing a backing file is allowed}(hjvEhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjsEhhubah}(h]h ]h"]h$]h&]uh1jhjChhhjChM 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}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhM hjEubah}(h]h ]h"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]uh1jLhjEhM hjEubjM)}(h<``struct file *backing_file`` the backing file being mmap'd h](jS)}(h``struct file *backing_file``h]h)}(hjEh]hstruct file *backing_file}(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)}(hthe backing file being mmap'dh]hthe backing file being mmap’d}(hj FhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM hjFubah}(h]h ]h"]h$]h&]uh1jlhjEubeh}(h]h ]h"]h$]h&]uh1jLhjFhM hjEubjM)}(h6``struct file *user_file`` the user file being mmap'd h](jS)}(h``struct file *user_file``h]h)}(hj)Fh]hstruct file *user_file}(hj+FhhhNhNubah}(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 user file being mmap'dh]hthe user file being mmap’d}(hjBFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>FhM hj?Fubah}(h]h ]h"]h$]h&]uh1jlhj#Fubeh}(h]h ]h"]h$]h&]uh1jLhj>FhM hjEubeh}(h]h ]h"]h$]h&]uh1jGhjEubh)}(h**Description**h]j2)}(hjdFh]h Description}(hjfFhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjbFubah}(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 }(hjzFhhhNhNubj2)}(h**backing_file**h]h backing_file}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjzFubh6. It is important to note that the mmap operation on }(hjzFhhhNhNubj2)}(h **user_file**h]h user_file}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjzFubh% has already been authorized and the }(hjzFhhhNhNubj2)}(h**vma->vm_file**h]h vma->vm_file}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjzFubh has been set to }(hjzFhhhNhNubj2)}(h**backing_file**h]h backing_file}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjzFubh.}(hjzFhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjEubh)}(h **Return**h]j2)}(hjFh]hReturn}(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)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjFhhhNhNubah}(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}(hjGhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjGhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjY)}(h h]h }(hj'GhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjGhhhj&GhM ubjj)}(hsecurity_file_post_openh]jp)}(hsecurity_file_post_openh]hsecurity_file_post_open}(hj9GhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj5Gubah}(h]h ](jjeh"]h$]h&]jjuh1jihjGhhhj&GhM ubj)}(h(struct file *file, int mask)h](j)}(hstruct file *fileh](jL)}(hjOh]hstruct}(hjUGhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjQGubjY)}(h h]h }(hjbGhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjQGubh)}(hhh]jp)}(hfileh]hfile}(hjsGhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjpGubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjuGmodnameN classnameNjj)}j]j)}jj;Gsbc.security_file_post_openasbuh1hhjQGubjY)}(h h]h }(hjGhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjQGubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQGubjp)}(hfileh]hfile}(hjGhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjQGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMGubj)}(hint maskh](jG)}(hinth]hint}(hjGhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjGubjY)}(h h]h }(hjGhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjGubjp)}(hmaskh]hmask}(hjGhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMGubeh}(h]h ]h"]h$]h&]jjuh1jhjGhhhj&GhM ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjGhhhj&GhM ubah}(h]j Gah ](jjeh"]h$]h&]jj)jhuh1j:hj&GhM hj Ghhubj)}(hhh]h)}(h(Evaluate a file after it has been openedh]h(Evaluate a file after it has been opened}(hj HhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj Hhhubah}(h]h ]h"]h$]h&]uh1jhj Ghhhj&GhM ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j%Hj#j%Hj$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)}(hj/Hh]h Parameters}(hj1HhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj-Hubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj)HubjH)}(hhh](jM)}(h``struct file *file`` the file h](jS)}(h``struct file *file``h]h)}(hjNHh]hstruct file *file}(hjPHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLHubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjHHubjm)}(hhh]h)}(hthe fileh]hthe file}(hjgHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcHhM hjdHubah}(h]h ]h"]h$]h&]uh1jlhjHHubeh}(h]h ]h"]h$]h&]uh1jLhjcHhM hjEHubjM)}(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 hjEHubeh}(h]h ]h"]h$]h&]uh1jGhj)Hubh)}(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.chM hj)Hubh)}(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.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj)Hubh)}(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.chM hj)Hubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj)Hubeh}(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}(hj.IhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj*Ihhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMJ ubjY)}(h h]h }(hj=IhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj*IhhhjNhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj;Nubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj@NmodnameN classnameNjj)}j]j)}jjNsbc.security_kernel_read_fileasbuh1hhjNubjY)}(h h]h }(hj^NhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjNubj)}(hjh]h*}(hjlNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjp)}(hfileh]hfile}(hjyNhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(henum kernel_read_file_id idh](jL)}(hjk;h]henum}(hjNhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjNubjY)}(h h]h }(hjNhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjNubh)}(hhh]jp)}(hkernel_read_file_idh]hkernel_read_file_id}(hjNhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjNubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjNmodnameN classnameNjj)}j]jZNc.security_kernel_read_fileasbuh1hhjNubjY)}(h h]h }(hjNhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjNubjp)}(hidh]hid}(hjNhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubj)}(h bool contentsh](jG)}(hboolh]hbool}(hjNhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjNubjY)}(h h]h }(hjOhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjNubjp)}(hcontentsh]hcontents}(hjOhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjNubeh}(h]h ]h"]h$]h&]jjuh1jhjMhhhjMhM ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjMhhhjMhM ubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1j:hjMhM hjMhhubj)}(hhh]h)}(h"Read a file specified by userspaceh]h"Read a file specified by userspace}(hj;OhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj8Ohhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjMhM ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jSOj#jSOj$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct file *file`` file ``enum kernel_read_file_id id`` file identifier ``bool contents`` trust if security_kernel_post_read_file() will be called **Description** Read a file specified by userspace. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hj]Oh]h Parameters}(hj_OhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj[Oubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjWOubjH)}(hhh](jM)}(h``struct file *file`` file h](jS)}(h``struct file *file``h]h)}(hj|Oh]hstruct file *file}(hj~OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzOubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjvOubjm)}(hhh]h)}(hfileh]hfile}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM hjOubah}(h]h ]h"]h$]h&]uh1jlhjvOubeh}(h]h ]h"]h$]h&]uh1jLhjOhM hjsOubjM)}(h0``enum kernel_read_file_id id`` file identifier h](jS)}(h``enum kernel_read_file_id id``h]h)}(hjOh]henum kernel_read_file_id id}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjOubjm)}(hhh]h)}(hfile identifierh]hfile identifier}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM hjOubah}(h]h ]h"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]uh1jLhjOhM hjsOubjM)}(hK``bool contents`` trust if security_kernel_post_read_file() will be called h](jS)}(h``bool contents``h]h)}(hjOh]h bool contents}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjOubjm)}(hhh]h)}(h8trust if security_kernel_post_read_file() will be calledh]h8trust if security_kernel_post_read_file() will be called}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhM hjPubah}(h]h ]h"]h$]h&]uh1jlhjOubeh}(h]h ]h"]h$]h&]uh1jLhjPhM hjsOubeh}(h]h ]h"]h$]h&]uh1jGhjWOubh)}(h**Description**h]j2)}(hj)Ph]h Description}(hj+PhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj'Pubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjWOubh)}(h#Read a file specified by userspace.h]h#Read a file specified by userspace.}(hj?PhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjWOubh)}(h **Return**h]j2)}(hjPPh]hReturn}(hjRPhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjNPubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjWOubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjfPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjWOubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1+security_kernel_post_read_file (C function) c.security_kernel_post_read_filehNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hkint security_kernel_post_read_file (struct file *file, char *buf, loff_t size, enum kernel_read_file_id id)h]jA)}(hjint security_kernel_post_read_file(struct file *file, char *buf, loff_t size, enum kernel_read_file_id id)h](jG)}(hinth]hint}(hjPhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjPhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjY)}(h h]h }(hjPhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjPhhhjPhM ubjj)}(hsecurity_kernel_post_read_fileh]jp)}(hsecurity_kernel_post_read_fileh]hsecurity_kernel_post_read_file}(hjPhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjPubah}(h]h ](jjeh"]h$]h&]jjuh1jihjPhhhjPhM ubj)}(hH(struct file *file, char *buf, loff_t size, enum kernel_read_file_id id)h](j)}(hstruct file *fileh](jL)}(hjOh]hstruct}(hjPhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjPubjY)}(h h]h }(hjPhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjPubh)}(hhh]jp)}(hfileh]hfile}(hjPhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjPubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjPmodnameN classnameNjj)}j]j)}jjPsb c.security_kernel_post_read_fileasbuh1hhjPubjY)}(h h]h }(hjQhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjPubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjp)}(hfileh]hfile}(hj+QhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(h char *bufh](jG)}(hcharh]hchar}(hjDQhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj@QubjY)}(h h]h }(hjRQhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj@Qubj)}(hjh]h*}(hj`QhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@Qubjp)}(hbufh]hbuf}(hjmQhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj@Qubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(h loff_t sizeh](h)}(hhh]jp)}(hloff_th]hloff_t}(hjQhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjQubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjQmodnameN classnameNjj)}j]j Q c.security_kernel_post_read_fileasbuh1hhjQubjY)}(h h]h }(hjQhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjQubjp)}(hsizeh]hsize}(hjQhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubj)}(henum kernel_read_file_id idh](jL)}(hjk;h]henum}(hjQhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjQubjY)}(h h]h }(hjQhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjQubh)}(hhh]jp)}(hkernel_read_file_idh]hkernel_read_file_id}(hjQhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjQubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjQmodnameN classnameNjj)}j]j Q c.security_kernel_post_read_fileasbuh1hhjQubjY)}(h h]h }(hj RhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjQubjp)}(hidh]hid}(hjRhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjPubeh}(h]h ]h"]h$]h&]jjuh1jhjPhhhjPhM ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjPhhhjPhM ubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1j:hjPhM hjPhhubj)}(hhh]h)}(h"Read a file specified by userspaceh]h"Read a file specified by userspace}(hjBRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj?Rhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjPhM ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jZRj#jZRj$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct file *file`` file ``char *buf`` file contents ``loff_t size`` size of file contents ``enum kernel_read_file_id id`` file identifier **Description** Read a file specified by userspace. This must be paired with a prior call to security_kernel_read_file() call that indicated this hook would also be called, see security_kernel_read_file() for more information. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hjdRh]h Parameters}(hjfRhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjbRubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj^RubjH)}(hhh](jM)}(h``struct file *file`` file h](jS)}(h``struct file *file``h]h)}(hjRh]hstruct file *file}(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.chM hj}Rubjm)}(hhh]h)}(hfileh]hfile}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhM hjRubah}(h]h ]h"]h$]h&]uh1jlhj}Rubeh}(h]h ]h"]h$]h&]uh1jLhjRhM hjzRubjM)}(h``char *buf`` file contents h](jS)}(h ``char *buf``h]h)}(hjRh]h char *buf}(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.chM hjRubjm)}(hhh]h)}(h file contentsh]h file contents}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhM hjRubah}(h]h ]h"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]uh1jLhjRhM hjzRubjM)}(h&``loff_t size`` size of file contents h](jS)}(h``loff_t size``h]h)}(hjRh]h loff_t size}(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.chM hjRubjm)}(hhh]h)}(hsize of file contentsh]hsize of file contents}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ShM hj Subah}(h]h ]h"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]uh1jLhj ShM hjzRubjM)}(h0``enum kernel_read_file_id id`` file identifier h](jS)}(h``enum kernel_read_file_id id``h]h)}(hj.Sh]henum kernel_read_file_id id}(hj0ShhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,Subah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj(Subjm)}(hhh]h)}(hfile identifierh]hfile identifier}(hjGShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCShM hjDSubah}(h]h ]h"]h$]h&]uh1jlhj(Subeh}(h]h ]h"]h$]h&]uh1jLhjCShM hjzRubeh}(h]h ]h"]h$]h&]uh1jGhj^Rubh)}(h**Description**h]j2)}(hjiSh]h Description}(hjkShhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjgSubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj^Rubh)}(hRead a file specified by userspace. This must be paired with a prior call to security_kernel_read_file() call that indicated this hook would also be called, see security_kernel_read_file() for more information.h]hRead a file specified by userspace. This must be paired with a prior call to security_kernel_read_file() call that indicated this hook would also be called, see security_kernel_read_file() for more information.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj^Rubh)}(h **Return**h]j2)}(hjSh]hReturn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjSubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj^Rubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj^Rubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1&security_kernel_load_data (C function)c.security_kernel_load_datahNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hJint security_kernel_load_data (enum kernel_load_data_id id, bool contents)h]jA)}(hIint security_kernel_load_data(enum kernel_load_data_id id, bool contents)h](jG)}(hinth]hint}(hjShhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjShhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjY)}(h h]h }(hjShhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjShhhjShM ubjj)}(hsecurity_kernel_load_datah]jp)}(hsecurity_kernel_load_datah]hsecurity_kernel_load_data}(hjShhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjSubah}(h]h ](jjeh"]h$]h&]jjuh1jihjShhhjShM ubj)}(h,(enum kernel_load_data_id id, bool contents)h](j)}(henum kernel_load_data_id idh](jL)}(hjk;h]henum}(hjThhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjTubjY)}(h h]h }(hjThhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjTubh)}(hhh]jp)}(hkernel_load_data_idh]hkernel_load_data_id}(hj0ThhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj-Tubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj2TmodnameN classnameNjj)}j]j)}jjSsbc.security_kernel_load_dataasbuh1hhjTubjY)}(h h]h }(hjPThhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjTubjp)}(hidh]hid}(hj^ThhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Tubj)}(h bool contentsh](jG)}(hjNh]hbool}(hjwThhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjsTubjY)}(h h]h }(hjThhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjsTubjp)}(hcontentsh]hcontents}(hjThhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjsTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj Tubeh}(h]h ]h"]h$]h&]jjuh1jhjShhhjShM ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjShhhjShM ubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1j:hjShM hjShhubj)}(hhh]h)}(hLoad data provided by userspaceh]hLoad data provided by userspace}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjThhubah}(h]h ]h"]h$]h&]uh1jhjShhhjShM ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jTj#jTj$j%j&uh1j5hhhhhNhNubj()}(h**Parameters** ``enum kernel_load_data_id id`` data identifier ``bool contents`` true if security_kernel_post_load_data() will be called **Description** Load data provided by userspace. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j2)}(hjTh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjTubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjTubjH)}(hhh](jM)}(h0``enum kernel_load_data_id id`` data identifier h](jS)}(h``enum kernel_load_data_id id``h]h)}(hjTh]henum kernel_load_data_id id}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjTubjm)}(hhh]h)}(hdata identifierh]hdata identifier}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhM hjUubah}(h]h ]h"]h$]h&]uh1jlhjTubeh}(h]h ]h"]h$]h&]uh1jLhjUhM hjTubjM)}(hJ``bool contents`` true if security_kernel_post_load_data() will be called h](jS)}(h``bool contents``h]h)}(hj6Uh]h bool contents}(hj8UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4Uubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj0Uubjm)}(hhh]h)}(h7true if security_kernel_post_load_data() will be calledh]h7true if security_kernel_post_load_data() will be called}(hjOUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKUhM hjLUubah}(h]h ]h"]h$]h&]uh1jlhj0Uubeh}(h]h ]h"]h$]h&]uh1jLhjKUhM hjTubeh}(h]h ]h"]h$]h&]uh1jGhjTubh)}(h**Description**h]j2)}(hjqUh]h Description}(hjsUhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjoUubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjTubh)}(h Load data provided by userspace.h]h Load data provided by userspace.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjTubh)}(h **Return**h]j2)}(hjUh]hReturn}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjUubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjTubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjTubeh}(h]h ] kernelindentah"]h$]h&]uh1j'hhhhhNhNubj%)}(hhh]h}(h]h ]h"]h$]h&]entries](j1+security_kernel_post_load_data (C function) c.security_kernel_post_load_datahNtauh1j$hhhhhNhNubj6)}(hhh](j;)}(hkint security_kernel_post_load_data (char *buf, loff_t size, enum kernel_load_data_id id, char *description)h]jA)}(hjint security_kernel_post_load_data(char *buf, loff_t size, enum kernel_load_data_id id, char *description)h](jG)}(hinth]hint}(hjUhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjUhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjY)}(h h]h }(hjUhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjUhhhjUhM ubjj)}(hsecurity_kernel_post_load_datah]jp)}(hsecurity_kernel_post_load_datah]hsecurity_kernel_post_load_data}(hjUhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjUubah}(h]h ](jjeh"]h$]h&]jjuh1jihjUhhhjUhM ubj)}(hH(char *buf, loff_t size, enum kernel_load_data_id id, char *description)h](j)}(h char *bufh](jG)}(hcharh]hchar}(hjVhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjVubjY)}(h h]h }(hj(VhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjVubj)}(hjh]h*}(hj6VhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjp)}(hbufh]hbuf}(hjCVhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(h loff_t sizeh](h)}(hhh]jp)}(hloff_th]hloff_t}(hj_VhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj\Vubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjaVmodnameN classnameNjj)}j]j)}jjVsb c.security_kernel_post_load_dataasbuh1hhjXVubjY)}(h h]h }(hjVhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjXVubjp)}(hsizeh]hsize}(hjVhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjXVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(henum kernel_load_data_id idh](jL)}(hjk;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}(hjVhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjVubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjVmodnameN classnameNjj)}j]j{V c.security_kernel_post_load_dataasbuh1hhjVubjY)}(h h]h }(hjVhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjVubjp)}(hidh]hid}(hjVhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubj)}(hchar *descriptionh](jG)}(hcharh]hchar}(hj WhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjWubjY)}(h h]h }(hjWhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjWubj)}(hjh]h*}(hj%WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjp)}(h descriptionh]h description}(hj2WhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjVubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjUhM ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjUhhhjUhM ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1j:hjUhM hjUhhubj)}(hhh]h)}(h*Load userspace data from a non-file sourceh]h*Load userspace data from a non-file source}(hj\WhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjYWhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjUhM ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jtWj#jtWj$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)}(hj~Wh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj|Wubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjxWubjH)}(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)}(hjWh]h loff_t size}(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)}(h size of datah]h size of data}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM hjWubah}(h]h ]h"]h$]h&]uh1jlhjWubeh}(h]h ]h"]h$]h&]uh1jLhjWhM hjWubjM)}(h0``enum kernel_load_data_id id`` data identifier h](jS)}(h``enum kernel_load_data_id id``h]h)}(hjXh]henum kernel_load_data_id id}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj Xubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj Xubjm)}(hhh]h)}(hdata identifierh]hdata identifier}(hj(XhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$XhM hj%Xubah}(h]h ]h"]h$]h&]uh1jlhj Xubeh}(h]h ]h"]h$]h&]uh1jLhj$XhM hjWubjM)}(hI``char *description`` text description of data, specific to the id value h](jS)}(h``char *description``h]h)}(hjHXh]hchar *description}(hjJXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFXubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjBXubjm)}(hhh]h)}(h2text description of data, specific to the id valueh]h2text description of data, specific to the id value}(hjaXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]XhM hj^Xubah}(h]h ]h"]h$]h&]uh1jlhjBXubeh}(h]h ]h"]h$]h&]uh1jLhj]XhM hjWubeh}(h]h ]h"]h$]h&]uh1jGhjxWubh)}(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 hjxWubh)}(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 hjxWubh)}(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 hjxWubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjxWubeh}(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)}(h^ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMohj:^ubjm)}(hhh]h)}(hdentryh]hdentry}(hjY^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjU^hMohjV^ubah}(h]h ]h"]h$]h&]uh1jlhj:^ubeh}(h]h ]h"]h$]h&]uh1jLhjU^hMohj7^ubjM)}(h``struct inode *inode`` inode h](jS)}(h``struct inode *inode``h]h)}(hjy^h]hstruct inode *inode}(hj{^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjw^ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMphjs^ubjm)}(hhh]h)}(hinodeh]hinode}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMphj^ubah}(h]h ]h"]h$]h&]uh1jlhjs^ubeh}(h]h ]h"]h$]h&]uh1jLhj^hMphj7^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&]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_ismaclabelh]jp)}(hsecurity_ismaclabelh]hsecurity_ismaclabel}(hj>_hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj:_ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj_hhhj+_hMAubj)}(h(const char *name)h]j)}(hconst char *nameh](jL)}(hj h]hconst}(hjZ_hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjV_ubjY)}(h h]h }(hjg_hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjV_ubjG)}(hcharh]hchar}(hju_hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjV_ubjY)}(h h]h }(hj_hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjV_ubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV_ubjp)}(hnameh]hname}(hj_hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjV_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjR_ubah}(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+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&]uh1jhj_hhhj+_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)}(hj `h]hconst char *name}(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)}(hfull extended attribute nameh]hfull extended attribute name}(hj"`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hMBhj`ubah}(h]h ]h"]h$]h&]uh1jlhj`ubeh}(h]h ]h"]h$]h&]uh1jLhj`hMBhj`ubah}(h]h ]h"]h$]h&]uh1jGhj_ubh)}(h**Description**h]j2)}(hjD`h]h Description}(hjF`hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjB`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 }(hjZ`hhhNhNubj2)}(h**name**h]hname}(hjb`hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjZ`ubh represents a MAC label.}(hjZ`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}(hj`hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj`hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMOubjY)}(h h]h }(hj`hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj`hhhj`hMOubjj)}(hsecurity_secid_to_secctxh]jp)}(hsecurity_secid_to_secctxh]hsecurity_secid_to_secctx}(hj`hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj`hhhj`hMOubj)}(h#(u32 secid, struct lsm_context *cp)h](j)}(h u32 secidh](h)}(hhh]jp)}(hu32h]hu32}(hjahhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj`ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjamodnameN classnameNjj)}j]j)}jj`sbc.security_secid_to_secctxasbuh1hhj`ubjY)}(h h]h }(hj"ahhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj`ubjp)}(hsecidh]hsecid}(hj0ahhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubj)}(hstruct lsm_context *cph](jL)}(hjOh]hstruct}(hjIahhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjEaubjY)}(h h]h }(hjVahhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjEaubh)}(hhh]jp)}(h lsm_contexth]h lsm_context}(hjgahhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjdaubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjiamodnameN classnameNjj)}j]jac.security_secid_to_secctxasbuh1hhjEaubjY)}(h h]h }(hjahhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjEaubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEaubjp)}(hcph]hcp}(hjahhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjEaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj`ubeh}(h]h ]h"]h$]h&]jjuh1jhj`hhhj`hMOubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj`hhhj`hMOubah}(h]j`ah ](jjeh"]h$]h&]jj)jhuh1j:hj`hMOhj`hhubj)}(hhh]h)}(hConvert a secid to a secctxh]hConvert a secid to a secctx}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMOhjahhubah}(h]h ]h"]h$]h&]uh1jhj`hhhj`hMOubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jaj#jaj$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)}(hjah]h Parameters}(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.chMShjaubjH)}(hhh](jM)}(h``u32 secid`` secid h](jS)}(h ``u32 secid``h]h)}(hj bh]h u32 secid}(hj bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj bubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMPhjbubjm)}(hhh]h)}(hsecidh]hsecid}(hj$bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj bhMPhj!bubah}(h]h ]h"]h$]h&]uh1jlhjbubeh}(h]h ]h"]h$]h&]uh1jLhj bhMPhjbubjM)}(h+``struct lsm_context *cp`` the LSM context h](jS)}(h``struct lsm_context *cp``h]h)}(hjDbh]hstruct lsm_context *cp}(hjFbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBbubah}(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}(hj]bhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYbhMQhjZbubah}(h]h ]h"]h$]h&]uh1jlhj>bubeh}(h]h ]h"]h$]h&]uh1jLhjYbhMQhjbubeh}(h]h ]h"]h$]h&]uh1jGhjaubh)}(h**Description**h]j2)}(hjbh]h Description}(hjbhhhNhNubah}(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.chMShjaubh)}(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.chMRhjaubh)}(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.chMWhjaubh)}(h3Return length of data on success, error on failure.h]h3Return length of data on success, error on failure.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMXhjaubeh}(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}(hjbhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjbhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMaubjY)}(h h]h }(hj chhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjbhhhj chMaubjj)}(hsecurity_lsmprop_to_secctxh]jp)}(hsecurity_lsmprop_to_secctxh]hsecurity_lsmprop_to_secctx}(hjchhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjcubah}(h]h ](jjeh"]h$]h&]jjuh1jihjbhhhj chMaubj)}(h:(struct lsm_prop *prop, struct lsm_context *cp, int lsmid)h](j)}(hstruct lsm_prop *proph](jL)}(hjOh]hstruct}(hj:chhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj6cubjY)}(h h]h }(hjGchhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj6cubh)}(hhh]jp)}(hlsm_proph]hlsm_prop}(hjXchhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjUcubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjZcmodnameN classnameNjj)}j]j)}jj csbc.security_lsmprop_to_secctxasbuh1hhj6cubjY)}(h h]h }(hjxchhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj6cubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6cubjp)}(hproph]hprop}(hjchhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj6cubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2cubj)}(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}(hjchhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjcubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjcmodnameN classnameNjj)}j]jtcc.security_lsmprop_to_secctxasbuh1hhjcubjY)}(h h]h }(hjchhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjcubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjp)}(hcph]hcp}(hjdhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2cubj)}(h int lsmidh](jG)}(hinth]hint}(hjdhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjdubjY)}(h h]h }(hj*dhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjdubjp)}(hlsmidh]hlsmid}(hj8dhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2cubeh}(h]h ]h"]h$]h&]jjuh1jhjbhhhj chMaubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjbhhhj chMaubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1j:hj chMahjbhhubj)}(hhh]h)}(hConvert a lsm_prop to a secctxh]hConvert a lsm_prop to a secctx}(hjbdhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMahj_dhhubah}(h]h ]h"]h$]h&]uh1jhjbhhhj chMaubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jzdj#jzdj$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.chMehj~dubjH)}(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)}(hjdh]hstruct lsm_context *cp}(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.chMchjdubjm)}(hhh]h)}(hthe LSM contexth]hthe LSM context}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMchjdubah}(h]h ]h"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]uh1jLhjdhMchjdubjM)}(h.``int lsmid`` which security module to report h](jS)}(h ``int lsmid``h]h)}(hjeh]h int lsmid}(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.chMdhjeubjm)}(hhh]h)}(hwhich security module to reporth]hwhich security module to report}(hj.ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*ehMdhj+eubah}(h]h ]h"]h$]h&]uh1jlhjeubeh}(h]h ]h"]h$]h&]uh1jLhj*ehMdhjdubeh}(h]h ]h"]h$]h&]uh1jGhj~dubh)}(h**Description**h]j2)}(hjPeh]h Description}(hjRehhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjNeubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMfhj~dubh)}(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 }(hjfehhhNhNubj2)}(h**prop**h]hprop}(hjnehhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjfeubh entry to security context. If }(hjfehhhNhNubj2)}(h**cp**h]hcp}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjfeubh 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 }(hjfehhhNhNubj2)}(h**cp**h]hcp}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjfeubh.}(hjfehhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMehj~dubh)}(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.chMjhj~dubh)}(h **Return**h]j2)}(hjeh]hReturn}(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.chMohj~dubh)}(h3Return length of data on success, error on failure.h]h3Return length of data on success, error on failure.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMphj~dubeh}(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}(hjfhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj fhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjfhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj fhhhjfhMubjj)}(hsecurity_secctx_to_secidh]jp)}(hsecurity_secctx_to_secidh]hsecurity_secctx_to_secid}(hj0fhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj,fubah}(h]h ](jjeh"]h$]h&]jjuh1jihj fhhhjfhMubj)}(h-(const char *secdata, u32 seclen, u32 *secid)h](j)}(hconst char *secdatah](jL)}(hj h]hconst}(hjLfhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjHfubjY)}(h h]h }(hjYfhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjHfubjG)}(hcharh]hchar}(hjgfhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjHfubjY)}(h h]h }(hjufhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjHfubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHfubjp)}(hsecdatah]hsecdata}(hjfhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjHfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDfubj)}(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)}jj2fsbc.security_secctx_to_secidasbuh1hhjfubjY)}(h h]h }(hjfhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjfubjp)}(hseclenh]hseclen}(hjfhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDfubj)}(h u32 *secidh](h)}(hhh]jp)}(hu32h]hu32}(hjfhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjfubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjfmodnameN classnameNjj)}j]jfc.security_secctx_to_secidasbuh1hhjfubjY)}(h h]h }(hjghhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjfubj)}(hjh]h*}(hj"ghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjp)}(hsecidh]hsecid}(hj/ghhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjDfubeh}(h]h ]h"]h$]h&]jjuh1jhj fhhhjfhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjfhhhjfhMubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1j:hjfhMhjfhhubj)}(hhh]h)}(hConvert a secctx to a secidh]hConvert a secctx to a secid}(hjYghhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjVghhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjfhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jqgj#jqgj$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)}(hj{gh]h Parameters}(hj}ghhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjygubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjugubjH)}(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)}(hjgh]h u32 seclen}(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)}(hlength of secctxh]hlength of secctx}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjgubah}(h]h ]h"]h$]h&]uh1jlhjgubeh}(h]h ]h"]h$]h&]uh1jLhjghMhjgubjM)}(h``u32 *secid`` secid h](jS)}(h``u32 *secid``h]h)}(hj hh]h u32 *secid}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhubjm)}(hhh]h)}(hsecidh]hsecid}(hj%hhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hhMhj"hubah}(h]h ]h"]h$]h&]uh1jlhjhubeh}(h]h ]h"]h$]h&]uh1jLhj!hhMhjgubeh}(h]h ]h"]h$]h&]uh1jGhjugubh)}(h**Description**h]j2)}(hjGhh]h Description}(hjIhhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjEhubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjugubh)}(h"Convert security context to secid.h]h"Convert security context to secid.}(hj]hhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjugubh)}(h **Return**h]j2)}(hjnhh]hReturn}(hjphhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjlhubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjugubh)}(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.chMhjugubeh}(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 }(hjhhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhhjhhMubjj)}(hsecurity_release_secctxh]jp)}(hsecurity_release_secctxh]hsecurity_release_secctx}(hjhhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjhubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhhjhhMubj)}(h(struct lsm_context *cp)h]j)}(hstruct lsm_context *cph](jL)}(hjOh]hstruct}(hjhhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjhubjY)}(h h]h }(hjhhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhubh)}(hhh]jp)}(h lsm_contexth]h lsm_context}(hjihhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj iubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjimodnameN classnameNjj)}j]j)}jjhsbc.security_release_secctxasbuh1hhjhubjY)}(h h]h }(hj.ihhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjp)}(hinodeh]hinode}(hjKlhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjkubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(h void *ctxh](jG)}(hvoidh]hvoid}(hjdlhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj`lubjY)}(h h]h }(hjrlhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj`lubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`lubjp)}(hctxh]hctx}(hjlhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj`lubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubj)}(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]j,lc.security_inode_notifysecctxasbuh1hhjlubjY)}(h h]h }(hjlhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjlubjp)}(hctxlenh]hctxlen}(hjlhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjlubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjkubeh}(h]h ]h"]h$]h&]jjuh1jhjkhhhjkhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjkhhhjkhMubah}(h]jkah ](jjeh"]h$]h&]jj)jhuh1j:hjkhMhjkhhubj)}(hhh]h)}(h+Notify the LSM of an inode's security labelh]h-Notify the LSM of an inode’s security label}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjlhhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjkhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jmj#jmj$j%j&uh1j5hhhhhNhNubj()}(hXV**Parameters** ``struct inode *inode`` inode ``void *ctx`` secctx ``u32 ctxlen`` length of secctx **Description** Notify 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. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j2)}(hj!mh]h Parameters}(hj#mhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjmubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjmubjH)}(hhh](jM)}(h``struct inode *inode`` inode h](jS)}(h``struct inode *inode``h]h)}(hj@mh]hstruct inode *inode}(hjBmhhhNhNubah}(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.chMhj:mubjm)}(hhh]h)}(hinodeh]hinode}(hjYmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUmhMhjVmubah}(h]h ]h"]h$]h&]uh1jlhj:mubeh}(h]h ]h"]h$]h&]uh1jLhjUmhMhj7mubjM)}(h``void *ctx`` secctx h](jS)}(h ``void *ctx``h]h)}(hjymh]h void *ctx}(hj{mhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwmubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjsmubjm)}(hhh]h)}(hsecctxh]hsecctx}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jlhjsmubeh}(h]h ]h"]h$]h&]uh1jLhjmhMhj7mubjM)}(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}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]uh1jLhjmhMhj7mubeh}(h]h ]h"]h$]h&]uh1jGhjmubh)}(h**Description**h]j2)}(hjmh]h Description}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjmubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjmubh)}(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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjmubh)}(h **Return**h]j2)}(hjnh]hReturn}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjnubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjmubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hj*nhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjmubeh}(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}(hjYnhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjUnhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjhnhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjUnhhhjgnhMubjj)}(hsecurity_inode_setsecctxh]jp)}(hsecurity_inode_setsecctxh]hsecurity_inode_setsecctx}(hjznhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjvnubah}(h]h ](jjeh"]h$]h&]jjuh1jihjUnhhhjgnhMubj)}(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)}jj|nsbc.security_inode_setsecctxasbuh1hhjnubjY)}(h h]h }(hjnhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjnubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjp)}(hdentryh]hdentry}(hjnhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjnubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(h void *ctxh](jG)}(hvoidh]hvoid}(hjohhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjoubjY)}(h h]h }(hjohhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjoubj)}(hjh]h*}(hj$ohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjoubjp)}(hctxh]hctx}(hj1ohhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubj)}(h u32 ctxlenh](h)}(hhh]jp)}(hu32h]hu32}(hjMohhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjJoubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjOomodnameN classnameNjj)}j]jnc.security_inode_setsecctxasbuh1hhjFoubjY)}(h h]h }(hjkohhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjFoubjp)}(hctxlenh]hctxlen}(hjyohhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjFoubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjnubeh}(h]h ]h"]h$]h&]jjuh1jhjUnhhhjgnhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjQnhhhjgnhMubah}(h]jLnah ](jjeh"]h$]h&]jj)jhuh1j:hjgnhMhjNnhhubj)}(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&]uh1jhjNnhhhjgnhMubeh}(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)}(hjoh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjoubah}(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)}(hjoh]hstruct dentry *dentry}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjoubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjoubjm)}(hhh]h)}(hinodeh]hinode}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMhjoubah}(h]h ]h"]h$]h&]uh1jlhjoubeh}(h]h ]h"]h$]h&]uh1jLhjohMhjoubjM)}(h``void *ctx`` secctx h](jS)}(h ``void *ctx``h]h)}(hjph]h void *ctx}(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)}(hsecctxh]hsecctx}(hj6phhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2phMhj3pubah}(h]h ]h"]h$]h&]uh1jlhjpubeh}(h]h ]h"]h$]h&]uh1jLhj2phMhjoubjM)}(h ``u32 ctxlen`` length of secctx h](jS)}(h``u32 ctxlen``h]h)}(hjVph]h u32 ctxlen}(hjXphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTpubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjPpubjm)}(hhh]h)}(hlength of secctxh]hlength of secctx}(hjophhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkphMhjlpubah}(h]h ]h"]h$]h&]uh1jlhjPpubeh}(h]h ]h"]h$]h&]uh1jLhjkphMhjoubeh}(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.}(hjphhhNhNubah}(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}(hjphhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjphhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hj qhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjphhhj qhMubjj)}(hsecurity_inode_getsecctxh]jp)}(hsecurity_inode_getsecctxh]hsecurity_inode_getsecctx}(hjqhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjqubah}(h]h ](jjeh"]h$]h&]jjuh1jihjphhhj qhMubj)}(h-(struct inode *inode, struct lsm_context *cp)h](j)}(hstruct inode *inodeh](jL)}(hjOh]hstruct}(hj:qhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj6qubjY)}(h h]h }(hjGqhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj6qubh)}(hhh]jp)}(hinodeh]hinode}(hjXqhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjUqubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjZqmodnameN classnameNjj)}j]j)}jj qsbc.security_inode_getsecctxasbuh1hhj6qubjY)}(h h]h }(hjxqhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj6qubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6qubjp)}(hinodeh]hinode}(hjqhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj6qubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2qubj)}(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}(hjqhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjqubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjqmodnameN classnameNjj)}j]jtqc.security_inode_getsecctxasbuh1hhjqubjY)}(h h]h }(hjqhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjqubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjp)}(hcph]hcp}(hjrhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2qubeh}(h]h ]h"]h$]h&]jjuh1jhjphhhj qhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjphhhj qhMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1j:hj qhMhjphhubj)}(hhh]h)}(h"Get the security label of an inodeh]h"Get the security label of an inode}(hj-rhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj*rhhubah}(h]h ]h"]h$]h&]uh1jhjphhhj qhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jErj#jErj$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)}(hjOrh]h Parameters}(hjQrhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjMrubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjIrubjH)}(hhh](jM)}(h``struct inode *inode`` inode h](jS)}(h``struct inode *inode``h]h)}(hjnrh]hstruct inode *inode}(hjprhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlrubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhrubjm)}(hhh]h)}(hinodeh]hinode}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jlhjhrubeh}(h]h ]h"]h$]h&]uh1jLhjrhMhjerubjM)}(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}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jlhjrubeh}(h]h ]h"]h$]h&]uh1jLhjrhMhjerubeh}(h]h ]h"]h$]h&]uh1jGhjIrubh)}(h**Description**h]j2)}(hjrh]h Description}(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.chMhjIrubh)}(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 }(hjrhhhNhNubj2)}(h**cp**h]hcp}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjrubh) with the security context for the given }(hjrhhhNhNubj2)}(h **inode**h]hinode}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjrubh.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjIrubh)}(h **Return**h]j2)}(hj-sh]hReturn}(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.chMhjIrubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjCshhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjIrubeh}(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}(hjrshhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjnshhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjshhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjnshhhjshMubjj)}(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&]jjuh1jihjnshhhjshMubj)}(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}(hjshhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjsubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjsmodnameN classnameNjj)}j]j)}jjssbc.security_unix_stream_connectasbuh1hhjsubjY)}(h h]h }(hjshhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjsubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjp)}(hsockh]hsock}(hjthhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjsubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hstruct sock *otherh](jL)}(hjOh]hstruct}(hj!thhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjtubjY)}(h h]h }(hj.thhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjtubh)}(hhh]jp)}(hsockh]hsock}(hj?thhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjwhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjvubj)}(hjh]h*}(hjLwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjp)}(hsockh]hsock}(hjYwhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjvubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubj)}(hstruct socket *otherh](jL)}(hjOh]hstruct}(hjrwhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjnwubjY)}(h h]h }(hjwhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjnwubh)}(hhh]jp)}(hsocketh]hsocket}(hjwhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjwubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjwmodnameN classnameNjj)}j]j:wc.security_unix_may_sendasbuh1hhjnwubjY)}(h h]h }(hjwhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjnwubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnwubjp)}(hotherh]hother}(hjwhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjnwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjvubeh}(h]h ]h"]h$]h&]jjuh1jhjvhhhjvhM:ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjvhhhjvhM:ubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1j:hjvhM:hjvhhubj)}(hhh]h)}(h*Check if AF_UNIX socket can send datagramsh]h*Check if AF_UNIX socket can send datagrams}(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&]uh1jhjvhhhjvhM:ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j xj#j xj$j%j&uh1j5hhhhhNhNubj()}(hX**Parameters** ``struct socket *sock`` originating sock ``struct socket *other`` peer sock **Description** Check permissions before connecting or sending datagrams from **sock** to **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)}(hjxh]h Parameters}(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>hjxubjH)}(hhh](jM)}(h)``struct socket *sock`` originating sock h](jS)}(h``struct socket *sock``h]h)}(hj4xh]hstruct socket *sock}(hj6xhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2xubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM;hj.xubjm)}(hhh]h)}(horiginating sockh]horiginating sock}(hjMxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIxhM;hjJxubah}(h]h ]h"]h$]h&]uh1jlhj.xubeh}(h]h ]h"]h$]h&]uh1jLhjIxhM;hj+xubjM)}(h#``struct socket *other`` peer sock h](jS)}(h``struct socket *other``h]h)}(hjmxh]hstruct socket *other}(hjoxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkxubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM<hjgxubjm)}(hhh]h)}(h peer sockh]h peer sock}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhM<hjxubah}(h]h ]h"]h$]h&]uh1jlhjgxubeh}(h]h ]h"]h$]h&]uh1jLhjxhM<hj+xubeh}(h]h ]h"]h$]h&]uh1jGhjxubh)}(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>hjxubh)}(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}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjxubh to }(hjxhhhNhNubj2)}(h **other**h]hother}(hjxhhhNhNubah}(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=hjxubh)}(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 }(hjxhhhNhNubj2)}(h**unix_stream_connect**h]hunix_stream_connect}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjxubh and }(hjxhhhNhNubj2)}(h**unix_may_send**h]h unix_may_send}(hj yhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjxubhXj 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.}(hjxhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM@hjxubh)}(h **Return**h]j2)}(hj&yh]hReturn}(hj(yhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj$yubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMJhjxubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӅubjp)}(hreqh]hreq}(hjKhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjӅubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjυubj)}(hstruct flowi_common *flich](jL)}(hjOh]hstruct}(hjdhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj`ubjY)}(h h]h }(hjqhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj`ubh)}(hhh]jp)}(h flowi_commonh]h flowi_common}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j,c.security_req_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 request_sockh]h*Set a flow’s secid based on request_sock}(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()}(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)}(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.chMhjubjH)}(hhh](jM)}(h0``const struct request_sock *req`` request_sock h](jS)}(h"``const struct request_sock *req``h]h)}(hj&h]hconst struct 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.chMhj ubjm)}(hhh]h)}(h request_sockh]h request_sock}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hMhj<ubah}(h]h ]h"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]uh1jLhj;hMhjubjM)}(h*``struct flowi_common *flic`` target flow h](jS)}(h``struct flowi_common *flic``h]h)}(hj_h]hstruct flowi_common *flic}(hjahhhNhNubah}(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.chMhjYubjm)}(hhh]h)}(h target flowh]h target flow}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjuubah}(h]h ]h"]h$]h&]uh1jlhjYubeh}(h]h ]h"]h$]h&]uh1jLhjthMhjubeh}(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)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.chMhjubeh}(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}(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_sock_grafth]jp)}(hsecurity_sock_grafth]hsecurity_sock_graft}(hj$hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjhMubj)}(h((struct sock *sk, struct socket *parent)h](j)}(hstruct sock *skh](jL)}(hjOh]hstruct}(hj@hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj<ubjY)}(h h]h }(hjMhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj<ubh)}(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_sock_graftasbuh1hhj<ubjY)}(h h]h }(hj~hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj<ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubjp)}(hskh]hsk}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubj)}(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}(hjЈhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj͈ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj҈modnameN classnameNjj)}j]jzc.security_sock_graftasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hparenth]hparent}(hj hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj8ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjhMhjhhubj)}(hhh]h)}(h4Reconcile LSM state when grafting a sock on a socketh]h4Reconcile LSM state when grafting a sock on a socket}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj0hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jKj#jKj$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)}(hjUh]h Parameters}(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.chMhjOubjH)}(hhh](jM)}(h'``struct sock *sk`` sock being grafted h](jS)}(h``struct sock *sk``h]h)}(hjth]hstruct sock *sk}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjnubjm)}(hhh]h)}(hsock being graftedh]hsock being grafted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjnubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjkubjM)}(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}(hjƉhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj‰hMhjÉubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhj‰hMhjkubeh}(h]h ]h"]h$]h&]uh1jGhjOubh)}(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.chMhjOubh)}(hoSets **parent**'s inode secid to **sk**'s secid and update **sk** with any necessary LSM state from **parent**.h](hSets }(hjhhhNhNubj2)}(h **parent**h]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubh’s inode secid to }(hjhhhNhNubj2)}(h**sk**h]hsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubh’s secid and update }(hjhhhNhNubj2)}(h**sk**h]hsk}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubh# with any necessary LSM state from }(hjhhhNhNubj2)}(h **parent**h]hparent}(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.chMhjOubeh}(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}(hjuhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjqhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjqhhhjhMubjj)}(hsecurity_inet_conn_requesth]jp)}(hsecurity_inet_conn_requesth]hsecurity_inet_conn_request}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjqhhhjhMubj)}(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 }(hjڊhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.security_inet_conn_requestasbuh1hhjubjY)}(h h]h }(hj hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hskh]hsk}(hj&hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sk_buff *skbh](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)}(hsk_buffh]hsk_buff}(hj]hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjZubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj_modnameN classnameNjj)}j]jc.security_inet_conn_requestasbuh1hhj;ubjY)}(h h]h }(hj{hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj;ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjp)}(hskbh]hskb}(hjhhhNhNubah}(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 reftargetjϋmodnameN classnameNjj)}j]jc.security_inet_conn_requestasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hreqh]hreq}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjqhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjmhhhjhMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1j:hjhMhjjhhubj)}(hhh]h)}(h-Set request_sock state using incoming connecth]h-Set request_sock state using incoming connect}(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&]uh1jhjjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jHj#jHj$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)}(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)}(h0``const struct sock *sk`` parent listening sock h](jS)}(h``const struct sock *sk``h]h)}(hjqh]hconst struct 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)}(hparent listening sockh]hparent listening sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjkubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjhubjM)}(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}(hjÌhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjhubjM)}(h.``struct request_sock *req`` new request_sock h](jS)}(h``struct request_sock *req``h]h)}(hjh]hstruct request_sock *req}(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.chMhj݌ubjm)}(hhh]h)}(hnew request_sockh]hnew request_sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhj݌ubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjhubeh}(h]h ]h"]h$]h&]uh1jGhjLubh)}(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.chMhjLubh)}(hUInitialize the **req** LSM state based on **sk** and the incoming connect in **skb**.h](hInitialize the }(hj4hhhNhNubj2)}(h**req**h]hreq}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj4ubh LSM state based on }(hj4hhhNhNubj2)}(h**sk**h]hsk}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj4ubh and the incoming connect in }(hj4hhhNhNubj2)}(h**skb**h]hskb}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj4ubh.}(hj4hhhNhNubeh}(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&]uh1j1hjyubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjLubh)}(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.chMhjLubeh}(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 }(hjύhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhj΍hMubjj)}(hsecurity_inet_conn_establishedh]jp)}(hsecurity_inet_conn_establishedh]hsecurity_inet_conn_established}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjݍubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhj΍hMubj)}(h&(struct sock *sk, struct sk_buff *skb)h](j)}(hstruct sock *skh](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}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsb c.security_inet_conn_establishedasbuh1hhjubjY)}(h h]h }(hj;hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hskh]hsk}(hjVhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sk_buff *skbh](jL)}(hjOh]hstruct}(hjohhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjkubjY)}(h h]h }(hj|hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjkubh)}(hhh]jp)}(hsk_buffh]hsk_buff}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j7 c.security_inet_conn_establishedasbuh1hhjkubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjp)}(hskbh]hskb}(hjƎhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjkubeh}(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'Update sock's LSM state with connectionh]h)Update sock’s LSM state with connection}(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&]uh1jhjhhhj΍hMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$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)}(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.chMhj ubjH)}(hhh](jM)}(h``struct sock *sk`` sock h](jS)}(h``struct sock *sk``h]h)}(hj1h]hstruct sock *sk}(hj3hhhNhNubah}(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)}(hsockh]hsock}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjGubah}(h]h ]h"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]uh1jLhjFhMhj(ubjM)}(h*``struct sk_buff *skb`` connection packet h](jS)}(h``struct sk_buff *skb``h]h)}(hjjh]hstruct sk_buff *skb}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjdubjm)}(hhh]h)}(hconnection packeth]hconnection packet}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjdubeh}(h]h ]h"]h$]h&]uh1jLhjhMhj(ubeh}(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)}(hGUpdate **sock**'s LSM state to represent a new connection from **skb**.h](hUpdate }(hjhhhNhNubj2)}(h**sock**h]hsock}(hjÏhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubh2’s LSM state to represent a new connection from }(hjhhhNhNubj2)}(h**skb**h]hskb}(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.chMhj ubeh}(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}(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_relabel_packeth]jp)}(hsecurity_secmark_relabel_packeth]hsecurity_secmark_relabel_packet}(hj/hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj+ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj hhhjhMubj)}(h (u32 secid)h]j)}(h u32 secidh](h)}(hhh]jp)}(hu32h]hu32}(hjNhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjKubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjPmodnameN classnameNjj)}j]j)}jj1sb!c.security_secmark_relabel_packetasbuh1hhjGubjY)}(h h]h }(hjnhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjGubjp)}(hsecidh]hsecid}(hj|hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjCubah}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(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)}(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 ``u32 secid`` new secmark value 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.chM hjubjm)}(hhh]h)}(hnew secmark valueh]hnew secmark value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhM hjސ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.chM hjubh)}(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 }(hj8hhhNhNubj2)}(h **secid**h]hsecid}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj8ubh.}(hj8hhhNhNubeh}(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&]uh1j1hjYubah}(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.}(hjqhhhNhNubah}(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_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&]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_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&]jjuh1jihjhhhjhMubj)}(h(void)h]j)}(hvoidh]jG)}(hvoidh]hvoid}(hjݑhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjّubah}(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)}(h)Increment the secmark labeling rule counth]h)Increment the secmark labeling rule count}(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()}(h**Parameters** ``void`` no arguments **Description** Tells the LSM to increment the number of secmark labeling rules loaded.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`` no arguments h](jS)}(h``void``h]h)}(hjHh]hvoid}(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.chKhjBubjm)}(hhh]h)}(h no argumentsh]h no arguments}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hKhj^ubah}(h]h ]h"]h$]h&]uh1jlhjBubeh}(h]h ]h"]h$]h&]uh1jLhj]hKhj?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.chKhj#ubh)}(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.}(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_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}(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_secmark_refcount_dech]jp)}(hsecurity_secmark_refcount_dech]hsecurity_secmark_refcount_dec}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjĒhhhj֒hM!ubj)}(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Ēhhhj֒hM!ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhj֒hM!ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hj֒hM!hjhhubj)}(hhh]h)}(h)Decrement the secmark labeling rule counth]h)Decrement the secmark labeling rule count}(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&]uh1jhjhhhj֒hM!ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jGj#jGj$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)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjOubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM%hjKubjH)}(hhh]jM)}(h``void`` no arguments h](jS)}(h``void``h]h)}(hjph]hvoid}(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.chKhjjubjm)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jlhjjubeh}(h]h ]h"]h$]h&]uh1jLhjhKhjgubah}(h]h ]h"]h$]h&]uh1jGhjKubh)}(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.chKhjKubh)}(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"hjKubeh}(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}(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_tun_dev_alloc_securityh]jp)}(hsecurity_tun_dev_alloc_securityh]hsecurity_tun_dev_alloc_security}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjhM,ubj)}(h(void **security)h]j)}(hvoid **securityh](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*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjp)}(hsecurityh]hsecurity}(hjchhhNhNubah}(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 LSM blob for a TUN deviceh]h$Allocate a LSM blob for a TUN device}(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&]uh1jhjhhhjhM,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)}(hjΔh]hvoid **security}(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)}(hpointer to the LSM blobh]hpointer to the LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM-hjubah}(h]h ]h"]h$]h&]uh1jlhjȔubeh}(h]h ]h"]h$]h&]uh1jLhjhM-hjŔubah}(h]h ]h"]h$]h&]uh1jGhjubh)}(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.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 }(hjhhhNhNubj2)}(h **security**h]hsecurity}(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.chM.hjubh)}(h **Return**h]j2)}(hjBh]hReturn}(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.chM1hjubh)}(h6Returns a zero on success, negative values on failure.h]h6Returns a zero on success, negative values on failure.}(hjXhhhNhNubah}(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}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMFubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhjhMFubjj)}(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&]jjuh1jihjhhhjhMFubj)}(h(void *security)h]j)}(hvoid *securityh](jG)}(hvoidh]hvoid}(hjĕhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hjҕhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hsecurityh]hsecurity}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMFubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjhMFubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1j:hjhMFhj|hhubj)}(hhh]h)}(hFree a TUN device LSM blobh]hFree a TUN device LSM blob}(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|hhhjhMFubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j/j#j/j$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)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj7ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMJhj3ubjH)}(hhh]jM)}(h``void *security`` LSM blob h](jS)}(h``void *security``h]h)}(hjXh]hvoid *security}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMGhjRubjm)}(hhh]h)}(hLSM blobh]hLSM blob}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMGhjnubah}(h]h ]h"]h$]h&]uh1jlhjRubeh}(h]h ]h"]h$]h&]uh1jLhjmhMGhjOubah}(h]h ]h"]h$]h&]uh1jGhj3ubh)}(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.chMIhj3ubh)}(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.chMHhj3ubeh}(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}(hjؖhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjԖhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMRubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjԖhhhjhMRubjj)}(hsecurity_tun_dev_createh]jp)}(hsecurity_tun_dev_createh]hsecurity_tun_dev_create}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjԖhhhjhMRubj)}(h(void)h]j)}(hvoidh]jG)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubah}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjԖhhhjhMRubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjЖhhhjhMRubah}(h]j˖ah ](jjeh"]h$]h&]jj)jhuh1j:hjhMRhj͖hhubj)}(hhh]h)}(h)Check if creating a TUN device is allowedh]h)Check if creating a TUN device is allowed}(hj?hhhNhNubah}(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͖hhhjhMRubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jWj#jWj$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)}(hjah]h Parameters}(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.chMVhj[ubjH)}(hhh]jM)}(h``void`` no arguments h](jS)}(h``void``h]h)}(hjh]hvoid}(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.chKhjzubjm)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jlhjzubeh}(h]h ]h"]h$]h&]uh1jLhjhKhjwubah}(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.chKhj[ubh)}(h5Check permissions prior to creating a new TUN device.h]h5Check permissions prior to creating a new TUN device.}(hjїhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMShj[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.chMUhj[ubh)}(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.chMVhj[ubeh}(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}(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 }(hj6hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj#hhhj5hM_ubjj)}(hsecurity_tun_dev_attach_queueh]jp)}(hsecurity_tun_dev_attach_queueh]hsecurity_tun_dev_attach_queue}(hjHhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjDubah}(h]h ](jjeh"]h$]h&]jjuh1jihj#hhhj5hM_ubj)}(h(void *security)h]j)}(hvoid *securityh](jG)}(hvoidh]hvoid}(hjdhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj`ubjY)}(h h]h }(hjrhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj`ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubjp)}(hsecurityh]hsecurity}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj\ubah}(h]h ]h"]h$]h&]jjuh1jhj#hhhj5hM_ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhj5hM_ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hj5hM_hjhhubj)}(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&]uh1jhjhhhj5hM_ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jϘj#jϘj$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)}(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.chMchjӘubjH)}(hhh]jM)}(h'``void *security`` TUN device 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.chM`hjubjm)}(hhh]h)}(hTUN device LSM blobh]hTUN device LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM`hjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhj hM`hjubah}(h]h ]h"]h$]h&]uh1jGhjӘubh)}(h**Description**h]j2)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj1ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMbhjӘubh)}(h;Check permissions prior to attaching to a TUN device queue.h]h;Check permissions prior to attaching to a TUN device queue.}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMahjӘubh)}(h **Return**h]j2)}(hjZh]hReturn}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjXubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMchjӘubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMdhjӘubeh}(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)}(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)}(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}(hjĞhhhNhNubah}(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)}(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.chMhjޞubjm)}(hhh]h)}(h!packet requesting the associationh]h!packet requesting 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&]uh1jGhjubh)}(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.chMhjubh)}(hQPasses the **asoc** and **chunk->skb** of the association INIT packet to the LSM.h](h Passes the }(hj5hhhNhNubj2)}(h**asoc**h]hasoc}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj5ubh and }(hj5hhhNhNubj2)}(h**chunk->skb**h]h chunk->skb}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj5ubh+ of the association INIT packet to the LSM.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h **Return**h]j2)}(hjjh]hReturn}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjhubah}(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.}(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_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}(hjПhhhNhNubah}(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}(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&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j)}jjҟsbc.security_sctp_bind_connectasbuh1hhjubjY)}(h h]h }(hj*hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hskh]hsk}(hjEhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int optnameh](jG)}(hinth]hint}(hj^hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjZubjY)}(h h]h }(hjlhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjZubjp)}(hoptnameh]hoptname}(hjzhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjZubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sockaddr *addressh](jL)}(hjOh]hstruct}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hsockaddrh]hsockaddr}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j&c.security_sctp_bind_connectasbuh1hhjubjY)}(h h]h }(hjϠhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjݠhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int addrlenh](jG)}(hinth]hint}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjp)}(haddrlenh]haddrlen}(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*Validate a list of addrs for a SCTP optionh]h*Validate a list of addrs for a SCTP option}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjFhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jaj#jaj$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)}(hjkh]h Parameters}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjiubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjeubjH)}(hhh](jM)}(h``struct sock *sk`` socket 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)}(hsocketh]hsocket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubjM)}(h(``int optname`` SCTP option to validate h](jS)}(h``int optname``h]h)}(hjáh]h int optname}(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)}(hSCTP option to validateh]hSCTP option to validate}(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 sockaddr *address`` list of IP addresses to validate h](jS)}(h``struct sockaddr *address``h]h)}(hjh]hstruct sockaddr *address}(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 list of IP addresses to validateh]h list of IP addresses to validate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubjM)}(h+``int addrlen`` length of the address list h](jS)}(h``int addrlen``h]h)}(hj5h]h int addrlen}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj/ubjm)}(hhh]h)}(hlength of the address listh]hlength of the address list}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjKubah}(h]h ]h"]h$]h&]uh1jlhj/ubeh}(h]h ]h"]h$]h&]uh1jLhjJhMhjubeh}(h]h ]h"]h$]h&]uh1jGhjeubh)}(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.chMhjeubh)}(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 }(hjhhhNhNubj2)}(h**sk**h]hsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubh. Depending on }(hjhhhNhNubj2)}(h **optname**h]hoptname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubhI, the addresses will be treated as either a connect or bind service. The }(hjhhhNhNubj2)}(h **addrlen**h]haddrlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubhm is calculated on each IPv4 and IPv6 address using sizeof(struct sockaddr_in) or sizeof(struct sockaddr_in6).}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjeubh)}(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.chMhjeubh)}(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.chMhjeubeh}(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}(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_sctp_sk_cloneh]jp)}(hsecurity_sctp_sk_cloneh]hsecurity_sctp_sk_clone}(hj3hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj/ubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhj hMubj)}(hD(struct sctp_association *asoc, struct sock *sk, struct sock *newsk)h](j)}(hstruct sctp_association *asoch](jL)}(hjOh]hstruct}(hjOhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjKubjY)}(h h]h }(hj\hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjKubh)}(hhh]jp)}(hsctp_associationh]hsctp_association}(hjmhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjomodnameN classnameNjj)}j]j)}jj5sbc.security_sctp_sk_cloneasbuh1hhjKubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjp)}(hasoch]hasoc}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjKubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hstruct sock *skh](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}(hjߣhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjܣubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.security_sctp_sk_cloneasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hskh]hsk}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubj)}(hstruct sock *newskh](jL)}(hjOh]hstruct}(hj1hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj-ubjY)}(h h]h }(hj>hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj-ubh)}(hhh]jp)}(hsockh]hsock}(hjOhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjLubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjQmodnameN classnameNjj)}j]jc.security_sctp_sk_cloneasbuh1hhj-ubjY)}(h h]h }(hjmhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj-ubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjp)}(hnewskh]hnewsk}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjGubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj hMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj hhhj hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hj hMhjhhubj)}(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&]uh1jhjhhhj 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)}(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}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubjM)}(h"``struct sock *sk`` original sock 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)}(h original sockh]h original sock}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jlhj&ubeh}(h]h ]h"]h$]h&]uh1jLhjAhMhjubjM)}(h#``struct sock *newsk`` target sock h](jS)}(h``struct sock *newsk``h]h)}(hjeh]hstruct sock *newsk}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj_ubjm)}(hhh]h)}(h target sockh]h target sock}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1jlhj_ubeh}(h]h ]h"]h$]h&]uh1jLhjzhMhjubeh}(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)}(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.chMhjΤubeh}(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}(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_assoc_establishedh]jp)}(hsecurity_sctp_assoc_establishedh]hsecurity_sctp_assoc_established}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjhMubj)}(h4(struct sctp_association *asoc, struct sk_buff *skb)h](j)}(hstruct sctp_association *asoch](jL)}(hjOh]hstruct}(hj"hhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hj/hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hsctp_associationh]hsctp_association}(hj@hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj=ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjBmodnameN classnameNjj)}j]j)}jjsb!c.security_sctp_assoc_establishedasbuh1hhjubjY)}(h h]h }(hj`hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hasoch]hasoc}(hj{hhhNhNubah}(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&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(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_establishedasbuh1hhjubjY)}(h h]h }(hjЦhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjަhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hskbh]hskb}(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@jjhjݥhhhjhMubah}(h]jإah ](jjeh"]h$]h&]jj)jhuh1j:hjhMhjڥhhubj)}(hhh]h)}(h'Update LSM state when assoc establishedh]h'Update LSM state when assoc established}(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"j-j#j-j$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)}(hj7h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj5ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj1ubjH)}(hhh](jM)}(h3``struct sctp_association *asoc`` SCTP association h](jS)}(h!``struct sctp_association *asoc``h]h)}(hjVh]hstruct sctp_association *asoc}(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.chMhjPubjm)}(hhh]h)}(hSCTP associationh]hSCTP association}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkhMhjlubah}(h]h ]h"]h$]h&]uh1jlhjPubeh}(h]h ]h"]h$]h&]uh1jLhjkhMhjMubjM)}(h<``struct sk_buff *skb`` packet establishing the association 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)}(h#packet establishing the associationh]h#packet establishing the association}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjMubeh}(h]h ]h"]h$]h&]uh1jGhj1ubh)}(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.chMhj1ubh)}(hcPasses the **asoc** and **chunk->skb** of the association COOKIE_ACK packet to the security module.h](h Passes the }(hjhhhNhNubj2)}(h**asoc**h]hasoc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubh and }(hjhhhNhNubj2)}(h**chunk->skb**h]h chunk->skb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubh= of the association COOKIE_ACK packet to the security module.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj1ubh)}(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.chMhj1ubh)}(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.chMhj1ubeh}(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}(hjZhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjVhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjihhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjVhhhjhhMubjj)}(hsecurity_unix_findh]jp)}(hsecurity_unix_findh]hsecurity_unix_find}(hj{hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjwubah}(h]h ](jjeh"]h$]h&]jjuh1jihjVhhhjhhMubj)}(h8(const struct path *path, struct sock *other, int flags)h](j)}(hconst struct path *pathh](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)}(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_unix_findasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hpathh]hpath}(hj hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct sock *otherh](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)}(hsockh]hsock}(hjBhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj?ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjDmodnameN classnameNjj)}j]jc.security_unix_findasbuh1hhj ubjY)}(h h]h }(hj`hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjp)}(hotherh]hother}(hj{hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int flagsh](jG)}(hinth]hint}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjp)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjVhhhjhhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjRhhhjhhMubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1j:hjhhMhjOhhubj)}(hhh]h)}(h+Check if a named AF_UNIX socket can connecth]h+Check if a named AF_UNIX socket can connect}(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&]uh1jhjOhhhjhhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$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)}(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)}(hB``const struct path *path`` path of the socket being connected to h](jS)}(h``const struct path *path``h]h)}(hjh]hconst struct path *path}(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%path of the socket being connected toh]h%path of the socket being connected to}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhj0hMhjubjM)}(h!``struct sock *other`` peer sock h](jS)}(h``struct sock *other``h]h)}(hjTh]hstruct sock *other}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjNubjm)}(hhh]h)}(h peer sockh]h peer sock}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1jlhjNubeh}(h]h ]h"]h$]h&]uh1jLhjihMhjubjM)}(h/``int flags`` flags associated with the socket h](jS)}(h ``int flags``h]h)}(hjh]h int 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)}(h flags associated with the socketh]h flags associated with the 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)}(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 }(hjުhhhNhNubj2)}(h **other**h]hother}(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.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.}(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_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}(hjFhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjBhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjUhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjBhhhjThMubjj)}(hsecurity_ib_pkey_accessh]jp)}(hsecurity_ib_pkey_accessh]hsecurity_ib_pkey_access}(hjghhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjcubah}(h]h ](jjeh"]h$]h&]jjuh1jihjBhhhjThMubj)}(h((void *sec, u64 subnet_prefix, u16 pkey)h](j)}(h void *sech](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)}(hsech]hsec}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hu64 subnet_prefixh](h)}(hhh]jp)}(hu64h]hu64}(hjȫhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjūubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjʫmodnameN classnameNjj)}j]j)}jjisbc.security_ib_pkey_accessasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjp)}(h subnet_prefixh]h subnet_prefix}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubj)}(hu16 pkeyh](h)}(hhh]jp)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.security_ib_pkey_accessasbuh1hhj ubjY)}(h h]h }(hj0hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubjp)}(hpkeyh]hpkey}(hj>hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj{ubeh}(h]h ]h"]h$]h&]jjuh1jhjBhhhjThMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj>hhhjThMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1j:hjThMhj;hhubj)}(hhh]h)}(h(Check if access to an IB pkey is allowedh]h(Check if access to an IB pkey is allowed}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjehhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjThMubeh}(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)}(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``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}(hj¬hhhNhNubah}(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)}(hjh]hu64 subnet_prefix}(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.chMhjܬubjm)}(hhh]h)}(hsubnet prefix of the porth]hsubnet prefix of the port}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjܬubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubjM)}(h``u16 pkey`` IB pkey h](jS)}(h ``u16 pkey``h]h)}(hjh]hu16 pkey}(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)}(hIB pkeyh]hIB pkey}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhj0hMhjubeh}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hjVh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjTubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h6Check permission to access a pkey when modifying a QP.h]h6Check permission to access a pkey when modifying a QP.}(hjlhhhNhNubah}(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 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.chMhjubeh}(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}(hj­hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjY)}(h h]h }(hjѭhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhjЭhM ubjj)}(h!security_ib_endport_manage_subneth]jp)}(h!security_ib_endport_manage_subneth]h!security_ib_endport_manage_subnet}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj߭ubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjЭhM ubj)}(h.(void *sec, const char *dev_name, u8 port_num)h](j)}(h void *sech](jG)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hj hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hsech]hsec}(hj(hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *dev_nameh](jL)}(hj h]hconst}(hjAhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhj=ubjY)}(h h]h }(hjNhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj=ubjG)}(hcharh]hchar}(hj\hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj=ubjY)}(h h]h }(hjjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj=ubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubjp)}(hdev_nameh]hdev_name}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj=ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h u8 port_numh](h)}(hhh]jp)}(hu8h]hu8}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsb#c.security_ib_endport_manage_subnetasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjp)}(hport_numh]hport_num}(hjϮhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjЭhM ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjЭhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjЭhM hjhhubj)}(hhh]h)}(h Check if SMPs traffic is allowedh]h Check if SMPs traffic 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&]uh1jhjhhhjЭhM ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$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)}(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``void *sec`` LSM blob h](jS)}(h ``void *sec``h]h)}(hj:h]h void *sec}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8ubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj4ubjm)}(hhh]h)}(hLSM blobh]hLSM blob}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM hjPubah}(h]h ]h"]h$]h&]uh1jlhj4ubeh}(h]h ]h"]h$]h&]uh1jLhjOhM hj1ubjM)}(h(``const char *dev_name`` IB device name h](jS)}(h``const char *dev_name``h]h)}(hjsh]hconst char *dev_name}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjmubjm)}(hhh]h)}(hIB device nameh]hIB device name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jlhjmubeh}(h]h ]h"]h$]h&]uh1jLhjhM hj1ubjM)}(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}(hjůhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj¯ubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhj1ubeh}(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)}(h9Check permissions to send and receive SMPs on a end port.h]h9Check permissions to send and receive SMPs on a end port.}(hjhhhNhNubah}(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&]uh1j1hj 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.}(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_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}(hjShhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjOhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjY)}(h h]h }(hjbhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjOhhhjahMubjj)}(hsecurity_ib_alloc_securityh]jp)}(hsecurity_ib_alloc_securityh]hsecurity_ib_alloc_security}(hjthhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjpubah}(h]h ](jjeh"]h$]h&]jjuh1jihjOhhhjahMubj)}(h (void **sec)h]j)}(h void **sech](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&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hsech]hsec}(hjưhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjOhhhjahMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjKhhhjahMubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1j:hjahMhjHhhubj)}(hhh]h)}(hAllocate an Infiniband LSM blobh]hAllocate an Infiniband LSM blob}(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&]uh1jhjHhhhjahMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$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)}(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 hj ubjH)}(hhh]jM)}(h``void **sec`` LSM blob h](jS)}(h``void **sec``h]h)}(hj1h]h void **sec}(hj3hhhNhNubah}(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)}(hLSM blobh]hLSM blob}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjGubah}(h]h ]h"]h$]h&]uh1jlhj+ubeh}(h]h ]h"]h$]h&]uh1jLhjFhMhj(ubah}(h]h ]h"]h$]h&]uh1jGhj ubh)}(h**Description**h]j2)}(hjlh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj ubh)}(h5Allocate a security structure for Infiniband objects.h]h5Allocate a security structure for Infiniband objects.}(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.chM hj ubh)}(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!hj ubeh}(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}(hjرhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjԱhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM5ubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjԱhhhjhM5ubjj)}(hsecurity_ib_free_securityh]jp)}(hsecurity_ib_free_securityh]hsecurity_ib_free_security}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ](jjeh"]h$]h&]jjuh1jihjԱhhhjhM5ubj)}(h (void *sec)h]j)}(h void *sech](jG)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjubjY)}(h h]h }(hj#hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hsech]hsec}(hj>hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj ubah}(h]h ]h"]h$]h&]jjuh1jhjԱhhhjhM5ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjбhhhjhM5ubah}(h]j˱ah ](jjeh"]h$]h&]jj)jhuh1j:hjhM5hVjͱhhubj)}(hhh]h)}(hFree an Infiniband LSM blobh]hFree an Infiniband LSM blob}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM5hjehhubah}(h]h ]h"]h$]h&]uh1jhjͱhhhjhM5ubeh}(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)}(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.chM9hjubjH)}(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}(hj²hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM6hjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhM6hjubah}(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.chM8hjubh)}(h,Deallocate an Infiniband security structure.h]h,Deallocate an Infiniband security structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM7hjubeh}(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}(hj)hhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhj%hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMCubjY)}(h h]h }(hj8hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj%hhhj7hMCubjj)}(hsecurity_xfrm_policy_alloch]jp)}(hsecurity_xfrm_policy_alloch]hsecurity_xfrm_policy_alloc}(hjJhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjFubah}(h]h ](jjeh"]h$]h&]jjuh1jihj%hhhj7hMCubj)}(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}(hjfhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjbubjY)}(h h]h }(hjshhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjbubh)}(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)}jjLsbc.security_xfrm_policy_allocasbuh1hhjbubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubjp)}(hctxph]hctxp}(hj̳hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(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]jc.security_xfrm_policy_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}(hj<hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubj)}(h gfp_t gfph](h)}(hhh]jp)}(hgfp_th]hgfp_t}(hjXhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjUubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjZmodnameN classnameNjj)}j]jc.security_xfrm_policy_allocasbuh1hhjQubjY)}(h h]h }(hjvhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjQubjp)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjQubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj^ubeh}(h]h ]h"]h$]h&]jjuh1jhj%hhhj7hMCubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhj!hhhj7hMCubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hj7hMChjhhubj)}(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&]uh1jhjhhhj7hMCubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jƴj#jƴj$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)}(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.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)}(hjh]hstruct xfrm_sec_ctx **ctxp}(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.chMDhjubjm)}(hhh]h)}(h,xfrm security context being added to the SPDh]h,xfrm security context being added to the SPD}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMDhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMDhjubjM)}(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)}(hj(h]h!struct xfrm_user_sec_ctx *sec_ctx}(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.chMEhj"ubjm)}(hhh]h)}(h$security label provided by userspaceh]h$security label provided by userspace}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMEhj>ubah}(h]h ]h"]h$]h&]uh1jlhj"ubeh}(h]h ]h"]h$]h&]uh1jLhj=hMEhjubjM)}(h``gfp_t gfp`` gfp flags h](jS)}(h ``gfp_t gfp``h]h)}(hjah]h gfp_t gfp}(hjchhhNhNubah}(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.chMFhj[ubjm)}(hhh]h)}(h gfp flagsh]h gfp flags}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMFhjwubah}(h]h ]h"]h$]h&]uh1jlhj[ubeh}(h]h ]h"]h$]h&]uh1jLhjvhMFhjubeh}(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.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)}(hjõh]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.chMJhjʴ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.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}(hjhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMfubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhjhMfubjj)}(hsecurity_xfrm_policy_freeh]jp)}(hsecurity_xfrm_policy_freeh]hsecurity_xfrm_policy_free}(hj)hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj%ubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjhMfubj)}(h(struct xfrm_sec_ctx *ctx)h]j)}(hstruct xfrm_sec_ctx *ctxh](jL)}(hjOh]hstruct}(hjEhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjAubjY)}(h h]h }(hjRhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjAubh)}(hhh]jp)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjchhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj`ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjemodnameN classnameNjj)}j]j)}jj+sbc.security_xfrm_policy_freeasbuh1hhjAubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjp)}(hctxh]hctx}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj=ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMfubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjhMfubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjhMfhjhhubj)}(hhh]h)}(hFree a xfrm security contexth]hFree a xfrm security context}(hjȶhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMfhjŶhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMfubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$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)}(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.chMjhjubjH)}(hhh]jM)}(h3``struct xfrm_sec_ctx *ctx`` xfrm security context h](jS)}(h``struct xfrm_sec_ctx *ctx``h]h)}(hj h]hstruct xfrm_sec_ctx *ctx}(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.chMghjubjm)}(hhh]h)}(hxfrm security contexth]hxfrm security context}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMghjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMghjubah}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hjDh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjBubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMihjubh)}(h+Free LSM resources associated with **ctx**.h](h#Free LSM resources associated with }(hjZhhhNhNubj2)}(h**ctx**h]hctx}(hjbhhhNhNubah}(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.chMhhjubeh}(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}(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_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&]jjuh1jihjhhhjhMubj)}(h9(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx)h](j)}(hstruct xfrm_state *xh](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)}(h xfrm_stateh]h xfrm_state}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.security_xfrm_state_allocasbuh1hhjԷubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjԷubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԷubjp)}(hxh]hx}(hj1hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjԷubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjзubj)}(h!struct xfrm_user_sec_ctx *sec_ctxh](jL)}(hjOh]hstruct}(hjJhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjFubjY)}(h h]h }(hjWhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjFubh)}(hhh]jp)}(hxfrm_user_sec_ctxh]hxfrm_user_sec_ctx}(hjhhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjeubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjjmodnameN classnameNjj)}j]jc.security_xfrm_state_allocasbuh1hhjFubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjFubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjp)}(hsec_ctxh]hsec_ctx}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjFubeh}(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)}(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.chMhjȸhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$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)}(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 xfrm_state *x`` xfrm state being added to the SAD h](jS)}(h``struct xfrm_state *x``h]h)}(hj h]hstruct xfrm_state *x}(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.chMhjubjm)}(hhh]h)}(h!xfrm state being added to the SADh]h!xfrm state being added to the SAD}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!hMhj"ubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhj!hMhjubjM)}(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)}(hjEh]h!struct xfrm_user_sec_ctx *sec_ctx}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj?ubjm)}(hhh]h)}(h$security label provided by userspaceh]h$security label provided by userspace}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1jlhj?ubeh}(h]h ]h"]h$]h&]uh1jLhjZhMhjubeh}(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)}(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 }(hjhhhNhNubj2)}(h**x->security**h]h x->security}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjubhu field; the security field is initialized to NULL when the xfrm_state is allocated. Set the context to correspond to }(hjhhhNhNubj2)}(h **sec_ctx**h]hsec_ctx}(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.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%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.chMhjubeh}(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}(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_xfrm_state_deleteh]jp)}(hsecurity_xfrm_state_deleteh]hsecurity_xfrm_state_delete}(hj1hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj-ubah}(h]h ](jjeh"]h$]h&]jjuh1jihj hhhjhMubj)}(h(struct xfrm_state *x)h]j)}(hstruct xfrm_state *xh](jL)}(hjOh]hstruct}(hjMhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjIubjY)}(h h]h }(hjZhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjIubh)}(hhh]jp)}(h xfrm_stateh]h xfrm_state}(hjkhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjhubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmmodnameN classnameNjj)}j]j)}jj3sbc.security_xfrm_state_deleteasbuh1hhjIubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjIubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubjp)}(hj3h]hx}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjIubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjEubah}(h]h ]h"]h$]h&]jjuh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjhMhjhhubj)}(hhh]h)}(h)Check if deleting a xfrm state is allowedh]h)Check if deleting a xfrm state 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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$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)}(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 xfrm_state *x`` xfrm state h](jS)}(h``struct xfrm_state *x``h]h)}(hjh]hstruct xfrm_state *x}(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.chMhj ubjm)}(hhh]h)}(h xfrm stateh]h xfrm state}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMhj&ubah}(h]h ]h"]h$]h&]uh1jlhj ubeh}(h]h ]h"]h$]h&]uh1jLhj%hMhjubah}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hjKh]h Description}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjIubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h"Authorize deletion of x->security.h]h"Authorize deletion of x->security.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h **Return**h]j2)}(hjrh]hReturn}(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.chMhjubh)}(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.chMhjubeh}(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 }(hjƻhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjhhhjŻhMmubjj)}(hsecurity_locked_downh]jp)}(hsecurity_locked_downh]hsecurity_locked_down}(hjػhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjԻubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjŻhMmubj)}(h(enum lockdown_reason what)h]j)}(henum lockdown_reason whath](jL)}(hjk;h]henum}(hjhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubh)}(hhh]jp)}(hlockdown_reasonh]hlockdown_reason}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjڻsbc.security_locked_downasbuh1hhjubjY)}(h h]h }(hj2hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubjp)}(hwhath]hwhat}(hj@hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjŻhMmubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjŻhMmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjŻhMmhjhhubj)}(hhh]h)}(h$Check if a kernel feature is allowedh]h$Check if a kernel feature is allowed}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMmhjghhubah}(h]h ]h"]h$]h&]uh1jhjhhhjŻhMmubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$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)}(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.chMqhjubjH)}(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}(hjļhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMnhjubah}(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.chMphjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMohjubh)}(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.chMrhjubh)}(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.chMshjubeh}(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}(hjRhhhNhNubah}(h]h ]jSah"]h$]h&]uh1jFhjNhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM|ubjY)}(h h]h }(hjahhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjNhhhj`hM|ubjj)}(hsecurity_bdev_alloch]jp)}(hsecurity_bdev_alloch]hsecurity_bdev_alloc}(hjshhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjoubah}(h]h ](jjeh"]h$]h&]jjuh1jihjNhhhj`hM|ubj)}(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)}jjusbc.security_bdev_allocasbuh1hhjubjY)}(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&]jjuh1jhjNhhhj`hM|ubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjJhhhj`hM|ubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1j:hj`hM|hjGhhubj)}(hhh]h)}(h Allocate a block device LSM blobh]h Allocate a block device LSM blob}(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&]uh1jhjGhhhj`hM|ubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"j*j#j*j$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)}(hj4h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj2ubah}(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)}(hjSh]hstruct block_device *bdev}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM}hjMubjm)}(hhh]h)}(h block deviceh]h block device}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhM}hjiubah}(h]h ]h"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]uh1jLhjhhM}hjJubah}(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)}(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~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.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](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}(hj hhhNhNubah}(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_freeh]jp)}(hsecurity_bdev_freeh]hsecurity_bdev_free}(hj-hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj)ubah}(h]h ](jjeh"]h$]h&]jjuh1jihjhhhjhMubj)}(h(struct block_device *bdev)h]j)}(hstruct block_device *bdevh](jL)}(hjOh]hstruct}(hjIhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjEubjY)}(h h]h }(hjVhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjEubh)}(hhh]jp)}(h block_deviceh]h block_device}(hjghhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjdubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjimodnameN classnameNjj)}j]j)}jj/sbc.security_bdev_freeasbuh1hhjEubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjEubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubjp)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjEubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j@jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j:hjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j!jj"jj#jj$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)}(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)}(hj h]hstruct block_device *bdev}(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.chMhjubjm)}(hhh]h)}(h block deviceh]h block device}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj#ubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhj"hMhjubah}(h]h ]h"]h$]h&]uh1jGhjubh)}(h**Description**h]j2)}(hjHh]h Description}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hjFubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(hMDeallocate the bdev security structure and set **bdev->bd_security** to NULL.h](h/Deallocate the bdev security structure and set }(hj^hhhNhNubj2)}(h**bdev->bd_security**h]hbdev->bd_security}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j1hj^ubh to NULL.}(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_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 }(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)}jjsbc.security_bdev_setintegrityasbuh1hhjubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjp)}(hbdevh]hbdev}(hj5hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum lsm_integrity_type typeh](jL)}(hjk;h]henum}(hjNhhhNhNubah}(h]h ]jXah"]h$]h&]uh1jKhjJubjY)}(h h]h }(hj[hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjJubh)}(hhh]jp)}(hlsm_integrity_typeh]hlsm_integrity_type}(hjlhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjiubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjnmodnameN classnameNjj)}j]jc.security_bdev_setintegrityasbuh1hhjJubjY)}(h h]h }(hjhhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhjJubjp)}(htypeh]htype}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjJubeh}(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}(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)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h size_t sizeh](h)}(hhh]jp)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.security_bdev_setintegrityasbuh1hhj ubjY)}(h h]h }(hj/hhhNhNubah}(h]h ]jeah"]h$]h&]uh1jXhj ubjp)}(hsizeh]hsize}(hj=hhhNhNubah}(h]h ]j|ah"]h$]h&]uh1johj ubeh}(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}(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"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)}(hjh]henum lsm_integrity_type type}(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)}(h3type of integrity, e.g. hash digest, signature, etch]h3type of integrity, e.g. hash digest, signature, etc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhjhMhjubjM)}(h*``const void *value`` the integrity value h](jS)}(h``const void *value``h]h)}(hjh]hconst void *value}(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 integrity valueh]hthe integrity value}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1jlhjubeh}(h]h ]h"]h$]h&]uh1jLhj/hMhjubjM)}(h,``size_t size`` size of the integrity value h](jS)}(h``size_t size``h]h)}(hjSh]h size_t size}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQubah}(h]h ]h"]h$]h&]uh1jRh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjMubjm)}(hhh]h)}(hsize of the integrity valueh]hsize of the integrity value}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1jlhjMubeh}(h]h ]h"]h$]h&]uh1jLhjhhMhjubeh}(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}(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)}(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_handlerjerror_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}jjs nametypes}jsh}(jhj3j<jjjjjfjkj j j j j[j`jjjjjjj j jy#j~#j%j%jH*jM*j-j-j/j0j2j2j5j5jT8jY8j:j:j>j >j AjAjCjCj GjGj!Ij&IjnKjsKjMjMjPjPjSjSjUjUjXjXjuZjzZj\j\j_j_j`j`jbjbjfjfjhjhj'jj,jjkjkjLnjQnjpjpjesjjsjvjvj^yjcyj{j{j$~j)~jjjHjMjjjjjhjmjjjjjjjjjjjzjj˖jЖjjjjjjj-j2jjjj jإjݥjMjRj9j>jjjFjKj˱jбjj!jjjjjjjjjEjJjjjju 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.