-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]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 }(hhhhhNhNubh)}(h``security/security.c``h]hsecurity/security.c}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhubh and associated structures:}(hhhhhNhNubeh}(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_optshNtauh1jhhhhhNhNubhdesc)}(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}(hj4hhhNhNubah}(h]h ]ktah"]h$]h&]uh1j2hj.hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubhdesc_sig_space)}(h h]h }(hjFhhhNhNubah}(h]h ]wah"]h$]h&]uh1jDhj.hhhjChMubh desc_name)}(hsecurity_free_mnt_optsh]h desc_sig_name)}(hsecurity_free_mnt_optsh]hsecurity_free_mnt_opts}(hj]hhhNhNubah}(h]h ]nah"]h$]h&]uh1j[hjWubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1jUhj.hhhjChMubhdesc_parameterlist)}(h(void **mnt_opts)h]hdesc_parameter)}(hvoid **mnt_optsh](j3)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj~ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj~ubhdesc_sig_punctuation)}(h*h]h*}(hjhhhNhNubah}(h]h ]pah"]h$]h&]uh1jhj~ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj\)}(hmnt_optsh]hmnt_opts}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj~ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjxubah}(h]h ]h"]h$]h&]jtjuuh1jvhj.hhhjChMubeh}(h]h ]h"]h$]h&]jtju add_permalinkuh1j,sphinx_line_type declaratorhj(hhhjChMubah}(h]jah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1j&hjChMhj#hhubh 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&]uh1jhj#hhhjChMubeh}(h]h ](cfunctioneh"]h$]h&]domainjobjtypej desctypej noindex noindexentrynocontentsentryuh1j!hhhhhNhNubh container)}(h|**Parameters** ``void **mnt_opts`` LSM processed mount options **Description** Free memory associated with **mnt_ops**.h](h)}(h**Parameters**h]hstrong)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubhdefinition_list)}(hhh]hdefinition_list_item)}(h0``void **mnt_opts`` LSM processed mount options h](hterm)}(h``void **mnt_opts``h]h)}(hjBh]hvoid **mnt_opts}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj:ubh definition)}(hhh]h)}(hLSM processed mount optionsh]hLSM processed mount options}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhMhjZubah}(h]h ]h"]h$]h&]uh1jXhj:ubeh}(h]h ]h"]h$]h&]uh1j8hjWhMhj5ubah}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h(Free memory associated with **mnt_ops**.h](hFree memory associated with }(hjhhhNhNubj)}(h **mnt_ops**h]hmnt_ops}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%security_sb_eat_lsm_opts (C function)c.security_sb_eat_lsm_optshNtauh1jhhhhhNhNubj")}(hhh](j')}(h=int security_sb_eat_lsm_opts (char *options, void **mnt_opts)h]j-)}(hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(h mount optionsh]h mount options}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hj hMhjubj9)}(h0``void **mnt_opts`` LSM processed mount options h](j?)}(h``void **mnt_opts``h]h)}(hj/h]hvoid **mnt_opts}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj)ubjY)}(hhh]h)}(hLSM processed mount optionsh]hLSM processed mount options}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jXhj)ubeh}(h]h ]h"]h$]h&]uh1j8hjDhMhjubeh}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h5Eat (scan **options**) and save them in **mnt_opts**.h](h Eat (scan }(hjhhhNhNubj)}(h **options**h]hoptions}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh) and save them in }(hjhhhNhNubj)}(h **mnt_opts**h]hmnt_opts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(security_sb_mnt_opts_compat (C function)c.security_sb_mnt_opts_compathNtauh1jhhhhhNhNubj")}(hhh](j')}(hHint security_sb_mnt_opts_compat (struct super_block *sb, void *mnt_opts)h]j-)}(hGint security_sb_mnt_opts_compat(struct super_block *sb, void *mnt_opts)h](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjhMubjV)}(hsecurity_sb_mnt_opts_compath]j\)}(hsecurity_sb_mnt_opts_compath]hsecurity_sb_mnt_opts_compat}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhMubjw)}(h((struct super_block *sb, void *mnt_opts)h](j})}(hstruct super_block *sbh](hdesc_sig_keyword)}(hstructh]hstruct}(hj9hhhNhNubah}(h]h ]kah"]h$]h&]uh1j7hj3ubjE)}(h h]h }(hjHhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj3ubh)}(hhh]j\)}(h super_blockh]h super_block}(hjYhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjVubah}(h]h ]h"]h$]h&] refdomainjreftype identifier reftargetj[modnameN classnameN c:parent_keysphinx.domains.c LookupKey)}data]jt ASTIdentifier)}jojsbc.security_sb_mnt_opts_compatasbuh1hhj3ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj3ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj\)}(hsbh]hsb}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj3ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj/ubj})}(hvoid *mnt_optsh](j3)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hmnt_optsh]hmnt_opts}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj/ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhjhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hjhMhjhhubj)}(hhh]h)}(h&Check if new mount options are allowedh]h&Check if new mount options are 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 jjj jj jjjuh1j!hhhhhNhNubj)}(hXA**Parameters** ``struct super_block *sb`` filesystem superblock ``void *mnt_opts`` new mount options **Description** Determine if the new mount options in **mnt_opts** are allowed given the existing mounted filesystem at **sb**. **sb** superblock being compared. **Return** Returns 0 if options are compatible.h](h)}(h**Parameters**h]j)}(hj*h]h Parameters}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj$ubj4)}(hhh](j9)}(h1``struct super_block *sb`` filesystem superblock h](j?)}(h``struct super_block *sb``h]h)}(hjIh]hstruct super_block *sb}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjCubjY)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hMhj_ubah}(h]h ]h"]h$]h&]uh1jXhjCubeh}(h]h ]h"]h$]h&]uh1j8hj^hMhj@ubj9)}(h%``void *mnt_opts`` new mount options h](j?)}(h``void *mnt_opts``h]h)}(hjh]hvoid *mnt_opts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj|ubjY)}(hhh]h)}(hnew mount optionsh]hnew mount options}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhj|ubeh}(h]h ]h"]h$]h&]uh1j8hjhMhj@ubeh}(h]h ]h"]h$]h&]uh1j3hj$ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj$ubh)}(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 }(hjhhhNhNubj)}(h **mnt_opts**h]hmnt_opts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh6 are allowed given the existing mounted filesystem at }(hjhhhNhNubj)}(h**sb**h]hsb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh. }(hjhhhNhNubj)}(h**sb**h]hsb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh superblock being compared.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj$ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj$ubh)}(h$Returns 0 if options are compatible.h]h$Returns 0 if options are compatible.}(hj0hhhNhNubah}(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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sb_remount (C function)c.security_sb_remounthNtauh1jhhhhhNhNubj")}(hhh](j')}(h@int security_sb_remount (struct super_block *sb, void *mnt_opts)h]j-)}(h?int security_sb_remount(struct super_block *sb, void *mnt_opts)h](j3)}(hinth]hint}(hj_hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj[hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjnhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj[hhhjmhMubjV)}(hsecurity_sb_remounth]j\)}(hsecurity_sb_remounth]hsecurity_sb_remount}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj|ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj[hhhjmhMubjw)}(h((struct super_block *sb, void *mnt_opts)h](j})}(hstruct super_block *sbh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(h super_blockh]h super_block}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojsbc.security_sb_remountasbuh1hhjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hsbh]hsb}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hvoid *mnt_optsh](j3)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj\)}(hmnt_optsh]hmnt_opts}(hj7hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj[hhhjmhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjWhhhjmhMubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1j&hjmhMhjThhubj)}(hhh]h)}(h3Verify no incompatible mount changes during remounth]h3Verify no incompatible mount changes during remount}(hjahhhNhNubah}(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&]uh1jhjThhhjmhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjyjjyjjjuh1j!hhhhhNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj}ubj4)}(hhh](j9)}(h1``struct super_block *sb`` filesystem superblock h](j?)}(h``struct super_block *sb``h]h)}(hjh]hstruct super_block *sb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubj9)}(h%``void *mnt_opts`` (re)mount options h](j?)}(h``void *mnt_opts``h]h)}(hjh]hvoid *mnt_opts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(h(re)mount optionsh]h(re)mount options}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubeh}(h]h ]h"]h$]h&]uh1j3hj}ubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj}ubh)}(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.chMhj}ubh)}(h **Return**h]j)}(hj= h]hReturn}(hj? hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj; 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.}(hjS 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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%security_sb_set_mnt_opts (C function)c.security_sb_set_mnt_optshNtauh1jhhhhhNhNubj")}(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]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](j3)}(hinth]hint}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj~ hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMjubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj~ hhhj hMjubjV)}(hsecurity_sb_set_mnt_optsh]j\)}(hsecurity_sb_set_mnt_optsh]hsecurity_sb_set_mnt_opts}(hj hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj~ hhhj hMjubjw)}(ha(struct super_block *sb, void *mnt_opts, unsigned long kern_flags, unsigned long *set_kern_flags)h](j})}(hstruct super_block *sbh](j8)}(hj;h]hstruct}(hj hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj ubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubh)}(hhh]j\)}(h super_blockh]h super_block}(hj hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj modnameN classnameNjsjv)}jy]j|)}joj sbc.security_sb_set_mnt_optsasbuh1hhj ubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj\)}(hsbh]hsb}(hj hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj ubj})}(hvoid *mnt_optsh](j3)}(hvoidh]hvoid}(hj1 hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj- ubjE)}(h h]h }(hj? hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj- ubj)}(hjh]h*}(hjM hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj- ubj\)}(hmnt_optsh]hmnt_opts}(hjZ hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj- ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj ubj})}(hunsigned long kern_flagsh](j3)}(hunsignedh]hunsigned}(hjs hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjo ubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjo ubj3)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjo ubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjo ubj\)}(h kern_flagsh]h kern_flags}(hj hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjo ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj ubj})}(hunsigned long *set_kern_flagsh](j3)}(hunsignedh]hunsigned}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubj3)}(hlongh]hlong}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj\)}(hset_kern_flagsh]hset_kern_flags}(hj hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj~ hhhj hMjubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjz hhhj hMjubah}(h]ju ah ](jjeh"]h$]h&]jj)jhuh1j&hj hMjhjw hhubj)}(hhh]h)}(h&Set the mount options for a filesystemh]h&Set the mount options for a filesystem}(hj3 hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMjhj0 hhubah}(h]h ]h"]h$]h&]uh1jhjw hhhj hMjubeh}(h]h ](jfunctioneh"]h$]h&]j jjjK jjK jjjuh1j!hhhhhNhNubj)}(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]j)}(hjU h]h Parameters}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjS ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMnhjO ubj4)}(hhh](j9)}(h1``struct super_block *sb`` filesystem superblock h](j?)}(h``struct super_block *sb``h]h)}(hjt h]hstruct super_block *sb}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMkhjn ubjY)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMkhj ubah}(h]h ]h"]h$]h&]uh1jXhjn ubeh}(h]h ]h"]h$]h&]uh1j8hj hMkhjk ubj9)}(h(``void *mnt_opts`` binary mount options h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMlhj ubjY)}(hhh]h)}(hbinary mount optionsh]hbinary mount options}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMlhj ubah}(h]h ]h"]h$]h&]uh1jXhj ubeh}(h]h ]h"]h$]h&]uh1j8hj hMlhjk ubj9)}(h/``unsigned long kern_flags`` kernel flags (in) h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMmhj ubjY)}(hhh]h)}(hkernel flags (in)h]hkernel flags (in)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMmhj ubah}(h]h ]h"]h$]h&]uh1jXhj ubeh}(h]h ]h"]h$]h&]uh1j8hj hMmhjk ubj9)}(h5``unsigned long *set_kern_flags`` kernel flags (out) h](j?)}(h!``unsigned long *set_kern_flags``h]h)}(hj h]hunsigned long *set_kern_flags}(hj! hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMnhj ubjY)}(hhh]h)}(hkernel flags (out)h]hkernel flags (out)}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4 hMnhj5 ubah}(h]h ]h"]h$]h&]uh1jXhj ubeh}(h]h ]h"]h$]h&]uh1j8hj4 hMnhjk ubeh}(h]h ]h"]h$]h&]uh1j3hjO ubh)}(h**Description**h]j)}(hjZ h]h Description}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjX ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMphjO ubh)}(h>Set the security relevant mount options used for a superblock.h]h>Set the security relevant mount options used for a superblock.}(hjp hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMohjO ubh)}(h **Return**h]j)}(hj h]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMqhjO 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.chMrhjO ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'security_sb_clone_mnt_opts (C function)c.security_sb_clone_mnt_optshNtauh1jhhhhhNhNubj")}(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]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](j3)}(hinth]hint}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj hhhj hMubjV)}(hsecurity_sb_clone_mnt_optsh]j\)}(hsecurity_sb_clone_mnt_optsh]hsecurity_sb_clone_mnt_opts}(hj hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj hhhj hMubjw)}(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](j8)}(hconsth]hconst}(hj hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj ubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubj8)}(hj;h]hstruct}(hj hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj ubjE)}(h h]h }(hj, hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubh)}(hhh]j\)}(h super_blockh]h super_block}(hj= hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj: ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj? modnameN classnameNjsjv)}jy]j|)}joj sbc.security_sb_clone_mnt_optsasbuh1hhj ubjE)}(h h]h }(hj] hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubj)}(hjh]h*}(hjk hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj\)}(holdsbh]holdsb}(hjx hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj ubj})}(hstruct super_block *newsbh](j8)}(hj;h]hstruct}(hj hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj ubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubh)}(hhh]j\)}(h super_blockh]h super_block}(hj hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj modnameN classnameNjsjv)}jy]jY c.security_sb_clone_mnt_optsasbuh1hhj ubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj\)}(hnewsbh]hnewsb}(hj hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj ubj})}(hunsigned long kern_flagsh](j3)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubj3)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubjE)}(h h]h }(hj+hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubj\)}(h kern_flagsh]h kern_flags}(hj9hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj ubj})}(hunsigned long *set_kern_flagsh](j3)}(hunsignedh]hunsigned}(hjRhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjNubjE)}(h h]h }(hj`hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjNubj3)}(hlongh]hlong}(hjnhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjNubjE)}(h h]h }(hj|hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjNubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubj\)}(hset_kern_flagsh]hset_kern_flags}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjNubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj hhhj hMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj hhhj hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j&hj hMhj 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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!hhhhhNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubj4)}(hhh](j9)}(h6``const struct super_block *oldsb`` source superblock h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(hsource superblockh]hsource superblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubj9)}(h5``struct super_block *newsb`` destination superblock h](j?)}(h``struct super_block *newsb``h]h)}(hj;h]hstruct super_block *newsb}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj5ubjY)}(hhh]h)}(hdestination superblockh]hdestination superblock}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMhjQubah}(h]h ]h"]h$]h&]uh1jXhj5ubeh}(h]h ]h"]h$]h&]uh1j8hjPhMhjubj9)}(h/``unsigned long kern_flags`` kernel flags (in) h](j?)}(h``unsigned long kern_flags``h]h)}(hjth]hunsigned long kern_flags}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjnubjY)}(hhh]h)}(hkernel flags (in)h]hkernel flags (in)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjnubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubj9)}(h5``unsigned long *set_kern_flags`` kernel flags (out) h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(hkernel flags (out)h]hkernel flags (out)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubeh}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(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]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*security_dentry_init_security (C function)c.security_dentry_init_securityhNtauh1jhhhhhNhNubj")}(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]j-)}(hint security_dentry_init_security(struct dentry *dentry, int mode, const struct qstr *name, const char **xattr_name, struct lsm_context *lsmctx)h](j3)}(hinth]hint}(hjThhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjPhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjchhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjPhhhjbhMubjV)}(hsecurity_dentry_init_securityh]j\)}(hsecurity_dentry_init_securityh]hsecurity_dentry_init_security}(hjuhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjqubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjPhhhjbhMubjw)}(ho(struct dentry *dentry, int mode, const struct qstr *name, const char **xattr_name, struct lsm_context *lsmctx)h](j})}(hstruct dentry *dentryh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojwsbc.security_dentry_init_securityasbuh1hhjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hint modeh](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj\)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hconst struct qstr *nameh](j8)}(hj h]hconst}(hj8hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj4ubjE)}(h h]h }(hjEhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj4ubj8)}(hj;h]hstruct}(hjShhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj4ubjE)}(h h]h }(hj`hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj4ubh)}(hhh]j\)}(hqstrh]hqstr}(hjqhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjnubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjsmodnameN classnameNjsjv)}jy]jc.security_dentry_init_securityasbuh1hhj4ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj4ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj4ubj\)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj4ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hconst char **xattr_nameh](j8)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj3)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(h xattr_nameh]h xattr_name}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hstruct lsm_context *lsmctxh](j8)}(hj;h]hstruct}(hj-hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj)ubjE)}(h h]h }(hj:hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj)ubh)}(hhh]j\)}(h lsm_contexth]h lsm_context}(hjKhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjHubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjMmodnameN classnameNjsjv)}jy]jc.security_dentry_init_securityasbuh1hhj)ubjE)}(h h]h }(hjihhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj)ubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubj\)}(hlsmctxh]hlsmctx}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj)ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjPhhhjbhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjLhhhjbhMubah}(h]jGah ](jjeh"]h$]h&]jj)jhuh1j&hjbhMhjIhhubj)}(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&]uh1jhjIhhhjbhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!hhhhhNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubj4)}(hhh](j9)}(h3``struct dentry *dentry`` the dentry to initialize h](j?)}(h``struct dentry *dentry``h]h)}(hjh]hstruct dentry *dentry}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(hthe dentry to initializeh]hthe dentry to initialize}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubj9)}(h2``int mode`` mode used to determine resource type h](j?)}(h ``int mode``h]h)}(hj(h]hint mode}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj"ubjY)}(hhh]h)}(h$mode used to determine resource typeh]h$mode used to determine resource type}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj>ubah}(h]h ]h"]h$]h&]uh1jXhj"ubeh}(h]h ]h"]h$]h&]uh1j8hj=hMhjubj9)}(h<``const struct qstr *name`` name of the last path component h](j?)}(h``const struct qstr *name``h]h)}(hjah]hconst struct qstr *name}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj[ubjY)}(hhh]h)}(hname of the last path componenth]hname of the last path component}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvhMhjwubah}(h]h ]h"]h$]h&]uh1jXhj[ubeh}(h]h ]h"]h$]h&]uh1j8hjvhMhjubj9)}(h;``const char **xattr_name`` name of the security/LSM xattr h](j?)}(h``const char **xattr_name``h]h)}(hjh]hconst char **xattr_name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(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&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubj9)}(hD``struct lsm_context *lsmctx`` pointer to the resulting LSM context h](j?)}(h``struct lsm_context *lsmctx``h]h)}(hjh]hstruct lsm_context *lsmctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(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&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubeh}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 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 }(hj$hhhNhNubj)}(h**xattr_name**h]h xattr_name}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubhC does not need to be free’d by the caller, it is a static string.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h **Return**h]j)}(hjGh]hReturn}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(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.}(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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j,security_dentry_create_files_as (C function)!c.security_dentry_create_files_ashNtauh1jhhhhhNhNubj")}(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]j-)}(hint security_dentry_create_files_as(struct dentry *dentry, int mode, const struct qstr *name, const struct cred *old, struct cred *new)h](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjhM ubjV)}(hsecurity_dentry_create_files_ash]j\)}(hsecurity_dentry_create_files_ash]hsecurity_dentry_create_files_as}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhM ubjw)}(hd(struct dentry *dentry, int mode, const struct qstr *name, const struct cred *old, struct cred *new)h](j})}(hstruct dentry *dentryh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojsb!c.security_dentry_create_files_asasbuh1hhjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hdentryh]hdentry}(hj"hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hint modeh](j3)}(hinth]hint}(hj;hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj7ubjE)}(h h]h }(hjIhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj7ubj\)}(hmodeh]hmode}(hjWhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj7ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hconst struct qstr *nameh](j8)}(hj h]hconst}(hjphhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjlubjE)}(h h]h }(hj}hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjlubj8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjlubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjlubh)}(hhh]j\)}(hqstrh]hqstr}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j!c.security_dentry_create_files_asasbuh1hhjlubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj\)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjlubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hconst struct cred *oldh](j8)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hj#hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hcredh]hcred}(hj4hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj1ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj6modnameN classnameNjsjv)}jy]j!c.security_dentry_create_files_asasbuh1hhjubjE)}(h h]h }(hjRhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(holdh]hold}(hjmhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hstruct cred *newh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hcredh]hcred}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j!c.security_dentry_create_files_asasbuh1hhjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhjhM ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhjhM ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hjhM hjhhubj)}(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.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!hhhhhNhNubj)}(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]j)}(hj)h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj#ubj4)}(hhh](j9)}(h3``struct dentry *dentry`` the dentry to initialize h](j?)}(h``struct dentry *dentry``h]h)}(hjHh]hstruct dentry *dentry}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjBubjY)}(hhh]h)}(hthe dentry to initializeh]hthe dentry to initialize}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hM hj^ubah}(h]h ]h"]h$]h&]uh1jXhjBubeh}(h]h ]h"]h$]h&]uh1j8hj]hM hj?ubj9)}(h2``int mode`` mode used to determine resource type h](j?)}(h ``int mode``h]h)}(hjh]hint mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj{ubjY)}(hhh]h)}(h$mode used to determine resource typeh]h$mode used to determine resource type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jXhj{ubeh}(h]h ]h"]h$]h&]uh1j8hjhM hj?ubj9)}(h<``const struct qstr *name`` name of the last path component h](j?)}(h``const struct qstr *name``h]h)}(hjh]hconst struct qstr *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjubjY)}(hhh]h)}(hname of the last path componenth]hname of the last path component}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhM hj?ubj9)}(hE``const struct cred *old`` creds to use for LSM context calculations h](j?)}(h``const struct cred *old``h]h)}(hjh]hconst struct cred *old}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(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&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhj?ubj9)}(h%``struct cred *new`` creds to modify h](j?)}(h``struct cred *new``h]h)}(hj,h]hstruct cred *new}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj&ubjY)}(hhh]h)}(hcreds to modifyh]hcreds to modify}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1jXhj&ubeh}(h]h ]h"]h$]h&]uh1j8hjAhMhj?ubeh}(h]h ]h"]h$]h&]uh1j3hj#ubh)}(h**Description**h]j)}(hjgh]h Description}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj#ubh)}(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.}(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]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj#ubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj#ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)security_inode_init_security (C function)c.security_inode_init_securityhNtauh1jhhhhhNhNubj")}(hhh](j')}(hint security_inode_init_security (struct inode *inode, struct inode *dir, const struct qstr *qstr, const initxattrs initxattrs, void *fs_data)h]j-)}(hint security_inode_init_security(struct inode *inode, struct inode *dir, const struct qstr *qstr, const initxattrs initxattrs, void *fs_data)h](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM"ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjhM"ubjV)}(hsecurity_inode_init_securityh]j\)}(hsecurity_inode_init_securityh]hsecurity_inode_init_security}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhM"ubjw)}(hm(struct inode *inode, struct inode *dir, const struct qstr *qstr, const initxattrs initxattrs, void *fs_data)h](j})}(hstruct inode *inodeh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubh)}(hhh]j\)}(hinodeh]hinode}(hj.hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj+ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj0modnameN classnameNjsjv)}jy]j|)}jojsbc.security_inode_init_securityasbuh1hhj ubjE)}(h h]h }(hjNhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj\)}(hinodeh]hinode}(hjihhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hstruct inode *dirh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj~ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj~ubh)}(hhh]j\)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]jJc.security_inode_init_securityasbuh1hhj~ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj~ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj\)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj~ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hconst struct qstr *qstrh](j8)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj8)}(hj;h]hstruct}(hj hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hqstrh]hqstr}(hj+hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj(ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj-modnameN classnameNjsjv)}jy]jJc.security_inode_init_securityasbuh1hhjubjE)}(h h]h }(hjIhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hqstrh]hqstr}(hjdhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hconst initxattrs initxattrsh](j8)}(hj h]hconst}(hj}hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjyubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjyubh)}(hhh]j\)}(h initxattrsh]h initxattrs}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]jJc.security_inode_init_securityasbuh1hhjyubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjyubj\)}(h initxattrsh]h initxattrs}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjyubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(h void *fs_datah](j3)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hfs_datah]hfs_data}(hj hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhjhM"ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhjhM"ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hjhM"hjhhubj)}(hhh]h)}(h!Initialize an inode's LSM contexth]h#Initialize an inode’s LSM context}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM"hj0hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM"ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjKjjKjjjuh1j!hhhhhNhNubj)}(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]j)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM&hjOubj4)}(hhh](j9)}(h"``struct inode *inode`` the inode h](j?)}(h``struct inode *inode``h]h)}(hjth]hstruct inode *inode}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM#hjnubjY)}(hhh]h)}(h the inodeh]h the inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM#hjubah}(h]h ]h"]h$]h&]uh1jXhjnubeh}(h]h ]h"]h$]h&]uh1j8hjhM#hjkubj9)}(h'``struct inode *dir`` parent directory h](j?)}(h``struct inode *dir``h]h)}(hjh]hstruct inode *dir}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM$hjubjY)}(hhh]h)}(hparent directoryh]hparent directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM$hjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhM$hjkubj9)}(h;``const struct qstr *qstr`` last component of the pathname h](j?)}(h``const struct qstr *qstr``h]h)}(hjh]hconst struct qstr *qstr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM%hjubjY)}(hhh]h)}(hlast component of the pathnameh]hlast component of the pathname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM%hjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhM%hjkubj9)}(hB``const initxattrs initxattrs`` callback function to write xattrs h](j?)}(h``const initxattrs initxattrs``h]h)}(hjh]hconst initxattrs initxattrs}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM&hjubjY)}(hhh]h)}(h!callback function to write xattrsh]h!callback function to write xattrs}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM&hj5ubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hj4hM&hjkubj9)}(h+``void *fs_data`` filesystem specific data h](j?)}(h``void *fs_data``h]h)}(hjXh]h void *fs_data}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM'hjRubjY)}(hhh]h)}(hfilesystem specific datah]hfilesystem specific data}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhM'hjnubah}(h]h ]h"]h$]h&]uh1jXhjRubeh}(h]h ]h"]h$]h&]uh1j8hjmhM'hjkubeh}(h]h ]h"]h$]h&]uh1j3hjOubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM)hjOubh)}(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.chM(hjOubh)}(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.hjOubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM8hjOubh)}(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.chM9hjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_path_mknod (C function)c.security_path_mknodhNtauh1jhhhhhNhNubj")}(hhh](j')}(hgint security_path_mknod (const struct path *dir, struct dentry *dentry, umode_t mode, unsigned int dev)h]j-)}(hfint security_path_mknod(const struct path *dir, struct dentry *dentry, umode_t mode, unsigned int dev)h](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj hhhjhMubjV)}(hsecurity_path_mknodh]j\)}(hsecurity_path_mknodh]hsecurity_path_mknod}(hj/hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj+ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj hhhjhMubjw)}(hO(const struct path *dir, struct dentry *dentry, umode_t mode, unsigned int dev)h](j})}(hconst struct path *dirh](j8)}(hj h]hconst}(hjKhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjGubjE)}(h h]h }(hjXhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjGubj8)}(hj;h]hstruct}(hjfhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjGubjE)}(h h]h }(hjshhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjGubh)}(hhh]j\)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}joj1sbc.security_path_mknodasbuh1hhjGubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubj\)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjGubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjCubj})}(hstruct dentry *dentryh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hdentryh]hdentry}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]jc.security_path_mknodasbuh1hhjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hdentryh]hdentry}(hj/hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjCubj})}(h umode_t modeh](h)}(hhh]j\)}(humode_th]humode_t}(hjKhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjHubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjMmodnameN classnameNjsjv)}jy]jc.security_path_mknodasbuh1hhjDubjE)}(h h]h }(hjihhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjDubj\)}(hmodeh]hmode}(hjwhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjDubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjCubj})}(hunsigned int devh](j3)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj\)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjCubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj hhhjhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hjhMhjhhubj)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjj jj jjjuh1j!hhhhhNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubj4)}(hhh](j9)}(h,``const struct path *dir`` parent directory h](j?)}(h``const struct path *dir``h]h)}(hj3h]hconst struct path *dir}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj-ubjY)}(hhh]h)}(hparent directoryh]hparent directory}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjIubah}(h]h ]h"]h$]h&]uh1jXhj-ubeh}(h]h ]h"]h$]h&]uh1j8hjHhMhj*ubj9)}(h#``struct dentry *dentry`` new file h](j?)}(h``struct dentry *dentry``h]h)}(hjlh]hstruct dentry *dentry}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjfubjY)}(hhh]h)}(hnew fileh]hnew file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjfubeh}(h]h ]h"]h$]h&]uh1j8hjhMhj*ubj9)}(h``umode_t mode`` new file mode h](j?)}(h``umode_t mode``h]h)}(hjh]h umode_t mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(h new file modeh]h new file mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhj*ubj9)}(h#``unsigned int dev`` device number h](j?)}(h``unsigned int dev``h]h)}(hjh]hunsigned int dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(h device numberh]h device number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhj*ubeh}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(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.}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h **Return**h]j)}(hj@ h]hReturn}(hjB hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj> 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.}(hjV 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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_path_mkdir (C function)c.security_path_mkdirhNtauh1jhhhhhNhNubj")}(hhh](j')}(hUint security_path_mkdir (const struct path *dir, struct dentry *dentry, umode_t mode)h]j-)}(hTint security_path_mkdir(const struct path *dir, struct dentry *dentry, umode_t mode)h](j3)}(hinth]hint}(hj hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj hhhj hMubjV)}(hsecurity_path_mkdirh]j\)}(hsecurity_path_mkdirh]hsecurity_path_mkdir}(hj hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj hhhj hMubjw)}(h=(const struct path *dir, struct dentry *dentry, umode_t mode)h](j})}(hconst struct path *dirh](j8)}(hj h]hconst}(hj hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj ubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubj8)}(hj;h]hstruct}(hj hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj ubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubh)}(hhh]j\)}(hpathh]hpath}(hj hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj modnameN classnameNjsjv)}jy]j|)}joj sbc.security_path_mkdirasbuh1hhj ubjE)}(h h]h }(hj!hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubj)}(hjh]h*}(hj)!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj\)}(hdirh]hdir}(hj6!hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj ubj})}(hstruct dentry *dentryh](j8)}(hj;h]hstruct}(hjO!hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjK!ubjE)}(h h]h }(hj\!hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjK!ubh)}(hhh]j\)}(hdentryh]hdentry}(hjm!hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjj!ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjo!modnameN classnameNjsjv)}jy]j!c.security_path_mkdirasbuh1hhjK!ubjE)}(h h]h }(hj!hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjK!ubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjK!ubj\)}(hdentryh]hdentry}(hj!hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjK!ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj ubj})}(h umode_t modeh](h)}(hhh]j\)}(humode_th]humode_t}(hj!hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj!ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj!modnameN classnameNjsjv)}jy]j!c.security_path_mkdirasbuh1hhj!ubjE)}(h h]h }(hj!hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj!ubj\)}(hmodeh]hmode}(hj!hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj!ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj hhhj hMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj} hhhj hMubah}(h]jx ah ](jjeh"]h$]h&]jj)jhuh1j&hj hMhjz 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&]uh1jhjz hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]j jjj0"jj0"jjjuh1j!hhhhhNhNubj)}(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]j)}(hj:"h]h Parameters}(hj<"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8"ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj4"ubj4)}(hhh](j9)}(h,``const struct path *dir`` parent directory h](j?)}(h``const struct path *dir``h]h)}(hjY"h]hconst struct path *dir}(hj["hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjW"ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjS"ubjY)}(hhh]h)}(hparent directoryh]hparent directory}(hjr"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjn"hMhjo"ubah}(h]h ]h"]h$]h&]uh1jXhjS"ubeh}(h]h ]h"]h$]h&]uh1j8hjn"hMhjP"ubj9)}(h(``struct dentry *dentry`` new directory h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj"ubjY)}(hhh]h)}(h new directoryh]h new directory}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jXhj"ubeh}(h]h ]h"]h$]h&]uh1j8hj"hMhjP"ubj9)}(h$``umode_t mode`` new directory mode h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj"ubjY)}(hhh]h)}(hnew directory modeh]hnew directory mode}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hMhj"ubah}(h]h ]h"]h$]h&]uh1jXhj"ubeh}(h]h ]h"]h$]h&]uh1j8hj"hMhjP"ubeh}(h]h ]h"]h$]h&]uh1j3hj4"ubh)}(h**Description**h]j)}(hj#h]h Description}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj4"ubh)}(hFCheck permissions to create a new directory in the existing directory.h]hFCheck permissions to create a new directory in the existing directory.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj4"ubh)}(h **Return**h]j)}(hj-#h]hReturn}(hj/#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+#ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj4"ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjC#hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj4"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!security_path_unlink (C function)c.security_path_unlinkhNtauh1jhhhhhNhNubj")}(hhh](j')}(hHint security_path_unlink (const struct path *dir, struct dentry *dentry)h]j-)}(hGint security_path_unlink(const struct path *dir, struct dentry *dentry)h](j3)}(hinth]hint}(hjr#hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjn#hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hj#hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjn#hhhj#hMubjV)}(hsecurity_path_unlinkh]j\)}(hsecurity_path_unlinkh]hsecurity_path_unlink}(hj#hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj#ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjn#hhhj#hMubjw)}(h/(const struct path *dir, struct dentry *dentry)h](j})}(hconst struct path *dirh](j8)}(hj h]hconst}(hj#hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj#ubjE)}(h h]h }(hj#hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj#ubj8)}(hj;h]hstruct}(hj#hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj#ubjE)}(h h]h }(hj#hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj#ubh)}(hhh]j\)}(hpathh]hpath}(hj#hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj#modnameN classnameNjsjv)}jy]j|)}joj#sbc.security_path_unlinkasbuh1hhj#ubjE)}(h h]h }(hj$hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj#ubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj\)}(hdirh]hdir}(hj#$hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj#ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj#ubj})}(hstruct dentry *dentryh](j8)}(hj;h]hstruct}(hj<$hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj8$ubjE)}(h h]h }(hjI$hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj8$ubh)}(hhh]j\)}(hdentryh]hdentry}(hjZ$hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjW$ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj\$modnameN classnameNjsjv)}jy]j$c.security_path_unlinkasbuh1hhj8$ubjE)}(h h]h }(hjx$hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj8$ubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8$ubj\)}(hdentryh]hdentry}(hj$hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj8$ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj#ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjn#hhhj#hMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjj#hhhj#hMubah}(h]je#ah ](jjeh"]h$]h&]jj)jhuh1j&hj#hMhjg#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&]uh1jhjg#hhhj#hMubeh}(h]h ](jfunctioneh"]h$]h&]j jjj$jj$jjjuh1j!hhhhhNhNubj)}(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]j)}(hj$h]h Parameters}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj$ubj4)}(hhh](j9)}(h,``const struct path *dir`` parent directory h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj$ubjY)}(hhh]h)}(hparent directoryh]hparent directory}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%hMhj%ubah}(h]h ]h"]h$]h&]uh1jXhj$ubeh}(h]h ]h"]h$]h&]uh1j8hj%hMhj$ubj9)}(h``struct dentry *dentry`` file h](j?)}(h``struct dentry *dentry``h]h)}(hj7%h]hstruct dentry *dentry}(hj9%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5%ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj1%ubjY)}(hhh]h)}(hfileh]hfile}(hjP%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL%hMhjM%ubah}(h]h ]h"]h$]h&]uh1jXhj1%ubeh}(h]h ]h"]h$]h&]uh1j8hjL%hMhj$ubeh}(h]h ]h"]h$]h&]uh1j3hj$ubh)}(h**Description**h]j)}(hjr%h]h Description}(hjt%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp%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]j)}(hj%h]hReturn}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!security_path_rename (C function)c.security_path_renamehNtauh1jhhhhhNhNubj")}(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]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](j3)}(hinth]hint}(hj%hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj%hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hj%hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj%hhhj%hMubjV)}(hsecurity_path_renameh]j\)}(hsecurity_path_renameh]hsecurity_path_rename}(hj%hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj%ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj%hhhj%hMubjw)}(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](j8)}(hj h]hconst}(hj&hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj&ubjE)}(h h]h }(hj(&hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj&ubj8)}(hj;h]hstruct}(hj6&hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj&ubjE)}(h h]h }(hjC&hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj&ubh)}(hhh]j\)}(hpathh]hpath}(hjT&hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjQ&ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjV&modnameN classnameNjsjv)}jy]j|)}joj&sbc.security_path_renameasbuh1hhj&ubjE)}(h h]h }(hjt&hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj&ubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj\)}(hold_dirh]hold_dir}(hj&hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj&ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj&ubj})}(hstruct dentry *old_dentryh](j8)}(hj;h]hstruct}(hj&hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj&ubjE)}(h h]h }(hj&hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj&ubh)}(hhh]j\)}(hdentryh]hdentry}(hj&hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj&modnameN classnameNjsjv)}jy]jp&c.security_path_renameasbuh1hhj&ubjE)}(h h]h }(hj&hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj&ubj)}(hjh]h*}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&ubj\)}(h old_dentryh]h old_dentry}(hj&hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj&ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj&ubj})}(hconst struct path *new_dirh](j8)}(hj h]hconst}(hj'hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj'ubjE)}(h h]h }(hj%'hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj'ubj8)}(hj;h]hstruct}(hj3'hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj'ubjE)}(h h]h }(hj@'hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj'ubh)}(hhh]j\)}(hpathh]hpath}(hjQ'hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjN'ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjS'modnameN classnameNjsjv)}jy]jp&c.security_path_renameasbuh1hhj'ubjE)}(h h]h }(hjo'hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj'ubj)}(hjh]h*}(hj}'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj\)}(hnew_dirh]hnew_dir}(hj'hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj'ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj&ubj})}(hstruct dentry *new_dentryh](j8)}(hj;h]hstruct}(hj'hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj'ubjE)}(h h]h }(hj'hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj'ubh)}(hhh]j\)}(hdentryh]hdentry}(hj'hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj'modnameN classnameNjsjv)}jy]jp&c.security_path_renameasbuh1hhj'ubjE)}(h h]h }(hj'hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj'ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'ubj\)}(h new_dentryh]h new_dentry}(hj'hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj'ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj&ubj})}(hunsigned int flagsh](j3)}(hunsignedh]hunsigned}(hj(hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj(ubjE)}(h h]h }(hj!(hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj(ubj3)}(hinth]hint}(hj/(hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj(ubjE)}(h h]h }(hj=(hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj(ubj\)}(hflagsh]hflags}(hjK(hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj(ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj&ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj%hhhj%hMubeh}(h]h ]h"]h$]h&]jtjujuh1j,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}(hju(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjr(hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj%hMubeh}(h]h ](jfunctioneh"]h$]h&]j jjj(jj(jjjuh1j!hhhhhNhNubj)}(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]j)}(hj(h]h Parameters}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj(ubj4)}(hhh](j9)}(h@``const struct path *old_dir`` parent directory of the old file h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj(ubjY)}(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&]uh1jXhj(ubeh}(h]h ]h"]h$]h&]uh1j8hj(hMhj(ubj9)}(h+``struct dentry *old_dentry`` the old file h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj(ubjY)}(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&]uh1jXhj(ubeh}(h]h ]h"]h$]h&]uh1j8hj)hMhj(ubj9)}(h@``const struct path *new_dir`` parent directory of the new file h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj")ubjY)}(hhh]h)}(h parent directory of the new fileh]h parent directory of the new file}(hjA)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=)hMhj>)ubah}(h]h ]h"]h$]h&]uh1jXhj")ubeh}(h]h ]h"]h$]h&]uh1j8hj=)hMhj(ubj9)}(h+``struct dentry *new_dentry`` the new file h](j?)}(h``struct dentry *new_dentry``h]h)}(hja)h]hstruct dentry *new_dentry}(hjc)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_)ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj[)ubjY)}(hhh]h)}(h the new fileh]h the new file}(hjz)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjv)hMhjw)ubah}(h]h ]h"]h$]h&]uh1jXhj[)ubeh}(h]h ]h"]h$]h&]uh1j8hjv)hMhj(ubj9)}(h``unsigned int flags`` flags h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj)ubjY)}(hhh]h)}(hflagsh]hflags}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj)ubah}(h]h ]h"]h$]h&]uh1jXhj)ubeh}(h]h ]h"]h$]h&]uh1j8hj)hMhj(ubeh}(h]h ]h"]h$]h&]uh1j3hj(ubh)}(h**Description**h]j)}(hj)h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)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]j)}(hj)h]hReturn}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"security_inode_create (C function)c.security_inode_createhNtauh1jhhhhhNhNubj")}(hhh](j')}(hRint security_inode_create (struct inode *dir, struct dentry *dentry, umode_t mode)h]j-)}(hQint security_inode_create(struct inode *dir, struct dentry *dentry, umode_t mode)h](j3)}(hinth]hint}(hjA*hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj=*hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMYubjE)}(h h]h }(hjP*hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj=*hhhjO*hMYubjV)}(hsecurity_inode_createh]j\)}(hsecurity_inode_createh]hsecurity_inode_create}(hjb*hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj^*ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj=*hhhjO*hMYubjw)}(h8(struct inode *dir, struct dentry *dentry, umode_t mode)h](j})}(hstruct inode *dirh](j8)}(hj;h]hstruct}(hj~*hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjz*ubjE)}(h h]h }(hj*hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjz*ubh)}(hhh]j\)}(hinodeh]hinode}(hj*hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj*ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj*modnameN classnameNjsjv)}jy]j|)}jojd*sbc.security_inode_createasbuh1hhjz*ubjE)}(h h]h }(hj*hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjz*ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjz*ubj\)}(hdirh]hdir}(hj*hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjz*ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjv*ubj})}(hstruct dentry *dentryh](j8)}(hj;h]hstruct}(hj*hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj*ubjE)}(h h]h }(hj*hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj*ubh)}(hhh]j\)}(hdentryh]hdentry}(hj+hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj +ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj+modnameN classnameNjsjv)}jy]j*c.security_inode_createasbuh1hhj*ubjE)}(h h]h }(hj,+hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj*ubj)}(hjh]h*}(hj:+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj\)}(hdentryh]hdentry}(hjG+hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj*ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjv*ubj})}(h umode_t modeh](h)}(hhh]j\)}(humode_th]humode_t}(hjc+hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj`+ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetje+modnameN classnameNjsjv)}jy]j*c.security_inode_createasbuh1hhj\+ubjE)}(h h]h }(hj+hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj\+ubj\)}(hmodeh]hmode}(hj+hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj\+ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjv*ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj=*hhhjO*hMYubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj9*hhhjO*hMYubah}(h]j4*ah ](jjeh"]h$]h&]jj)jhuh1j&hjO*hMYhj6*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.chMYhj+hhubah}(h]h ]h"]h$]h&]uh1jhj6*hhhjO*hMYubeh}(h]h ](jfunctioneh"]h$]h&]j jjj+jj+jjjuh1j!hhhhhNhNubj)}(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]j)}(hj+h]h Parameters}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM]hj+ubj4)}(hhh](j9)}(h+``struct inode *dir`` the parent directory h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMZhj+ubjY)}(hhh]h)}(hthe parent directoryh]hthe parent directory}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMZhj,ubah}(h]h ]h"]h$]h&]uh1jXhj+ubeh}(h]h ]h"]h$]h&]uh1j8hj,hMZhj+ubj9)}(h1``struct dentry *dentry`` the file being created h](j?)}(h``struct dentry *dentry``h]h)}(hj3,h]hstruct dentry *dentry}(hj5,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1,ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM[hj-,ubjY)}(hhh]h)}(hthe file being createdh]hthe file being created}(hjL,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH,hM[hjI,ubah}(h]h ]h"]h$]h&]uh1jXhj-,ubeh}(h]h ]h"]h$]h&]uh1j8hjH,hM[hj+ubj9)}(h%``umode_t mode`` requested file mode h](j?)}(h``umode_t mode``h]h)}(hjl,h]h umode_t mode}(hjn,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjj,ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM\hjf,ubjY)}(hhh]h)}(hrequested file modeh]hrequested file mode}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hM\hj,ubah}(h]h ]h"]h$]h&]uh1jXhjf,ubeh}(h]h ]h"]h$]h&]uh1j8hj,hM\hj+ubeh}(h]h ]h"]h$]h&]uh1j3hj+ubh)}(h**Description**h]j)}(hj,h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM^hj+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.chM]hj+ubh)}(h **Return**h]j)}(hj,h]hReturn}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!security_inode_mkdir (C function)c.security_inode_mkdirhNtauh1jhhhhhNhNubj")}(hhh](j')}(hQint security_inode_mkdir (struct inode *dir, struct dentry *dentry, umode_t mode)h]j-)}(hPint security_inode_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)h](j3)}(hinth]hint}(hj-hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj-hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hj"-hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj-hhhj!-hMubjV)}(hsecurity_inode_mkdirh]j\)}(hsecurity_inode_mkdirh]hsecurity_inode_mkdir,}(hj4-hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj0-ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj-hhhj!-hMubjw)}(h8(struct inode *dir, struct dentry *dentry, umode_t mode)h](j})}(hstruct inode *dirh](j8)}(hj;h]hstruct}(hjP-hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjL-ubjE)}(h h]h }(hj]-hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjL-ubh)}(hhh]j\)}(hinodeh]hinode}(hjn-hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjk-ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjp-modnameN classnameNjsjv)}jy]j|)}joj6-sbc.security_inode_mkdirasbuh1hhjL-ubjE)}(h h]h }(hj-hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjL-ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL-ubj\)}(hdirh]hdir}(hj-hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjL-ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjH-ubj})}(hstruct dentry *dentryh](j8)}(hj;h]hstruct}(hj-hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj-ubjE)}(h h]h }(hj-hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj-ubh)}(hhh]j\)}(hdentryh]hdentry}(hj-hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj-ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj-modnameN classnameNjsjv)}jy]j-c.security_inode_mkdirasbuh1hhj-ubjE)}(h h]h }(hj-hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj-ubj)}(hjh]h*}(hj .hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubj\)}(hdentryh]hdentry}(hj.hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj-ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjH-ubj})}(h umode_t modeh](h)}(hhh]j\)}(humode_th]humode_t}(hj5.hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj2.ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj7.modnameN classnameNjsjv)}jy]j-c.security_inode_mkdirasbuh1hhj..ubjE)}(h h]h }(hjS.hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj..ubj\)}(hmodeh]hmode}(hja.hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj..ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjH-ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj-hhhj!-hMubeh}(h]h ]h"]h$]h&]jtjujuh1j,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 jjj.jj.jjjuh1j!hhhhhNhNubj)}(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]j)}(hj.h]h Parameters}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj.ubj4)}(hhh](j9)}(h'``struct inode *dir`` parent directory h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj.ubjY)}(hhh]h)}(hparent directoryh]hparent directory}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj.ubah}(h]h ]h"]h$]h&]uh1jXhj.ubeh}(h]h ]h"]h$]h&]uh1j8hj.hMhj.ubj9)}(h(``struct dentry *dentry`` new directory h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj.ubjY)}(hhh]h)}(h new directoryh]h new directory}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jXhj.ubeh}(h]h ]h"]h$]h&]uh1j8hj/hMhj.ubj9)}(h$``umode_t mode`` new directory mode h](j?)}(h``umode_t mode``h]h)}(hj>/h]h umode_t mode}(hj@/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj8/ubjY)}(hhh]h)}(hnew directory modeh]hnew directory mode}(hjW/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjS/hMhjT/ubah}(h]h ]h"]h$]h&]uh1jXhj8/ubeh}(h]h ]h"]h$]h&]uh1j8hjS/hMhj.ubeh}(h]h ]h"]h$]h&]uh1j3hj.ubh)}(h**Description**h]j)}(hjy/h]h Description}(hj{/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw/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/hhhNhNubj)}(h**dir**h]hdir}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/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]j)}(hj/h]hReturn}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#security_inode_setattr (C function)c.security_inode_setattrhNtauh1jhhhhhNhNubj")}(hhh](j')}(h_int security_inode_setattr (struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr)h]j-)}(h^int security_inode_setattr(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr)h](j3)}(hinth]hint}(hj/hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj/hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM? ubjE)}(h h]h }(hj0hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj/hhhj0hM? ubjV)}(hsecurity_inode_setattrh]j\)}(hsecurity_inode_setattrh]hsecurity_inode_setattr}(hj0hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj0ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj/hhhj0hM? ubjw)}(hD(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr)h](j})}(hstruct mnt_idmap *idmaph](j8)}(hj;h]hstruct}(hj40hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj00ubjE)}(h h]h }(hjA0hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj00ubh)}(hhh]j\)}(h mnt_idmaph]h mnt_idmap}(hjR0hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjO0ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjT0modnameN classnameNjsjv)}jy]j|)}joj0sbc.security_inode_setattrasbuh1hhj00ubjE)}(h h]h }(hjr0hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj00ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj00ubj\)}(hidmaph]hidmap}(hj0hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj00ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj,0ubj})}(hstruct dentry *dentryh](j8)}(hj;h]hstruct}(hj0hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj0ubjE)}(h h]h }(hj0hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj0ubh)}(hhh]j\)}(hdentryh]hdentry}(hj0hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj0ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj0modnameN classnameNjsjv)}jy]jn0c.security_inode_setattrasbuh1hhj0ubjE)}(h h]h }(hj0hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj\)}(hdentryh]hdentry}(hj0hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj0ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj,0ubj})}(hstruct iattr *attrh](j8)}(hj;h]hstruct}(hj1hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj1ubjE)}(h h]h }(hj#1hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj1ubh)}(hhh]j\)}(hiattrh]hiattr}(hj41hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj11ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj61modnameN classnameNjsjv)}jy]jn0c.security_inode_setattrasbuh1hhj1ubjE)}(h h]h }(hjR1hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj1ubj)}(hjh]h*}(hj`1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubj\)}(hattrh]hattr}(hjm1hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj1ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj,0ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj/hhhj0hM? ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj/hhhj0hM? ubah}(h]j/ah ](jjeh"]h$]h&]jj)jhuh1j&hj0hM? hj/hhubj)}(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.chM? hj1hhubah}(h]h ]h"]h$]h&]uh1jhj/hhhj0hM? ubeh}(h]h ](jfunctioneh"]h$]h&]j jjj1jj1jjjuh1j!hhhhhNhNubj)}(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]j)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMC hj1ubj4)}(hhh](j9)}(h/``struct mnt_idmap *idmap`` idmap of the mount h](j?)}(h``struct mnt_idmap *idmap``h]h)}(hj1h]hstruct mnt_idmap *idmap}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM@ hj1ubjY)}(hhh]h)}(hidmap of the mounth]hidmap of the mount}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hM@ hj1ubah}(h]h ]h"]h$]h&]uh1jXhj1ubeh}(h]h ]h"]h$]h&]uh1j8hj1hM@ hj1ubj9)}(h``struct dentry *dentry`` file h](j?)}(h``struct dentry *dentry``h]h)}(hj2h]hstruct dentry *dentry}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMA hj 2ubjY)}(hhh]h)}(hfileh]hfile}(hj*2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&2hMA hj'2ubah}(h]h ]h"]h$]h&]uh1jXhj 2ubeh}(h]h ]h"]h$]h&]uh1j8hj&2hMA hj1ubj9)}(h&``struct iattr *attr`` new attributes h](j?)}(h``struct iattr *attr``h]h)}(hjJ2h]hstruct iattr *attr}(hjL2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjH2ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMB hjD2ubjY)}(hhh]h)}(hnew attributesh]hnew attributes}(hjc2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_2hMB hj`2ubah}(h]h ]h"]h$]h&]uh1jXhjD2ubeh}(h]h ]h"]h$]h&]uh1j8hj_2hMB hj1ubeh}(h]h ]h"]h$]h&]uh1j3hj1ubh)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMD 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.chMC hj1ubh)}(h **Return**h]j)}(hj2h]hReturn}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMH 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.chMI hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(security_inode_listsecurity (C function)c.security_inode_listsecurityhNtauh1jhhhhhNhNubj")}(hhh](j')}(hWint security_inode_listsecurity (struct inode *inode, char *buffer, size_t buffer_size)h]j-)}(hVint security_inode_listsecurity(struct inode *inode, char *buffer, size_t buffer_size)h](j3)}(hinth]hint}(hj2hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj2hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjE)}(h h]h }(hj3hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj2hhhj2hM ubjV)}(hsecurity_inode_listsecurityh]j\)}(hsecurity_inode_listsecurityh]hsecurity_inode_listsecurity}(hj3hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj3ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj2hhhj2hM ubjw)}(h7(struct inode *inode, char *buffer, size_t buffer_size)h](j})}(hstruct inode *inodeh](j8)}(hj;h]hstruct}(hj.3hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj*3ubjE)}(h h]h }(hj;3hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj*3ubh)}(hhh]j\)}(hinodeh]hinode}(hjL3hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjI3ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjN3modnameN classnameNjsjv)}jy]j|)}joj3sbc.security_inode_listsecurityasbuh1hhj*3ubjE)}(h h]h }(hjl3hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj*3ubj)}(hjh]h*}(hjz3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*3ubj\)}(hinodeh]hinode}(hj3hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj*3ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj&3ubj})}(h char *bufferh](j3)}(hcharh]hchar}(hj3hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj3ubjE)}(h h]h }(hj3hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3ubj\)}(hbufferh]hbuffer}(hj3hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj3ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj&3ubj})}(hsize_t buffer_sizeh](h)}(hhh]j\)}(hsize_th]hsize_t}(hj3hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj3modnameN classnameNjsjv)}jy]jh3c.security_inode_listsecurityasbuh1hhj3ubjE)}(h h]h }(hj4hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj3ubj\)}(h buffer_sizeh]h buffer_size}(hj4hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj3ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj&3ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj2hhhj2hM ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj2hhhj2hM ubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1j&hj2hM hj2hhubj)}(hhh]h)}(h#List the xattr security label namesh]h#List the xattr security label names}(hj;4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj84hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj2hM ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjS4jjS4jjjuh1j!hhhhhNhNubj)}(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]j)}(hj]4h]h Parameters}(hj_4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[4ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjW4ubj4)}(hhh](j9)}(h``struct inode *inode`` inode h](j?)}(h``struct inode *inode``h]h)}(hj|4h]hstruct inode *inode}(hj~4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjz4ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjv4ubjY)}(hhh]h)}(hinodeh]hinode}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM hj4ubah}(h]h ]h"]h$]h&]uh1jXhjv4ubeh}(h]h ]h"]h$]h&]uh1j8hj4hM hjs4ubj9)}(h``char *buffer`` buffer h](j?)}(h``char *buffer``h]h)}(hj4h]h char *buffer}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj4ubjY)}(hhh]h)}(hbufferh]hbuffer}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM hj4ubah}(h]h ]h"]h$]h&]uh1jXhj4ubeh}(h]h ]h"]h$]h&]uh1j8hj4hM hjs4ubj9)}(h&``size_t buffer_size`` size of buffer h](j?)}(h``size_t buffer_size``h]h)}(hj4h]hsize_t buffer_size}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj4ubjY)}(hhh]h)}(hsize of bufferh]hsize of buffer}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM hj5ubah}(h]h ]h"]h$]h&]uh1jXhj4ubeh}(h]h ]h"]h$]h&]uh1j8hj5hM hjs4ubeh}(h]h ]h"]h$]h&]uh1j3hjW4ubh)}(h**Description**h]j)}(hj)5h]h Description}(hj+5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'5ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjW4ubh)}(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 }(hj?5hhhNhNubj)}(h **inode**h]hinode}(hjG5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?5ubh into }(hj?5hhhNhNubj)}(h **buffer**h]hbuffer}(hjY5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?5ubh. The maximum size of }(hj?5hhhNhNubj)}(h **buffer**h]hbuffer}(hjk5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?5ubh is specified by }(hj?5hhhNhNubj)}(h**buffer_size**h]h buffer_size}(hj}5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?5ubh. }(hj?5hhhNhNubj)}(h **buffer**h]hbuffer}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?5ubh8 may be NULL to request the size of the buffer required.}(hj?5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjW4ubh)}(h **Return**h]j)}(hj5h]hReturn}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjW4ubh)}(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.chM hjW4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#security_inode_copy_up (C function)c.security_inode_copy_uphNtauh1jhhhhhNhNubj")}(hhh](j')}(hBint security_inode_copy_up (struct dentry *src, struct cred **new)h]j-)}(hAint security_inode_copy_up(struct dentry *src, struct cred **new)h](j3)}(hinth]hint}(hj5hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj5hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjE)}(h h]h }(hj5hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj5hhhj5hM ubjV)}(hsecurity_inode_copy_uph]j\)}(hsecurity_inode_copy_uph]hsecurity_inode_copy_up}(hj6hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj 6ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj5hhhj5hM ubjw)}(h'(struct dentry *src, struct cred **new)h](j})}(hstruct dentry *srch](j8)}(hj;h]hstruct}(hj,6hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj(6ubjE)}(h h]h }(hj96hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj(6ubh)}(hhh]j\)}(hdentryh]hdentry}(hjJ6hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjG6ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjL6modnameN classnameNjsjv)}jy]j|)}joj6sbc.security_inode_copy_upasbuh1hhj(6ubjE)}(h h]h }(hjj6hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj(6ubj)}(hjh]h*}(hjx6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(6ubj\)}(hsrch]hsrc}(hj6hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj(6ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj$6ubj})}(hstruct cred **newh](j8)}(hj;h]hstruct}(hj6hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj6ubjE)}(h h]h }(hj6hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj6ubh)}(hhh]j\)}(hcredh]hcred}(hj6hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj6modnameN classnameNjsjv)}jy]jf6c.security_inode_copy_upasbuh1hhj6ubjE)}(h h]h }(hj6hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj\)}(hnewh]hnew}(hj7hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj6ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj$6ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj5hhhj5hM ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj5hhhj5hM ubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1j&hj5hM hj5hhubj)}(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.chM hj)7hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj5hM ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjD7jjD7jjjuh1j!hhhhhNhNubj)}(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]j)}(hjN7h]h Parameters}(hjP7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL7ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjH7ubj4)}(hhh](j9)}(h4``struct dentry *src`` union dentry of copy-up file h](j?)}(h``struct dentry *src``h]h)}(hjm7h]hstruct dentry *src}(hjo7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjk7ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjg7ubjY)}(hhh]h)}(hunion dentry of copy-up fileh]hunion dentry of copy-up file}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hM hj7ubah}(h]h ]h"]h$]h&]uh1jXhjg7ubeh}(h]h ]h"]h$]h&]uh1j8hj7hM hjd7ubj9)}(h*``struct cred **new`` newly created creds h](j?)}(h``struct cred **new``h]h)}(hj7h]hstruct cred **new}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj7ubjY)}(hhh]h)}(hnewly created credsh]hnewly created creds}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hM hj7ubah}(h]h ]h"]h$]h&]uh1jXhj7ubeh}(h]h ]h"]h$]h&]uh1j8hj7hM hjd7ubeh}(h]h ]h"]h$]h&]uh1j3hjH7ubh)}(h**Description**h]j)}(hj7h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjH7ubh)}(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.}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjH7ubh)}(h **Return**h]j)}(hj8h]hReturn}(hj 8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjH7ubh)}(h7Returns 0 on success or a negative error code on error.h]h7Returns 0 on success or a negative error code on error.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjH7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)security_inode_copy_up_xattr (C function)c.security_inode_copy_up_xattrhNtauh1jhhhhhNhNubj")}(hhh](j')}(hGint security_inode_copy_up_xattr (struct dentry *src, const char *name)h]j-)}(hFint security_inode_copy_up_xattr(struct dentry *src, const char *name)h](j3)}(hinth]hint}(hjM8hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjI8hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjE)}(h h]h }(hj\8hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjI8hhhj[8hM ubjV)}(hsecurity_inode_copy_up_xattrh]j\)}(hsecurity_inode_copy_up_xattrh]hsecurity_inode_copy_up_xattr}(hjn8hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjj8ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjI8hhhj[8hM ubjw)}(h&(struct dentry *src, const char *name)h](j})}(hstruct dentry *srch](j8)}(hj;h]hstruct}(hj8hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj8ubjE)}(h h]h }(hj8hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj8ubh)}(hhh]j\)}(hdentryh]hdentry}(hj8hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj8ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj8modnameN classnameNjsjv)}jy]j|)}jojp8sbc.security_inode_copy_up_xattrasbuh1hhj8ubjE)}(h h]h }(hj8hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj8ubj)}(hjh]h*}(hj8hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj\)}(hsrch]hsrc}(hj8hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj8ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj8ubj})}(hconst char *nameh](j8)}(hj h]hconst}(hj8hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj8ubjE)}(h h]h }(hj 9hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj8ubj3)}(hcharh]hchar}(hj9hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj8ubjE)}(h h]h }(hj%9hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj8ubj)}(hjh]h*}(hj39hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj\)}(hnameh]hname}(hj@9hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj8ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj8ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjI8hhhj[8hM ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjE8hhhj[8hM ubah}(h]j@8ah ](jjeh"]h$]h&]jj)jhuh1j&hj[8hM hjB8hhubj)}(hhh]h)}(h(Filter xattrs in an overlayfs copy-up oph]h(Filter xattrs in an overlayfs copy-up op}(hjj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjg9hhubah}(h]h ]h"]h$]h&]uh1jhjB8hhhj[8hM ubeh}(h]h ](jfunctioneh"]h$]h&]j jjj9jj9jjjuh1j!hhhhhNhNubj)}(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]j)}(hj9h]h Parameters}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj9ubj4)}(hhh](j9)}(h4``struct dentry *src`` union dentry of copy-up file h](j?)}(h``struct dentry *src``h]h)}(hj9h]hstruct dentry *src}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj9ubjY)}(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&]uh1jXhj9ubeh}(h]h ]h"]h$]h&]uh1j8hj9hM hj9ubj9)}(h ``const char *name`` xattr name h](j?)}(h``const char *name``h]h)}(hj9h]hconst char *name}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj9ubjY)}(hhh]h)}(h xattr nameh]h xattr name}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hM hj9ubah}(h]h ]h"]h$]h&]uh1jXhj9ubeh}(h]h ]h"]h$]h&]uh1j8hj9hM hj9ubeh}(h]h ]h"]h$]h&]uh1j3hj9ubh)}(h**Description**h]j)}(hj:h]h Description}(hj!:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj: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.}(hj5:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj9ubh)}(h **Return**h]j)}(hjF:h]hReturn}(hjH:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjD:ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj9ubh)}(hReturns 0 to accept the xattr, -ECANCELED to discard the xattr, -EOPNOTSUPP if the security module does not know about attribute, or a negative error code to abort the copy up.h]hReturns 0 to accept the xattr, -ECANCELED to discard the xattr, -EOPNOTSUPP if the security module does not know about attribute, or a negative error code to abort the copy up.}(hj\:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(security_inode_setintegrity (C function)c.security_inode_setintegrityhNtauh1jhhhhhNhNubj")}(hhh](j')}(hyint security_inode_setintegrity (const struct inode *inode, enum lsm_integrity_type type, const void *value, size_t size)h]j-)}(hxint security_inode_setintegrity(const struct inode *inode, enum lsm_integrity_type type, const void *value, size_t size)h](j3)}(hinth]hint}(hj:hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj:hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM) ubjE)}(h h]h }(hj:hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj:hhhj:hM) ubjV)}(hsecurity_inode_setintegrityh]j\)}(hsecurity_inode_setintegrityh]hsecurity_inode_setintegrity}(hj:hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj:ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj:hhhj:hM) ubjw)}(hY(const struct inode *inode, enum lsm_integrity_type type, const void *value, size_t size)h](j})}(hconst struct inode *inodeh](j8)}(hj h]hconst}(hj:hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj:ubjE)}(h h]h }(hj:hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj:ubj8)}(hj;h]hstruct}(hj:hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj:ubjE)}(h h]h }(hj:hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj:ubh)}(hhh]j\)}(hinodeh]hinode}(hj;hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj:ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj;modnameN classnameNjsjv)}jy]j|)}joj:sbc.security_inode_setintegrityasbuh1hhj:ubjE)}(h h]h }(hj!;hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj:ubj)}(hjh]h*}(hj/;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj\)}(hinodeh]hinode}(hj<;hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj:ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj:ubj})}(henum lsm_integrity_type typeh](j8)}(henumh]henum}(hjU;hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjQ;ubjE)}(h h]h }(hjc;hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjQ;ubh)}(hhh]j\)}(hlsm_integrity_typeh]hlsm_integrity_type}(hjt;hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjq;ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjv;modnameN classnameNjsjv)}jy]j;c.security_inode_setintegrityasbuh1hhjQ;ubjE)}(h h]h }(hj;hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjQ;ubj\)}(htypeh]htype}(hj;hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjQ;ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj:ubj})}(hconst void *valueh](j8)}(hj h]hconst}(hj;hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj;ubjE)}(h h]h }(hj;hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj;ubj3)}(hvoidh]hvoid}(hj;hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj;ubjE)}(h h]h }(hj;hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj;ubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubj\)}(hvalueh]hvalue}(hj;hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj;ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj:ubj})}(h size_t sizeh](h)}(hhh]j\)}(hsize_th]hsize_t}(hj<hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj<ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj<modnameN classnameNjsjv)}jy]j;c.security_inode_setintegrityasbuh1hhj<ubjE)}(h h]h }(hj7<hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj<ubj\)}(hsizeh]hsize}(hjE<hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj<ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj:ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj:hhhj:hM) ubeh}(h]h ]h"]h$]h&]jtjujuh1j,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}(hjo<hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM) hjl<hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj:hM) ubeh}(h]h ](jfunctioneh"]h$]h&]j jjj<jj<jjjuh1j!hhhhhNhNubj)}(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]j)}(hj<h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM- hj<ubj4)}(hhh](j9)}(h$``const struct inode *inode`` inode h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM* hj<ubjY)}(hhh]h)}(hinodeh]hinode}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj<hM* hj<ubah}(h]h ]h"]h$]h&]uh1jXhj<ubeh}(h]h ]h"]h$]h&]uh1j8hj<hM* hj<ubj9)}(hU``enum lsm_integrity_type type`` type of integrity, e.g. hash digest, signature, etc h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM+ hj<ubjY)}(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&]uh1jXhj<ubeh}(h]h ]h"]h$]h&]uh1j8hj<hM+ hj<ubj9)}(h*``const void *value`` the integrity value h](j?)}(h``const void *value``h]h)}(hj"=h]hconst void *value}(hj$=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj =ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM, hj=ubjY)}(hhh]h)}(hthe integrity valueh]hthe integrity value}(hj;=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7=hM, hj8=ubah}(h]h ]h"]h$]h&]uh1jXhj=ubeh}(h]h ]h"]h$]h&]uh1j8hj7=hM, hj<ubj9)}(h,``size_t size`` size of the integrity value h](j?)}(h``size_t size``h]h)}(hj[=h]h size_t size}(hj]=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjY=ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM- hjU=ubjY)}(hhh]h)}(hsize of the integrity valueh]hsize of the integrity value}(hjt=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjp=hM- hjq=ubah}(h]h ]h"]h$]h&]uh1jXhjU=ubeh}(h]h ]h"]h$]h&]uh1j8hjp=hM- hj<ubeh}(h]h ]h"]h$]h&]uh1j3hj<ubh)}(h**Description**h]j)}(hj=h]h Description}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=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=hhhNhNubj)}(h **value**h]hvalue}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=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]j)}(hj=h]hReturn}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM1 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.chM2 hj<ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_file_ioctl (C function)c.security_file_ioctlhNtauh1jhhhhhNhNubj")}(hhh](j')}(hPint security_file_ioctl (struct file *file, unsigned int cmd, unsigned long arg)h]j-)}(hOint security_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg)h](j3)}(hinth]hint}(hj>hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj>hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjE)}(h h]h }(hj#>hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj>hhhj">hM ubjV)}(hsecurity_file_ioctlh]j\)}(hsecurity_file_ioctlh]hsecurity_file_ioctl}(hj5>hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj1>ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj>hhhj">hM ubjw)}(h8(struct file *file, unsigned int cmd, unsigned long arg)h](j})}(hstruct file *fileh](j8)}(hj;h]hstruct}(hjQ>hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjM>ubjE)}(h h]h }(hj^>hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjM>ubh)}(hhh]j\)}(hfileh]hfile}(hjo>hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjl>ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjq>modnameN classnameNjsjv)}jy]j|)}joj7>sbc.security_file_ioctlasbuh1hhjM>ubjE)}(h h]h }(hj>hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjM>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM>ubj\)}(hfileh]hfile}(hj>hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjM>ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjI>ubj})}(hunsigned int cmdh](j3)}(hunsignedh]hunsigned}(hj>hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj>ubjE)}(h h]h }(hj>hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj>ubj3)}(hinth]hint}(hj>hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj>ubjE)}(h h]h }(hj>hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj>ubj\)}(hcmdh]hcmd}(hj>hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj>ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjI>ubj})}(hunsigned long argh](j3)}(hunsignedh]hunsigned}(hj?hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj?ubjE)}(h h]h }(hj"?hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj?ubj3)}(hlongh]hlong}(hj0?hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj?ubjE)}(h h]h }(hj>?hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj?ubj\)}(hargh]harg}(hjL?hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj?ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjI>ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj>hhhj">hM ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj >hhhj">hM ubah}(h]j>ah ](jjeh"]h$]h&]jj)jhuh1j&hj">hM hj >hhubj)}(hhh]h)}(hCheck if an ioctl is allowedh]hCheck if an ioctl is allowed}(hjv?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjs?hhubah}(h]h ]h"]h$]h&]uh1jhj >hhhj">hM ubeh}(h]h ](jfunctioneh"]h$]h&]j jjj?jj?jjjuh1j!hhhhhNhNubj)}(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]j)}(hj?h]h Parameters}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj?ubj4)}(hhh](j9)}(h&``struct file *file`` associated file h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj?ubjY)}(hhh]h)}(hassociated fileh]hassociated file}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hM hj?ubah}(h]h ]h"]h$]h&]uh1jXhj?ubeh}(h]h ]h"]h$]h&]uh1j8hj?hM hj?ubj9)}(h``unsigned int cmd`` ioctl cmd h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj?ubjY)}(hhh]h)}(h ioctl cmdh]h ioctl cmd}(hj @hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hM hj@ubah}(h]h ]h"]h$]h&]uh1jXhj?ubeh}(h]h ]h"]h$]h&]uh1j8hj@hM hj?ubj9)}(h&``unsigned long arg`` ioctl arguments h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj#@ubjY)}(hhh]h)}(hioctl argumentsh]hioctl arguments}(hjB@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>@hM hj?@ubah}(h]h ]h"]h$]h&]uh1jXhj#@ubeh}(h]h ]h"]h$]h&]uh1j8hj>@hM hj?ubeh}(h]h ]h"]h$]h&]uh1j3hj?ubh)}(h**Description**h]j)}(hjd@h]h Description}(hjf@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjb@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 }(hjz@hhhNhNubj)}(h**file**h]hfile}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz@ubh . Note that }(hjz@hhhNhNubj)}(h**arg**h]harg}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz@ubhd sometimes represents a user space pointer; in other cases, it may be a simple integer value. When }(hjz@hhhNhNubj)}(h**arg**h]harg}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjz@ubhQ represents a user space pointer, it should never be used by the security module.}(hjz@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]j)}(hj@h]hReturn}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'security_file_ioctl_compat (C function)c.security_file_ioctl_compathNtauh1jhhhhhNhNubj")}(hhh](j')}(hWint security_file_ioctl_compat (struct file *file, unsigned int cmd, unsigned long arg)h]j-)}(hVint security_file_ioctl_compat(struct file *file, unsigned int cmd, unsigned long arg)h](j3)}(hinth]hint}(hjAhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjAhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjE)}(h h]h }(hjAhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjAhhhjAhM ubjV)}(hsecurity_file_ioctl_compath]j\)}(hsecurity_file_ioctl_compath]hsecurity_file_ioctl_compat}(hj'AhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj#Aubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjAhhhjAhM ubjw)}(h8(struct file *file, unsigned int cmd, unsigned long arg)h](j})}(hstruct file *fileh](j8)}(hj;h]hstruct}(hjCAhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj?AubjE)}(h h]h }(hjPAhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj?Aubh)}(hhh]j\)}(hfileh]hfile}(hjaAhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj^Aubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjcAmodnameN classnameNjsjv)}jy]j|)}joj)Asbc.security_file_ioctl_compatasbuh1hhj?AubjE)}(h h]h }(hjAhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj?Aubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?Aubj\)}(hfileh]hfile}(hjAhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj?Aubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj;Aubj})}(hunsigned int cmdh](j3)}(hunsignedh]hunsigned}(hjAhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjAubjE)}(h h]h }(hjAhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjAubj3)}(hinth]hint}(hjAhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjAubjE)}(h h]h }(hjAhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjAubj\)}(hcmdh]hcmd}(hjAhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjAubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj;Aubj})}(hunsigned long argh](j3)}(hunsignedh]hunsigned}(hjBhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjBubjE)}(h h]h }(hjBhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjBubj3)}(hlongh]hlong}(hj"BhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjBubjE)}(h h]h }(hj0BhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjBubj\)}(hargh]harg}(hj>BhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjBubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj;Aubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjAhhhjAhM ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj@hhhjAhM ubah}(h]j@ah ](jjeh"]h$]h&]jj)jhuh1j&hjAhM hj@hhubj)}(hhh]h)}(h+Check if an ioctl is allowed in compat modeh]h+Check if an ioctl is allowed in compat mode}(hjhBhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjeBhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjAhM ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjBjjBjjjuh1j!hhhhhNhNubj)}(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]j)}(hjBh]h Parameters}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjBubj4)}(hhh](j9)}(h&``struct file *file`` associated file h](j?)}(h``struct file *file``h]h)}(hjBh]hstruct file *file}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjBubjY)}(hhh]h)}(hassociated fileh]hassociated file}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM hjBubah}(h]h ]h"]h$]h&]uh1jXhjBubeh}(h]h ]h"]h$]h&]uh1j8hjBhM hjBubj9)}(h``unsigned int cmd`` ioctl cmd h](j?)}(h``unsigned int cmd``h]h)}(hjBh]hunsigned int cmd}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjBubjY)}(hhh]h)}(h ioctl cmdh]h ioctl cmd}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhM hjBubah}(h]h ]h"]h$]h&]uh1jXhjBubeh}(h]h ]h"]h$]h&]uh1j8hjBhM hjBubj9)}(h&``unsigned long arg`` ioctl arguments h](j?)}(h``unsigned long arg``h]h)}(hjCh]hunsigned long arg}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjCubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjCubjY)}(hhh]h)}(hioctl argumentsh]hioctl arguments}(hj4ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0ChM hj1Cubah}(h]h ]h"]h$]h&]uh1jXhjCubeh}(h]h ]h"]h$]h&]uh1j8hj0ChM hjBubeh}(h]h ]h"]h$]h&]uh1j3hjBubh)}(h**Description**h]j)}(hjVCh]h Description}(hjXChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTCubah}(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.}(hjlChhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjBubh)}(h **Return**h]j)}(hj}Ch]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{Cubah}(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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$security_file_post_open (C function)c.security_file_post_openhNtauh1jhhhhhNhNubj")}(hhh](j')}(h9int security_file_post_open (struct file *file, int mask)h]j-)}(h8int security_file_post_open(struct file *file, int mask)h](j3)}(hinth]hint}(hjChhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjChhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMs ubjE)}(h h]h }(hjChhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjChhhjChMs ubjV)}(hsecurity_file_post_openh]j\)}(hsecurity_file_post_openh]hsecurity_file_post_open}(hjChhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjCubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjChhhjChMs ubjw)}(h(struct file *file, int mask)h](j})}(hstruct file *fileh](j8)}(hj;h]hstruct}(hjChhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjCubjE)}(h h]h }(hj DhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjCubh)}(hhh]j\)}(hfileh]hfile}(hjDhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjDubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjDmodnameN classnameNjsjv)}jy]j|)}jojCsbc.security_file_post_openasbuh1hhjCubjE)}(h h]h }(hj=DhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjCubj)}(hjh]h*}(hjKDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubj\)}(hfileh]hfile}(hjXDhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjCubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjCubj})}(hint maskh](j3)}(hinth]hint}(hjqDhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjmDubjE)}(h h]h }(hjDhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjmDubj\)}(hmaskh]hmask}(hjDhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjmDubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjCubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjChhhjChMs ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjChhhjChMs ubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1j&hjChMs hjChhubj)}(hhh]h)}(h(Evaluate a file after it has been openedh]h(Evaluate a file after it has been opened}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMs hjDhhubah}(h]h ]h"]h$]h&]uh1jhjChhhjChMs ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjDjjDjjjuh1j!hhhhhNhNubj)}(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]j)}(hjDh]h Parameters}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMw hjDubj4)}(hhh](j9)}(h``struct file *file`` the file h](j?)}(h``struct file *file``h]h)}(hjDh]hstruct file *file}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMt hjDubjY)}(hhh]h)}(hthe fileh]hthe file}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj EhMt hjEubah}(h]h ]h"]h$]h&]uh1jXhjDubeh}(h]h ]h"]h$]h&]uh1j8hj EhMt hjDubj9)}(h``int mask`` access mask h](j?)}(h ``int mask``h]h)}(hj1Eh]hint mask}(hj3EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/Eubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMu hj+EubjY)}(hhh]h)}(h access maskh]h access mask}(hjJEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFEhMu hjGEubah}(h]h ]h"]h$]h&]uh1jXhj+Eubeh}(h]h ]h"]h$]h&]uh1j8hjFEhMu hjDubeh}(h]h ]h"]h$]h&]uh1j3hjDubh)}(h**Description**h]j)}(hjlEh]h Description}(hjnEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjEubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMw hjDubh)}(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.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMv hjDubh)}(h **Return**h]j)}(hjEh]hReturn}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMz hjDubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM{ hjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#security_cred_getsecid (C function)c.security_cred_getsecidhNtauh1jhhhhhNhNubj")}(hhh](j')}(h>void security_cred_getsecid (const struct cred *c, u32 *secid)h]j-)}(h=void security_cred_getsecid(const struct cred *c, u32 *secid)h](j3)}(hvoidh]hvoid}(hjEhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjEhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjE)}(h h]h }(hjEhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjEhhhjEhM ubjV)}(hsecurity_cred_getsecidh]j\)}(hsecurity_cred_getsecidh]hsecurity_cred_getsecid}(hjEhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjEubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjEhhhjEhM ubjw)}(h"(const struct cred *c, u32 *secid)h](j})}(hconst struct cred *ch](j8)}(hj h]hconst}(hjFhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjFubjE)}(h h]h }(hj"FhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjFubj8)}(hj;h]hstruct}(hj0FhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjFubjE)}(h h]h }(hj=FhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjFubh)}(hhh]j\)}(hcredh]hcred}(hjNFhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjKFubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjPFmodnameN classnameNjsjv)}jy]j|)}jojEsbc.security_cred_getsecidasbuh1hhjFubjE)}(h h]h }(hjnFhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjFubj)}(hjh]h*}(hj|FhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj\)}(hjh]hc}(hjFhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjFubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj Fubj})}(h u32 *secidh](h)}(hhh]j\)}(hu32h]hu32}(hjFhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjFubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjFmodnameN classnameNjsjv)}jy]jjFc.security_cred_getsecidasbuh1hhjFubjE)}(h h]h }(hjFhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjFubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj\)}(hsecidh]hsecid}(hjFhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjFubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj Fubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjEhhhjEhM ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjEhhhjEhM ubah}(h]jEah ](jjeh"]h$]h&]jj)jhuh1j&hjEhM hjEhhubj)}(hhh]h)}(h'Get the secid from a set of credentialsh]h'Get the secid from a set of credentials}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjGhhubah}(h]h ]h"]h$]h&]uh1jhjEhhhjEhM ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjGjjGjjjuh1j!hhhhhNhNubj)}(h**Parameters** ``const struct cred *c`` credentials ``u32 *secid`` secid value **Description** Retrieve the security identifier of the cred structure **c**. In case of failure, **secid** will be set to zero.h](h)}(h**Parameters**h]j)}(hj)Gh]h Parameters}(hj+GhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'Gubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj#Gubj4)}(hhh](j9)}(h%``const struct cred *c`` credentials h](j?)}(h``const struct cred *c``h]h)}(hjHGh]hconst struct cred *c}(hjJGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFGubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjBGubjY)}(hhh]h)}(h credentialsh]h credentials}(hjaGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]GhM hj^Gubah}(h]h ]h"]h$]h&]uh1jXhjBGubeh}(h]h ]h"]h$]h&]uh1j8hj]GhM hj?Gubj9)}(h``u32 *secid`` secid value h](j?)}(h``u32 *secid``h]h)}(hjGh]h u32 *secid}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj{GubjY)}(hhh]h)}(h secid valueh]h secid value}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM hjGubah}(h]h ]h"]h$]h&]uh1jXhj{Gubeh}(h]h ]h"]h$]h&]uh1j8hjGhM hj?Gubeh}(h]h ]h"]h$]h&]uh1j3hj#Gubh)}(h**Description**h]j)}(hjGh]h Description}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj#Gubh)}(hqRetrieve the security identifier of the cred structure **c**. In case of failure, **secid** will be set to zero.h](h7Retrieve the security identifier of the cred structure }(hjGhhhNhNubj)}(h**c**h]hc}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh. In case of failure, }(hjGhhhNhNubj)}(h **secid**h]hsecid}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjGubh will be set to zero.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj#Gubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%security_cred_getlsmprop (C function)c.security_cred_getlsmprophNtauh1jhhhhhNhNubj")}(hhh](j')}(hKvoid security_cred_getlsmprop (const struct cred *c, struct lsm_prop *prop)h]j-)}(hJvoid security_cred_getlsmprop(const struct cred *c, struct lsm_prop *prop)h](j3)}(hvoidh]hvoid}(hj%HhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj!Hhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjE)}(h h]h }(hj4HhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj!Hhhhj3HhM ubjV)}(hsecurity_cred_getlsmproph]j\)}(hsecurity_cred_getlsmproph]hsecurity_cred_getlsmprop}(hjFHhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjBHubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj!Hhhhj3HhM ubjw)}(h-(const struct cred *c, struct lsm_prop *prop)h](j})}(hconst struct cred *ch](j8)}(hj h]hconst}(hjbHhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj^HubjE)}(h h]h }(hjoHhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj^Hubj8)}(hj;h]hstruct}(hj}HhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj^HubjE)}(h h]h }(hjHhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj^Hubh)}(hhh]j\)}(hcredh]hcred}(hjHhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjHubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjHmodnameN classnameNjsjv)}jy]j|)}jojHHsbc.security_cred_getlsmpropasbuh1hhj^HubjE)}(h h]h }(hjHhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj^Hubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj^Hubj\)}(hjh]hc}(hjHhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj^Hubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjZHubj})}(hstruct lsm_prop *proph](j8)}(hj;h]hstruct}(hjHhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjHubjE)}(h h]h }(hjHhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjHubh)}(hhh]j\)}(hlsm_proph]hlsm_prop}(hj IhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj Iubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjImodnameN classnameNjsjv)}jy]jHc.security_cred_getlsmpropasbuh1hhjHubjE)}(h h]h }(hj*IhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjHubj)}(hjh]h*}(hj8IhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj\)}(hproph]hprop}(hjEIhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjHubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjZHubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj!Hhhhj3HhM ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjHhhhj3HhM ubah}(h]jHah ](jjeh"]h$]h&]jj)jhuh1j&hj3HhM hjHhhubj)}(hhh]h)}(h*Get the LSM data from a set of credentialsh]h*Get the LSM data from a set of credentials}(hjoIhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjlIhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhj3HhM ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjIjjIjjjuh1j!hhhhhNhNubj)}(h**Parameters** ``const struct cred *c`` credentials ``struct lsm_prop *prop`` destination for the LSM data **Description** Retrieve the security data of the cred structure **c**. In case of failure, **prop** will be cleared.h](h)}(h**Parameters**h]j)}(hjIh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjIubj4)}(hhh](j9)}(h%``const struct cred *c`` credentials h](j?)}(h``const struct cred *c``h]h)}(hjIh]hconst struct cred *c}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjIubjY)}(hhh]h)}(h credentialsh]h credentials}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM hjIubah}(h]h ]h"]h$]h&]uh1jXhjIubeh}(h]h ]h"]h$]h&]uh1j8hjIhM hjIubj9)}(h7``struct lsm_prop *prop`` destination for the LSM data h](j?)}(h``struct lsm_prop *prop``h]h)}(hjIh]hstruct lsm_prop *prop}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjIubjY)}(hhh]h)}(hdestination for the LSM datah]hdestination for the LSM data}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM hjIubah}(h]h ]h"]h$]h&]uh1jXhjIubeh}(h]h ]h"]h$]h&]uh1j8hjIhM hjIubeh}(h]h ]h"]h$]h&]uh1j3hjIubh)}(h**Description**h]j)}(hj$Jh]h Description}(hj&JhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"Jubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjIubh)}(hfRetrieve the security data of the cred structure **c**. In case of failure, **prop** will be cleared.h](h1Retrieve the security data of the cred structure }(hj:JhhhNhNubj)}(h**c**h]hc}(hjBJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Jubh. In case of failure, }(hj:JhhhNhNubj)}(h**prop**h]hprop}(hjTJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj:Jubh will be cleared.}(hj:JhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&security_kernel_read_file (C function)c.security_kernel_read_filehNtauh1jhhhhhNhNubj")}(hhh](j')}(h]int security_kernel_read_file (struct file *file, enum kernel_read_file_id id, bool contents)h]j-)}(h\int security_kernel_read_file(struct file *file, enum kernel_read_file_id id, bool contents)h](j3)}(hinth]hint}(hjJhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjJhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMQ ubjE)}(h h]h }(hjJhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjJhhhjJhMQ ubjV)}(hsecurity_kernel_read_fileh]j\)}(hsecurity_kernel_read_fileh]hsecurity_kernel_read_file}(hjJhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjJubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjJhhhjJhMQ ubjw)}(h?(struct file *file, enum kernel_read_file_id id, bool contents)h](j})}(hstruct file *fileh](j8)}(hj;h]hstruct}(hjJhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjJubjE)}(h h]h }(hjJhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjJubh)}(hhh]j\)}(hfileh]hfile}(hjJhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjJubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjJmodnameN classnameNjsjv)}jy]j|)}jojJsbc.security_kernel_read_fileasbuh1hhjJubjE)}(h h]h }(hjKhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjJubj)}(hjh]h*}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj\)}(hfileh]hfile}(hj#KhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjJubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjJubj})}(henum kernel_read_file_id idh](j8)}(hjW;h]henum}(hjh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMR hj LubjY)}(hhh]h)}(hfileh]hfile}(hj?LhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;LhMR hjh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMS hjYLubjY)}(hhh]h)}(hfile identifierh]hfile identifier}(hjxLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjtLhMS hjuLubah}(h]h ]h"]h$]h&]uh1jXhjYLubeh}(h]h ]h"]h$]h&]uh1j8hjtLhMS hjLubj9)}(hK``bool contents`` trust if security_kernel_post_read_file() will be called h](j?)}(h``bool contents``h]h)}(hjLh]h bool contents}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMT hjLubjY)}(hhh]h)}(h8trust if security_kernel_post_read_file() will be calledh]h8trust if security_kernel_post_read_file() will be called}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMT hjLubah}(h]h ]h"]h$]h&]uh1jXhjLubeh}(h]h ]h"]h$]h&]uh1j8hjLhMT hjLubeh}(h]h ]h"]h$]h&]uh1j3hjLubh)}(h**Description**h]j)}(hjLh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMV hjLubh)}(h#Read a file specified by userspace.h]h#Read a file specified by userspace.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMU hjLubh)}(h **Return**h]j)}(hjLh]hReturn}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMW hjLubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMX hjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j+security_kernel_post_read_file (C function) c.security_kernel_post_read_filehNtauh1jhhhhhNhNubj")}(hhh](j')}(hkint security_kernel_post_read_file (struct file *file, char *buf, loff_t size, enum kernel_read_file_id id)h]j-)}(hjint security_kernel_post_read_file(struct file *file, char *buf, loff_t size, enum kernel_read_file_id id)h](j3)}(hinth]hint}(hj?MhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj;Mhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMb ubjE)}(h h]h }(hjNMhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj;MhhhjMMhMb ubjV)}(hsecurity_kernel_post_read_fileh]j\)}(hsecurity_kernel_post_read_fileh]hsecurity_kernel_post_read_file}(hj`MhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj\Mubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj;MhhhjMMhMb ubjw)}(hH(struct file *file, char *buf, loff_t size, enum kernel_read_file_id id)h](j})}(hstruct file *fileh](j8)}(hj;h]hstruct}(hj|MhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjxMubjE)}(h h]h }(hjMhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjxMubh)}(hhh]j\)}(hfileh]hfile}(hjMhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjMubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjMmodnameN classnameNjsjv)}jy]j|)}jojbMsb c.security_kernel_post_read_fileasbuh1hhjxMubjE)}(h h]h }(hjMhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjxMubj)}(hjh]h*}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxMubj\)}(hfileh]hfile}(hjMhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjxMubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjtMubj})}(h char *bufh](j3)}(hcharh]hchar}(hjMhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjMubjE)}(h h]h }(hjMhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjMubj)}(hjh]h*}(hj NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj\)}(hbufh]hbuf}(hjNhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjMubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjtMubj})}(h loff_t sizeh](h)}(hhh]j\)}(hloff_th]hloff_t}(hj3NhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj0Nubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj5NmodnameN classnameNjsjv)}jy]jM c.security_kernel_post_read_fileasbuh1hhj,NubjE)}(h h]h }(hjQNhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj,Nubj\)}(hsizeh]hsize}(hj_NhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj,Nubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjtMubj})}(henum kernel_read_file_id idh](j8)}(hjW;h]henum}(hjxNhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjtNubjE)}(h h]h }(hjNhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjtNubh)}(hhh]j\)}(hkernel_read_file_idh]hkernel_read_file_id}(hjNhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjNubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjNmodnameN classnameNjsjv)}jy]jM c.security_kernel_post_read_fileasbuh1hhjtNubjE)}(h h]h }(hjNhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjtNubj\)}(hidh]hid}(hjNhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjtNubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjtMubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj;MhhhjMMhMb ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj7MhhhjMMhMb ubah}(h]j2Mah ](jjeh"]h$]h&]jj)jhuh1j&hjMMhMb hj4Mhhubj)}(hhh]h)}(h"Read a file specified by userspaceh]h"Read a file specified by userspace}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMb hjNhhubah}(h]h ]h"]h$]h&]uh1jhj4MhhhjMMhMb ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjOjjOjjjuh1j!hhhhhNhNubj)}(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]j)}(hjOh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Oubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMf hjOubj4)}(hhh](j9)}(h``struct file *file`` file h](j?)}(h``struct file *file``h]h)}(hj-Oh]hstruct file *file}(hj/OhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+Oubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMc hj'OubjY)}(hhh]h)}(hfileh]hfile}(hjFOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBOhMc hjCOubah}(h]h ]h"]h$]h&]uh1jXhj'Oubeh}(h]h ]h"]h$]h&]uh1j8hjBOhMc hj$Oubj9)}(h``char *buf`` file contents h](j?)}(h ``char *buf``h]h)}(hjfOh]h char *buf}(hjhOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdOubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMd hj`OubjY)}(hhh]h)}(h file contentsh]h file contents}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{OhMd hj|Oubah}(h]h ]h"]h$]h&]uh1jXhj`Oubeh}(h]h ]h"]h$]h&]uh1j8hj{OhMd hj$Oubj9)}(h&``loff_t size`` size of file contents h](j?)}(h``loff_t size``h]h)}(hjOh]h loff_t size}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMe hjOubjY)}(hhh]h)}(hsize of file contentsh]hsize of file contents}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMe hjOubah}(h]h ]h"]h$]h&]uh1jXhjOubeh}(h]h ]h"]h$]h&]uh1j8hjOhMe hj$Oubj9)}(h0``enum kernel_read_file_id id`` file identifier h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMf hjOubjY)}(hhh]h)}(hfile identifierh]hfile identifier}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhMf hjOubah}(h]h ]h"]h$]h&]uh1jXhjOubeh}(h]h ]h"]h$]h&]uh1j8hjOhMf hj$Oubeh}(h]h ]h"]h$]h&]uh1j3hjOubh)}(h**Description**h]j)}(hjPh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMh hjOubh)}(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.}(hj)PhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMg hjOubh)}(h **Return**h]j)}(hj:Ph]hReturn}(hjh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMw hjQubjY)}(hhh]h)}(hdata identifierh]hdata identifier}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMw hjQubah}(h]h ]h"]h$]h&]uh1jXhjQubeh}(h]h ]h"]h$]h&]uh1j8hjQhMw hjQubj9)}(hJ``bool contents`` true if security_kernel_post_load_data() will be called h](j?)}(h``bool contents``h]h)}(hjQh]h bool contents}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMx hjQubjY)}(hhh]h)}(h7true if security_kernel_post_load_data() will be calledh]h7true if security_kernel_post_load_data() will be called}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMx hjQubah}(h]h ]h"]h$]h&]uh1jXhjQubeh}(h]h ]h"]h$]h&]uh1j8hjQhMx hjQubeh}(h]h ]h"]h$]h&]uh1j3hjQubh)}(h**Description**h]j)}(hjRh]h Description}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMz hjQubh)}(h Load data provided by userspace.h]h Load data provided by userspace.}(hj1RhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMy hjQubh)}(h **Return**h]j)}(hjBRh]hReturn}(hjDRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@Rubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM{ hjQubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjXRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM| hjQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j+security_kernel_post_load_data (C function) c.security_kernel_post_load_datahNtauh1jhhhhhNhNubj")}(hhh](j')}(hkint security_kernel_post_load_data (char *buf, loff_t size, enum kernel_load_data_id id, char *description)h]j-)}(hjint security_kernel_post_load_data(char *buf, loff_t size, enum kernel_load_data_id id, char *description)h](j3)}(hinth]hint}(hjRhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjRhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjE)}(h h]h }(hjRhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjRhhhjRhM ubjV)}(hsecurity_kernel_post_load_datah]j\)}(hsecurity_kernel_post_load_datah]hsecurity_kernel_post_load_data}(hjRhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjRubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjRhhhjRhM ubjw)}(hH(char *buf, loff_t size, enum kernel_load_data_id id, char *description)h](j})}(h char *bufh](j3)}(hcharh]hchar}(hjRhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjRubjE)}(h h]h }(hjRhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj\)}(hbufh]hbuf}(hjRhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjRubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjRubj})}(h loff_t sizeh](h)}(hhh]j\)}(hloff_th]hloff_t}(hj ShhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjSubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj SmodnameN classnameNjsjv)}jy]j|)}jojRsb c.security_kernel_post_load_dataasbuh1hhjSubjE)}(h h]h }(hj)ShhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjSubj\)}(hsizeh]hsize}(hj7ShhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjSubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjRubj})}(henum kernel_load_data_id idh](j8)}(hjW;h]henum}(hjPShhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjLSubjE)}(h h]h }(hj]ShhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjLSubh)}(hhh]j\)}(hkernel_load_data_idh]hkernel_load_data_id}(hjnShhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjkSubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjpSmodnameN classnameNjsjv)}jy]j%S c.security_kernel_post_load_dataasbuh1hhjLSubjE)}(h h]h }(hjShhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjLSubj\)}(hidh]hid}(hjShhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjLSubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjRubj})}(hchar *descriptionh](j3)}(hcharh]hchar}(hjShhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjSubjE)}(h h]h }(hjShhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjSubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubj\)}(h descriptionh]h description}(hjShhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjSubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjRubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjRhhhjRhM ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjRhhhjRhM ubah}(h]jzRah ](jjeh"]h$]h&]jj)jhuh1j&hjRhM hj|Rhhubj)}(hhh]h)}(h*Load userspace data from a non-file sourceh]h*Load userspace data from a non-file source}(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&]uh1jhj|RhhhjRhM ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjTjjTjjjuh1j!hhhhhNhNubj)}(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]j)}(hj(Th]h Parameters}(hj*ThhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&Tubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj"Tubj4)}(hhh](j9)}(h``char *buf`` data h](j?)}(h ``char *buf``h]h)}(hjGTh]h char *buf}(hjIThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjETubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjATubjY)}(hhh]h)}(hdatah]hdata}(hj`ThhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\ThM hj]Tubah}(h]h ]h"]h$]h&]uh1jXhjATubeh}(h]h ]h"]h$]h&]uh1j8hj\ThM hj>Tubj9)}(h``loff_t size`` size of data h](j?)}(h``loff_t size``h]h)}(hjTh]h loff_t size}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~Tubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjzTubjY)}(hhh]h)}(h size of datah]h size of data}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThM hjTubah}(h]h ]h"]h$]h&]uh1jXhjzTubeh}(h]h ]h"]h$]h&]uh1j8hjThM hj>Tubj9)}(h0``enum kernel_load_data_id id`` data identifier h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjTubjY)}(hhh]h)}(hdata identifierh]hdata identifier}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThM hjTubah}(h]h ]h"]h$]h&]uh1jXhjTubeh}(h]h ]h"]h$]h&]uh1j8hjThM hj>Tubj9)}(hI``char *description`` text description of data, specific to the id value h](j?)}(h``char *description``h]h)}(hjTh]hchar *description}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjTubjY)}(hhh]h)}(h2text description of data, specific to the id valueh]h2text description of data, specific to the id value}(hj UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhM hjUubah}(h]h ]h"]h$]h&]uh1jXhjTubeh}(h]h ]h"]h$]h&]uh1j8hjUhM hj>Tubeh}(h]h ]h"]h$]h&]uh1j3hj"Tubh)}(h**Description**h]j)}(hj-Uh]h Description}(hj/UhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Uubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj"Tubh)}(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.}(hjCUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj"Tubh)}(h **Return**h]j)}(hjTUh]hReturn}(hjVUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRUubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj"Tubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj"Tubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j-security_current_getlsmprop_subj (C function)"c.security_current_getlsmprop_subjhNtauh1jhhhhhNhNubj")}(hhh](j')}(h=void security_current_getlsmprop_subj (struct lsm_prop *prop)h]j-)}(hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjVubjY)}(hhh]h)}(hlsm specific informationh]hlsm specific information}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhM hjVubah}(h]h ]h"]h$]h&]uh1jXhjVubeh}(h]h ]h"]h$]h&]uh1j8hjVhM hjVubah}(h]h ]h"]h$]h&]uh1j3hjuVubh)}(h**Description**h]j)}(hjVh]h Description}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjuVubh)}(hZRetrieve the subjective security identifier of the current task and return it in **prop**.h](hQRetrieve the subjective security identifier of the current task and return it in }(hjVhhhNhNubj)}(h**prop**h]hprop}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh.}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjuVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)security_task_getlsmprop_obj (C function)c.security_task_getlsmprop_objhNtauh1jhhhhhNhNubj")}(hhh](j')}(hPvoid security_task_getlsmprop_obj (struct task_struct *p, struct lsm_prop *prop)h]j-)}(hOvoid security_task_getlsmprop_obj(struct task_struct *p, struct lsm_prop *prop)h](j3)}(hvoidh]hvoid}(hj,WhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj(Whhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjE)}(h h]h }(hj;WhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj(Whhhj:WhM ubjV)}(hsecurity_task_getlsmprop_objh]j\)}(hsecurity_task_getlsmprop_objh]hsecurity_task_getlsmprop_obj}(hjMWhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjIWubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj(Whhhj:WhM ubjw)}(h.(struct task_struct *p, struct lsm_prop *prop)h](j})}(hstruct task_struct *ph](j8)}(hj;h]hstruct}(hjiWhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjeWubjE)}(h h]h }(hjvWhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjeWubh)}(hhh]j\)}(h task_structh]h task_struct}(hjWhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjWubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjWmodnameN classnameNjsjv)}jy]j|)}jojOWsbc.security_task_getlsmprop_objasbuh1hhjeWubjE)}(h h]h }(hjWhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjeWubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeWubj\)}(hjh]hp}(hjWhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjeWubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjaWubj})}(hstruct lsm_prop *proph](j8)}(hj;h]hstruct}(hjWhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjWubjE)}(h h]h }(hjWhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjWubh)}(hhh]j\)}(hlsm_proph]hlsm_prop}(hjWhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjWubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjWmodnameN classnameNjsjv)}jy]jWc.security_task_getlsmprop_objasbuh1hhjWubjE)}(h h]h }(hjXhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjWubj)}(hjh]h*}(hj$XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj\)}(hproph]hprop}(hj1XhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjWubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjaWubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj(Whhhj:WhM ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj$Whhhj:WhM ubah}(h]jWah ](jjeh"]h$]h&]jj)jhuh1j&hj:WhM hj!Whhubj)}(hhh]h)}(hGet a task's objective LSM datah]h!Get a task’s objective LSM data}(hj[XhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjXXhhubah}(h]h ]h"]h$]h&]uh1jhj!Whhhj:WhM ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjsXjjsXjjjuh1j!hhhhhNhNubj)}(h**Parameters** ``struct task_struct *p`` target task ``struct lsm_prop *prop`` lsm specific information **Description** Retrieve the objective security identifier of the task_struct in **p** and return it in **prop**.h](h)}(h**Parameters**h]j)}(hj}Xh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{Xubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjwXubj4)}(hhh](j9)}(h&``struct task_struct *p`` target task h](j?)}(h``struct task_struct *p``h]h)}(hjXh]hstruct task_struct *p}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjXubjY)}(hhh]h)}(h target taskh]h target task}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhM hjXubah}(h]h ]h"]h$]h&]uh1jXhjXubeh}(h]h ]h"]h$]h&]uh1j8hjXhM hjXubj9)}(h3``struct lsm_prop *prop`` lsm specific information h](j?)}(h``struct lsm_prop *prop``h]h)}(hjXh]hstruct lsm_prop *prop}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjXubjY)}(hhh]h)}(hlsm specific informationh]hlsm specific information}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjXubah}(h]h ]h"]h$]h&]uh1jXhjXubeh}(h]h ]h"]h$]h&]uh1j8hjXhMhjXubeh}(h]h ]h"]h$]h&]uh1j3hjwXubh)}(h**Description**h]j)}(hjYh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjwXubh)}(haRetrieve the objective security identifier of the task_struct in **p** and return it in **prop**.h](hARetrieve the objective security identifier of the task_struct in }(hj&YhhhNhNubj)}(h**p**h]hp}(hj.YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&Yubh and return it in }(hj&YhhhNhNubj)}(h**prop**h]hprop}(hj@YhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&Yubh.}(hj&YhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjwXubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#security_d_instantiate (C function)c.security_d_instantiatehNtauh1jhhhhhNhNubj")}(hhh](j')}(hHvoid security_d_instantiate (struct dentry *dentry, struct inode *inode)h]j-)}(hGvoid security_d_instantiate(struct dentry *dentry, struct inode *inode)h](j3)}(hvoidh]hvoid}(hjyYhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjuYhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM*ubjE)}(h h]h }(hjYhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjuYhhhjYhM*ubjV)}(hsecurity_d_instantiateh]j\)}(hsecurity_d_instantiateh]hsecurity_d_instantiate}(hjYhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjYubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjuYhhhjYhM*ubjw)}(h,(struct dentry *dentry, struct inode *inode)h](j})}(hstruct dentry *dentryh](j8)}(hj;h]hstruct}(hjYhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjYubjE)}(h h]h }(hjYhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjYubh)}(hhh]j\)}(hdentryh]hdentry}(hjYhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjYubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjYmodnameN classnameNjsjv)}jy]j|)}jojYsbc.security_d_instantiateasbuh1hhjYubjE)}(h h]h }(hjYhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjYubj)}(hjh]h*}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYubj\)}(hdentryh]hdentry}(hjZhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjYubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjYubj})}(hstruct inode *inodeh](j8)}(hj;h]hstruct}(hj(ZhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj$ZubjE)}(h h]h }(hj5ZhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj$Zubh)}(hhh]j\)}(hinodeh]hinode}(hjFZhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjCZubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjHZmodnameN classnameNjsjv)}jy]jYc.security_d_instantiateasbuh1hhj$ZubjE)}(h h]h }(hjdZhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj$Zubj)}(hjh]h*}(hjrZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Zubj\)}(hinodeh]hinode}(hjZhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj$Zubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjYubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjuYhhhjYhM*ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjqYhhhjYhM*ubah}(h]jlYah ](jjeh"]h$]h&]jj)jhuh1j&hjYhM*hjnYhhubj)}(hhh]h)}(h/Populate an inode's LSM state based on a dentryh]h1Populate an inode’s LSM state based on a dentry}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM*hjZhhubah}(h]h ]h"]h$]h&]uh1jhjnYhhhjYhM*ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjZjjZjjjuh1j!hhhhhNhNubj)}(h**Parameters** ``struct dentry *dentry`` dentry ``struct inode *inode`` inode **Description** Fill in **inode** security information for a **dentry** if allowed.h](h)}(h**Parameters**h]j)}(hjZh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM.hjZubj4)}(hhh](j9)}(h!``struct dentry *dentry`` dentry h](j?)}(h``struct dentry *dentry``h]h)}(hjZh]hstruct dentry *dentry}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM+hjZubjY)}(hhh]h)}(hdentryh]hdentry}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhM+hj[ubah}(h]h ]h"]h$]h&]uh1jXhjZubeh}(h]h ]h"]h$]h&]uh1j8hjZhM+hjZubj9)}(h``struct inode *inode`` inode h](j?)}(h``struct inode *inode``h]h)}(hj#[h]hstruct inode *inode}(hj%[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj![ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM,hj[ubjY)}(hhh]h)}(hinodeh]hinode}(hj<[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8[hM,hj9[ubah}(h]h ]h"]h$]h&]uh1jXhj[ubeh}(h]h ]h"]h$]h&]uh1j8hj8[hM,hjZubeh}(h]h ]h"]h$]h&]uh1j3hjZubh)}(h**Description**h]j)}(hj^[h]h Description}(hj`[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\[ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM.hjZubh)}(hCFill in **inode** security information for a **dentry** if allowed.h](hFill in }(hjt[hhhNhNubj)}(h **inode**h]hinode}(hj|[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt[ubh security information for a }(hjt[hhhNhNubj)}(h **dentry**h]hdentry}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt[ubh if allowed.}(hjt[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM-hjZubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_ismaclabel (C function)c.security_ismaclabelhNtauh1jhhhhhNhNubj")}(hhh](j')}(h*int security_ismaclabel (const char *name)h]j-)}(h)int security_ismaclabel(const char *name)h](j3)}(hinth]hint}(hj[hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj[hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hj[hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj[hhhj[hMubjV)}(hsecurity_ismaclabelh]j\)}(hsecurity_ismaclabelh]hsecurity_ismaclabel}(hj[hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj[ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj[hhhj[hMubjw)}(h(const char *name)h]j})}(hconst char *nameh](j8)}(hj h]hconst}(hj\hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj\ubjE)}(h h]h }(hj\hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj\ubj3)}(hcharh]hchar}(hj\hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj\ubjE)}(h h]h }(hj-\hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj\ubj)}(hjh]h*}(hj;\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubj\)}(hnameh]hname}(hjH\hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj\ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj[ubah}(h]h ]h"]h$]h&]jtjuuh1jvhj[hhhj[hMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj[hhhj[hMubah}(h]j[ah ](jjeh"]h$]h&]jj)jhuh1j&hj[hMhj[hhubj)}(hhh]h)}(h+Check if the named attribute is a MAC labelh]h+Check if the named attribute is a MAC label}(hjr\hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjo\hhubah}(h]h ]h"]h$]h&]uh1jhj[hhhj[hMubeh}(h]h ](jfunctioneh"]h$]h&]j jjj\jj\jjjuh1j!hhhhhNhNubj)}(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]j)}(hj\h]h Parameters}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj\ubj4)}(hhh]j9)}(h2``const char *name`` full extended attribute name h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj\ubjY)}(hhh]h)}(hfull extended attribute nameh]hfull extended attribute name}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj\ubah}(h]h ]h"]h$]h&]uh1jXhj\ubeh}(h]h ]h"]h$]h&]uh1j8hj\hMhj\ubah}(h]h ]h"]h$]h&]uh1j3hj\ubh)}(h**Description**h]j)}(hj\h]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj\ubh)}(hMCheck if the extended attribute specified by **name** represents a MAC label.h](h-Check if the extended attribute specified by }(hj]hhhNhNubj)}(h**name**h]hname}(hj ]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubh represents a MAC label.}(hj]hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj\ubh)}(h **Return**h]j)}(hj']h]hReturn}(hj)]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%]ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj\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.chMhj\ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%security_secid_to_secctx (C function)c.security_secid_to_secctxhNtauh1jhhhhhNhNubj")}(hhh](j')}(h@int security_secid_to_secctx (u32 secid, struct lsm_context *cp)h]j-)}(h?int security_secid_to_secctx(u32 secid, struct lsm_context *cp)h](j3)}(hinth]hint}(hjl]hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjh]hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjE)}(h h]h }(hj{]hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjh]hhhjz]hM ubjV)}(hsecurity_secid_to_secctxh]j\)}(hsecurity_secid_to_secctxh]hsecurity_secid_to_secctx}(hj]hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj]ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjh]hhhjz]hM ubjw)}(h#(u32 secid, struct lsm_context *cp)h](j})}(h u32 secidh](h)}(hhh]j\)}(hu32h]hu32}(hj]hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj]modnameN classnameNjsjv)}jy]j|)}joj]sbc.security_secid_to_secctxasbuh1hhj]ubjE)}(h h]h }(hj]hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj]ubj\)}(hsecidh]hsecid}(hj]hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj]ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj]ubj})}(hstruct lsm_context *cph](j8)}(hj;h]hstruct}(hj]hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj]ubjE)}(h h]h }(hj^hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj]ubh)}(hhh]j\)}(h lsm_contexth]h lsm_context}(hj^hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj^ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj^modnameN classnameNjsjv)}jy]j]c.security_secid_to_secctxasbuh1hhj]ubjE)}(h h]h }(hj/^hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj]ubj)}(hjh]h*}(hj=^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubj\)}(hcph]hcp}(hjJ^hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj]ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj]ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjh]hhhjz]hM ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjd]hhhjz]hM ubah}(h]j_]ah ](jjeh"]h$]h&]jj)jhuh1j&hjz]hM hja]hhubj)}(hhh]h)}(hConvert a secid to a secctxh]hConvert a secid to a secctx}(hjt^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjq^hhubah}(h]h ]h"]h$]h&]uh1jhja]hhhjz]hM ubeh}(h]h ](jfunctioneh"]h$]h&]j jjj^jj^jjjuh1j!hhhhhNhNubj)}(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]j)}(hj^h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj^ubj4)}(hhh](j9)}(h``u32 secid`` secid h](j?)}(h ``u32 secid``h]h)}(hj^h]h u32 secid}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj^ubjY)}(hhh]h)}(hsecidh]hsecid}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^hM hj^ubah}(h]h ]h"]h$]h&]uh1jXhj^ubeh}(h]h ]h"]h$]h&]uh1j8hj^hM hj^ubj9)}(h+``struct lsm_context *cp`` the LSM context h](j?)}(h``struct lsm_context *cp``h]h)}(hj^h]hstruct lsm_context *cp}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj^ubjY)}(hhh]h)}(hthe LSM contexth]hthe LSM context}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hM hj_ubah}(h]h ]h"]h$]h&]uh1jXhj^ubeh}(h]h ]h"]h$]h&]uh1j8hj_hM hj^ubeh}(h]h ]h"]h$]h&]uh1j3hj^ubh)}(h**Description**h]j)}(hj)_h]h Description}(hj+_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'_ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj^ubh)}(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 }(hj?_hhhNhNubj)}(h**cp**h]hcp}(hjG_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?_ubh 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.}(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]j)}(hjb_h]hReturn}(hjd_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`_ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj^ubh)}(h3Return length of data on success, error on failure.h]h3Return length of data on success, error on failure.}(hjx_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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'security_lsmprop_to_secctx (C function)c.security_lsmprop_to_secctxhNtauh1jhhhhhNhNubj")}(hhh](j')}(hYint security_lsmprop_to_secctx (struct lsm_prop *prop, struct lsm_context *cp, int lsmid)h]j-)}(hXint security_lsmprop_to_secctx(struct lsm_prop *prop, struct lsm_context *cp, int lsmid)h](j3)}(hinth]hint}(hj_hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj_hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hj_hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj_hhhj_hMubjV)}(hsecurity_lsmprop_to_secctxh]j\)}(hsecurity_lsmprop_to_secctxh]hsecurity_lsmprop_to_secctx}(hj_hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj_ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj_hhhj_hMubjw)}(h:(struct lsm_prop *prop, struct lsm_context *cp, int lsmid)h](j})}(hstruct lsm_prop *proph](j8)}(hj;h]hstruct}(hj_hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj_ubjE)}(h h]h }(hj_hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj_ubh)}(hhh]j\)}(hlsm_proph]hlsm_prop}(hj`hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj_ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj`modnameN classnameNjsjv)}jy]j|)}joj_sbc.security_lsmprop_to_secctxasbuh1hhj_ubjE)}(h h]h }(hj"`hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj_ubj)}(hjh]h*}(hj0`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubj\)}(hproph]hprop}(hj=`hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj_ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj_ubj})}(hstruct lsm_context *cph](j8)}(hj;h]hstruct}(hjV`hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjR`ubjE)}(h h]h }(hjc`hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjR`ubh)}(hhh]j\)}(h lsm_contexth]h lsm_context}(hjt`hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjq`ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjv`modnameN classnameNjsjv)}jy]j`c.security_lsmprop_to_secctxasbuh1hhjR`ubjE)}(h h]h }(hj`hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjR`ubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjR`ubj\)}(hcph]hcp}(hj`hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjR`ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj_ubj})}(h int lsmidh](j3)}(hinth]hint}(hj`hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj`ubjE)}(h h]h }(hj`hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj`ubj\)}(hlsmidh]hlsmid}(hj`hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj`ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj_ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj_hhhj_hMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj_hhhj_hMubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1j&hj_hMhj_hhubj)}(hhh]h)}(hConvert a lsm_prop to a secctxh]hConvert a lsm_prop to a secctx}(hj ahhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj ahhubah}(h]h ]h"]h$]h&]uh1jhj_hhhj_hMubeh}(h]h ](jfunctioneh"]h$]h&]j jjj$ajj$ajjjuh1j!hhhhhNhNubj)}(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]j)}(hj.ah]h Parameters}(hj0ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj,aubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM!hj(aubj4)}(hhh](j9)}(h3``struct lsm_prop *prop`` lsm specific information h](j?)}(h``struct lsm_prop *prop``h]h)}(hjMah]hstruct lsm_prop *prop}(hjOahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKaubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjGaubjY)}(hhh]h)}(hlsm specific informationh]hlsm specific information}(hjfahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbahMhjcaubah}(h]h ]h"]h$]h&]uh1jXhjGaubeh}(h]h ]h"]h$]h&]uh1j8hjbahMhjDaubj9)}(h+``struct lsm_context *cp`` the LSM context h](j?)}(h``struct lsm_context *cp``h]h)}(hjah]hstruct lsm_context *cp}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjaubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjaubjY)}(hhh]h)}(hthe LSM contexth]hthe LSM context}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahMhjaubah}(h]h ]h"]h$]h&]uh1jXhjaubeh}(h]h ]h"]h$]h&]uh1j8hjahMhjDaubj9)}(h.``int lsmid`` which security module to report h](j?)}(h ``int lsmid``h]h)}(hjah]h int lsmid}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjaubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjaubjY)}(hhh]h)}(hwhich security module to reporth]hwhich security module to report}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM hjaubah}(h]h ]h"]h$]h&]uh1jXhjaubeh}(h]h ]h"]h$]h&]uh1j8hjahM hjDaubeh}(h]h ]h"]h$]h&]uh1j3hj(aubh)}(h**Description**h]j)}(hjah]h Description}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM"hj(aubh)}(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 }(hjbhhhNhNubj)}(h**prop**h]hprop}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh entry to security context. If }(hjbhhhNhNubj)}(h**cp**h]hcp}(hj*bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubh 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 }(hjbhhhNhNubj)}(h**cp**h]hcp}(hjh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM>hj>dubjY)}(hhh]h)}(hsecctxh]hsecctx}(hj]dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYdhM>hjZdubah}(h]h ]h"]h$]h&]uh1jXhj>dubeh}(h]h ]h"]h$]h&]uh1j8hjYdhM>hj;dubj9)}(h ``u32 seclen`` length of secctx h](j?)}(h``u32 seclen``h]h)}(hj}dh]h u32 seclen}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{dubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM?hjwdubjY)}(hhh]h)}(hlength of secctxh]hlength of secctx}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM?hjdubah}(h]h ]h"]h$]h&]uh1jXhjwdubeh}(h]h ]h"]h$]h&]uh1j8hjdhM?hj;dubj9)}(h``u32 *secid`` secid h](j?)}(h``u32 *secid``h]h)}(hjdh]h u32 *secid}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM@hjdubjY)}(hhh]h)}(hsecidh]hsecid}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhM@hjdubah}(h]h ]h"]h$]h&]uh1jXhjdubeh}(h]h ]h"]h$]h&]uh1j8hjdhM@hj;dubeh}(h]h ]h"]h$]h&]uh1j3hjdubh)}(h**Description**h]j)}(hjdh]h Description}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMBhjdubh)}(h"Convert security context to secid.h]h"Convert security context to secid.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMAhjdubh)}(h **Return**h]j)}(hjeh]hReturn}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMChjdubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hj.ehhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMDhjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$security_release_secctx (C function)c.security_release_secctxhNtauh1jhhhhhNhNubj")}(hhh](j')}(h5void security_release_secctx (struct lsm_context *cp)h]j-)}(h4void security_release_secctx(struct lsm_context *cp)h](j3)}(hvoidh]hvoid}(hj]ehhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjYehhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMNubjE)}(h h]h }(hjlehhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjYehhhjkehMNubjV)}(hsecurity_release_secctxh]j\)}(hsecurity_release_secctxh]hsecurity_release_secctx}(hj~ehhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjzeubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjYehhhjkehMNubjw)}(h(struct lsm_context *cp)h]j})}(hstruct lsm_context *cph](j8)}(hj;h]hstruct}(hjehhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjeubjE)}(h h]h }(hjehhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjeubh)}(hhh]j\)}(h lsm_contexth]h lsm_context}(hjehhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjeubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjemodnameN classnameNjsjv)}jy]j|)}jojesbc.security_release_secctxasbuh1hhjeubjE)}(h h]h }(hjehhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjeubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubj\)}(hcph]hcp}(hjehhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjeubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjeubah}(h]h ]h"]h$]h&]jtjuuh1jvhjYehhhjkehMNubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjUehhhjkehMNubah}(h]jPeah ](jjeh"]h$]h&]jj)jhuh1j&hjkehMNhjRehhubj)}(hhh]h)}(hFree a secctx bufferh]hFree a secctx buffer}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMNhjfhhubah}(h]h ]h"]h$]h&]uh1jhjRehhhjkehMNubeh}(h]h ](jfunctioneh"]h$]h&]j jjj5fjj5fjjjuh1j!hhhhhNhNubj)}(hq**Parameters** ``struct lsm_context *cp`` the security context **Description** Release the security context.h](h)}(h**Parameters**h]j)}(hj?fh]h Parameters}(hjAfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=fubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMRhj9fubj4)}(hhh]j9)}(h0``struct lsm_context *cp`` the security context h](j?)}(h``struct lsm_context *cp``h]h)}(hj^fh]hstruct lsm_context *cp}(hj`fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\fubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMOhjXfubjY)}(hhh]h)}(hthe security contexth]hthe security context}(hjwfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsfhMOhjtfubah}(h]h ]h"]h$]h&]uh1jXhjXfubeh}(h]h ]h"]h$]h&]uh1j8hjsfhMOhjUfubah}(h]h ]h"]h$]h&]uh1j3hj9fubh)}(h**Description**h]j)}(hjfh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMQhj9fubh)}(hRelease the security context.h]hRelease the security context.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMPhj9fubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j-security_inode_invalidate_secctx (C function)"c.security_inode_invalidate_secctxhNtauh1jhhhhhNhNubj")}(hhh](j')}(h;void security_inode_invalidate_secctx (struct inode *inode)h]j-)}(h:void security_inode_invalidate_secctx(struct inode *inode)h](j3)}(hvoidh]hvoid}(hjfhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjfhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM[ubjE)}(h h]h }(hjfhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjfhhhjfhM[ubjV)}(h security_inode_invalidate_secctxh]j\)}(h security_inode_invalidate_secctxh]h security_inode_invalidate_secctx}(hjfhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjfubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjfhhhjfhM[ubjw)}(h(struct inode *inode)h]j})}(hstruct inode *inodeh](j8)}(hj;h]hstruct}(hjghhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjgubjE)}(h h]h }(hj(ghhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjgubh)}(hhh]j\)}(hinodeh]hinode}(hj9ghhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj6gubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj;gmodnameN classnameNjsjv)}jy]j|)}jojgsb"c.security_inode_invalidate_secctxasbuh1hhjgubjE)}(h h]h }(hjYghhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjgubj)}(hjh]h*}(hjgghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj\)}(hinodeh]hinode}(hjtghhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjgubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjgubah}(h]h ]h"]h$]h&]jtjuuh1jvhjfhhhjfhM[ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjfhhhjfhM[ubah}(h]jfah ](jjeh"]h$]h&]jj)jhuh1j&hjfhM[hjfhhubj)}(hhh]h)}(h$Invalidate an inode's security labelh]h&Invalidate an inode’s security label}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM[hjghhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjfhM[ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjgjjgjjjuh1j!hhhhhNhNubj)}(h**Parameters** ``struct inode *inode`` inode **Description** Notify the security module that it must revalidate the security context of an inode.h](h)}(h**Parameters**h]j)}(hjgh]h Parameters}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM_hjgubj4)}(hhh]j9)}(h``struct inode *inode`` inode h](j?)}(h``struct inode *inode``h]h)}(hjgh]hstruct inode *inode}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM\hjgubjY)}(hhh]h)}(hinodeh]hinode}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghM\hjgubah}(h]h ]h"]h$]h&]uh1jXhjgubeh}(h]h ]h"]h$]h&]uh1j8hjghM\hjgubah}(h]h ]h"]h$]h&]uh1j3hjgubh)}(h**Description**h]j)}(hjhh]h Description}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM^hjgubh)}(hTNotify the security module that it must revalidate the security context of an inode.h]hTNotify the security module that it must revalidate the security context of an inode.}(hj0hhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM]hjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(security_inode_notifysecctx (C function)c.security_inode_notifysecctxhNtauh1jhhhhhNhNubj")}(hhh](j')}(hLint security_inode_notifysecctx (struct inode *inode, void *ctx, u32 ctxlen)h]j-)}(hKint security_inode_notifysecctx(struct inode *inode, void *ctx, u32 ctxlen)h](j3)}(hinth]hint}(hj_hhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj[hhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhubjE)}(h h]h }(hjnhhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj[hhhhjmhhMhubjV)}(hsecurity_inode_notifysecctxh]j\)}(hsecurity_inode_notifysecctxh]hsecurity_inode_notifysecctx}(hjhhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj|hubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj[hhhhjmhhMhubjw)}(h,(struct inode *inode, void *ctx, u32 ctxlen)h](j})}(hstruct inode *inodeh](j8)}(hj;h]hstruct}(hjhhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjhubjE)}(h h]h }(hjhhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhubh)}(hhh]j\)}(hinodeh]hinode}(hjhhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjhubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjhmodnameN classnameNjsjv)}jy]j|)}jojhsbc.security_inode_notifysecctxasbuh1hhjhubjE)}(h h]h }(hjhhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj\)}(hinodeh]hinode}(hjhhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjhubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjhubj})}(h void *ctxh](j3)}(hvoidh]hvoid}(hjihhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj iubjE)}(h h]h }(hjihhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj iubj)}(hjh]h*}(hj*ihhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj iubj\)}(hctxh]hctx}(hj7ihhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj iubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjhubj})}(h u32 ctxlenh](h)}(hhh]j\)}(hu32h]hu32}(hjSihhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjPiubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjUimodnameN classnameNjsjv)}jy]jhc.security_inode_notifysecctxasbuh1hhjLiubjE)}(h h]h }(hjqihhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjLiubj\)}(hctxlenh]hctxlen}(hjihhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjLiubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjhubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj[hhhhjmhhMhubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjWhhhhjmhhMhubah}(h]jRhah ](jjeh"]h$]h&]jj)jhuh1j&hjmhhMhhjThhhubj)}(hhh]h)}(h+Notify the LSM of an inode's security labelh]h-Notify the LSM of an inode’s security label}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhhjihhubah}(h]h ]h"]h$]h&]uh1jhjThhhhjmhhMhubeh}(h]h ](jfunctioneh"]h$]h&]j jjjijjijjjuh1j!hhhhhNhNubj)}(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]j)}(hjih]h Parameters}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMlhjiubj4)}(hhh](j9)}(h``struct inode *inode`` inode h](j?)}(h``struct inode *inode``h]h)}(hjih]hstruct inode *inode}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjiubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMihjiubjY)}(hhh]h)}(hinodeh]hinode}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMihjjubah}(h]h ]h"]h$]h&]uh1jXhjiubeh}(h]h ]h"]h$]h&]uh1j8hjihMihjiubj9)}(h``void *ctx`` secctx h](j?)}(h ``void *ctx``h]h)}(hj#jh]h void *ctx}(hj%jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj!jubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMjhjjubjY)}(hhh]h)}(hsecctxh]hsecctx}(hjh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMkhjVjubjY)}(hhh]h)}(hlength of secctxh]hlength of secctx}(hjujhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqjhMkhjrjubah}(h]h ]h"]h$]h&]uh1jXhjVjubeh}(h]h ]h"]h$]h&]uh1j8hjqjhMkhjiubeh}(h]h ]h"]h$]h&]uh1j3hjiubh)}(h**Description**h]j)}(hjjh]h Description}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMmhjiubh)}(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.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMlhjiubh)}(h **Return**h]j)}(hjjh]hReturn}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMshjiubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMthjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%security_inode_setsecctx (C function)c.security_inode_setsecctxhNtauh1jhhhhhNhNubj")}(hhh](j')}(hKint security_inode_setsecctx (struct dentry *dentry, void *ctx, u32 ctxlen)h]j-)}(hJint security_inode_setsecctx(struct dentry *dentry, void *ctx, u32 ctxlen)h](j3)}(hinth]hint}(hjkhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM}ubjE)}(h h]h }(hjkhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjjhhhjkhM}ubjV)}(hsecurity_inode_setsecctxh]j\)}(hsecurity_inode_setsecctxh]hsecurity_inode_setsecctx}(hj$khhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj kubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjjhhhjkhM}ubjw)}(h.(struct dentry *dentry, void *ctx, u32 ctxlen)h](j})}(hstruct dentry *dentryh](j8)}(hj;h]hstruct}(hj@khhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hji_mutex locked. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hjolh]h Parameters}(hjqlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmlubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjilubj4)}(hhh](j9)}(h ``struct dentry *dentry`` inode h](j?)}(h``struct dentry *dentry``h]h)}(hjlh]hstruct dentry *dentry}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM~hjlubjY)}(hhh]h)}(hinodeh]hinode}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhM~hjlubah}(h]h ]h"]h$]h&]uh1jXhjlubeh}(h]h ]h"]h$]h&]uh1j8hjlhM~hjlubj9)}(h``void *ctx`` secctx h](j?)}(h ``void *ctx``h]h)}(hjlh]h void *ctx}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjlubjY)}(hhh]h)}(hsecctxh]hsecctx}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjlubah}(h]h ]h"]h$]h&]uh1jXhjlubeh}(h]h ]h"]h$]h&]uh1j8hjlhMhjlubj9)}(h ``u32 ctxlen`` length of secctx h](j?)}(h``u32 ctxlen``h]h)}(hjmh]h u32 ctxlen}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjlubjY)}(hhh]h)}(hlength of secctxh]hlength of secctx}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjmubah}(h]h ]h"]h$]h&]uh1jXhjlubeh}(h]h ]h"]h$]h&]uh1j8hjmhMhjlubeh}(h]h ]h"]h$]h&]uh1j3hjilubh)}(h**Description**h]j)}(hj;mh]h Description}(hj=mhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9mubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjilubh)}(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.}(hjQmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjilubh)}(h **Return**h]j)}(hjbmh]hReturn}(hjdmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`mubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjilubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjxmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjilubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%security_inode_getsecctx (C function)c.security_inode_getsecctxhNtauh1jhhhhhNhNubj")}(hhh](j')}(hJint security_inode_getsecctx (struct inode *inode, struct lsm_context *cp)h]j-)}(hIint security_inode_getsecctx(struct inode *inode, struct lsm_context *cp)h](j3)}(hinth]hint}(hjmhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjmhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjmhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjmhhhjmhMubjV)}(hsecurity_inode_getsecctxh]j\)}(hsecurity_inode_getsecctxh]hsecurity_inode_getsecctx}(hjmhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjmubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjmhhhjmhMubjw)}(h-(struct inode *inode, struct lsm_context *cp)h](j})}(hstruct inode *inodeh](j8)}(hj;h]hstruct}(hjmhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjmubjE)}(h h]h }(hjmhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjmubh)}(hhh]j\)}(hinodeh]hinode}(hjnhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjmubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjnmodnameN classnameNjsjv)}jy]j|)}jojmsbc.security_inode_getsecctxasbuh1hhjmubjE)}(h h]h }(hj"nhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjmubj)}(hjh]h*}(hj0nhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj\)}(hinodeh]hinode}(hj=nhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjmubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjmubj})}(hstruct lsm_context *cph](j8)}(hj;h]hstruct}(hjVnhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjRnubjE)}(h h]h }(hjcnhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjRnubh)}(hhh]j\)}(h lsm_contexth]h lsm_context}(hjtnhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjqnubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjvnmodnameN classnameNjsjv)}jy]jnc.security_inode_getsecctxasbuh1hhjRnubjE)}(h h]h }(hjnhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjRnubj)}(hjh]h*}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRnubj\)}(hcph]hcp}(hjnhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjRnubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjmubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjmhhhjmhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjmhhhjmhMubah}(h]jmah ](jjeh"]h$]h&]jj)jhuh1j&hjmhMhjmhhubj)}(hhh]h)}(h"Get the security label of an inodeh]h"Get the security label of an inode}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjnhhubah}(h]h ]h"]h$]h&]uh1jhjmhhhjmhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjnjjnjjjuh1j!hhhhhNhNubj)}(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]j)}(hjnh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjnubj4)}(hhh](j9)}(h``struct inode *inode`` inode h](j?)}(h``struct inode *inode``h]h)}(hjoh]hstruct inode *inode}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjoubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjoubjY)}(hhh]h)}(hinodeh]hinode}(hj1ohhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-ohMhj.oubah}(h]h ]h"]h$]h&]uh1jXhjoubeh}(h]h ]h"]h$]h&]uh1j8hj-ohMhjoubj9)}(h,``struct lsm_context *cp`` security context h](j?)}(h``struct lsm_context *cp``h]h)}(hjQoh]hstruct lsm_context *cp}(hjSohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOoubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjKoubjY)}(hhh]h)}(hsecurity contexth]hsecurity context}(hjjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjfohMhjgoubah}(h]h ]h"]h$]h&]uh1jXhjKoubeh}(h]h ]h"]h$]h&]uh1j8hjfohMhjoubeh}(h]h ]h"]h$]h&]uh1j3hjnubh)}(h**Description**h]j)}(hjoh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjnubh)}(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 }(hjohhhNhNubj)}(h**cp**h]hcp}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh) with the security context for the given }(hjohhhNhNubj)}(h **inode**h]hinode}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubh.}(hjohhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjnubh)}(h **Return**h]j)}(hjoh]hReturn}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjnubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjnubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)security_unix_stream_connect (C function)c.security_unix_stream_connecthNtauh1jhhhhhNhNubj")}(hhh](j')}(h\int security_unix_stream_connect (struct sock *sock, struct sock *other, struct sock *newsk)h]j-)}(h[int security_unix_stream_connect(struct sock *sock, struct sock *other, struct sock *newsk)h](j3)}(hinth]hint}(hjphhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjphhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hj+phhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjphhhj*phMubjV)}(hsecurity_unix_stream_connecth]j\)}(hsecurity_unix_stream_connecth]hsecurity_unix_stream_connect}(hj=phhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj9pubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjphhhj*phMubjw)}(h;(struct sock *sock, struct sock *other, struct sock *newsk)h](j})}(hstruct sock *sockh](j8)}(hj;h]hstruct}(hjYphhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjUpubjE)}(h h]h }(hjfphhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjUpubh)}(hhh]j\)}(hsockh]hsock}(hjwphhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjtpubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjypmodnameN classnameNjsjv)}jy]j|)}joj?psbc.security_unix_stream_connectasbuh1hhjUpubjE)}(h h]h }(hjphhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjUpubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUpubj\)}(hsockh]hsock}(hjphhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjUpubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjQpubj})}(hstruct sock *otherh](j8)}(hj;h]hstruct}(hjphhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjpubjE)}(h h]h }(hjphhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjpubh)}(hhh]j\)}(hsockh]hsock}(hjphhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjpubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjpmodnameN classnameNjsjv)}jy]jpc.security_unix_stream_connectasbuh1hhjpubjE)}(h h]h }(hjqhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjpubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj\)}(hotherh]hother}(hj"qhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjpubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjQpubj})}(hstruct sock *newskh](j8)}(hj;h]hstruct}(hj;qhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj7qubjE)}(h h]h }(hjHqhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj7qubh)}(hhh]j\)}(hsockh]hsock}(hjYqhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjVqubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj[qmodnameN classnameNjsjv)}jy]jpc.security_unix_stream_connectasbuh1hhj7qubjE)}(h h]h }(hjwqhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj7qubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7qubj\)}(hnewskh]hnewsk}(hjqhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj7qubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjQpubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjphhhj*phMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjphhhj*phMubah}(h]jpah ](jjeh"]h$]h&]jj)jhuh1j&hj*phMhjphhubj)}(hhh]h)}(h$Check if a AF_UNIX stream is allowedh]h$Check if a AF_UNIX stream is allowed}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjqhhubah}(h]h ]h"]h$]h&]uh1jhjphhhj*phMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjqjjqjjjuh1j!hhhhhNhNubj)}(hX**Parameters** ``struct sock *sock`` originating sock ``struct sock *other`` peer sock ``struct sock *newsk`` new sock **Description** Check permissions before establishing a Unix domain stream connection between **sock** and **other**. The **unix_stream_connect** and **unix_may_send** hooks were necessary because Linux provides an alternative to the conventional file name space for Unix domain sockets. Whereas binding and connecting to sockets in the file name space is mediated by the typical file permissions (and caught by the mknod and permission hooks in inode_security_ops), binding and connecting to sockets in the abstract name space is completely unmediated. Sufficient control of Unix domain sockets in the abstract name space isn't possible using only the socket layer hooks, since we need to know the actual target socket, which is not looked up until we are inside the af_unix code. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjqh]h Parameters}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjqubj4)}(hhh](j9)}(h'``struct sock *sock`` originating sock h](j?)}(h``struct sock *sock``h]h)}(hjqh]hstruct sock *sock}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjqubjY)}(hhh]h)}(horiginating sockh]horiginating sock}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jXhjqubeh}(h]h ]h"]h$]h&]uh1j8hjrhMhjqubj9)}(h!``struct sock *other`` peer sock h](j?)}(h``struct sock *other``h]h)}(hj6rh]hstruct sock *other}(hj8rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4rubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj0rubjY)}(hhh]h)}(h peer sockh]h peer sock}(hjOrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKrhMhjLrubah}(h]h ]h"]h$]h&]uh1jXhj0rubeh}(h]h ]h"]h$]h&]uh1j8hjKrhMhjqubj9)}(h ``struct sock *newsk`` new sock h](j?)}(h``struct sock *newsk``h]h)}(hjorh]hstruct sock *newsk}(hjqrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmrubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjirubjY)}(hhh]h)}(hnew sockh]hnew sock}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMhjrubah}(h]h ]h"]h$]h&]uh1jXhjirubeh}(h]h ]h"]h$]h&]uh1j8hjrhMhjqubeh}(h]h ]h"]h$]h&]uh1j3hjqubh)}(h**Description**h]j)}(hjrh]h Description}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjqubh)}(heCheck permissions before establishing a Unix domain stream connection between **sock** and **other**.h](hNCheck permissions before establishing a Unix domain stream connection between }(hjrhhhNhNubj)}(h**sock**h]hsock}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubh and }(hjrhhhNhNubj)}(h **other**h]hother}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubh.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjqubh)}(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 }(hjrhhhNhNubj)}(h**unix_stream_connect**h]hunix_stream_connect}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubh and }(hjrhhhNhNubj)}(h**unix_may_send**h]h unix_may_send}(hj shhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubhXj 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.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjqubh)}(h **Return**h]j)}(hj(sh]hReturn}(hj*shhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&subah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjqubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj>shhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#security_unix_may_send (C function)c.security_unix_may_sendhNtauh1jhhhhhNhNubj")}(hhh](j')}(hFint security_unix_may_send (struct socket *sock, struct socket *other)h]j-)}(hEint security_unix_may_send(struct socket *sock, struct socket *other)h](j3)}(hinth]hint}(hjmshhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjishhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hj|shhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjishhhj{shMubjV)}(hsecurity_unix_may_sendh]j\)}(hsecurity_unix_may_sendh]hsecurity_unix_may_send}(hjshhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjsubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjishhhj{shMubjw)}(h+(struct socket *sock, struct socket *other)h](j})}(hstruct socket *sockh](j8)}(hj;h]hstruct}(hjshhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjsubjE)}(h h]h }(hjshhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjsubh)}(hhh]j\)}(hsocketh]hsocket}(hjshhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjsubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjsmodnameN classnameNjsjv)}jy]j|)}jojssbc.security_unix_may_sendasbuh1hhjsubjE)}(h h]h }(hjshhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjsubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj\)}(hsockh]hsock}(hjthhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjsubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjsubj})}(hstruct socket *otherh](j8)}(hj;h]hstruct}(hjthhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjtubjE)}(h h]h }(hj)thhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjtubh)}(hhh]j\)}(hsocketh]hsocket}(hj:thhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj7tubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjtubjY)}(hhh]h)}(horiginating sockh]horiginating sock}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjtubah}(h]h ]h"]h$]h&]uh1jXhjtubeh}(h]h ]h"]h$]h&]uh1j8hjthMhjtubj9)}(h#``struct socket *other`` peer sock h](j?)}(h``struct socket *other``h]h)}(hjuh]hstruct socket *other}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjuubjY)}(hhh]h)}(h peer sockh]h peer sock}(hj0uhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,uhMhj-uubah}(h]h ]h"]h$]h&]uh1jXhjuubeh}(h]h ]h"]h$]h&]uh1j8hj,uhMhjtubeh}(h]h ]h"]h$]h&]uh1j3hjtubh)}(h**Description**h]j)}(hjRuh]h Description}(hjTuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPuubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjtubh)}(hTCheck permissions before connecting or sending datagrams from **sock** to **other**.h](h>Check permissions before connecting or sending datagrams from }(hjhuhhhNhNubj)}(h**sock**h]hsock}(hjpuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhuubh to }(hjhuhhhNhNubj)}(h **other**h]hother}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhuubh.}(hjhuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjtubh)}(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 }(hjuhhhNhNubj)}(h**unix_stream_connect**h]hunix_stream_connect}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubh and }(hjuhhhNhNubj)}(h**unix_may_send**h]h unix_may_send}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubhXj 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.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjtubh)}(h **Return**h]j)}(hjuh]hReturn}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjtubh)}(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.chMhjtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'security_socket_socketpair (C function)c.security_socket_socketpairhNtauh1jhhhhhNhNubj")}(hhh](j')}(hKint security_socket_socketpair (struct socket *socka, struct socket *sockb)h]j-)}(hJint security_socket_socketpair(struct socket *socka, struct socket *sockb)h](j3)}(hinth]hint}(hjvhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjvhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM9ubjE)}(h h]h }(hj$vhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjvhhhj#vhM9ubjV)}(hsecurity_socket_socketpairh]j\)}(hsecurity_socket_socketpairh]hsecurity_socket_socketpair}(hj6vhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj2vubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjvhhhj#vhM9ubjw)}(h,(struct socket *socka, struct socket *sockb)h](j})}(hstruct socket *sockah](j8)}(hj;h]hstruct}(hjRvhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjNvubjE)}(h h]h }(hj_vhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjNvubh)}(hhh]j\)}(hsocketh]hsocket}(hjpvhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjmvubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjrvmodnameN classnameNjsjv)}jy]j|)}joj8vsbc.security_socket_socketpairasbuh1hhjNvubjE)}(h h]h }(hjvhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjNvubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNvubj\)}(hsockah]hsocka}(hjvhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjNvubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjJvubj})}(hstruct socket *sockbh](j8)}(hj;h]hstruct}(hjvhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjvubjE)}(h h]h }(hjvhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjvubh)}(hhh]j\)}(hsocketh]hsocket}(hjvhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjvubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjvmodnameN classnameNjsjv)}jy]jvc.security_socket_socketpairasbuh1hhjvubjE)}(h h]h }(hjwhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjvubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubj\)}(hsockbh]hsockb}(hjwhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjvubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjJvubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjvhhhj#vhM9ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj vhhhj#vhM9ubah}(h]jvah ](jjeh"]h$]h&]jj)jhuh1j&hj#vhM9hj vhhubj)}(hhh]h)}(h)Check if creating a socketpair is allowedh]h)Check if creating a socketpair is allowed}(hjEwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM9hjBwhhubah}(h]h ]h"]h$]h&]uh1jhj vhhhj#vhM9ubeh}(h]h ](jfunctioneh"]h$]h&]j jjj]wjj]wjjjuh1j!hhhhhNhNubj)}(hX**Parameters** ``struct socket *socka`` first socket ``struct socket *sockb`` second socket **Description** Check permissions before creating a fresh pair of sockets. **Return** Returns 0 if permission is granted and the connection was established.h](h)}(h**Parameters**h]j)}(hjgwh]h Parameters}(hjiwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjewubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM=hjawubj4)}(hhh](j9)}(h&``struct socket *socka`` first socket h](j?)}(h``struct socket *socka``h]h)}(hjwh]hstruct socket *socka}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM:hjwubjY)}(hhh]h)}(h first socketh]h first socket}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhM:hjwubah}(h]h ]h"]h$]h&]uh1jXhjwubeh}(h]h ]h"]h$]h&]uh1j8hjwhM:hj}wubj9)}(h'``struct socket *sockb`` second socket h](j?)}(h``struct socket *sockb``h]h)}(hjwh]hstruct socket *sockb}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM;hjwubjY)}(hhh]h)}(h second socketh]h second socket}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhM;hjwubah}(h]h ]h"]h$]h&]uh1jXhjwubeh}(h]h ]h"]h$]h&]uh1j8hjwhM;hj}wubeh}(h]h ]h"]h$]h&]uh1j3hjawubh)}(h**Description**h]j)}(hjwh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM=hjawubh)}(h:Check permissions before creating a fresh pair of sockets.h]h:Check permissions before creating a fresh pair of sockets.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM<hjawubh)}(h **Return**h]j)}(hj!xh]hReturn}(hj#xhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM>hjawubh)}(hFReturns 0 if permission is granted and the connection was established.h]hFReturns 0 if permission is granted and the connection was established.}(hj7xhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM?hjawubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"security_sock_rcv_skb (C function)c.security_sock_rcv_skbhNtauh1jhhhhhNhNubj")}(hhh](j')}(h@int security_sock_rcv_skb (struct sock *sk, struct sk_buff *skb)h]j-)}(h?int security_sock_rcv_skb(struct sock *sk, struct sk_buff *skb)h](j3)}(hinth]hint}(hjfxhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjbxhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjuxhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjbxhhhjtxhMubjV)}(hsecurity_sock_rcv_skbh]j\)}(hsecurity_sock_rcv_skbh]hsecurity_sock_rcv_skb}(hjxhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjxubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjbxhhhjtxhMubjw)}(h&(struct sock *sk, struct sk_buff *skb)h](j})}(hstruct sock *skh](j8)}(hj;h]hstruct}(hjxhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjxubjE)}(h h]h }(hjxhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjxubh)}(hhh]j\)}(hsockh]hsock}(hjxhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjxubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjxmodnameN classnameNjsjv)}jy]j|)}jojxsbc.security_sock_rcv_skbasbuh1hhjxubjE)}(h h]h }(hjxhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjxubj)}(hjh]h*}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxubj\)}(hskh]hsk}(hjxhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjxubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjxubj})}(hstruct sk_buff *skbh](j8)}(hj;h]hstruct}(hjyhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjyubjE)}(h h]h }(hj"yhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjyubh)}(hhh]j\)}(hsk_buffh]hsk_buff}(hj3yhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj0yubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj5ymodnameN classnameNjsjv)}jy]jxc.security_sock_rcv_skbasbuh1hhjyubjE)}(h h]h }(hjQyhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjyubj)}(hjh]h*}(hj_yhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj\)}(hskbh]hskb}(hjlyhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjyubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjxubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjbxhhhjtxhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj^xhhhjtxhMubah}(h]jYxah ](jjeh"]h$]h&]jj)jhuh1j&hjtxhMhj[xhhubj)}(hhh]h)}(h.Check if an incoming network packet is allowedh]h.Check if an incoming network packet is allowed}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjyhhubah}(h]h ]h"]h$]h&]uh1jhj[xhhhjtxhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjyjjyjjjuh1j!hhhhhNhNubj)}(hX**Parameters** ``struct sock *sk`` destination sock ``struct sk_buff *skb`` incoming packet **Description** Check permissions on incoming network packets. This hook is distinct from Netfilter's IP input hooks since it is the first time that the incoming sk_buff **skb** has been associated with a particular socket, **sk**. Must not sleep inside this hook because some callers hold spinlocks. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjyh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjyubj4)}(hhh](j9)}(h%``struct sock *sk`` destination sock h](j?)}(h``struct sock *sk``h]h)}(hjyh]hstruct sock *sk}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjyubjY)}(hhh]h)}(hdestination sockh]hdestination sock}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjyubah}(h]h ]h"]h$]h&]uh1jXhjyubeh}(h]h ]h"]h$]h&]uh1j8hjyhMhjyubj9)}(h(``struct sk_buff *skb`` incoming packet h](j?)}(h``struct sk_buff *skb``h]h)}(hjzh]hstruct sk_buff *skb}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj zubjY)}(hhh]h)}(hincoming packeth]hincoming packet}(hj)zhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%zhMhj&zubah}(h]h ]h"]h$]h&]uh1jXhj zubeh}(h]h ]h"]h$]h&]uh1j8hj%zhMhjyubeh}(h]h ]h"]h$]h&]uh1j3hjyubh)}(h**Description**h]j)}(hjKzh]h Description}(hjMzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjIzubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjyubh)}(hXCheck permissions on incoming network packets. This hook is distinct from Netfilter's IP input hooks since it is the first time that the incoming sk_buff **skb** has been associated with a particular socket, **sk**. Must not sleep inside this hook because some callers hold spinlocks.h](hCheck permissions on incoming network packets. This hook is distinct from Netfilter’s IP input hooks since it is the first time that the incoming sk_buff }(hjazhhhNhNubj)}(h**skb**h]hskb}(hjizhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjazubh/ has been associated with a particular socket, }(hjazhhhNhNubj)}(h**sk**h]hsk}(hj{zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjazubhG. Must not sleep inside this hook because some callers hold spinlocks.}(hjazhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjyubh)}(h **Return**h]j)}(hjzh]hReturn}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjyubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j-security_socket_getpeersec_dgram (C function)"c.security_socket_getpeersec_dgramhNtauh1jhhhhhNhNubj")}(hhh](j')}(h[int security_socket_getpeersec_dgram (struct socket *sock, struct sk_buff *skb, u32 *secid)h]j-)}(hZint security_socket_getpeersec_dgram(struct socket *sock, struct sk_buff *skb, u32 *secid)h](j3)}(hinth]hint}(hjzhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjzhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjzhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjzhhhjzhMubjV)}(h security_socket_getpeersec_dgramh]j\)}(h security_socket_getpeersec_dgramh]h security_socket_getpeersec_dgram}(hjzhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjzubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjzhhhjzhMubjw)}(h6(struct socket *sock, struct sk_buff *skb, u32 *secid)h](j})}(hstruct socket *sockh](j8)}(hj;h]hstruct}(hj{hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj{ubjE)}(h h]h }(hj%{hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj{ubh)}(hhh]j\)}(hsocketh]hsocket}(hj6{hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj3{ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj8{modnameN classnameNjsjv)}jy]j|)}jojzsb"c.security_socket_getpeersec_dgramasbuh1hhj{ubjE)}(h h]h }(hjV{hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj{ubj)}(hjh]h*}(hjd{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj\)}(hsockh]hsock}(hjq{hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj{ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj{ubj})}(hstruct sk_buff *skbh](j8)}(hj;h]hstruct}(hj{hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj{ubjE)}(h h]h }(hj{hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj{ubh)}(hhh]j\)}(hsk_buffh]hsk_buff}(hj{hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj{ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj{modnameN classnameNjsjv)}jy]jR{"c.security_socket_getpeersec_dgramasbuh1hhj{ubjE)}(h h]h }(hj{hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj{ubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj\)}(hskbh]hskb}(hj{hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj{ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj{ubj})}(h u32 *secidh](h)}(hhh]j\)}(hu32h]hu32}(hj{hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj{ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj{modnameN classnameNjsjv)}jy]jR{"c.security_socket_getpeersec_dgramasbuh1hhj{ubjE)}(h h]h }(hj|hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj{ubj)}(hjh]h*}(hj)|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{ubj\)}(hsecidh]hsecid}(hj6|hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj{ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj{ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjzhhhjzhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjzhhhjzhMubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1j&hjzhMhjzhhubj)}(hhh]h)}(hGet the remote peer labelh]hGet the remote peer label}(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&]uh1jhjzhhhjzhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjx|jjx|jjjuh1j!hhhhhNhNubj)}(hX0**Parameters** ``struct socket *sock`` socket ``struct sk_buff *skb`` datagram packet ``u32 *secid`` remote peer label secid **Description** This hook allows the security module to provide peer socket security state for udp sockets on a per-packet basis to userspace via getsockopt SO_GETPEERSEC. The application must first have indicated the IP_PASSSEC option via getsockopt. It can then retrieve the security state returned by this hook for a packet via the SCM_SECURITY ancillary message type. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hj|h]h Parameters}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj||ubj4)}(hhh](j9)}(h``struct socket *sock`` socket h](j?)}(h``struct socket *sock``h]h)}(hj|h]hstruct socket *sock}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj|ubjY)}(hhh]h)}(hsocketh]hsocket}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jXhj|ubeh}(h]h ]h"]h$]h&]uh1j8hj|hMhj|ubj9)}(h(``struct sk_buff *skb`` datagram packet h](j?)}(h``struct sk_buff *skb``h]h)}(hj|h]hstruct sk_buff *skb}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj|ubjY)}(hhh]h)}(hdatagram packeth]hdatagram packet}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jXhj|ubeh}(h]h ]h"]h$]h&]uh1j8hj|hMhj|ubj9)}(h'``u32 *secid`` remote peer label secid h](j?)}(h``u32 *secid``h]h)}(hj}h]h u32 *secid}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj }ubjY)}(hhh]h)}(hremote peer label secidh]hremote peer label secid}(hj,}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(}hMhj)}ubah}(h]h ]h"]h$]h&]uh1jXhj }ubeh}(h]h ]h"]h$]h&]uh1j8hj(}hMhj|ubeh}(h]h ]h"]h$]h&]uh1j3hj||ubh)}(h**Description**h]j)}(hjN}h]h Description}(hjP}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjL}ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj||ubh)}(hXcThis hook allows the security module to provide peer socket security state for udp sockets on a per-packet basis to userspace via getsockopt SO_GETPEERSEC. The application must first have indicated the IP_PASSSEC option via getsockopt. It can then retrieve the security state returned by this hook for a packet via the SCM_SECURITY ancillary message type.h]hXcThis hook allows the security module to provide peer socket security state for udp sockets on a per-packet basis to userspace via getsockopt SO_GETPEERSEC. The application must first have indicated the IP_PASSSEC option via getsockopt. It can then retrieve the security state returned by this hook for a packet via the SCM_SECURITY ancillary message type.}(hjd}hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj||ubh)}(h **Return**h]j)}(hju}h]hReturn}(hjw}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjs}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 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.chM&hj||ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jsecurity_sk_clone (C function)c.security_sk_clonehNtauh1jhhhhhNhNubj")}(hhh](j')}(hBvoid security_sk_clone (const struct sock *sk, struct sock *newsk)h]j-)}(hAvoid security_sk_clone(const struct sock *sk, struct sock *newsk)h](j3)}(hvoidh]hvoid}(hj}hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj}hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMbubjE)}(h h]h }(hj}hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj}hhhj}hMbubjV)}(hsecurity_sk_cloneh]j\)}(hsecurity_sk_cloneh]hsecurity_sk_clone}(hj}hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj}ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj}hhhj}hMbubjw)}(h+(const struct sock *sk, struct sock *newsk)h](j})}(hconst struct sock *skh](j8)}(hj h]hconst}(hj}hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj}ubjE)}(h h]h }(hj~hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj}ubj8)}(hj;h]hstruct}(hj~hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj}ubjE)}(h h]h }(hj~hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj}ubh)}(hhh]j\)}(hsockh]hsock}(hj0~hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj-~ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj2~modnameN classnameNjsjv)}jy]j|)}joj}sbc.security_sk_cloneasbuh1hhj}ubjE)}(h h]h }(hjP~hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj}ubj)}(hjh]h*}(hj^~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj\)}(hskh]hsk}(hjk~hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj}ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj}ubj})}(hstruct sock *newskh](j8)}(hj;h]hstruct}(hj~hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj~ubjE)}(h h]h }(hj~hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj~ubh)}(hhh]j\)}(hsockh]hsock}(hj~hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj~modnameN classnameNjsjv)}jy]jL~c.security_sk_cloneasbuh1hhj~ubjE)}(h h]h }(hj~hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj~ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubj\)}(hnewskh]hnewsk}(hj~hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj~ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj}ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj}hhhj}hMbubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj}hhhj}hMbubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1j&hj}hMbhj}hhubj)}(hhh]h)}(hClone a sock's LSM stateh]hClone a sock’s LSM state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMbhjhhubah}(h]h ]h"]h$]h&]uh1jhj}hhhj}hMbubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!hhhhhNhNubj)}(h**Parameters** ``const struct sock *sk`` original sock ``struct sock *newsk`` target sock **Description** Clone/copy security structure.h](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMfhj!ubj4)}(hhh](j9)}(h(``const struct sock *sk`` original sock h](j?)}(h``const struct sock *sk``h]h)}(hjFh]hconst struct sock *sk}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMchj@ubjY)}(hhh]h)}(h original sockh]h original sock}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hMchj\ubah}(h]h ]h"]h$]h&]uh1jXhj@ubeh}(h]h ]h"]h$]h&]uh1j8hj[hMchj=ubj9)}(h#``struct sock *newsk`` target sock h](j?)}(h``struct sock *newsk``h]h)}(hjh]hstruct sock *newsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMdhjyubjY)}(hhh]h)}(h target sockh]h target sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMdhjubah}(h]h ]h"]h$]h&]uh1jXhjyubeh}(h]h ]h"]h$]h&]uh1j8hjhMdhj=ubeh}(h]h ]h"]h$]h&]uh1j3hj!ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMfhj!ubh)}(hClone/copy security structure.h]hClone/copy security structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMehj!ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&security_sk_classify_flow (C function)c.security_sk_classify_flowhNtauh1jhhhhhNhNubj")}(hhh](j')}(hQvoid security_sk_classify_flow (const struct sock *sk, struct flowi_common *flic)h]j-)}(hPvoid security_sk_classify_flow(const struct sock *sk, struct flowi_common *flic)h](j3)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMoubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhj hMoubjV)}(hsecurity_sk_classify_flowh]j\)}(hsecurity_sk_classify_flowh]hsecurity_sk_classify_flow}(hj hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhj hMoubjw)}(h2(const struct sock *sk, struct flowi_common *flic)h](j})}(hconst struct sock *skh](j8)}(hj h]hconst}(hj<hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj8ubjE)}(h h]h }(hjIhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj8ubj8)}(hj;h]hstruct}(hjWhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj8ubjE)}(h h]h }(hjdhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj8ubh)}(hhh]j\)}(hsockh]hsock}(hjuhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjrubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjwmodnameN classnameNjsjv)}jy]j|)}joj"sbc.security_sk_classify_flowasbuh1hhj8ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj8ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8ubj\)}(hskh]hsk}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj8ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj4ubj})}(hstruct flowi_common *flich](j8)}(hj;h]hstruct}(hjɀhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjŀubjE)}(h h]h }(hjրhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjŀubh)}(hhh]j\)}(h flowi_commonh]h flowi_common}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]jc.security_sk_classify_flowasbuh1hhjŀubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjŀubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŀubj\)}(hflich]hflic}(hj hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjŀubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj4ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhj hMoubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhj hMoubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hj hMohjhhubj)}(hhh]h)}(h"Set a flow's secid based on socketh]h$Set a flow’s secid based on socket}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMohjGhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hMoubeh}(h]h ](jfunctioneh"]h$]h&]j jjjbjjbjjjuh1j!hhhhhNhNubj)}(h**Parameters** ``const struct sock *sk`` original socket ``struct flowi_common *flic`` target flow **Description** Set the target flow's secid to socket's secid.h](h)}(h**Parameters**h]j)}(hjlh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMshjfubj4)}(hhh](j9)}(h*``const struct sock *sk`` original socket h](j?)}(h``const struct sock *sk``h]h)}(hjh]hconst struct sock *sk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMphjubjY)}(hhh]h)}(horiginal socketh]horiginal socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMphjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMphjubj9)}(h*``struct flowi_common *flic`` target flow h](j?)}(h``struct flowi_common *flic``h]h)}(hjāh]hstruct flowi_common *flic}(hjƁhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMqhjubjY)}(hhh]h)}(h target flowh]h target flow}(hj݁hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjفhMqhjځubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjفhMqhjubeh}(h]h ]h"]h$]h&]uh1j3hjfubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMshjfubh)}(h.Set the target flow's secid to socket's secid.h]h2Set the target flow’s secid to socket’s secid.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMrhjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'security_req_classify_flow (C function)c.security_req_classify_flowhNtauh1jhhhhhNhNubj")}(hhh](j')}(h[void security_req_classify_flow (const struct request_sock *req, struct flowi_common *flic)h]j-)}(hZvoid security_req_classify_flow(const struct request_sock *req, struct flowi_common *flic)h](j3)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj@hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM|ubjE)}(h h]h }(hjShhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj@hhhjRhM|ubjV)}(hsecurity_req_classify_flowh]j\)}(hsecurity_req_classify_flowh]hsecurity_req_classify_flow}(hjehhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjaubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj@hhhjRhM|ubjw)}(h;(const struct request_sock *req, struct flowi_common *flic)h](j})}(hconst struct request_sock *reqh](j8)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj}ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj}ubj8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj}ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj}ubh)}(hhh]j\)}(h request_sockh]h request_sock}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojgsbc.security_req_classify_flowasbuh1hhj}ubjE)}(h h]h }(hjڂhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj}ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj\)}(hreqh]hreq}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj}ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjyubj})}(hstruct flowi_common *flich](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubh)}(hhh]j\)}(h flowi_commonh]h flowi_common}(hj,hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj)ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj.modnameN classnameNjsjv)}jy]jւc.security_req_classify_flowasbuh1hhj ubjE)}(h h]h }(hjJhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubj)}(hjh]h*}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj\)}(hflich]hflic}(hjehhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjyubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj@hhhjRhM|ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj<hhhjRhM|ubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1j&hjRhM|hj9hhubj)}(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.chM|hjhhubah}(h]h ]h"]h$]h&]uh1jhj9hhhjRhM|ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!hhhhhNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubj4)}(hhh](j9)}(h0``const struct request_sock *req`` request_sock h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM}hjʃubjY)}(hhh]h)}(h request_sockh]h request_sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM}hjubah}(h]h ]h"]h$]h&]uh1jXhjʃubeh}(h]h ]h"]h$]h&]uh1j8hjhM}hjǃubj9)}(h*``struct flowi_common *flic`` target flow h](j?)}(h``struct flowi_common *flic``h]h)}(hj h]hstruct flowi_common *flic}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM~hjubjY)}(hhh]h)}(h target flowh]h target flow}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM~hjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhM~hjǃubeh}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hjDh]h Description}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjBubah}(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 }(hjZhhhNhNubj)}(h**flic**h]hflic}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh’s secid to }(hjZhhhNhNubj)}(h**req**h]hreq}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubh ’s secid.}(hjZhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_sock_graft (C function)c.security_sock_grafthNtauh1jhhhhhNhNubj")}(hhh](j')}(hAvoid security_sock_graft (struct sock *sk, struct socket *parent)h]j-)}(h@void security_sock_graft(struct sock *sk, struct socket *parent)h](j3)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjhMubjV)}(hsecurity_sock_grafth]j\)}(hsecurity_sock_grafth]hsecurity_sock_graft}(hj΄hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjʄubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhMubjw)}(h((struct sock *sk, struct socket *parent)h](j})}(hstruct sock *skh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj modnameN classnameNjsjv)}jy]j|)}jojЄsbc.security_sock_graftasbuh1hhjubjE)}(h h]h }(hj(hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hskh]hsk}(hjChhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hstruct socket *parenth](j8)}(hj;h]hstruct}(hj\hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjXubjE)}(h h]h }(hjihhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjXubh)}(hhh]j\)}(hsocketh]hsocket}(hjzhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjwubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj|modnameN classnameNjsjv)}jy]j$c.security_sock_graftasbuh1hhjXubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjXubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj\)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjXubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhjhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,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}(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 jjjjjjjjuh1j!hhhhhNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubj4)}(hhh](j9)}(h'``struct sock *sk`` sock being grafted h](j?)}(h``struct sock *sk``h]h)}(hjh]hstruct sock *sk}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(hsock being graftedh]hsock being grafted}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hj3hMhjubj9)}(h/``struct socket *parent`` target parent socket h](j?)}(h``struct socket *parent``h]h)}(hjWh]hstruct socket *parent}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjQubjY)}(hhh]h)}(htarget parent socketh]htarget parent socket}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhMhjmubah}(h]h ]h"]h$]h&]uh1jXhjQubeh}(h]h ]h"]h$]h&]uh1j8hjlhMhjubeh}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(hoSets **parent**'s inode secid to **sk**'s secid and update **sk** with any necessary LSM state from **parent**.h](hSets }(hjhhhNhNubj)}(h **parent**h]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’s inode secid to }(hjhhhNhNubj)}(h**sk**h]hsk}(hj†hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’s secid and update }(hjhhhNhNubj)}(h**sk**h]hsk}(hjԆhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh# with any necessary LSM state from }(hjhhhNhNubj)}(h **parent**h]hparent}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'security_inet_conn_request (C function)c.security_inet_conn_requesthNtauh1jhhhhhNhNubj")}(hhh](j')}(heint security_inet_conn_request (const struct sock *sk, struct sk_buff *skb, struct request_sock *req)h]j-)}(hdint security_inet_conn_request(const struct sock *sk, struct sk_buff *skb, struct request_sock *req)h](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hj.hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhj-hMubjV)}(hsecurity_inet_conn_requesth]j\)}(hsecurity_inet_conn_requesth]hsecurity_inet_conn_request}(hj@hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj<ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhj-hMubjw)}(hF(const struct sock *sk, struct sk_buff *skb, struct request_sock *req)h](j})}(hconst struct sock *skh](j8)}(hj h]hconst}(hj\hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjXubjE)}(h h]h }(hjihhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjXubj8)}(hj;h]hstruct}(hjwhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjXubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjXubh)}(hhh]j\)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojBsbc.security_inet_conn_requestasbuh1hhjXubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjXubj)}(hjh]h*}(hjÇhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj\)}(hskh]hsk}(hjЇhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjXubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjTubj})}(hstruct sk_buff *skbh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hsk_buffh]hsk_buff}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj modnameN classnameNjsjv)}jy]jc.security_inet_conn_requestasbuh1hhjubjE)}(h h]h }(hj%hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hskbh]hskb}(hj@hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjTubj})}(hstruct request_sock *reqh](j8)}(hj;h]hstruct}(hjYhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjUubjE)}(h h]h }(hjfhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjUubh)}(hhh]j\)}(h request_sockh]h request_sock}(hjwhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjtubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjymodnameN classnameNjsjv)}jy]jc.security_inet_conn_requestasbuh1hhjUubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubj\)}(hreqh]hreq}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjUubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjTubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhj-hMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhj-hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hj-hMhjhhubj)}(hhh]h)}(h-Set request_sock state using incoming connecth]h-Set request_sock state using incoming connect}(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&]uh1jhjhhhj-hMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!hhhhhNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubj4)}(hhh](j9)}(h0``const struct sock *sk`` parent listening sock h](j?)}(h``const struct sock *sk``h]h)}(hjh]hconst struct sock *sk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(hparent listening sockh]hparent listening sock}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hMhj1ubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hj0hMhjubj9)}(h,``struct sk_buff *skb`` incoming connection h](j?)}(h``struct sk_buff *skb``h]h)}(hjTh]hstruct sk_buff *skb}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjNubjY)}(hhh]h)}(hincoming connectionh]hincoming connection}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMhjjubah}(h]h ]h"]h$]h&]uh1jXhjNubeh}(h]h ]h"]h$]h&]uh1j8hjihMhjubj9)}(h.``struct request_sock *req`` new request_sock h](j?)}(h``struct request_sock *req``h]h)}(hjh]hstruct request_sock *req}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(hnew request_sockh]hnew request_sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubeh}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hjȉh]h Description}(hjʉhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƉubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(hUInitialize the **req** LSM state based on **sk** and the incoming connect in **skb**.h](hInitialize the }(hjމhhhNhNubj)}(h**req**h]hreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjމubh LSM state based on }(hjމhhhNhNubj)}(h**sk**h]hsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjމubh and the incoming connect in }(hjމhhhNhNubj)}(h**skb**h]hskb}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjމ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]j)}(hj%h]hReturn}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j+security_inet_conn_established (C function) c.security_inet_conn_establishedhNtauh1jhhhhhNhNubj")}(hhh](j')}(hJvoid security_inet_conn_established (struct sock *sk, struct sk_buff *skb)h]j-)}(hIvoid security_inet_conn_established(struct sock *sk, struct sk_buff *skb)h](j3)}(hvoidh]hvoid}(hjjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjfhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjyhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjfhhhjxhMubjV)}(hsecurity_inet_conn_establishedh]j\)}(hsecurity_inet_conn_establishedh]hsecurity_inet_conn_established}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjfhhhjxhMubjw)}(h&(struct sock *sk, struct sk_buff *skb)h](j})}(hstruct sock *skh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hsockh]hsock}(hjŊhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjŠubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjNJmodnameN classnameNjsjv)}jy]j|)}jojsb c.security_inet_conn_establishedasbuh1hhjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hskh]hsk}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hstruct sk_buff *skbh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hj&hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hsk_buffh]hsk_buff}(hj7hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj4ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj9modnameN classnameNjsjv)}jy]j c.security_inet_conn_establishedasbuh1hhjubjE)}(h h]h }(hjUhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hskbh]hskb}(hjphhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjfhhhjxhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjbhhhjxhMubah}(h]j]ah ](jjeh"]h$]h&]jj)jhuh1j&hjxhMhj_hhubj)}(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&]uh1jhj_hhhjxhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!hhhhhNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubj4)}(hhh](j9)}(h``struct sock *sk`` sock h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjՋubjY)}(hhh]h)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjՋubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjҋubj9)}(h*``struct sk_buff *skb`` connection packet h](j?)}(h``struct sk_buff *skb``h]h)}(hjh]hstruct sk_buff *skb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(hconnection packeth]hconnection packet}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hj)hMhjҋubeh}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hjOh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(hGUpdate **sock**'s LSM state to represent a new connection from **skb**.h](hUpdate }(hjehhhNhNubj)}(h**sock**h]hsock}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh2’s LSM state to represent a new connection from }(hjehhhNhNubj)}(h**skb**h]hskb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j,security_secmark_relabel_packet (C function)!c.security_secmark_relabel_packethNtauh1jhhhhhNhNubj")}(hhh](j')}(h/int security_secmark_relabel_packet (u32 secid)h]j-)}(h.int security_secmark_relabel_packet(u32 secid)h](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjnjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjƌhMubjV)}(hsecurity_secmark_relabel_packeth]j\)}(hsecurity_secmark_relabel_packeth]hsecurity_secmark_relabel_packet}(hjٌhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjՌubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjƌhMubjw)}(h (u32 secid)h]j})}(h u32 secidh](h)}(hhh]j\)}(hu32h]hu32}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojیsb!c.security_secmark_relabel_packetasbuh1hhjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj\)}(hsecidh]hsecid}(hj&hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubah}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhjƌhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhjƌhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hjƌhMhjhhubj)}(hhh]h)}(h%Check if setting a secmark is allowedh]h%Check if setting a secmark is allowed}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjMhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjƌhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjhjjhjjjuh1j!hhhhhNhNubj)}(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]j)}(hjrh]h Parameters}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjlubj4)}(hhh]j9)}(h ``u32 secid`` new secmark value h](j?)}(h ``u32 secid``h]h)}(hjh]h u32 secid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(hnew secmark valueh]hnew secmark value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1j3hjlubh)}(h**Description**h]j)}(hj̍h]h Description}(hj΍hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʍubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjlubh)}(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 }(hjhhhNhNubj)}(h **secid**h]hsecid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjlubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*security_secmark_refcount_inc (C function)c.security_secmark_refcount_inchNtauh1jhhhhhNhNubj")}(hhh](j')}(h)void security_secmark_refcount_inc (void)h]j-)}(h(void security_secmark_refcount_inc(void)h](j3)}(hvoidh]hvoid}(hjJhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjFhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjYhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjFhhhjXhMubjV)}(hsecurity_secmark_refcount_inch]j\)}(hsecurity_secmark_refcount_inch]hsecurity_secmark_refcount_inc}(hjkhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjgubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjFhhhjXhMubjw)}(h(void)h]j})}(hvoidh]j3)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubah}(h]h ]h"]h$]h&]jtjuuh1jvhjFhhhjXhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjBhhhjXhMubah}(h]j=ah ](jjeh"]h$]h&]jj)jhuh1j&hjXhMhj?hhubj)}(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&]uh1jhj?hhhjXhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjɎjjɎjjjuh1j!hhhhhNhNubj)}(h**Parameters** ``void`` no arguments **Description** Tells the LSM to increment the number of secmark labeling rules loaded.h](h)}(h**Parameters**h]j)}(hjӎh]h Parameters}(hjՎhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjюubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj͎ubj4)}(hhh]j9)}(h``void`` no arguments h](j?)}(h``void``h]h)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chKhjubjY)}(hhh]h)}(h no argumentsh]h no arguments}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhKhjubah}(h]h ]h"]h$]h&]uh1j3hj͎ubh)}(h**Description**h]j)}(hj-h]h Description}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(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.}(hjChhhNhNubah}(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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*security_secmark_refcount_dec (C function)c.security_secmark_refcount_dechNtauh1jhhhhhNhNubj")}(hhh](j')}(h)void security_secmark_refcount_dec (void)h]j-)}(h(void security_secmark_refcount_dec(void)h](j3)}(hvoidh]hvoid}(hjrhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjnhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjnhhhjhMubjV)}(hsecurity_secmark_refcount_dech]j\)}(hsecurity_secmark_refcount_dech]hsecurity_secmark_refcount_dec}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjnhhhjhMubjw)}(h(void)h]j})}(hvoidh]j3)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubah}(h]h ]h"]h$]h&]jtjuuh1jvhjnhhhjhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjjhhhjhMubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1j&hjhMhjghhubj)}(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.chMhj֏hhubah}(h]h ]h"]h$]h&]uh1jhjghhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!hhhhhNhNubj)}(h**Parameters** ``void`` no arguments **Description** Tells the LSM to decrement the number of secmark labeling rules loaded.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubj4)}(hhh]j9)}(h``void`` no arguments h](j?)}(h``void``h]h)}(hjh]hvoid}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chKhjubjY)}(hhh]h)}(h no argumentsh]h no arguments}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hKhj0ubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hj/hKhjubah}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hjUh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chKhjubh)}(hGTells the LSM to decrement the number of secmark labeling rules loaded.h]hGTells the LSM to decrement the number of secmark labeling rules loaded.}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j,security_tun_dev_alloc_security (C function)!c.security_tun_dev_alloc_securityhNtauh1jhhhhhNhNubj")}(hhh](j')}(h5int security_tun_dev_alloc_security (void **security)h]j-)}(h4int security_tun_dev_alloc_security(void **security)h](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjhMubjV)}(hsecurity_tun_dev_alloc_securityh]j\)}(hsecurity_tun_dev_alloc_securityh]hsecurity_tun_dev_alloc_security}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhMubjw)}(h(void **security)h]j})}(hvoid **securityh](j3)}(hvoidh]hvoid}(hjאhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjӐubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjӐubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӐubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjӐubj\)}(hsecurityh]hsecurity}(hj hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjӐubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjϐubah}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhjhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hjhMhjhhubj)}(hhh]h)}(h$Allocate a LSM blob for a TUN deviceh]h$Allocate a LSM blob for a TUN device}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj4hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjOjjOjjjuh1j!hhhhhNhNubj)}(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]j)}(hjYh]h Parameters}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjSubj4)}(hhh]j9)}(h,``void **security`` pointer to the LSM blob h](j?)}(h``void **security``h]h)}(hjxh]hvoid **security}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjrubjY)}(hhh]h)}(hpointer to the LSM blobh]hpointer to the LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjrubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjoubah}(h]h ]h"]h$]h&]uh1j3hjSubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjSubh)}(hsThis hook allows a module to allocate a security structure for a TUN device, returning the pointer in **security**.h](hfThis hook allows a module to allocate a security structure for a TUN device, returning the pointer in }(hjɑhhhNhNubj)}(h **security**h]hsecurity}(hjёhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɑubh.}(hjɑhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjSubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjSubh)}(h6Returns a zero on success, negative values on failure.h]h6Returns a zero on success, negative values on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjSubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j+security_tun_dev_free_security (C function) c.security_tun_dev_free_securityhNtauh1jhhhhhNhNubj")}(hhh](j')}(h4void security_tun_dev_free_security (void *security)h]j-)}(h3void security_tun_dev_free_security(void *security)h](j3)}(hvoidh]hvoid}(hj1hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj-hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hj@hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj-hhhj?hMubjV)}(hsecurity_tun_dev_free_securityh]j\)}(hsecurity_tun_dev_free_securityh]hsecurity_tun_dev_free_security}(hjRhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjNubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj-hhhj?hMubjw)}(h(void *security)h]j})}(hvoid *securityh](j3)}(hvoidh]hvoid}(hjnhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjjubjE)}(h h]h }(hj|hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj\)}(hsecurityh]hsecurity}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjfubah}(h]h ]h"]h$]h&]jtjuuh1jvhj-hhhj?hMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj)hhhj?hMubah}(h]j$ah ](jjeh"]h$]h&]jj)jhuh1j&hj?hMhj&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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj?hMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjْjjْjjjuh1j!hhhhhNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjݒubj4)}(hhh]j9)}(h``void *security`` LSM blob h](j?)}(h``void *security``h]h)}(hjh]hvoid *security}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(hLSM blobh]hLSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1j3hjݒubh)}(h**Description**h]j)}(hj=h]h Description}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjݒubh)}(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.}(hjShhhNhNubah}(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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$security_tun_dev_create (C function)c.security_tun_dev_createhNtauh1jhhhhhNhNubj")}(hhh](j')}(h"int security_tun_dev_create (void)h]j-)}(h!int security_tun_dev_create(void)h](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj~hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj~hhhjhMubjV)}(hsecurity_tun_dev_createh]j\)}(hsecurity_tun_dev_createh]hsecurity_tun_dev_create}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj~hhhjhMubjw)}(h(void)h]j})}(hvoidh]j3)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubah}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubah}(h]h ]h"]h$]h&]jtjuuh1jvhj~hhhjhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjzhhhjhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1j&hjhMhjwhhubj)}(hhh]h)}(h)Check if creating a TUN device is allowedh]h)Check if creating a TUN device is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!hhhhhNhNubj)}(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]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubj4)}(hhh]j9)}(h``void`` no arguments h](j?)}(h``void``h]h)}(hj*h]hvoid}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chKhj$ubjY)}(hhh]h)}(h no argumentsh]h no arguments}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hKhj@ubah}(h]h ]h"]h$]h&]uh1jXhj$ubeh}(h]h ]h"]h$]h&]uh1j8hj?hKhj!ubah}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hjeh]h Description}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chKhjubh)}(h5Check permissions prior to creating a new TUN device.h]h5Check permissions prior to creating a new TUN device.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*security_tun_dev_attach_queue (C function)c.security_tun_dev_attach_queuehNtauh1jhhhhhNhNubj")}(hhh](j')}(h2int security_tun_dev_attach_queue (void *security)h]j-)}(h1int security_tun_dev_attach_queue(void *security)h](j3)}(hinth]hint}(hjєhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj͔hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj͔hhhjߔhMubjV)}(hsecurity_tun_dev_attach_queueh]j\)}(hsecurity_tun_dev_attach_queueh]hsecurity_tun_dev_attach_queue}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj͔hhhjߔhMubjw)}(h(void *security)h]j})}(hvoid *securityh](j3)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj\)}(hsecurityh]hsecurity}(hj7hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubah}(h]h ]h"]h$]h&]jtjuuh1jvhj͔hhhjߔhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjɔhhhjߔhMubah}(h]jĔah ](jjeh"]h$]h&]jj)jhuh1j&hjߔhMhjƔhhubj)}(hhh]h)}(h)Check if attaching a TUN queue is allowedh]h)Check if attaching a TUN queue is allowed}(hjahhhNhNubah}(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 jjjyjjyjjjuh1j!hhhhhNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj}ubj4)}(hhh]j9)}(h'``void *security`` TUN device LSM blob h](j?)}(h``void *security``h]h)}(hjh]hvoid *security}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(hTUN device LSM blobh]hTUN device LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1j3hj}ubh)}(h**Description**h]j)}(hjݕh]h Description}(hjߕhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjەubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj}ubh)}(h;Check permissions prior to attaching to a TUN device queue.h]h;Check permissions prior to attaching to a TUN device queue.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj}ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(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.}(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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$security_tun_dev_attach (C function)c.security_tun_dev_attachhNtauh1jhhhhhNhNubj")}(hhh](j')}(h=int security_tun_dev_attach (struct sock *sk, void *security)h]j-)}(hhhubj)}(hhh]h)}(h%Update TUN device LSM state on attachh]h%Update TUN device LSM state on attach}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM)hjHhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjWhM)ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjcjjcjjjuh1j!hhhhhNhNubj)}(hX**Parameters** ``struct sock *sk`` associated sock ``void *security`` TUN device LSM blob **Description** This hook can be used by the module to update any security state associated with the TUN device's sock structure. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM-hjgubj4)}(hhh](j9)}(h$``struct sock *sk`` associated sock h](j?)}(h``struct sock *sk``h]h)}(hjh]hstruct sock *sk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM*hjubjY)}(hhh]h)}(hassociated sockh]hassociated sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM*hjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhM*hjubj9)}(h'``void *security`` TUN device LSM blob h](j?)}(h``void *security``h]h)}(hjŗh]hvoid *security}(hjǗhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj×ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM+hjubjY)}(hhh]h)}(hTUN device LSM blobh]hTUN device LSM blob}(hjޗhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjڗhM+hjۗubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjڗhM+hjubeh}(h]h ]h"]h$]h&]uh1j3hjgubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM-hjgubh)}(hqThis hook can be used by the module to update any security state associated with the TUN device's sock structure.h]hsThis hook can be used by the module to update any security state associated with the TUN device’s sock structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM,hjgubh)}(h **Return**h]j)}(hj'h]hReturn}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM/hjgubh)}(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.chM0hjgubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"security_tun_dev_open (C function)c.security_tun_dev_openhNtauh1jhhhhhNhNubj")}(hhh](j')}(h*int security_tun_dev_open (void *security)h]j-)}(h)int security_tun_dev_open(void *security)h](j3)}(hinth]hint}(hjlhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM9ubjE)}(h h]h }(hj{hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhhjzhM9ubjV)}(hsecurity_tun_dev_openh]j\)}(hsecurity_tun_dev_openh]hsecurity_tun_dev_open}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhhjzhM9ubjw)}(h(void *security)h]j})}(hvoid *securityh](j3)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjŘhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hsecurityh]hsecurity}(hjҘhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubah}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhhjzhM9ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjdhhhjzhM9ubah}(h]j_ah ](jjeh"]h$]h&]jj)jhuh1j&hjzhM9hjahhubj)}(hhh]h)}(h#Update TUN device LSM state on openh]h#Update TUN device LSM state on open}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM9hjhhubah}(h]h ]h"]h$]h&]uh1jhjahhhjzhM9ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!hhhhhNhNubj)}(h**Parameters** ``void *security`` TUN device LSM blob **Description** This hook can be used by the module to update any security state associated with the TUN device's security structure. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM=hjubj4)}(hhh]j9)}(h'``void *security`` TUN device LSM blob h](j?)}(h``void *security``h]h)}(hj=h]hvoid *security}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM:hj7ubjY)}(hhh]h)}(hTUN device LSM blobh]hTUN device LSM blob}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhM:hjSubah}(h]h ]h"]h$]h&]uh1jXhj7ubeh}(h]h ]h"]h$]h&]uh1j8hjRhM:hj4ubah}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hjxh]h Description}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM<hjubh)}(huThis hook can be used by the module to update any security state associated with the TUN device's security structure.h]hwThis hook can be used by the module to update any security state associated with the TUN device’s security structure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM;hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM>hjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM?hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(security_sctp_assoc_request (C function)c.security_sctp_assoc_requesthNtauh1jhhhhhNhNubj")}(hhh](j')}(hTint security_sctp_assoc_request (struct sctp_association *asoc, struct sk_buff *skb)h]j-)}(hSint security_sctp_assoc_request(struct sctp_association *asoc, struct sk_buff *skb)h](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMHubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjhMHubjV)}(hsecurity_sctp_assoc_requesth]j\)}(hsecurity_sctp_assoc_requesth]hsecurity_sctp_assoc_request}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhMHubjw)}(h4(struct sctp_association *asoc, struct sk_buff *skb)h](j})}(hstruct sctp_association *asoch](j8)}(hj;h]hstruct}(hj!hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hj.hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hsctp_associationh]hsctp_association}(hj?hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj<ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjAmodnameN classnameNjsjv)}jy]j|)}jojsbc.security_sctp_assoc_requestasbuh1hhjubjE)}(h h]h }(hj_hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hasoch]hasoc}(hjzhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hstruct sk_buff *skbh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hsk_buffh]hsk_buff}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j[c.security_sctp_assoc_requestasbuh1hhjubjE)}(h h]h }(hjϚhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjݚhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hskbh]hskb}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhjhMHubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjܙhhhjhMHubah}(h]jיah ](jjeh"]h$]h&]jj)jhuh1j&hjhMHhjٙhhubj)}(hhh]h)}(h(Update the LSM on a SCTP association reqh]h(Update the LSM on a SCTP association req}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMHhjhhubah}(h]h ]h"]h$]h&]uh1jhjٙhhhjhMHubeh}(h]h ](jfunctioneh"]h$]h&]j jjj,jj,jjjuh1j!hhhhhNhNubj)}(hX**Parameters** ``struct sctp_association *asoc`` SCTP association ``struct sk_buff *skb`` packet requesting the association **Description** Passes the **asoc** and **chunk->skb** of the association INIT packet to the LSM. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMLhj0ubj4)}(hhh](j9)}(h3``struct sctp_association *asoc`` SCTP association h](j?)}(h!``struct sctp_association *asoc``h]h)}(hjUh]hstruct sctp_association *asoc}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjSubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMIhjOubjY)}(hhh]h)}(hSCTP associationh]hSCTP association}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhMIhjkubah}(h]h ]h"]h$]h&]uh1jXhjOubeh}(h]h ]h"]h$]h&]uh1j8hjjhMIhjLubj9)}(h:``struct sk_buff *skb`` packet requesting the association h](j?)}(h``struct sk_buff *skb``h]h)}(hjh]hstruct sk_buff *skb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMJhjubjY)}(hhh]h)}(h!packet requesting the associationh]h!packet requesting the association}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMJhjLubeh}(h]h ]h"]h$]h&]uh1j3hj0ubh)}(h**Description**h]j)}(hjɛh]h Description}(hj˛hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjǛubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMLhj0ubh)}(hQPasses the **asoc** and **chunk->skb** of the association INIT packet to the LSM.h](h Passes the }(hjߛhhhNhNubj)}(h**asoc**h]hasoc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߛubh and }(hjߛhhhNhNubj)}(h**chunk->skb**h]h chunk->skb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߛubh+ of the association INIT packet to the LSM.}(hjߛhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMKhj0ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMMhj0ubh)}(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.chMNhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'security_sctp_bind_connect (C function)c.security_sctp_bind_connecthNtauh1jhhhhhNhNubj")}(hhh](j')}(hdint security_sctp_bind_connect (struct sock *sk, int optname, struct sockaddr *address, int addrlen)h]j-)}(hcint security_sctp_bind_connect(struct sock *sk, int optname, struct sockaddr *address, int addrlen)h](j3)}(hinth]hint}(hjYhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjUhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMXubjE)}(h h]h }(hjhhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjUhhhjghMXubjV)}(hsecurity_sctp_bind_connecth]j\)}(hsecurity_sctp_bind_connecth]hsecurity_sctp_bind_connect}(hjzhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjvubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjUhhhjghMXubjw)}(hE(struct sock *sk, int optname, struct sockaddr *address, int addrlen)h](j})}(hstruct sock *skh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}joj|sbc.security_sctp_bind_connectasbuh1hhjubjE)}(h h]h }(hjԜhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hskh]hsk}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(h int optnameh](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj\)}(hoptnameh]hoptname}(hj$hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hstruct sockaddr *addressh](j8)}(hj;h]hstruct}(hj=hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj9ubjE)}(h h]h }(hjJhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj9ubh)}(hhh]j\)}(hsockaddrh]hsockaddr}(hj[hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjXubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj]modnameN classnameNjsjv)}jy]jМc.security_sctp_bind_connectasbuh1hhj9ubjE)}(h h]h }(hjyhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj9ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj\)}(haddressh]haddress}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj9ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(h int addrlenh](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj\)}(haddrlenh]haddrlen}(hjɝhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjUhhhjghMXubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjQhhhjghMXubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1j&hjghMXhjNhhubj)}(hhh]h)}(h*Validate a list of addrs for a SCTP optionh]h*Validate a list of addrs for a SCTP option}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMXhjhhubah}(h]h ]h"]h$]h&]uh1jhjNhhhjghMXubeh}(h]h ](jfunctioneh"]h$]h&]j jjj jj jjjuh1j!hhhhhNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM\hjubj4)}(hhh](j9)}(h``struct sock *sk`` socket h](j?)}(h``struct sock *sk``h]h)}(hj4h]hstruct sock *sk}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMYhj.ubjY)}(hhh]h)}(hsocketh]hsocket}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhMYhjJubah}(h]h ]h"]h$]h&]uh1jXhj.ubeh}(h]h ]h"]h$]h&]uh1j8hjIhMYhj+ubj9)}(h(``int optname`` SCTP option to validate h](j?)}(h``int optname``h]h)}(hjmh]h int optname}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjkubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMZhjgubjY)}(hhh]h)}(hSCTP option to validateh]hSCTP option to validate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMZhjubah}(h]h ]h"]h$]h&]uh1jXhjgubeh}(h]h ]h"]h$]h&]uh1j8hjhMZhj+ubj9)}(h>``struct sockaddr *address`` list of IP addresses to validate h](j?)}(h``struct sockaddr *address``h]h)}(hjh]hstruct sockaddr *address}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM[hjubjY)}(hhh]h)}(h list of IP addresses to validateh]h list of IP addresses to validate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM[hjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhM[hj+ubj9)}(h+``int addrlen`` length of the address list h](j?)}(h``int addrlen``h]h)}(hjߞh]h int addrlen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjݞubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM\hjٞubjY)}(hhh]h)}(hlength of the address listh]hlength of the address list}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM\hjubah}(h]h ]h"]h$]h&]uh1jXhjٞubeh}(h]h ]h"]h$]h&]uh1j8hjhM\hj+ubeh}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM^hjubh)}(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 }(hj0hhhNhNubj)}(h**sk**h]hsk}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubh. Depending on }(hj0hhhNhNubj)}(h **optname**h]hoptname}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubhI, the addresses will be treated as either a connect or bind service. The }(hj0hhhNhNubj)}(h **addrlen**h]haddrlen}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubhm is calculated on each IPv4 and IPv6 address using sizeof(struct sockaddr_in) or sizeof(struct sockaddr_in6).}(hj0hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM]hjubh)}(h **Return**h]j)}(hjwh]hReturn}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMbhjubh)}(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.chMchjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#security_sctp_sk_clone (C function)c.security_sctp_sk_clonehNtauh1jhhhhhNhNubj")}(hhh](j')}(h`void security_sctp_sk_clone (struct sctp_association *asoc, struct sock *sk, struct sock *newsk)h]j-)}(h_void security_sctp_sk_clone(struct sctp_association *asoc, struct sock *sk, struct sock *newsk)h](j3)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMmubjE)}(h h]h }(hj˟hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjʟhMmubjV)}(hsecurity_sctp_sk_cloneh]j\)}(hsecurity_sctp_sk_cloneh]hsecurity_sctp_sk_clone}(hjݟhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjٟubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjʟhMmubjw)}(hD(struct sctp_association *asoc, struct sock *sk, struct sock *newsk)h](j})}(hstruct sctp_association *asoch](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hsctp_associationh]hsctp_association}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojߟsbc.security_sctp_sk_cloneasbuh1hhjubjE)}(h h]h }(hj7hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hasoch]hasoc}(hjRhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hstruct sock *skh](j8)}(hj;h]hstruct}(hjkhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjgubjE)}(h h]h }(hjxhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjgubh)}(hhh]j\)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j3c.security_sctp_sk_cloneasbuh1hhjgubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj\)}(hskh]hsk}(hj hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjgubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hstruct sock *newskh](j8)}(hj;h]hstruct}(hj۠hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjנubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjנubh)}(hhh]j\)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j3c.security_sctp_sk_cloneasbuh1hhjנubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjנubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjנubj\)}(hnewskh]hnewsk}(hj2hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjנubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhjʟhMmubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhjʟhMmubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hjʟhMmhjhhubj)}(hhh]h)}(hClone a SCTP sock's LSM stateh]hClone a SCTP sock’s LSM state}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMmhjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjʟhMmubeh}(h]h ](jfunctioneh"]h$]h&]j jjjtjjtjjjuh1j!hhhhhNhNubj)}(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]j)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMqhjxubj4)}(hhh](j9)}(h3``struct sctp_association *asoc`` SCTP association h](j?)}(h!``struct sctp_association *asoc``h]h)}(hjh]hstruct sctp_association *asoc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMnhjubjY)}(hhh]h)}(hSCTP associationh]hSCTP association}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMnhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMnhjubj9)}(h"``struct sock *sk`` original sock h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMohjСubjY)}(hhh]h)}(h original sockh]h original sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMohjubah}(h]h ]h"]h$]h&]uh1jXhjСubeh}(h]h ]h"]h$]h&]uh1j8hjhMohjubj9)}(h#``struct sock *newsk`` target sock h](j?)}(h``struct sock *newsk``h]h)}(hjh]hstruct sock *newsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMphj ubjY)}(hhh]h)}(h target sockh]h target sock}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMphj%ubah}(h]h ]h"]h$]h&]uh1jXhj ubeh}(h]h ]h"]h$]h&]uh1j8hj$hMphjubeh}(h]h ]h"]h$]h&]uh1j3hjxubh)}(h**Description**h]j)}(hjJh]h Description}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMrhjxubh)}(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).}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMqhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j,security_sctp_assoc_established (C function)!c.security_sctp_assoc_establishedhNtauh1jhhhhhNhNubj")}(hhh](j')}(hXint security_sctp_assoc_established (struct sctp_association *asoc, struct sk_buff *skb)h]j-)}(hWint security_sctp_assoc_established(struct sctp_association *asoc, struct sk_buff *skb)h](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM~ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjhM~ubjV)}(hsecurity_sctp_assoc_establishedh]j\)}(hsecurity_sctp_assoc_establishedh]hsecurity_sctp_assoc_established}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhM~ubjw)}(h4(struct sctp_association *asoc, struct sk_buff *skb)h](j})}(hstruct sctp_association *asoch](j8)}(hj;h]hstruct}(hj̢hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjȢubjE)}(h h]h }(hj٢hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjȢubh)}(hhh]j\)}(hsctp_associationh]hsctp_association}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojsb!c.security_sctp_assoc_establishedasbuh1hhjȢubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjȢubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjȢubj\)}(hasoch]hasoc}(hj%hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjȢubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjĢubj})}(hstruct sk_buff *skbh](j8)}(hj;h]hstruct}(hj>hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj:ubjE)}(h h]h }(hjKhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj:ubh)}(hhh]j\)}(hsk_buffh]hsk_buff}(hj\hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjYubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj^modnameN classnameNjsjv)}jy]j!c.security_sctp_assoc_establishedasbuh1hhj:ubjE)}(h h]h }(hjzhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj:ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj\)}(hskbh]hskb}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj:ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjĢubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhjhM~ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhjhM~ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hjhM~hjhhubj)}(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.chM~hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM~ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjףjjףjjjuh1j!hhhhhNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjߣubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjۣubj4)}(hhh](j9)}(h3``struct sctp_association *asoc`` SCTP association h](j?)}(h!``struct sctp_association *asoc``h]h)}(hjh]hstruct sctp_association *asoc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(hSCTP associationh]hSCTP association}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubj9)}(h<``struct sk_buff *skb`` packet establishing the association h](j?)}(h``struct sk_buff *skb``h]h)}(hj9h]hstruct sk_buff *skb}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj3ubjY)}(hhh]h)}(h#packet establishing the associationh]h#packet establishing the association}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhMhjOubah}(h]h ]h"]h$]h&]uh1jXhj3ubeh}(h]h ]h"]h$]h&]uh1j8hjNhMhjubeh}(h]h ]h"]h$]h&]uh1j3hjۣubh)}(h**Description**h]j)}(hjth]h Description}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjۣubh)}(hcPasses the **asoc** and **chunk->skb** of the association COOKIE_ACK packet to the security module.h](h Passes the }(hjhhhNhNubj)}(h**asoc**h]hasoc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**chunk->skb**h]h chunk->skb}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh= 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.chMhjۣubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$security_ib_pkey_access (C function)c.security_ib_pkey_accesshNtauh1jhhhhhNhNubj")}(hhh](j')}(hDint security_ib_pkey_access (void *sec, u64 subnet_prefix, u16 pkey)h]j-)}(hCint security_ib_pkey_access(void *sec, u64 subnet_prefix, u16 pkey)h](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjhMubjV)}(hsecurity_ib_pkey_accessh]j\)}(hsecurity_ib_pkey_accessh]hsecurity_ib_pkey_access}(hj%hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj!ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhMubjw)}(h((void *sec, u64 subnet_prefix, u16 pkey)h](j})}(h void *sech](j3)}(hvoidh]hvoid}(hjAhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj=ubjE)}(h h]h }(hjOhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj=ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=ubj\)}(hsech]hsec}(hjjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj=ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj9ubj})}(hu64 subnet_prefixh](h)}(hhh]j\)}(hu64h]hu64}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}joj'sbc.security_ib_pkey_accessasbuh1hhjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj\)}(h subnet_prefixh]h subnet_prefix}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj9ubj})}(hu16 pkeyh](h)}(hhh]j\)}(hu16h]hu16}(hjХhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjͥubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjҥmodnameN classnameNjsjv)}jy]jc.security_ib_pkey_accessasbuh1hhjɥubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjɥubj\)}(hpkeyh]hpkey}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjɥubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj9ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhjhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hjhMhjhhubj)}(hhh]h)}(h(Check if access to an IB pkey is allowedh]h(Check if access to an IB pkey 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 jjj>jj>jjjuh1j!hhhhhNhNubj)}(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]j)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjBubj4)}(hhh](j9)}(h``void *sec`` LSM blob h](j?)}(h ``void *sec``h]h)}(hjgh]h void *sec}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjeubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjaubjY)}(hhh]h)}(hLSM blobh]hLSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jXhjaubeh}(h]h ]h"]h$]h&]uh1j8hj|hMhj^ubj9)}(h0``u64 subnet_prefix`` subnet prefix of the port h](j?)}(h``u64 subnet_prefix``h]h)}(hjh]hu64 subnet_prefix}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(hsubnet prefix of the porth]hsubnet prefix of the port}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhj^ubj9)}(h``u16 pkey`` IB pkey h](j?)}(h ``u16 pkey``h]h)}(hj٦h]hu16 pkey}(hjۦhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjצubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjӦubjY)}(hhh]h)}(hIB pkeyh]hIB pkey}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjӦubeh}(h]h ]h"]h$]h&]uh1j8hjhMhj^ubeh}(h]h ]h"]h$]h&]uh1j3hjBubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjBubh)}(h6Check permission to access a pkey when modifying a QP.h]h6Check permission to access a pkey when modifying a QP.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjBubh)}(h **Return**h]j)}(hj;h]hReturn}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjBubh)}(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.chMhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j.security_ib_endport_manage_subnet (C function)#c.security_ib_endport_manage_subnethNtauh1jhhhhhNhNubj")}(hhh](j')}(hTint security_ib_endport_manage_subnet (void *sec, const char *dev_name, u8 port_num)h]j-)}(hSint security_ib_endport_manage_subnet(void *sec, const char *dev_name, u8 port_num)h](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj|hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj|hhhjhMubjV)}(h!security_ib_endport_manage_subneth]j\)}(h!security_ib_endport_manage_subneth]h!security_ib_endport_manage_subnet}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj|hhhjhMubjw)}(h.(void *sec, const char *dev_name, u8 port_num)h](j})}(h void *sech](j3)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubjE)}(h h]h }(hj˧hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hj٧hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hsech]hsec}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hconst char *dev_nameh](j8)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj3)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjubjE)}(h h]h }(hj(hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hdev_nameh]hdev_name}(hjChhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(h u8 port_numh](h)}(hhh]j\)}(hu8h]hu8}(hj_hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj\ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjamodnameN classnameNjsjv)}jy]j|)}jojsb#c.security_ib_endport_manage_subnetasbuh1hhjXubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjXubj\)}(hport_numh]hport_num}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjXubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj|hhhjhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjxhhhjhMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1j&hjhMhjuhhubj)}(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjϨjjϨjjjuh1j!hhhhhNhNubj)}(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]j)}(hj٨h]h Parameters}(hjۨhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjרubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjӨubj4)}(hhh](j9)}(h``void *sec`` LSM blob h](j?)}(h ``void *sec``h]h)}(hjh]h void *sec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(hLSM blobh]hLSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hj hMhjubj9)}(h(``const char *dev_name`` IB device name h](j?)}(h``const char *dev_name``h]h)}(hj1h]hconst char *dev_name}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj+ubjY)}(hhh]h)}(hIB device nameh]hIB device name}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMhjGubah}(h]h ]h"]h$]h&]uh1jXhj+ubeh}(h]h ]h"]h$]h&]uh1j8hjFhMhjubj9)}(h``u8 port_num`` port number h](j?)}(h``u8 port_num``h]h)}(hjjh]h u8 port_num}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjdubjY)}(hhh]h)}(h port numberh]h port number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjdubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubeh}(h]h ]h"]h$]h&]uh1j3hjӨubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjӨubh)}(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.chMhjӨubh)}(h **Return**h]j)}(hj̩h]hReturn}(hjΩhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjʩ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.}(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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'security_ib_alloc_security (C function)c.security_ib_alloc_securityhNtauh1jhhhhhNhNubj")}(hhh](j')}(h+int security_ib_alloc_security (void **sec)h]j-)}(h*int security_ib_alloc_security(void **sec)h](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj hhhjhMubjV)}(hsecurity_ib_alloc_securityh]j\)}(hsecurity_ib_alloc_securityh]hsecurity_ib_alloc_security}(hj2hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj.ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj hhhjhMubjw)}(h (void **sec)h]j})}(h void **sech](j3)}(hvoidh]hvoid}(hjNhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjJubjE)}(h h]h }(hj\hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjJubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj)}(hjh]h*}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubj\)}(hsech]hsec}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjJubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjFubah}(h]h ]h"]h$]h&]jtjuuh1jvhj hhhjhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj hhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hjhMhjhhubj)}(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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjƪjjƪjjjuh1j!hhhhhNhNubj)}(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]j)}(hjЪh]h Parameters}(hjҪhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjΪubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjʪubj4)}(hhh]j9)}(h``void **sec`` LSM blob h](j?)}(h``void **sec``h]h)}(hjh]h void **sec}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(hLSM blobh]hLSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1j3hjʪubh)}(h**Description**h]j)}(hj*h]h Description}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(ubah}(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.}(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]j)}(hjQh]hReturn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjʪubh)}(h*Returns 0 on success, non-zero on failure.h]h*Returns 0 on success, non-zero on failure.}(hjghhhNhNubah}(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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&security_ib_free_security (C function)c.security_ib_free_securityhNtauh1jhhhhhNhNubj")}(hhh](j')}(h*void security_ib_free_security (void *sec)h]j-)}(h)void security_ib_free_security(void *sec)h](j3)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjhMubjV)}(hsecurity_ib_free_securityh]j\)}(hsecurity_ib_free_securityh]hsecurity_ib_free_security}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhMubjw)}(h (void *sec)h]j})}(h void *sech](j3)}(hvoidh]hvoid}(hjӫhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjϫubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjϫubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϫubj\)}(hsech]hsec}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjϫubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj˫ubah}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhjhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hjhMhjhhubj)}(hhh]h)}(hFree an Infiniband LSM blobh]hFree an Infiniband 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 jjj>jj>jjjuh1j!hhhhhNhNubj)}(hg**Parameters** ``void *sec`` LSM blob **Description** Deallocate an Infiniband security structure.h](h)}(h**Parameters**h]j)}(hjHh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjBubj4)}(hhh]j9)}(h``void *sec`` LSM blob h](j?)}(h ``void *sec``h]h)}(hjgh]h void *sec}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjeubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjaubjY)}(hhh]h)}(hLSM blobh]hLSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj}ubah}(h]h ]h"]h$]h&]uh1jXhjaubeh}(h]h ]h"]h$]h&]uh1j8hj|hMhj^ubah}(h]h ]h"]h$]h&]uh1j3hjBubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjBubh)}(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.chMhjBubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'security_xfrm_policy_alloc (C function)c.security_xfrm_policy_allochNtauh1jhhhhhNhNubj")}(hhh](j')}(hiint security_xfrm_policy_alloc (struct xfrm_sec_ctx **ctxp, struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp)h]j-)}(hhint security_xfrm_policy_alloc(struct xfrm_sec_ctx **ctxp, struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp)h](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjhMubjV)}(hsecurity_xfrm_policy_alloch]j\)}(hsecurity_xfrm_policy_alloch]hsecurity_xfrm_policy_alloc}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhMubjw)}(hJ(struct xfrm_sec_ctx **ctxp, struct xfrm_user_sec_ctx *sec_ctx, gfp_t gfp)h](j})}(hstruct xfrm_sec_ctx **ctxph](j8)}(hj;h]hstruct}(hj$hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj ubjE)}(h h]h }(hj1hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubh)}(hhh]j\)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjBhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj?ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjDmodnameN classnameNjsjv)}jy]j|)}joj sbc.security_xfrm_policy_allocasbuh1hhj ubjE)}(h h]h }(hjbhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj ubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj\)}(hctxph]hctxp}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(h!struct xfrm_user_sec_ctx *sec_ctxh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hxfrm_user_sec_ctxh]hxfrm_user_sec_ctx}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjímodnameN classnameNjsjv)}jy]j^c.security_xfrm_policy_allocasbuh1hhjubjE)}(h h]h }(hj߭hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hsec_ctxh]hsec_ctx}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(h gfp_t gfph](h)}(hhh]j\)}(hgfp_th]hgfp_t}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j^c.security_xfrm_policy_allocasbuh1hhjubjE)}(h h]h }(hj4hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj\)}(hgfph]hgfp}(hjBhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhjhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj߬hhhjhMubah}(h]jڬah ](jjeh"]h$]h&]jj)jhuh1j&hjhMhjܬhhubj)}(hhh]h)}(hAllocate a xfrm policy LSM blobh]hAllocate a xfrm policy LSM blob}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjihhubah}(h]h ]h"]h$]h&]uh1jhjܬhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!hhhhhNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubj4)}(hhh](j9)}(hL``struct xfrm_sec_ctx **ctxp`` xfrm security context being added to the SPD h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(h,xfrm security context being added to the SPDh]h,xfrm security context being added to the SPD}(hjƮhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj®hMhjîubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hj®hMhjubj9)}(hK``struct xfrm_user_sec_ctx *sec_ctx`` security label provided by userspace h](j?)}(h%``struct xfrm_user_sec_ctx *sec_ctx``h]h)}(hjh]h!struct xfrm_user_sec_ctx *sec_ctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(h$security label provided by userspaceh]h$security label provided by userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubj9)}(h``gfp_t gfp`` gfp flags h](j?)}(h ``gfp_t gfp``h]h)}(hjh]h gfp_t gfp}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(h gfp flagsh]h gfp flags}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hMhj5ubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hj4hMhjubeh}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hjZh]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(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 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.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&security_xfrm_policy_free (C function)c.security_xfrm_policy_freehNtauh1jhhhhhNhNubj")}(hhh](j')}(h9void security_xfrm_policy_free (struct xfrm_sec_ctx *ctx)h]j-)}(h8void security_xfrm_policy_free(struct xfrm_sec_ctx *ctx)h](j3)}(hvoidh]hvoid}(hjƯhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj¯hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjկhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj¯hhhjԯhMubjV)}(hsecurity_xfrm_policy_freeh]j\)}(hsecurity_xfrm_policy_freeh]hsecurity_xfrm_policy_free}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj¯hhhjԯhMubjw)}(h(struct xfrm_sec_ctx *ctx)h]j})}(hstruct xfrm_sec_ctx *ctxh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hj!hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj#modnameN classnameNjsjv)}jy]j|)}jojsbc.security_xfrm_policy_freeasbuh1hhjubjE)}(h h]h }(hjAhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hctxh]hctx}(hj\hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubah}(h]h ]h"]h$]h&]jtjuuh1jvhj¯hhhjԯhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhjԯhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hjԯhMhjhhubj)}(hhh]h)}(hFree a xfrm security contexth]hFree a xfrm security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjԯhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!hhhhhNhNubj)}(h**Parameters** ``struct xfrm_sec_ctx *ctx`` xfrm security context **Description** Free LSM resources associated with **ctx**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubj4)}(hhh]j9)}(h3``struct xfrm_sec_ctx *ctx`` xfrm security context h](j?)}(h``struct xfrm_sec_ctx *ctx``h]h)}(hjǰh]hstruct xfrm_sec_ctx *ctx}(hjɰhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjŰubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(hxfrm security contexth]hxfrm security context}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjܰhMhjݰubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjܰhMhjubah}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h+Free LSM resources associated with **ctx**.h](h#Free LSM resources associated with }(hjhhhNhNubj)}(h**ctx**h]hctx}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(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&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&security_xfrm_state_alloc (C function)c.security_xfrm_state_allochNtauh1jhhhhhNhNubj")}(hhh](j')}(hWint security_xfrm_state_alloc (struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx)h]j-)}(hVint security_xfrm_state_alloc(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx)h](j3)}(hinth]hint}(hjYhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjUhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM'ubjE)}(h h]h }(hjhhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjUhhhjghM'ubjV)}(hsecurity_xfrm_state_alloch]j\)}(hsecurity_xfrm_state_alloch]hsecurity_xfrm_state_alloc}(hjzhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjvubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjUhhhjghM'ubjw)}(h9(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx)h](j})}(hstruct xfrm_state *xh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(h xfrm_stateh]h xfrm_state}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}joj|sbc.security_xfrm_state_allocasbuh1hhjubjE)}(h h]h }(hjԱhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hxh]hx}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(h!struct xfrm_user_sec_ctx *sec_ctxh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hxfrm_user_sec_ctxh]hxfrm_user_sec_ctx}(hj&hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj#ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj(modnameN classnameNjsjv)}jy]jбc.security_xfrm_state_allocasbuh1hhjubjE)}(h h]h }(hjDhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hsec_ctxh]hsec_ctx}(hj_hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjUhhhjghM'ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjQhhhjghM'ubah}(h]jLah ](jjeh"]h$]h&]jj)jhuh1j&hjghM'hjNhhubj)}(hhh]h)}(hAllocate a xfrm state LSM blobh]hAllocate a xfrm state 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&]uh1jhjNhhhjghM'ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!hhhhhNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM+hjubj4)}(hhh](j9)}(h;``struct xfrm_state *x`` xfrm state being added to the SAD h](j?)}(h``struct xfrm_state *x``h]h)}(hjʲh]hstruct xfrm_state *x}(hj̲hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȲubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM(hjIJubjY)}(hhh]h)}(h!xfrm state being added to the SADh]h!xfrm state being added to the SAD}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj߲hM(hjubah}(h]h ]h"]h$]h&]uh1jXhjIJubeh}(h]h ]h"]h$]h&]uh1j8hj߲hM(hjubj9)}(hK``struct xfrm_user_sec_ctx *sec_ctx`` security label provided by userspace h](j?)}(h%``struct xfrm_user_sec_ctx *sec_ctx``h]h)}(hjh]h!struct xfrm_user_sec_ctx *sec_ctx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM)hjubjY)}(hhh]h)}(h$security label provided by userspaceh]h$security label provided by userspace}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM)hjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhM)hjubeh}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hj>h]h Description}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM+hjubh)}(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 }(hjThhhNhNubj)}(h**x->security**h]h x->security}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubhu field; the security field is initialized to NULL when the xfrm_state is allocated. Set the context to correspond to }(hjThhhNhNubj)}(h **sec_ctx**h]hsec_ctx}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubh.}(hjThhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM*hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM.hjubh)}(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.chM/hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'security_xfrm_state_delete (C function)c.security_xfrm_state_deletehNtauh1jhhhhhNhNubj")}(hhh](j')}(h5int security_xfrm_state_delete (struct xfrm_state *x)h]j-)}(h4int security_xfrm_state_delete(struct xfrm_state *x)h](j3)}(hinth]hint}(hjγhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjʳhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMKubjE)}(h h]h }(hjݳhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjʳhhhjܳhMKubjV)}(hsecurity_xfrm_state_deleteh]j\)}(hsecurity_xfrm_state_deleteh]hsecurity_xfrm_state_delete}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjʳhhhjܳhMKubjw)}(h(struct xfrm_state *x)h]j})}(hstruct xfrm_state *xh](j8)}(hj;h]hstruct}(hj hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(h xfrm_stateh]h xfrm_state}(hj)hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj&ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj+modnameN classnameNjsjv)}jy]j|)}jojsbc.security_xfrm_state_deleteasbuh1hhjubjE)}(h h]h }(hjIhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hjh]hx}(hjdhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubah}(h]h ]h"]h$]h&]jtjuuh1jvhjʳhhhjܳhMKubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjƳhhhjܳhMKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hjܳhMKhjóhhubj)}(hhh]h)}(h)Check if deleting a xfrm state is allowedh]h)Check if deleting a xfrm state is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMKhjhhubah}(h]h ]h"]h$]h&]uh1jhjóhhhjܳhMKubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!hhhhhNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMOhjubj4)}(hhh]j9)}(h$``struct xfrm_state *x`` xfrm state h](j?)}(h``struct xfrm_state *x``h]h)}(hjδh]hstruct xfrm_state *x}(hjдhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj̴ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMLhjȴubjY)}(hhh]h)}(h xfrm stateh]h xfrm state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMLhjubah}(h]h ]h"]h$]h&]uh1jXhjȴubeh}(h]h ]h"]h$]h&]uh1j8hjhMLhjŴubah}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hj h]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMNhjubh)}(h"Authorize deletion of x->security.h]h"Authorize deletion of x->security.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMMhjubh)}(h **Return**h]j)}(hj0h]hReturn}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMOhjubh)}(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.chMPhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!security_locked_down (C function)c.security_locked_downhNtauh1jhhhhhNhNubj")}(hhh](j')}(h4int security_locked_down (enum lockdown_reason what)h]j-)}(h3int security_locked_down(enum lockdown_reason what)h](j3)}(hinth]hint}(hjuhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjqhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjqhhhjhMubjV)}(hsecurity_locked_downh]j\)}(hsecurity_locked_downh]hsecurity_locked_down}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjqhhhjhMubjw)}(h(enum lockdown_reason what)h]j})}(henum lockdown_reason whath](j8)}(hjW;h]henum}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hlockdown_reasonh]hlockdown_reason}(hjеhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj͵ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjҵmodnameN classnameNjsjv)}jy]j|)}jojsbc.security_locked_downasbuh1hhjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj\)}(hwhath]hwhat}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubah}(h]h ]h"]h$]h&]jtjuuh1jvhjqhhhjhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjmhhhjhMubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1j&hjhMhjjhhubj)}(hhh]h)}(h$Check if a kernel feature is allowedh]h$Check if a kernel feature 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&]uh1jhjjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjj@jj@jjjuh1j!hhhhhNhNubj)}(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]j)}(hjJh]h Parameters}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjDubj4)}(hhh]j9)}(h7``enum lockdown_reason what`` requested kernel feature h](j?)}(h``enum lockdown_reason what``h]h)}(hjih]henum lockdown_reason what}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjcubjY)}(hhh]h)}(hrequested kernel featureh]hrequested kernel feature}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhjubah}(h]h ]h"]h$]h&]uh1jXhjcubeh}(h]h ]h"]h$]h&]uh1j8hj~hMhj`ubah}(h]h ]h"]h$]h&]uh1j3hjDubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjDubh)}(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.chMhjDubh)}(h **Return**h]j)}(hj˶h]hReturn}(hjͶhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjɶubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjDubh)}(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.chMhjDubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j security_bdev_alloc (C function)c.security_bdev_allochNtauh1jhhhhhNhNubj")}(hhh](j')}(h3int security_bdev_alloc (struct block_device *bdev)h]j-)}(h2int security_bdev_alloc(struct block_device *bdev)h](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM$ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj hhhjhM$ubjV)}(hsecurity_bdev_alloch]j\)}(hsecurity_bdev_alloch]hsecurity_bdev_alloc}(hj1hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj-ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj hhhjhM$ubjw)}(h(struct block_device *bdev)h]j})}(hstruct block_device *bdevh](j8)}(hj;h]hstruct}(hjMhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjIubjE)}(h h]h }(hjZhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjIubh)}(hhh]j\)}(h block_deviceh]h block_device}(hjkhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjhubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmmodnameN classnameNjsjv)}jy]j|)}joj3sbc.security_bdev_allocasbuh1hhjIubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjIubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjIubj\)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjIubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjEubah}(h]h ]h"]h$]h&]jtjuuh1jvhj hhhjhM$ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhjhM$ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hjhM$hjhhubj)}(hhh]h)}(h Allocate a block device LSM blobh]h Allocate a block device LSM blob}(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&]uh1jhjhhhjhM$ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!hhhhhNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM(hjubj4)}(hhh]j9)}(h+``struct block_device *bdev`` block device h](j?)}(h``struct block_device *bdev``h]h)}(hjh]hstruct block_device *bdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM%hj ubjY)}(hhh]h)}(h block deviceh]h block device}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hM%hj'ubah}(h]h ]h"]h$]h&]uh1jXhj ubeh}(h]h ]h"]h$]h&]uh1j8hj&hM%hjubah}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hjLh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM'hjubh)}(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 }(hjbhhhNhNubj)}(h**bdev->bd_security**h]hbdev->bd_security}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubhR. The security field is initialized to NULL when the bdev structure is allocated.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM&hjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM*hjubh)}(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.chM+hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jsecurity_bdev_free (C function)c.security_bdev_freehNtauh1jhhhhhNhNubj")}(hhh](j')}(h3void security_bdev_free (struct block_device *bdev)h]j-)}(h2void security_bdev_free(struct block_device *bdev)h](j3)}(hvoidh]hvoid}(hjʸhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjƸhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM>ubjE)}(h h]h }(hjٸhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjƸhhhjظhM>ubjV)}(hsecurity_bdev_freeh]j\)}(hsecurity_bdev_freeh]hsecurity_bdev_free}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjƸhhhjظhM>ubjw)}(h(struct block_device *bdev)h]j})}(hstruct block_device *bdevh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(h block_deviceh]h block_device}(hj%hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj"ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj'modnameN classnameNjsjv)}jy]j|)}jojsbc.security_bdev_freeasbuh1hhjubjE)}(h h]h }(hjEhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hbdevh]hbdev}(hj`hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubah}(h]h ]h"]h$]h&]jtjuuh1jvhjƸhhhjظhM>ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj¸hhhjظhM>ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hjظhM>hjhhubj)}(hhh]h)}(hFree a block device's LSM blobh]h Free a block device’s 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&]uh1jhjhhhjظhM>ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!hhhhhNhNubj)}(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]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMBhjubj4)}(hhh]j9)}(h+``struct block_device *bdev`` block device h](j?)}(h``struct block_device *bdev``h]h)}(hj˹h]hstruct block_device *bdev}(hj͹hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjɹubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM?hjŹubjY)}(hhh]h)}(h block deviceh]h block device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM?hjubah}(h]h ]h"]h$]h&]uh1jXhjŹubeh}(h]h ]h"]h$]h&]uh1j8hjhM?hj¹ubah}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMAhjubh)}(hMDeallocate the bdev security structure and set **bdev->bd_security** to NULL.h](h/Deallocate the bdev security structure and set }(hjhhhNhNubj)}(h**bdev->bd_security**h]hbdev->bd_security}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh to NULL.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM@hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'security_bdev_setintegrity (C function)c.security_bdev_setintegrityhNtauh1jhhhhhNhNubj")}(hhh](j')}(hxint security_bdev_setintegrity (struct block_device *bdev, enum lsm_integrity_type type, const void *value, size_t size)h]j-)}(hwint security_bdev_setintegrity(struct block_device *bdev, enum lsm_integrity_type type, const void *value, size_t size)h](j3)}(hinth]hint}(hj]hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjYhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMPubjE)}(h h]h }(hjlhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjYhhhjkhMPubjV)}(hsecurity_bdev_setintegrityh]j\)}(hsecurity_bdev_setintegrityh]hsecurity_bdev_setintegrity}(hj~hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjzubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjYhhhjkhMPubjw)}(hY(struct block_device *bdev, enum lsm_integrity_type type, const void *value, size_t size)h](j})}(hstruct block_device *bdevh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(h block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojsbc.security_bdev_setintegrityasbuh1hhjubjE)}(h h]h }(hjغhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(henum lsm_integrity_type typeh](j8)}(hjW;h]henum}(hj hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hlsm_integrity_typeh]hlsm_integrity_type}(hj*hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj'ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj,modnameN classnameNjsjv)}jy]jԺc.security_bdev_setintegrityasbuh1hhjubjE)}(h h]h }(hjHhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj\)}(htypeh]htype}(hjVhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hconst void *valueh](j8)}(hj h]hconst}(hjohhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjkubjE)}(h h]h }(hj|hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjkubj3)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjkubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubj\)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjkubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(h size_t sizeh](h)}(hhh]j\)}(hsize_th]hsize_t}(hjϻhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj̻ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjѻmodnameN classnameNjsjv)}jy]jԺc.security_bdev_setintegrityasbuh1hhjȻubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjȻubj\)}(hsizeh]hsize}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjȻubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjYhhhjkhMPubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjUhhhjkhMPubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1j&hjkhMPhjRhhubj)}(hhh]h)}(hSet the device's integrity datah]h!Set the device’s integrity data}(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&]uh1jhjRhhhjkhMPubeh}(h]h ](jfunctioneh"]h$]h&]j jjj=jj=jjjuh1j!hhhhhNhNubj)}(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]j)}(hjGh]h Parameters}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjEubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMThjAubj4)}(hhh](j9)}(h+``struct block_device *bdev`` block device h](j?)}(h``struct block_device *bdev``h]h)}(hjfh]hstruct block_device *bdev}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMQhj`ubjY)}(hhh]h)}(h block deviceh]h block device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMQhj|ubah}(h]h ]h"]h$]h&]uh1jXhj`ubeh}(h]h ]h"]h$]h&]uh1j8hj{hMQhj]ubj9)}(hU``enum lsm_integrity_type type`` type of integrity, e.g. hash digest, signature, etc h](j?)}(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&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMRhjubjY)}(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&]uh1hhjhMRhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMRhj]ubj9)}(h*``const void *value`` the integrity value h](j?)}(h``const void *value``h]h)}(hjؼh]hconst void *value}(hjڼhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjּubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMShjҼubjY)}(hhh]h)}(hthe integrity valueh]hthe integrity value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMShjubah}(h]h ]h"]h$]h&]uh1jXhjҼubeh}(h]h ]h"]h$]h&]uh1j8hjhMShj]ubj9)}(h,``size_t size`` size of the integrity value h](j?)}(h``size_t size``h]h)}(hjh]h size_t size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMThj ubjY)}(hhh]h)}(hsize of the integrity valueh]hsize of the integrity value}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMThj'ubah}(h]h ]h"]h$]h&]uh1jXhj ubeh}(h]h ]h"]h$]h&]uh1j8hj&hMThj]ubeh}(h]h ]h"]h$]h&]uh1j3hjAubh)}(h**Description**h]j)}(hjLh]h Description}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMVhjAubh)}(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 }(hjbhhhNhNubj)}(h **value**h]hvalue}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubhX8 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.}(hjbhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMUhjAubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMghjAubh)}(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.chMhhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubeh}(h]!linux-security-module-developmentah ]h"]!linux security module developmentah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjܽerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}jjs nametypes}jsh}(jhjj(jjjjjRjWju jz j j jGjLjjjjjjjx j} je#jj#j%j%j4*j9*j-j -j/j/j2j2j5j5j@8jE8j~:j:j>j >j@j@jCjCjEjEjHjHjJjJj2Mj7MjrPjwPjzRjRjUjUjWj$WjlYjqYj[j[j_]jd]j_j_jbjbjPejUejfjfjRhjWhjjjjjmjmjpjpj`sjesjvj vjYxj^xjzjzj}j}jjj7j<jjjjj]jbjjj=jBjejjjjj$j)jujzjĔjɔj<jAj_jdjיjܙjLjQjjjjjjjsjxjj jjjڬj߬jjjLjQjjƳjhjmjjjj¸jPjUu 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.