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.chMMubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj~ hhhj hMMubjV)}(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 hMMubjw)}(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 hMMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjz hhhj hMMubah}(h]ju ah ](jjeh"]h$]h&]jj)jhuh1j&hj hMMhjw 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.chMChj0 hhubah}(h]h ]h"]h$]h&]uh1jhjw hhhj hMMubeh}(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.chMGhjO 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.chMDhjn ubjY)}(hhh]h)}(hfilesystem superblockh]hfilesystem superblock}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMDhj ubah}(h]h ]h"]h$]h&]uh1jXhjn ubeh}(h]h ]h"]h$]h&]uh1j8hj hMDhjk 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.chMEhj ubjY)}(hhh]h)}(hbinary mount optionsh]hbinary mount options}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMEhj ubah}(h]h ]h"]h$]h&]uh1jXhj ubeh}(h]h ]h"]h$]h&]uh1j8hj hMEhjk 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.chMFhj ubjY)}(hhh]h)}(hkernel flags (in)h]hkernel flags (in)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMFhj ubah}(h]h ]h"]h$]h&]uh1jXhj ubeh}(h]h ]h"]h$]h&]uh1j8hj hMFhjk 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.chMGhj ubjY)}(hhh]h)}(hkernel flags (out)h]hkernel flags (out)}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4 hMGhj5 ubah}(h]h ]h"]h$]h&]uh1jXhj ubeh}(h]h ]h"]h$]h&]uh1j8hj4 hMGhjk 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.chMIhjO 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.chMIhjO 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.chMKhjO 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.chMKhjO 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.chMjubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj hhhj hMjubjV)}(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 hMjubjw)}(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 hMjubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj hhhj hMjubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j&hj hMjhj hhubj)}(hhh]h)}(h"Duplicate superblock mount optionsh]h"Duplicate superblock mount options}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM`hjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMjubeh}(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.chMdhjubj4)}(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.chMahjubjY)}(hhh]h)}(hsource superblockh]hsource superblock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMahjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMahjubj9)}(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.chMbhj5ubjY)}(hhh]h)}(hdestination superblockh]hdestination superblock}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhMbhjQubah}(h]h ]h"]h$]h&]uh1jXhj5ubeh}(h]h ]h"]h$]h&]uh1j8hjPhMbhjubj9)}(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.chMchjnubjY)}(hhh]h)}(hkernel flags (in)h]hkernel flags (in)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMchjubah}(h]h ]h"]h$]h&]uh1jXhjnubeh}(h]h ]h"]h$]h&]uh1j8hjhMchjubj9)}(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.chMdhjubjY)}(hhh]h)}(hkernel flags (out)h]hkernel flags (out)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMdhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMdhjubeh}(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.chMfhjubh)}(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.chMfhjubh)}(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.chMhhjubh)}(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.chMhhjubeh}(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, struct qstr *name, const struct cred *old, struct cred *new)h]j-)}(hint security_dentry_create_files_as(struct dentry *dentry, int mode, 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.chMubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjhMubjV)}(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&]jtjuuh1jUhjhhhjhMubjw)}(h^(struct dentry *dentry, int mode, 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})}(hstruct qstr *nameh](j8)}(hj;h]hstruct}(hjphhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjlubjE)}(h h]h }(hj}hhhNhNubah}(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 }(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 }(hj7hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(holdh]hold}(hjRhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hstruct cred *newh](j8)}(hj;h]hstruct}(hjkhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjgubjE)}(h h]h }(hjxhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjgubh)}(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_asasbuh1hhjgubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj\)}(hnewh]hnew}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjgubeh}(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)}(hPerform dentry initializationh]hPerform dentry initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!hhhhhNWhNubj)}(hXU**Parameters** ``struct dentry *dentry`` the dentry to initialize ``int mode`` mode used to determine resource type ``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)}(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.chMhjubj4)}(hhh](j9)}(h3``struct dentry *dentry`` the dentry to initialize 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)}(hthe dentry to initializeh]hthe dentry to initialize}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMhjCubah}(h]h ]h"]h$]h&]uh1jXhj'ubeh}(h]h ]h"]h$]h&]uh1j8hjBhMhj$ubj9)}(h2``int mode`` mode used to determine resource type h](j?)}(h ``int mode``h]h)}(hjfh]hint mode}(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.chMhj`ubjY)}(hhh]h)}(h$mode used to determine resource typeh]h$mode used to determine resource type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1jXhj`ubeh}(h]h ]h"]h$]h&]uh1j8hj{hMhj$ubj9)}(h6``struct qstr *name`` name of the last path component h](j?)}(h``struct qstr *name``h]h)}(hjh]hstruct 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.chMhjubjY)}(hhh]h)}(hname of the last path componenth]hname of the last path component}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhj$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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(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)}(hjh]hstruct cred *new}(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)}(hcreds to modifyh]hcreds to modify}(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&]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.chMhjubh)}(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.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h **Return**h]j)}(hjsh]hReturn}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjqubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubeh}(h]h ] kernelindentah"]h$]h&]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.chMubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjhMubjV)}(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&]jtjuuh1jUhjhhhjhMubjw)}(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&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojsbc.security_inode_init_securityasbuh1hhjubjE)}(h h]h }(hj3hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hinodeh]hinode}(hjNhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hstruct inode *dirh](j8)}(hj;h]hstruct}(hjghhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjcubjE)}(h h]h }(hjthhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjcubh)}(hhh]j\)}(hinodeh]hinode}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j/c.security_inode_init_securityasbuh1hhjcubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjcubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubj\)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjcubeh}(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}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hqstrh]hqstr}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j/c.security_inode_init_securityasbuh1hhjubjE)}(h h]h }(hj.hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hqstrh]hqstr}(hjIhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hconst initxattrs initxattrsh](j8)}(hj h]hconst}(hjbhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj^ubjE)}(h h]h }(hjohhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj^ubh)}(hhh]j\)}(h initxattrsh]h initxattrs}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj}ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j/c.security_inode_init_securityasbuh1hhj^ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj^ubj\)}(h initxattrsh]h initxattrs}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj^ubeh}(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}(hjhhhNhNubah}(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,jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hjhMhjhhubj)}(hhh]h)}(h!Initialize an inode's LSM contexth]h#Initialize an inode’s LSM context}(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 jjj0jj0jjjuh1j!hhhhhNhNubj)}(hXl**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)}(hj:h]h Parameters}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj4ubj4)}(hhh](j9)}(h"``struct inode *inode`` the inode h](j?)}(h``struct inode *inode``h]h)}(hjYh]hstruct inode *inode}(hj[hhhNhNubah}(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.chMhjSubjY)}(hhh]h)}(h the inodeh]h the inode}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jXhjSubeh}(h]h ]h"]h$]h&]uh1j8hjnhMhjPubj9)}(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.chMhjubjY)}(hhh]h)}(hparent directoryh]hparent directory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjPubj9)}(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.chMhjubjY)}(hhh]h)}(hlast component of the pathnameh]hlast component of the pathname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjPubj9)}(hB``const initxattrs initxattrs`` callback function to write xattrs h](j?)}(h``const initxattrs initxattrs``h]h)}(hjh]hconst initxattrs initxattrs}(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!callback function to write xattrsh]h!callback function to write xattrs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjPubj9)}(h+``void *fs_data`` filesystem specific data h](j?)}(h``void *fs_data``h]h)}(hj=h]h void *fs_data}(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.chMhj7ubjY)}(hhh]h)}(hfilesystem specific datah]hfilesystem specific data}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhMhjSubah}(h]h ]h"]h$]h&]uh1jXhj7ubeh}(h]h ]h"]h$]h&]uh1j8hjRhMhjPubeh}(h]h ]h"]h$]h&]uh1j3hj4ubh)}(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.chMhj4ubh)}(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.chMhj4ubh)}(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.chMhj4ubh)}(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.chMhj4ubj4)}(hhh]j9)}(hReturns 0 if the LSM successfully initialized all of the inode security attributes that are required, negative values otherwise.h](j?)}(h>Returns 0 if the LSM successfully initialized all of the inodeh]h>Returns 0 if the LSM successfully initialized all of the inode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(hAsecurity attributes that are required, negative values otherwise.h]hAsecurity 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.chMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(h]h ]h"]h$]h&]uh1j3hj4ubeh}(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&]uh1j2hjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMfubjE)}(h h]h }(hj-hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhj,hMfubjV)}(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&]jtjuuh1jUhjhhhj,hMfubjw)}(hO(const struct path *dir, struct dentry *dentry, umode_t mode, unsigned int dev)h](j})}(hconst struct path *dirh](j8)}(hj h]hconst}(hj[hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjWubjE)}(h h]h }(hjhhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjWubj8)}(hj;h]hstruct}(hjvhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjWubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjWubh)}(hhh]j\)}(hpathh]hpath}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojAsbc.security_path_mknodasbuh1hhjWubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj\)}(hdirh]hdir}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjWubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjSubj})}(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 }(hj$hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hdentryh]hdentry}(hj?hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjSubj})}(h umode_t modeh](h)}(hhh]j\)}(humode_th]humode_t}(hj[hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjXubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj]modnameN classnameNjsjv)}jy]jc.security_path_mknodasbuh1hhjTubjE)}(h h]h }(hjyhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjTubj\)}(hmodeh]hmode}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjTubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjSubj})}(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|hjSubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhj,hMfubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhj,hMfubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hj,hMfhjhhubj)}(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.chM[hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hMfubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!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)}(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_hjubj4)}(hhh](j9)}(h,``const struct path *dir`` parent directory h](j?)}(h``const struct path *dir``h]h)}(hjCh]hconst struct path *dir}(hjEhhhNhNubah}(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\hj=ubjY)}(hhh]h)}(hparent directoryh]hparent directory}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhM\hjYubah}(h]h ]h"]h$]h&]uh1jXhj=ubeh}(h]h ]h"]h$]h&]uh1j8hjXhM\hj:ubj9)}(h#``struct dentry *dentry`` new file h](j?)}(h``struct dentry *dentry``h]h)}(hj|h]hstruct dentry *dentry}(hj~hhhNhNubah}(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]hjvubjY)}(hhh]h)}(hnew fileh]hnew file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM]hjubah}(h]h ]h"]h$]h&]uh1jXhjvubeh}(h]h ]h"]h$]h&]uh1j8hjhM]hj: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.chM^hjubjY)}(hhh]h)}(h new file modeh]h new file mode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM^hjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhM^hj: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.chM_hjubjY)}(hhh]h)}(h device numberh]h device number}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM_hj ubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hj hM_hj: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.chMahjubh)}(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.chMahjubh)}(h **Return**h]j)}(hjP h]hReturn}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMdhjubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjf hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMdhjubeh}(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*}(hj9!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubj\)}(hdirh]hdir}(hjF!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&]uh1j7hj[!ubjE)}(h h]h }(hjl!hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj[!ubh)}(hhh]j\)}(hdentryh]hdentry}(hj}!hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjz!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)}(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|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]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.chM~hj%"hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj hMubeh}(h]h ](jfunctioneh"]h$]h&]j jjj@"jj@"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)}(hjJ"h]h Parameters}(hjL"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjH"ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjD"ubj4)}(hhh](j9)}(h,``const struct path *dir`` parent directory h](j?)}(h``const struct path *dir``h]h)}(hji"h]hconst struct path *dir}(hjk"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjg"ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjc"ubjY)}(hhh]h)}(hparent directoryh]hparent directory}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~"hMhj"ubah}(h]h ]h"]h$]h&]uh1jXhjc"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&]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"hMhj`"ubeh}(h]h ]h"]h$]h&]uh1j3hjD"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.chMhjD"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.chMhjD"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.chMhjD"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.chMhjD"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}(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_unlinkh]j\)}(hsecurity_path_unlinkh]hsecurity_path_unlink}(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)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}(hj3$hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj#ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj#ubj})}(hstruct dentry *dentryh](j8)}(hj;h]hstruct}(hjL$hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjH$ubjE)}(h h]h }(hjY$hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjH$ubh)}(hhh]j\)}(hdentryh]hdentry}(hjj$hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjg$ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjl$modnameN classnameNjsjv)}jy]j$c.security_path_unlinkasbuh1hhjH$ubjE)}(h h]h }(hj$hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjH$ubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjH$ubj\)}(hdentryh]hdentry}(hj$hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjH$ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj#ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj~#hhhj#hMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjz#hhhj#hMubah}(h]ju#ah ](jjeh"]h$]h&]jj)jhuh1j&hj#hMhjw#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&]uh1jhjw#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)}(hjG%h]hstruct dentry *dentry}(hjI%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjE%ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjA%ubjY)}(hhh]h)}(hfileh]hfile}(hj`%hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\%hMhj]%ubah}(h]h ]h"]h$]h&]uh1jXhjA%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)}(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 }(hj8&hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj'&ubj8)}(hj;h]hstruct}(hjF&hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj'&ubjE)}(h h]h }(hjS&hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj'&ubh)}(hhh]j\)}(hpathh]hpath}(hjd&hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hja&ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjf&modnameN classnameNjsjv)}jy]j|)}joj&sbc.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\)}(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]j&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 }(hj5'hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj$'ubj8)}(hj;h]hstruct}(hjC'hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj$'ubjE)}(h h]h }(hjP'hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj$'ubh)}(hhh]j\)}(hpathh]hpath}(hja'hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj^'ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjc'modnameN classnameNjsjv)}jy]j&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\)}(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]j&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 }(hj1(hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj(ubj3)}(hinth]hint}(hj?(hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj(ubjE)}(h h]h }(hjM(hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj(ubj\)}(hflagsh]hflags}(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)}(h#Check if renaming a file is allowedh]h#Check if renaming a file is allowed}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj(hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj%hMubeh}(h]h ](jfunctioneh"]h$]h&]j 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)}(hj8)h]hconst struct path *new_dir}(hj:)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6)ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj2)ubjY)}(hhh]h)}(h parent directory of the new fileh]h parent directory of the new file}(hjQ)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjM)hMhjN)ubah}(h]h ]h"]h$]h&]uh1jXhj2)ubeh}(h]h ]h"]h$]h&]uh1j8hjM)hMhj(ubj9)}(h+``struct dentry *new_dentry`` the new file h](j?)}(h``struct dentry *new_dentry``h]h)}(hjq)h]hstruct dentry *new_dentry}(hjs)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjo)ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjk)ubjY)}(hhh]h)}(h the new fileh]h the new file}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj)ubah}(h]h ]h"]h$]h&]uh1jXhjk)ubeh}(h]h ]h"]h$]h&]uh1j8hj)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}(hjQ*hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjM*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&]uh1jDhjM*hhhj_*hM;ubjV)}(hsecurity_inode_createh]j\)}(hsecurity_inode_createh]hsecurity_inode_create}(hjr*hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjn*ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjM*hhhj_*hM;ubjw)}(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&]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|)}jojt*sbc.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\)}(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&]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*}(hjJ+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubj\)}(hdentryh]hdentry}(hjW+hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj*ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj*ubj})}(h umode_t modeh](h)}(hhh]j\)}(humode_th]humode_t}(hjs+hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjp+ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetju+modnameN classnameNjsjv)}jy]j*c.security_inode_createasbuh1hhjl+ubjE)}(h h]h }(hj+hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjl+ubj\)}(hmodeh]hmode}(hj+hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjl+ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj*ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjM*hhhj_*hM;ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjI*hhhj_*hM;ubah}(h]jD*ah ](jjeh"]h$]h&]jj)jhuh1j&hj_*hM;hjF*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.chM2hj+hhubah}(h]h ]h"]h$]h&]uh1jhjF*hhhj_*hM;ubeh}(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.chM6hj+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.chM3hj,ubjY)}(hhh]h)}(hthe parent directoryh]hthe parent directory}(hj#,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hM3hj ,ubah}(h]h ]h"]h$]h&]uh1jXhj,ubeh}(h]h ]h"]h$]h&]uh1j8hj,hM3hj,ubj9)}(h1``struct dentry *dentry`` the file being created h](j?)}(h``struct dentry *dentry``h]h)}(hjC,h]hstruct dentry *dentry}(hjE,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjA,ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM4hj=,ubjY)}(hhh]h)}(hthe file being createdh]hthe file being created}(hj\,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX,hM4hjY,ubah}(h]h ]h"]h$]h&]uh1jXhj=,ubeh}(h]h ]h"]h$]h&]uh1j8hjX,hM4hj,ubj9)}(h%``umode_t mode`` requested file mode h](j?)}(h``umode_t mode``h]h)}(hj|,h]h umode_t mode}(hj~,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjz,ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM5hjv,ubjY)}(hhh]h)}(hrequested file modeh]hrequested file mode}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hM5hj,ubah}(h]h ]h"]h$]h&]uh1jXhjv,ubeh}(h]h ]h"]h$]h&]uh1j8hj,hM5hj,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.chM7hj+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.chM7hj+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.chM9hj+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.chM9hj+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 }(hj2-hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj-hhhj1-hMubjV)}(hsecurity_inode_mkdirh]j\)}(hsecurity_inode_mkdirh]hsecurity_inode_mkdir}(hjD-hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj@-ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj-hhhj1-hMubjw)}(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&]uh1j7hj\-ubjE)}(h h]h }(hjm-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|)}jojF-sbc.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\)}(hdirh]hdir}(hj-hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj\-ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjX-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|hjX-ubj})}(h umode_t modeh](h)}(hhh]j\)}(humode_th]humode_t}(hjE.hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjB.ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjG.modnameN classnameNjsjv)}jy]j-c.security_inode_mkdirasbuh1hhj>.ubjE)}(h h]h }(hjc.hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj>.ubj\)}(hmodeh]hmode}(hjq.hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj>.ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjX-ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj-hhhj1-hMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj-hhhj1-hMubah}(h]j-ah ](jjeh"]h$]h&]jj)jhuh1j&hj1-hMhj-hhubj)}(hhh]h)}(h+Check if creation a new director is allowedh]h+Check if creation a new director 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-hhhj1-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)}(hjN/h]h umode_t mode}(hjP/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL/ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjH/ubjY)}(hhh]h)}(hnew directory modeh]hnew directory mode}(hjg/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjc/hMhjd/ubah}(h]h ]h"]h$]h&]uh1jXhjH/ubeh}(h]h ]h"]h$]h&]uh1j8hjc/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)}(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}(hj0hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj0hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM$ ubjE)}(h h]h }(hj0hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj0hhhj0hM$ ubjV)}(hsecurity_inode_setattrh]j\)}(hsecurity_inode_setattrh]hsecurity_inode_setattr}(hj(0hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj$0ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj0hhhj0hM$ ubjw)}(hD(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr)h](j})}(hstruct mnt_idmap *idmaph](j8)}(hj;h]hstruct}(hjD0hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj@0ubjE)}(h h]h }(hjQ0hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj@0ubh)}(hhh]j\)}(h mnt_idmaph]h mnt_idmap}(hjb0hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj_0ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjd0modnameN classnameNjsjv)}jy]j|)}joj*0sbc.security_inode_setattrasbuh1hhj@0ubjE)}(h h]h }(hj0hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj@0ubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@0ubj\)}(hidmaph]hidmap}(hj0hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj@0ubeh}(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]j~0c.security_inode_setattrasbuh1hhj0ubjE)}(h h]h }(hj0hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj0ubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubj\)}(hdentryh]hdentry}(hj 1hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj0ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj<0ubj})}(hstruct iattr *attrh](j8)}(hj;h]hstruct}(hj&1hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj"1ubjE)}(h h]h }(hj31hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj"1ubh)}(hhh]j\)}(hiattrh]hiattr}(hjD1hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjA1ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjF1modnameN classnameNjsjv)}jy]j~0c.security_inode_setattrasbuh1hhj"1ubjE)}(h h]h }(hjb1hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj"1ubj)}(hjh]h*}(hjp1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"1ubj\)}(hattrh]hattr}(hj}1hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj"1ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj<0ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj0hhhj0hM$ 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.chM 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}(hj2hhhNhNubah}(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)}(hj!2h]hstruct dentry *dentry}(hj#2hhhNhNubah}(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.chM hj2ubjY)}(hhh]h)}(hfileh]hfile}(hj:2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj62hM hj72ubah}(h]h ]h"]h$]h&]uh1jXhj2ubeh}(h]h ]h"]h$]h&]uh1j8hj62hM hj1ubj9)}(h&``struct iattr *attr`` new attributes h](j?)}(h``struct iattr *attr``h]h)}(hjZ2h]hstruct iattr *attr}(hj\2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjX2ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjT2ubjY)}(hhh]h)}(hnew attributesh]hnew attributes}(hjs2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjo2hM hjp2ubah}(h]h ]h"]h$]h&]uh1jXhjT2ubeh}(h]h ]h"]h$]h&]uh1j8hjo2hM 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.chM hj1ubh)}(hCheck permission before setting file attributes. Note that the kernel call to notify_change is performed from several locations, whenever file attributes change (such as when a file is truncated, chown/chmod operations, transferring disk quotas, etc).h]hCheck permission before setting file attributes. Note that the kernel call to notify_change is performed from several locations, whenever file attributes change (such as when a file is truncated, chown/chmod operations, transferring disk quotas, etc).}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj1ubh)}(h **Return**h]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.chM" hj1ubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM" hj1ubeh}(h]h ] kernelindentah"]h$]h&]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}(hj3hhhNhNubah}(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&]uh1jDhj2hhhj3hM ubjV)}(hsecurity_inode_listsecurityh]j\)}(hsecurity_inode_listsecurityh]hsecurity_inode_listsecurity}(hj"3hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj3ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj2hhhj3hM 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 }(hjK3hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj:3ubh)}(hhh]j\)}(hinodeh]hinode}(hj\3hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjY3ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj^3modnameN classnameNjsjv)}jy]j|)}joj$3sbc.security_inode_listsecurityasbuh1hhj:3ubjE)}(h h]h }(hj|3hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj:3ubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:3ubj\)}(hinodeh]hinode}(hj3hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj:3ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj63ubj})}(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|hj63ubj})}(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]jx3c.security_inode_listsecurityasbuh1hhj3ubjE)}(h h]h }(hj4hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj3ubj\)}(h buffer_sizeh]h buffer_size}(hj!4hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj3ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj63ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj2hhhj3hM ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj2hhhj3hM ubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1j&hj3hM hj2hhubj)}(hhh]h)}(h#List the xattr security label namesh]h#List the xattr security label names}(hjK4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjH4hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj3hM ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjc4jjc4jjjuh1j!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)}(hjm4h]h Parameters}(hjo4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk4ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjg4ubj4)}(hhh](j9)}(h``struct inode *inode`` inode h](j?)}(h``struct inode *inode``h]h)}(hj4h]hstruct inode *inode}(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)}(hinodeh]hinode}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hM hj4ubah}(h]h ]h"]h$]h&]uh1jXhj4ubeh}(h]h ]h"]h$]h&]uh1j8hj4hM hj4ubj9)}(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 hj4ubj9)}(h&``size_t buffer_size`` size of buffer h](j?)}(h``size_t buffer_size``h]h)}(hj4h]hsize_t buffer_size}(hj5hhhNhNubah}(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 hj4ubeh}(h]h ]h"]h$]h&]uh1j3hjg4ubh)}(h**Description**h]j)}(hj95h]h Description}(hj;5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj75ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjg4ubh)}(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 }(hjO5hhhNhNubj)}(h **inode**h]hinode}(hjW5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO5ubh into }(hjO5hhhNhNubj)}(h **buffer**h]hbuffer}(hji5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO5ubh. The maximum size of }(hjO5hhhNhNubj)}(h **buffer**h]hbuffer}(hj{5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO5ubh is specified by }(hjO5hhhNhNubj)}(h**buffer_size**h]h buffer_size}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO5ubh. }(hjO5hhhNhNubj)}(h **buffer**h]hbuffer}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjO5ubh8 may be NULL to request the size of the buffer required.}(hjO5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjg4ubh)}(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 hjg4ubh)}(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 hjg4ubeh}(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 }(hj6hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj5hhhj 6hM ubjV)}(hsecurity_inode_copy_uph]j\)}(hsecurity_inode_copy_uph]hsecurity_inode_copy_up}(hj 6hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj6ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj5hhhj 6hM ubjw)}(h'(struct dentry *src, struct cred **new)h](j})}(hstruct dentry *srch](j8)}(hj;h]hstruct}(hj<6hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj86ubjE)}(h h]h }(hjI6hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj86ubh)}(hhh]j\)}(hdentryh]hdentry}(hjZ6hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjW6ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj\6modnameN classnameNjsjv)}jy]j|)}joj"6sbc.security_inode_copy_upasbuh1hhj86ubjE)}(h h]h }(hjz6hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj86ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj86ubj\)}(hsrch]hsrc}(hj6hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj86ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj46ubj})}(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]jv6c.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*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj6ubj\)}(hnewh]hnew}(hj7hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj6ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj46ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj5hhhj 6hM ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj5hhhj 6hM ubah}(h]j5ah ](jjeh"]h$]h&]jj)jhuh1j&hj 6hM 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 hj97hhubah}(h]h ]h"]h$]h&]uh1jhj5hhhj 6hM ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjT7jjT7jjjuh1j!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)}(hj^7h]h Parameters}(hj`7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\7ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjX7ubj4)}(hhh](j9)}(h4``struct dentry *src`` union dentry of copy-up file h](j?)}(h``struct dentry *src``h]h)}(hj}7h]hstruct dentry *src}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{7ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjw7ubjY)}(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&]uh1jXhjw7ubeh}(h]h ]h"]h$]h&]uh1j8hj7hM hjt7ubj9)}(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 hjt7ubeh}(h]h ]h"]h$]h&]uh1j3hjX7ubh)}(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 hjX7ubh)}(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.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjX7ubh)}(h **Return**h]j)}(hj8h]hReturn}(hj8hhhNhNubah}(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 hjX7ubh)}(h7Returns 0 on success or a negative error code on error.h]h7Returns 0 on success or a negative error code on error.}(hj.8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjX7ubeh}(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}(hj]8hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjY8hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjE)}(h h]h }(hjl8hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjY8hhhjk8hM ubjV)}(hsecurity_inode_copy_up_xattrh]j\)}(hsecurity_inode_copy_up_xattrh]hsecurity_inode_copy_up_xattr}(hj~8hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjz8ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjY8hhhjk8hM 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|)}joj8sbc.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}(hj 9hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj9ubjE)}(h h]h }(hj9hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj9ubj3)}(hcharh]hchar}(hj'9hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj9ubjE)}(h h]h }(hj59hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj9ubj)}(hjh]h*}(hjC9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubj\)}(hnameh]hname}(hjP9hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj9ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj8ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjY8hhhjk8hM ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjU8hhhjk8hM ubah}(h]jP8ah ](jjeh"]h$]h&]jj)jhuh1j&hjk8hM hjR8hhubj)}(hhh]h)}(h(Filter xattrs in an overlayfs copy-up oph]h(Filter xattrs in an overlayfs copy-up op}(hjz9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjw9hhubah}(h]h ]h"]h$]h&]uh1jhjR8hhhjk8hM 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}(hj :hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj :hM hj :ubah}(h]h ]h"]h$]h&]uh1jXhj9ubeh}(h]h ]h"]h$]h&]uh1j8hj :hM hj9ubeh}(h]h ]h"]h$]h&]uh1j3hj9ubh)}(h**Description**h]j)}(hj/:h]h Description}(hj1: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.}(hjE: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)}(hjV:h]hReturn}(hjX:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjT:ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj9ubj4)}(hhh]j9)}(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](j?)}(h?Returns 0 to accept the xattr, -ECANCELED to discard the xattr,h]h?Returns 0 to accept the xattr, -ECANCELED to discard the xattr,}(hjs:hhhNhNubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjo:ubjY)}(hhh]h)}(hp-EOPNOTSUPP if the security module does not know about attribute, or a negative error code to abort the copy up.h]hp-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&]uh1hhj:hM hj:ubah}(h]h ]h"]h$]h&]uh1jXhjo:ubeh}(h]h ]h"]h$]h&]uh1j8hj:hM hjl:ubah}(h]h ]h"]h$]h&]uh1j3hj9ubeh}(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[hj8;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*}(hji;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ubj\)}(hinodeh]hinode}(hjv;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}(hj;hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj;ubjE)}(h h]h }(hj;hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj;ubh)}(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]jW;c.security_inode_setintegrityasbuh1hhj;ubjE)}(h h]h }(hj;hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj;ubj\)}(htypeh]htype}(hj;hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj;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}(hj7<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}(hjS<hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjP<ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjU<modnameN classnameNjsjv)}jy]jW;c.security_inode_setintegrityasbuh1hhjL<ubjE)}(h h]h }(hjq<hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjL<ubj\)}(hsizeh]hsize}(hj<hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjL<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}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj<hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj:hM ubeh}(h]h ](jfunctioneh"]h$]h&]j 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&]uh1hhj8=hM hj9=ubah}(h]h ]h"]h$]h&]uh1jXhj=ubeh}(h]h ]h"]h$]h&]uh1j8hj8=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&]uh1hhjZ=ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjV=ubjY)}(hhh]h)}(hthe integrity valueh]hthe integrity value}(hju=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjq=hM hjr=ubah}(h]h ]h"]h$]h&]uh1jXhjV=ubeh}(h]h ]h"]h$]h&]uh1j8hjq=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&]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)}(hsize of the integrity valueh]hsize of the integrity value}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hM hj=ubah}(h]h ]h"]h$]h&]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.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.chM hj<ubh)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj<ubeh}(h]h ] kernelindentah"]h$]h&]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}(hjN>hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjJ>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&]uh1jDhjJ>hhhj\>hM_ ubjV)}(hsecurity_file_ioctlh]j\)}(hsecurity_file_ioctlh]hsecurity_file_ioctl}(hjo>hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjk>ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjJ>hhhj\>hM_ ubjw)}(h8(struct file *file, unsigned int cmd, unsigned long arg)h](j})}(hstruct file *fileh](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\)}(hfileh]hfile}(hj>hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj>ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj>modnameN classnameNjsjv)}jy]j|)}jojq>sbc.security_file_ioctlasbuh1hhj>ubjE)}(h h]h }(hj>hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubj\)}(hfileh]hfile}(hj>hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj>ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj>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}(hj5?hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj>ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj>ubj})}(hunsigned long argh](j3)}(hunsignedh]hunsigned}(hjN?hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjJ?ubjE)}(h h]h }(hj\?hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjJ?ubj3)}(hlongh]hlong}(hjj?hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjJ?ubjE)}(h h]h }(hjx?hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjJ?ubj\)}(hargh]harg}(hj?hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjJ?ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj>ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjJ>hhhj\>hM_ ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjF>hhhj\>hM_ ubah}(h]jA>ah ](jjeh"]h$]h&]jj)jhuh1j&hj\>hM_ hjC>hhubj)}(hhh]h)}(hCheck if an ioctl is allowedh]hCheck if an ioctl is allowed}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMS hj?hhubah}(h]h ]h"]h$]h&]uh1jhjC>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.chMW 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.chMT hj?ubjY)}(hhh]h)}(hassociated fileh]hassociated file}(hj @hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMT hj@ubah}(h]h ]h"]h$]h&]uh1jXhj?ubeh}(h]h ]h"]h$]h&]uh1j8hj@hMT 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.chMU hj$@ubjY)}(hhh]h)}(h ioctl cmdh]h ioctl cmd}(hjC@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?@hMU hj@@ubah}(h]h ]h"]h$]h&]uh1jXhj$@ubeh}(h]h ]h"]h$]h&]uh1j8hj?@hMU hj?ubj9)}(h&``unsigned long arg`` ioctl arguments h](j?)}(h``unsigned long arg``h]h)}(hjc@h]hunsigned long arg}(hje@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhja@ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMV hj]@ubjY)}(hhh]h)}(hioctl argumentsh]hioctl arguments}(hj|@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjx@hMV hjy@ubah}(h]h ]h"]h$]h&]uh1jXhj]@ubeh}(h]h ]h"]h$]h&]uh1j8hjx@hMV 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.chMX hj?ubh)}(hXCheck permission for an ioctl operation on **file**. Note that **arg** sometimes represents a user space pointer; in other cases, it may be a simple integer value. When **arg** represents a user space pointer, it should never be used by the security module.h](h+Check permission for an ioctl operation on }(hj@hhhNhNubj)}(h**file**h]hfile}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubh . Note that }(hj@hhhNhNubj)}(h**arg**h]harg}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubhd sometimes represents a user space pointer; in other cases, it may be a simple integer value. When }(hj@hhhNhNubj)}(h**arg**h]harg}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubhQ represents a user space pointer, it should never be used by the security module.}(hj@hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMX 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.}(hjAhhhNhNubah}(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}(hj@AhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMg hjBubjY)}(hhh]h)}(hassociated fileh]hassociated file}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhMg hjBubah}(h]h ]h"]h$]h&]uh1jXhjBubeh}(h]h ]h"]h$]h&]uh1j8hjBhMg hjBubj9)}(h``unsigned int cmd`` ioctl cmd h](j?)}(h``unsigned int cmd``h]h)}(hjCh]hunsigned int cmd}(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.chMh hjCubjY)}(hhh]h)}(h ioctl cmdh]h ioctl cmd}(hj5ChhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1ChMh hj2Cubah}(h]h ]h"]h$]h&]uh1jXhjCubeh}(h]h ]h"]h$]h&]uh1j8hj1ChMh hjBubj9)}(h&``unsigned long arg`` ioctl arguments h](j?)}(h``unsigned long arg``h]h)}(hjUCh]hunsigned long arg}(hjWChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjSCubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMi hjOCubjY)}(hhh]h)}(hioctl argumentsh]hioctl arguments}(hjnChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjChMi hjkCubah}(h]h ]h"]h$]h&]uh1jXhjOCubeh}(h]h ]h"]h$]h&]uh1j8hjjChMi hjBubeh}(h]h ]h"]h$]h&]uh1j3hjBubh)}(h**Description**h]j)}(hjCh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMk hjBubh)}(hjCompat version of security_file_ioctl() that correctly handles 32-bit processes running on 64-bit kernels.h]hjCompat version of security_file_ioctl() that correctly handles 32-bit processes running on 64-bit kernels.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMk hjBubh)}(h **Return**h]j)}(hjCh]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMn 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.chMn 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.chM8 ubjE)}(h h]h }(hj DhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjChhhj DhM8 ubjV)}(hsecurity_file_post_openh]j\)}(hsecurity_file_post_openh]hsecurity_file_post_open}(hjDhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjDubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjChhhj DhM8 ubjw)}(h(struct file *file, int mask)h](j})}(hstruct file *fileh](j8)}(hj;h]hstruct}(hj9DhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj5DubjE)}(h h]h }(hjFDhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj5Dubh)}(hhh]j\)}(hfileh]hfile}(hjWDhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjTDubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjYDmodnameN classnameNjsjv)}jy]j|)}jojDsbc.security_file_post_openasbuh1hhj5DubjE)}(h h]h }(hjwDhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj5Dubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5Dubj\)}(hfileh]hfile}(hjDhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj5Dubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj1Dubj})}(hint maskh](j3)}(hinth]hint}(hjDhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjDubjE)}(h h]h }(hjDhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjDubj\)}(hmaskh]hmask}(hjDhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjDubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj1Dubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjChhhj DhM8 ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjChhhj DhM8 ubah}(h]jCah ](jjeh"]h$]h&]jj)jhuh1j&hj DhM8 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.chM. hjDhhubah}(h]h ]h"]h$]h&]uh1jhjChhhj DhM8 ubeh}(h]h ](jfunctioneh"]h$]h&]j jjj Ejj Ejjjuh1j!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)}(hjEh]h Parameters}(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.chM2 hj Eubj4)}(hhh](j9)}(h``struct file *file`` the file h](j?)}(h``struct file *file``h]h)}(hj2Eh]hstruct file *file}(hj4EhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0Eubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM/ hj,EubjY)}(hhh]h)}(hthe fileh]hthe file}(hjKEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGEhM/ hjHEubah}(h]h ]h"]h$]h&]uh1jXhj,Eubeh}(h]h ]h"]h$]h&]uh1j8hjGEhM/ hj)Eubj9)}(h``int mask`` access mask h](j?)}(h ``int mask``h]h)}(hjkEh]hint mask}(hjmEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjiEubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM0 hjeEubjY)}(hhh]h)}(h access maskh]h access mask}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjEhM0 hjEubah}(h]h ]h"]h$]h&]uh1jXhjeEubeh}(h]h ]h"]h$]h&]uh1j8hjEhM0 hj)Eubeh}(h]h ]h"]h$]h&]uh1j3hj Eubh)}(h**Description**h]j)}(hjEh]h Description}(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.chM2 hj Eubh)}(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.chM2 hj Eubh)}(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.chM6 hj Eubh)}(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.chM6 hj Eubeh}(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}(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 }(hj!FhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjFhhhj FhM ubjV)}(hsecurity_cred_getsecidh]j\)}(hsecurity_cred_getsecidh]hsecurity_cred_getsecid}(hj3FhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj/Fubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjFhhhj FhM ubjw)}(h"(const struct cred *c, u32 *secid)h](j})}(hconst struct cred *ch](j8)}(hj h]hconst}(hjOFhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjKFubjE)}(h h]h }(hj\FhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjKFubj8)}(hj;h]hstruct}(hjjFhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjKFubjE)}(h h]h }(hjwFhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjKFubh)}(hhh]j\)}(hcredh]hcred}(hjFhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjFubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjFmodnameN classnameNjsjv)}jy]j|)}joj5Fsbc.security_cred_getsecidasbuh1hhjKFubjE)}(h h]h }(hjFhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjKFubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKFubj\)}(hjh]hc}(hjFhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjKFubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjGFubj})}(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]jFc.security_cred_getsecidasbuh1hhjFubjE)}(h h]h }(hjFhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjFubj)}(hjh]h*}(hj GhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj\)}(hsecidh]hsecid}(hjGhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjFubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjGFubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjFhhhj FhM ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj Fhhhj FhM ubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1j&hj FhM hjFhhubj)}(hhh]h)}(h'Get the secid from a set of credentialsh]h'Get the secid from a set of credentials}(hjAGhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj>Ghhubah}(h]h ]h"]h$]h&]uh1jhjFhhhj FhM ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjYGjjYGjjjuh1j!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)}(hjcGh]h Parameters}(hjeGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaGubah}(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)}(hjGh]hconst struct cred *c}(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 credentialsh]h credentials}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM hjGubah}(h]h ]h"]h$]h&]uh1jXhj|Gubeh}(h]h ]h"]h$]h&]uh1j8hjGhM hjyGubj9)}(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 hjGubjY)}(hhh]h)}(h secid valueh]h secid value}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM hjGubah}(h]h ]h"]h$]h&]uh1jXhjGubeh}(h]h ]h"]h$]h&]uh1j8hjGhM hjyGubeh}(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 }(hj HhhhNhNubj)}(h**c**h]hc}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Hubh. In case of failure, }(hj HhhhNhNubj)}(h **secid**h]hsecid}(hj&HhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Hubh will be set to zero.}(hj HhhhNhNubeh}(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 }(hjnHhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj[HhhhjmHhM ubjV)}(hsecurity_cred_getlsmproph]j\)}(hsecurity_cred_getlsmproph]hsecurity_cred_getlsmprop}(hjHhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj|Hubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj[HhhhjmHhM ubjw)}(h-(const struct cred *c, struct lsm_prop *prop)h](j})}(hconst struct cred *ch](j8)}(hj h]hconst}(hjHhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjHubjE)}(h h]h }(hjHhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjHubj8)}(hj;h]hstruct}(hjHhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjHubjE)}(h h]h }(hjHhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjHubh)}(hhh]j\)}(hcredh]hcred}(hjHhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjHubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjHmodnameN classnameNjsjv)}jy]j|)}jojHsbc.security_cred_getlsmpropasbuh1hhjHubjE)}(h h]h }(hjHhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjHubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubj\)}(hjh]hc}(hjIhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjHubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjHubj})}(hstruct lsm_prop *proph](j8)}(hj;h]hstruct}(hj(IhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj$IubjE)}(h h]h }(hj5IhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj$Iubh)}(hhh]j\)}(hlsm_proph]hlsm_prop}(hjFIhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjCIubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjHImodnameN classnameNjsjv)}jy]jHc.security_cred_getlsmpropasbuh1hhj$IubjE)}(h h]h }(hjdIhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj$Iubj)}(hjh]h*}(hjrIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Iubj\)}(hproph]hprop}(hjIhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj$Iubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjHubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj[HhhhjmHhM ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjWHhhhjmHhM ubah}(h]jRHah ](jjeh"]h$]h&]jj)jhuh1j&hjmHhM hjTHhhubj)}(hhh]h)}(h*Get the LSM data from a set of credentialsh]h*Get the LSM data from a set of credentials}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjIhhubah}(h]h ]h"]h$]h&]uh1jhjTHhhhjmHhM 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}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjIhM hjJubah}(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)}(hj#Jh]hstruct lsm_prop *prop}(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.chM hjJubjY)}(hhh]h)}(hdestination for the LSM datah]hdestination for the LSM data}(hjKc.security_kernel_read_fileasbuh1hhjrKubjE)}(h h]h }(hjKhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjrKubj\)}(hidh]hid}(hjKhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjrKubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjJubj})}(h bool contentsh](j3)}(hboolh]hbool}(hjKhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjKubjE)}(h h]h }(hjKhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjKubj\)}(hcontentsh]hcontents}(hjKhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjKubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjJubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjJhhhjJhM ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjJhhhjJhM ubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1j&hjJhM hjJhhubj)}(hhh]h)}(h"Read a file specified by userspaceh]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.chM hjLhhubah}(h]h ]h"]h$]h&]uh1jhjJhhhjJhM ubeh}(h]h ](jfunctioneh"]h$]h&]j jjj7Ljj7Ljjjuh1j!hhhhhNhNubj)}(hX**Parameters** ``struct file *file`` file ``enum kernel_read_file_id id`` file identifier ``bool contents`` trust if security_kernel_post_read_file() will be called **Description** Read a file specified by userspace. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjALh]h Parameters}(hjCLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?Lubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj;Lubj4)}(hhh](j9)}(h``struct file *file`` file h](j?)}(h``struct file *file``h]h)}(hj`Lh]hstruct file *file}(hjbLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^Lubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjZLubjY)}(hhh]h)}(hfileh]hfile}(hjyLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjuLhM hjvLubah}(h]h ]h"]h$]h&]uh1jXhjZLubeh}(h]h ]h"]h$]h&]uh1j8hjuLhM hjWLubj9)}(h0``enum kernel_read_file_id id`` file identifier h](j?)}(h``enum kernel_read_file_id id``h]h)}(hjLh]henum kernel_read_file_id id}(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)}(hfile identifierh]hfile identifier}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhM hjLubah}(h]h ]h"]h$]h&]uh1jXhjLubeh}(h]h ]h"]h$]h&]uh1j8hjLhM hjWLubj9)}(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.chM 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&]uh1hhjLhM hjLubah}(h]h ]h"]h$]h&]uh1jXhjLubeh}(h]h ]h"]h$]h&]uh1j8hjLhM hjWLubeh}(h]h ]h"]h$]h&]uh1j3hj;Lubh)}(h**Description**h]j)}(hj Mh]h Description}(hjMhhhNhNubah}(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.chM hj;Lubh)}(h#Read a file specified by userspace.h]h#Read a file specified by userspace.}(hj#MhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj;Lubh)}(h **Return**h]j)}(hj4Mh]hReturn}(hj6MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2Mubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj;Lubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjJMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj;Lubeh}(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}(hjyMhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjuMhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM) ubjE)}(h h]h }(hjMhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjuMhhhjMhM) ubjV)}(hsecurity_kernel_post_read_fileh]j\)}(hsecurity_kernel_post_read_fileh]hsecurity_kernel_post_read_file}(hjMhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjMubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjuMhhhjMhM) 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}(hjMhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjMubjE)}(h h]h }(hjMhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjMubh)}(hhh]j\)}(hfileh]hfile}(hjMhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjMubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjMmodnameN classnameNjsjv)}jy]j|)}jojMsb c.security_kernel_post_read_fileasbuh1hhjMubjE)}(h h]h }(hjMhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjMubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubj\)}(hfileh]hfile}(hjNhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjMubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjMubj})}(h char *bufh](j3)}(hcharh]hchar}(hj(NhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj$NubjE)}(h h]h }(hj6NhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj$Nubj)}(hjh]h*}(hjDNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$Nubj\)}(hbufh]hbuf}(hjQNhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj$Nubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjMubj})}(h loff_t sizeh](h)}(hhh]j\)}(hloff_th]hloff_t}(hjmNhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjjNubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjoNmodnameN classnameNjsjv)}jy]jM c.security_kernel_post_read_fileasbuh1hhjfNubjE)}(h h]h }(hjNhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjfNubj\)}(hsizeh]hsize}(hjNhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjfNubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjMubj})}(henum kernel_read_file_id idh](j8)}(hj;h]henum}(hjNhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjNubjE)}(h h]h }(hjNhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjNubh)}(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_fileasbuh1hhjNubjE)}(h h]h }(hjNhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjNubj\)}(hidh]hid}(hjNhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjNubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjMubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjuMhhhjMhM) ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjqMhhhjMhM) ubah}(h]jlMah ](jjeh"]h$]h&]jj)jhuh1j&hjMhM) hjnMhhubj)}(hhh]h)}(h"Read a file specified by userspaceh]h"Read a file specified by userspace}(hj&OhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj#Ohhubah}(h]h ]h"]h$]h&]uh1jhjnMhhhjMhM) ubeh}(h]h ](jfunctioneh"]h$]h&]j jjj>Ojj>Ojjjuh1j!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)}(hjHOh]h Parameters}(hjJOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFOubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM! hjBOubj4)}(hhh](j9)}(h``struct file *file`` file h](j?)}(h``struct file *file``h]h)}(hjgOh]hstruct file *file}(hjiOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjeOubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjaOubjY)}(hhh]h)}(hfileh]hfile}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|OhM hj}Oubah}(h]h ]h"]h$]h&]uh1jXhjaOubeh}(h]h ]h"]h$]h&]uh1j8hj|OhM hj^Oubj9)}(h``char *buf`` file contents h](j?)}(h ``char *buf``h]h)}(hjOh]h char *buf}(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.chM hjOubjY)}(hhh]h)}(h file contentsh]h file contents}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM hjOubah}(h]h ]h"]h$]h&]uh1jXhjOubeh}(h]h ]h"]h$]h&]uh1j8hjOhM 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.chM hjOubjY)}(hhh]h)}(hsize of file contentsh]hsize of file contents}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM hjOubah}(h]h ]h"]h$]h&]uh1jXhjOubeh}(h]h ]h"]h$]h&]uh1j8hjOhM hj^Oubj9)}(h0``enum kernel_read_file_id id`` file identifier h](j?)}(h``enum kernel_read_file_id id``h]h)}(hjPh]henum kernel_read_file_id id}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM! hj PubjY)}(hhh]h)}(hfile identifierh]hfile identifier}(hj+PhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'PhM! hj(Pubah}(h]h ]h"]h$]h&]uh1jXhj Pubeh}(h]h ]h"]h$]h&]uh1j8hj'PhM! hj^Oubeh}(h]h ]h"]h$]h&]uh1j3hjBOubh)}(h**Description**h]j)}(hjMPh]h Description}(hjOPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKPubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM# hjBOubh)}(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.}(hjcPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM# hjBOubh)}(h **Return**h]j)}(hjtPh]hReturn}(hjvPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrPubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM' hjBOubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM' hjBOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&security_kernel_load_data (C function)c.security_kernel_load_datahNtauh1jhhhhhNhNubj")}(hhh](j')}(hJint security_kernel_load_data (enum kernel_load_data_id id, bool contents)h]j-)}(hIint security_kernel_load_data(enum kernel_load_data_id id, bool contents)h](j3)}(hinth]hint}(hjPhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjPhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM9 ubjE)}(h h]h }(hjPhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjPhhhjPhM9 ubjV)}(hsecurity_kernel_load_datah]j\)}(hsecurity_kernel_load_datah]hsecurity_kernel_load_data}(hjPhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjPubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjPhhhjPhM9 ubjw)}(h,(enum kernel_load_data_id id, bool contents)h](j})}(henum kernel_load_data_id idh](j8)}(hj;h]henum}(hjPhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjPubjE)}(h h]h }(hjQhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjPubh)}(hhh]j\)}(hkernel_load_data_idh]hkernel_load_data_id}(hjQhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjQubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjQmodnameN classnameNjsjv)}jy]j|)}jojPsbc.security_kernel_load_dataasbuh1hhjPubjE)}(h h]h }(hj4QhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjPubj\)}(hidh]hid}(hjBQhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjPubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjPubj})}(h bool contentsh](j3)}(hjKh]hbool}(hj[QhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjWQubjE)}(h h]h }(hjhQhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjWQubj\)}(hcontentsh]hcontents}(hjvQhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjWQubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjPubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjPhhhjPhM9 ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjPhhhjPhM9 ubah}(h]jPah ](jjeh"]h$]h&]jj)jhuh1j&hjPhM9 hjPhhubj)}(hhh]h)}(hLoad data provided by userspaceh]hLoad data provided by userspace}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM1 hjQhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjPhM9 ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjQjjQjjjuh1j!hhhhhNhNubj)}(h**Parameters** ``enum kernel_load_data_id id`` data identifier ``bool contents`` true if security_kernel_post_load_data() will be called **Description** Load data provided by userspace. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]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.chM5 hjQubj4)}(hhh](j9)}(h0``enum kernel_load_data_id id`` data identifier h](j?)}(h``enum kernel_load_data_id id``h]h)}(hjQh]henum kernel_load_data_id id}(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.chM2 hjQubjY)}(hhh]h)}(hdata identifierh]hdata identifier}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM2 hjQubah}(h]h ]h"]h$]h&]uh1jXhjQubeh}(h]h ]h"]h$]h&]uh1j8hjQhM2 hjQubj9)}(hJ``bool contents`` true if security_kernel_post_load_data() will be called h](j?)}(h``bool contents``h]h)}(hjRh]h bool contents}(hjRhhhNhNubah}(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.chM3 hjRubjY)}(hhh]h)}(h7true if security_kernel_post_load_data() will be calledh]h7true if security_kernel_post_load_data() will be called}(hj3RhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/RhM3 hj0Rubah}(h]h ]h"]h$]h&]uh1jXhjRubeh}(h]h ]h"]h$]h&]uh1j8hj/RhM3 hjQubeh}(h]h ]h"]h$]h&]uh1j3hjQubh)}(h**Description**h]j)}(hjURh]h Description}(hjWRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSRubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM5 hjQubh)}(h Load data provided by userspace.h]h Load data provided by userspace.}(hjkRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM5 hjQubh)}(h **Return**h]j)}(hj|Rh]hReturn}(hj~RhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzRubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM7 hjQubh)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM7 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.chMM ubjE)}(h h]h }(hjRhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjRhhhjRhMM 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&]jtjuuh1jUhjRhhhjRhMM 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 }(hj ShhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjRubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubj\)}(hbufh]hbuf}(hj'ShhhNhNubah}(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}(hjCShhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj@Subah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjESmodnameN classnameNjsjv)}jy]j|)}jojRsb c.security_kernel_post_load_dataasbuh1hhjh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMA hj{TubjY)}(hhh]h)}(hdatah]hdata}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMA hjTubah}(h]h ]h"]h$]h&]uh1jXhj{Tubeh}(h]h ]h"]h$]h&]uh1j8hjThMA hjxTubj9)}(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&]uh1hhjTubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMB hjTubjY)}(hhh]h)}(h size of datah]h size of data}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjThMB hjTubah}(h]h ]h"]h$]h&]uh1jXhjTubeh}(h]h ]h"]h$]h&]uh1j8hjThMB hjxTubj9)}(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.chMC hjTubjY)}(hhh]h)}(hdata identifierh]hdata identifier}(hj UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMC hj Uubah}(h]h ]h"]h$]h&]uh1jXhjTubeh}(h]h ]h"]h$]h&]uh1j8hjUhMC hjxTubj9)}(hI``char *description`` text description of data, specific to the id value h](j?)}(h``char *description``h]h)}(hj,Uh]hchar *description}(hj.UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*Uubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMD hj&UubjY)}(hhh]h)}(h2text description of data, specific to the id valueh]h2text description of data, specific to the id value}(hjEUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAUhMD hjBUubah}(h]h ]h"]h$]h&]uh1jXhj&Uubeh}(h]h ]h"]h$]h&]uh1j8hjAUhMD hjxTubeh}(h]h ]h"]h$]h&]uh1j3hj\Tubh)}(h**Description**h]j)}(hjgUh]h Description}(hjiUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeUubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMF 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.}(hj}UhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMF hj\Tubh)}(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.chMK hj\Tubh)}(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.chMK 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&]uh1j3hjVubh)}(h**Description**h]j)}(hjWh]h Description}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Wubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjVubh)}(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 }(hj%WhhhNhNubj)}(h**prop**h]hprop}(hj-WhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%Wubh.}(hj%WhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjVubeh}(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}(hjfWhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjbWhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM ubjE)}(h h]h }(hjuWhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjbWhhhjtWhM ubjV)}(hsecurity_task_getlsmprop_objh]j\)}(hsecurity_task_getlsmprop_objh]hsecurity_task_getlsmprop_obj}(hjWhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjWubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjbWhhhjtWhM ubjw)}(h.(struct task_struct *p, struct lsm_prop *prop)h](j})}(hstruct task_struct *ph](j8)}(hj;h]hstruct}(hjWhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjWubjE)}(h h]h }(hjWhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjWubh)}(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|)}jojWsbc.security_task_getlsmprop_objasbuh1hhjWubjE)}(h h]h }(hjWhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjWubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj\)}(hjh]hp}(hjWhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjWubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjWubj})}(hstruct lsm_prop *proph](j8)}(hj;h]hstruct}(hjXhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjXubjE)}(h h]h }(hj!XhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjXubh)}(hhh]j\)}(hlsm_proph]hlsm_prop}(hj2XhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj/Xubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj4XmodnameN classnameNjsjv)}jy]jWc.security_task_getlsmprop_objasbuh1hhjXubjE)}(h h]h }(hjPXhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjXubj)}(hjh]h*}(hj^XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubj\)}(hproph]hprop}(hjkXhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjXubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjWubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjbWhhhjtWhM ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj^WhhhjtWhM ubah}(h]jYWah ](jjeh"]h$]h&]jj)jhuh1j&hjtWhM hj[Whhubj)}(hhh]h)}(hGet a task's objective LSM datah]h!Get a task’s objective LSM data}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjXhhubah}(h]h ]h"]h$]h&]uh1jhj[WhhhjtWhM ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjXjjXjjjuh1j!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)}(hjXh]h Parameters}(hjXhhhNhNubah}(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 hjXubj4)}(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)}(hjYh]hstruct lsm_prop *prop}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj Yubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hj YubjY)}(hhh]h)}(hlsm specific informationh]hlsm specific information}(hj(YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$YhM hj%Yubah}(h]h ]h"]h$]h&]uh1jXhj Yubeh}(h]h ]h"]h$]h&]uh1j8hj$YhM hjXubeh}(h]h ]h"]h$]h&]uh1j3hjXubh)}(h**Description**h]j)}(hjJYh]h Description}(hjLYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHYubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjXubh)}(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}(hjhYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`Yubh and return it in }(hj`YhhhNhNubj)}(h**prop**h]hprop}(hjzYhhhNhNubah}(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.chM hjXubeh}(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}(hjYhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjYhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjYhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjYhhhjYhMubjV)}(hsecurity_d_instantiateh]j\)}(hsecurity_d_instantiateh]hsecurity_d_instantiate}(hjYhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjYubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjYhhhjYhMubjw)}(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}(hjZhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj Zubah+}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjZmodnameN classnameNjsjv)}jy]j|)}jojYsbc.security_d_instantiateasbuh1hhjYubjE)}(h h]h }(hj.ZhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjYubj)}(hjh]h*}(hjh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj[ubjY)}(hhh]h)}(hdentryh]hdentry}(hj=[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9[hMhj:[ubah}(h]h ]h"]h$]h&]uh1jXhj[ubeh}(h]h ]h"]h$]h&]uh1j8hj9[hMhjbj9)}(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.chMhjW[ubjY)}(hhh]h)}(hinodeh]hinode}(hjv[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr[hMhjs[ubah}(h]h ]h"]h$]h&]uh1jXhjW[ubeh}(h]h ]h"]h$]h&]uh1j8hjr[hMhjbeh}(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.chMhjZubh)}(hCFill in **inode** security information for a **dentry** if allowed.h](hFill in }(hj[hhhNhNubj)}(h **inode**h]hinode}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh security information for a }(hj[hhhNhNubj)}(h **dentry**h]hdentry}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh if allowed.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjZubeh}(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 }(hjK\hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj:\ubj3)}(hcharh]hchar}(hjY\hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj:\ubjE)}(h h]h }(hjg\hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj:\ubj)}(hjh]h*}(hju\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:\ubj\)}(hnameh]hname}(hj\hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj:\ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj6\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}(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)}(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}(hjF]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)}(hja]h]hReturn}(hjc]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.}(hjw]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}(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_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&]jtjuuh1jUhj]hhhj]hMubjw)}(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}(hjK^hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjH^ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjM^modnameN classnameNjsjv)}jy]j^c.security_secid_to_secctxasbuh1hhj)^ubjE)}(h h]h }(hji^hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj)^ubj)}(hjh]h*}(hjw^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)^ubj\)}(hcph]hcp}(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 secid to a secctxh]hConvert a secid to a secctx}(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** ``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.chMhj^ubjY)}(hhh]h)}(hsecidh]hsecid}(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 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.chMhj"_ubjY)}(hhh]h)}(hthe LSM contexth]hthe LSM context}(hjA_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)}(hjc_h]h Description}(hje_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhja_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 }(hjy_hhhNhNubj)}(h**cp**h]hcp}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjy_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.}(hjy_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)}(h3Return length of data on success, error on failure.h]h3Return length of data 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.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')}(hNint security_lsmprop_to_secctx (struct lsm_prop *prop, struct lsm_context *cp)h]j-)}(hMint security_lsmprop_to_secctx(struct lsm_prop *prop, struct lsm_context *cp)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)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[hj9`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*}(hjj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj`ubj\)}(hproph]hprop}(hjw`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]jX`c.security_lsmprop_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}(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}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjahhubah}(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 **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**. **Return** Return length of data on success, error on failure.h](h)}(h**Parameters**h]j)}(hj3ah]h Parameters}(hj5ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1aubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj-aubj4)}(hhh](j9)}(h3``struct lsm_prop *prop`` lsm specific information h](j?)}(h``struct lsm_prop *prop``h]h)}(hjRah]hstruct lsm_prop *prop}(hjTahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPaubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjLaubjY)}(hhh]h)}(hlsm specific informationh]hlsm specific information}(hjkahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjgahMhjhaubah}(h]h ]h"]h$]h&]uh1jXhjLaubeh}(h]h ]h"]h$]h&]uh1j8hjgahMhjIaubj9)}(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&]uh1j8hjahMhjIaubeh}(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.chMhj-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 }(hjahhhNhNubj)}(h**prop**h]hprop}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh entry to security context. If }(hjahhhNhNubj)}(h**cp**h]hcp}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh 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 }(hjahhhNhNubj)}(h**cp**h]hcp}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubh.}(hjahhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj-aubh)}(h **Return**h]j)}(hj#bh]hReturn}(hj%bhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!bubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj-aubh)}(h3Return length of data on success, error on failure.h]h3Return length of data on success, error on failure.}(hj9bhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj-aubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%security_secctx_to_secid (C function)c.security_secctx_to_secidhNtauh1jhhhhhNhNubj")}(hhh](j')}(hJint security_secctx_to_secid (const char *secdata, u32 seclen, u32 *secid)h]j-)}(hIint security_secctx_to_secid(const char *secdata, u32 seclen, u32 *secid)h](j3)}(hinth]hint}(hjhbhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjdbhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjwbhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjdbhhhjvbhMubjV)}(hsecurity_secctx_to_secidh]j\)}(hsecurity_secctx_to_secidh]hsecurity_secctx_to_secid}(hjbhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjbubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjdbhhhjvbhMubjw)}(h-(const char *secdata, u32 seclen, u32 *secid)h](j})}(hconst char *secdatah](j8)}(hj h]hconst}(hjbhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjbubjE)}(h h]h }(hjbhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjbubj3)}(hcharh]hchar}(hjbhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjbubjE)}(h h]h }(hjbhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjbubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjbubj\)}(hsecdatah]hsecdata}(hjbhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjbubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjbubj})}(h u32 seclenh](h)}(hhh]j\)}(hu32h]hu32}(hjchhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjcubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjcmodnameN classnameNjsjv)}jy]j|)}jojbsbc.security_secctx_to_secidasbuh1hhjbubjE)}(h h]h }(hj%chhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjbubj\)}(hseclenh]hseclen}(hj3chhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjbubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjbubj})}(h u32 *secidh](h)}(hhh]j\)}(hu32h]hu32}(hjOchhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjLcubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjQcmodnameN classnameNjsjv)}jy]j!cc.security_secctx_to_secidasbuh1hhjHcubjE)}(h h]h }(hjmchhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjHcubj)}(hjh]h*}(hj{chhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHcubj\)}(hsecidh]hsecid}(hjchhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjHcubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjbubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjdbhhhjvbhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj`bhhhjvbhMubah}(h]j[bah ](jjeh"]h$]h&]jj)jhuh1j&hjvbhMhj]bhhubj)}(hhh]h)}(hConvert a secctx to a secidh]hConvert a secctx to a secid}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjchhubah}(h]h ]h"]h$]h&]uh1jhj]bhhhjvbhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjcjjcjjjuh1j!hhhhhNhNubj)}(h**Parameters** ``const char *secdata`` secctx ``u32 seclen`` length of secctx ``u32 *secid`` secid **Description** Convert security context to secid. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hjch]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhjcubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjcubj4)}(hhh](j9)}(h``const char *secdata`` secctx h](j?)}(h``const char *secdata``h]h)}(hjch]hconst char *secdata}(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.chMhjcubjY)}(hhh]h)}(hsecctxh]hsecctx}(hj dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhMhj dubah}(h]h ]h"]h$]h&]uh1jXhjcubeh}(h]h ]h"]h$]h&]uh1j8hjdhMhjcubj9)}(h ``u32 seclen`` length of secctx h](j?)}(h``u32 seclen``h]h)}(hj,dh]h u32 seclen}(hj.dhhhNhNubah}(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.chMhj&dubjY)}(hhh]h)}(hlength of secctxh]hlength of secctx}(hjEdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAdhMhjBdubah}(h]h ]h"]h$]h&]uh1jXhj&dubeh}(h]h ]h"]h$]h&]uh1j8hjAdhMhjcubj9)}(h``u32 *secid`` secid h](j?)}(h``u32 *secid``h]h)}(hjedh]h u32 *secid}(hjgdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjcdubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj_dubjY)}(hhh]h)}(hsecidh]hsecid}(hj~dhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzdhMhj{dubah}(h]h ]h"]h$]h&]uh1jXhj_dubeh}(h]h ]h"]h$]h&]uh1j8hjzdhMhjcubeh}(h]h ]h"]h$]h&]uh1j3hjcubh)}(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.chMhjcubh)}(h"Convert security context to secid.h]h"Convert security context to secid.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjcubh)}(h **Return**h]j)}(hjdh]hReturn}(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.chMhjcubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjcubeh}(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&]uh1j2hjehhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjehhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjehhhjehMubjV)}(hsecurity_release_secctxh]j\)}(hsecurity_release_secctxh]hsecurity_release_secctx}(hj-ehhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj)eubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjehhhjehMubjw)}(h(struct lsm_context *cp)h]j})}(hstruct lsm_context *cph](j8)}(hj;h]hstruct}(hjIehhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjEeubjE)}(h h]h }(hjVehhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjEeubh)}(hhh]j\)}(h lsm_contexth]h lsm_context}(hjgehhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjdeubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjiemodnameN classnameNjsjv)}jy]j|)}joj/esbc.security_release_secctxasbuh1hhjEeubjE)}(h h]h }(hjehhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjEeubj)}(hjh]h*}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEeubj\)}(hcph]hcp}(hjehhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjEeubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjAeubah}(h]h ]h"]h$]h&]jtjuuh1jvhjehhhjehMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjehhhjehMubah}(h]jdah ](jjeh"]h$]h&]jj)jhuh1j&hjehMhjehhubj)}(hhh]h)}(hFree a secctx bufferh]hFree a secctx buffer}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjehhubah}(h]h ]h"]h$]h&]uh1jhjehhhjehMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjejjejjjuh1j!hhhhhNhNubj)}(hq**Parameters** ``struct lsm_context *cp`` the security context **Description** Release the security context.h](h)}(h**Parameters**h]j)}(hjeh]h Parameters}(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.chMhjeubj4)}(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}(hjfhhhNhNubah}(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.chMhjfubjY)}(hhh]h)}(hthe security contexth]hthe security context}(hj&fhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"fhMhj#fubah}(h]h ]h"]h$]h&]uh1jXhjfubeh}(h]h ]h"]h$]h&]uh1j8hj"fhMhjfubah}(h]h ]h"]h$]h&]uh1j3hjeubh)}(h**Description**h]j)}(hjHfh]h Description}(hjJfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjFfubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjeubh)}(hRelease the security context.h]hRelease the security context.}(hj^fhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjeubeh}(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}(hjfhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjfubjE)}(h h]h }(hjfhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjfubh)}(hhh]j\)}(hinodeh]hinode}(hjfhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjfubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjfmodnameN classnameNjsjv)}jy]j|)}jojfsb"c.security_inode_invalidate_secctxasbuh1hhjfubjE)}(h h]h }(hjghhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjfubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubj\)}(hinodeh]hinode}(hj#ghhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjfubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjfubah}(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}(hjMghhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjJghhubah}(h]h ]h"]h$]h&]uh1jhjfhhhjfhM ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjegjjegjjjuh1j!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)}(hjogh]h Parameters}(hjqghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmgubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjigubj4)}(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.chMhjgubjY)}(hhh]h)}(hinodeh]hinode}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjgubah}(h]h ]h"]h$]h&]uh1jXhjgubeh}(h]h ]h"]h$]h&]uh1j8hjghMhjgubah}(h]h ]h"]h$]h&]uh1j3hjigubh)}(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.chMhjigubh)}(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.}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjigubeh}(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}(hjhhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj hhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM5ubjE)}(h h]h }(hjhhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj hhhhjhhM5ubjV)}(hsecurity_inode_notifysecctxh]j\)}(hsecurity_inode_notifysecctxh]hsecurity_inode_notifysecctx}(hj/hhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj+hubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj hhhhjhhM5ubjw)}(h,(struct inode *inode, void *ctx, u32 ctxlen)h](j})}(hstruct inode *inodeh](j8)}(hj;h]hstruct}(hjKhhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjGhubjE)}(h h]h }(hjXhhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjGhubh)}(hhh]j\)}(hinodeh]hinode}(hjihhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjfhubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjkhmodnameN classnameNjsjv)}jy]j|)}joj1hsbc.security_inode_notifysecctxasbuh1hhjGhubjE)}(h h]h }(hjhhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjGhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhubj\)}(hinodeh]hinode}(hjhhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjGhubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjChubj})}(h void *ctxh](j3)}(hvoidh]hvoid}(hjhhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjhubjE)}(h h]h }(hjhhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhubj)}(hjh]h*}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubj\)}(hctxh]hctx}(hjhhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjhubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjChubj})}(h u32 ctxlenh](h)}(hhh]j\)}(hu32h]hu32}(hjihhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjhubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjimodnameN classnameNjsjv)}jy]jhc.security_inode_notifysecctxasbuh1hhjhubjE)}(h h]h }(hj ihhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhubj\)}(hctxlenh]hctxlen}(hj.ihhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjhubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjChubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj hhhhjhhM5ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhhjhhM5ubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1j&hjhhM5hjhhhubj)}(hhh]h)}(h+Notify the LSM of an inode's security labelh]h-Notify the LSM of an inode’s security label}(hjXihhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM'hjUihhubah}(h]h ]h"]h$]h&]uh1jhjhhhhjhhM5ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjpijjpijjjuh1j!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)}(hjzih]h Parameters}(hj|ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxiubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM+hjtiubj4)}(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.chM(hjiubjY)}(hhh]h)}(hinodeh]hinode}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM(hjiubah}(h]h ]h"]h$]h&]uh1jXhjiubeh}(h]h ]h"]h$]h&]uh1j8hjihM(hjiubj9)}(h``void *ctx`` secctx h](j?)}(h ``void *ctx``h]h)}(hjih]h void *ctx}(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)}(hsecctxh]hsecctx}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM)hjiubah}(h]h ]h"]h$]h&]uh1jXhjiubeh}(h]h ]h"]h$]h&]uh1j8hjihM)hjiubj9)}(h ``u32 ctxlen`` length of secctx h](j?)}(h``u32 ctxlen``h]h)}(hj jh]h u32 ctxlen}(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.chM*hjjubjY)}(hhh]h)}(hlength of secctxh]hlength of secctx}(hj$jhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj jhM*hj!jubah}(h]h ]h"]h$]h&]uh1jXhjjubeh}(h]h ]h"]h$]h&]uh1j8hj jhM*hjiubeh}(h]h ]h"]h$]h&]uh1j3hjtiubh)}(h**Description**h]j)}(hjFjh]h Description}(hjHjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM,hjtiubh)}(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.}(hj\jhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM,hjtiubh)}(h **Return**h]j)}(hjmjh]hReturn}(hjojhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM3hjtiubh)}(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.chM3hjtiubeh}(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}(hjjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMKubjE)}(h h]h }(hjjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjjhhhjjhMKubjV)}(hsecurity_inode_setsecctxh]j\)}(hsecurity_inode_setsecctxh]hsecurity_inode_setsecctx}(hjjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjjhhhjjhMKubjw)}(h.(struct dentry *dentry, void *ctx, u32 ctxlen)h](j})}(hstruct dentry *dentryh](j8)}(hj;h]hstruct}(hjjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjjubjE)}(h h]h }(hjjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjjubh)}(hhh]j\)}(hdentryh]hdentry}(hj khhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj kubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjkmodnameN classnameNjsjv)}jy]j|)}jojjsbc.security_inode_setsecctxasbuh1hhjjubjE)}(h h]h }(hj-khhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjjubj)}(hjh]h*}(hj;khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubj\)}(hdentryh]hdentry}(hjHkhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjjubj})}(h void *ctxh](j3)}(hvoidh]hvoid}(hjakhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj]kubjE)}(h h]h }(hjokhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj]kubj)}(hjh]h*}(hj}khhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]kubj\)}(hctxh]hctx}(hjkhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj]kubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjjubj})}(h u32 ctxlenh](h)}(hhh]j\)}(hu32h]hu32}(hjkhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjkubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjkmodnameN classnameNjsjv)}jy]j)kc.security_inode_setsecctxasbuh1hhjkubjE)}(h h]h }(hjkhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjkubj\)}(hctxlenh]hctxlen}(hjkhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjkubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjjubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjjhhhjjhMKubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjjhhhjjhMKubah}(h]jjah ](jjeh"]h$]h&]jj)jhuh1j&hjjhMKhjjhhubj)}(hhh]h)}(h%Change the security label of an inodeh]h%Change the security label of an inode}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM<hjkhhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjjhMKubeh}(h]h ](jfunctioneh"]h$]h&]j jjjljjljjjuh1j!hhhhhNhNubj)}(hX{**Parameters** ``struct dentry *dentry`` inode ``void *ctx`` secctx ``u32 ctxlen`` length of secctx **Description** Change the security context of an inode. Updates the incore security context managed by the security module and invokes the fs code as needed (via __vfs_setxattr_noperm) to update any backing xattrs that represent the context. Example usage: NFS server invokes this hook to change the security context in its incore inode and on the backing filesystem to a value provided by the client on a SETATTR operation. Must be called with inode->i_mutex locked. **Return** Returns 0 on success, error on failure.h](h)}(h**Parameters**h]j)}(hjlh]h Parameters}(hj lhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM@hjlubj4)}(hhh](j9)}(h ``struct dentry *dentry`` inode h](j?)}(h``struct dentry *dentry``h]h)}(hj=lh]hstruct dentry *dentry}(hj?lhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;lubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM=hj7lubjY)}(hhh]h)}(hinodeh]hinode}(hjVlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRlhM=hjSlubah}(h]h ]h"]h$]h&]uh1jXhj7lubeh}(h]h ]h"]h$]h&]uh1j8hjRlhM=hj4lubj9)}(h``void *ctx`` secctx h](j?)}(h ``void *ctx``h]h)}(hjvlh]h void *ctx}(hjxlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjtlubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM>hjplubjY)}(hhh]h)}(hsecctxh]hsecctx}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhM>hjlubah}(h]h ]h"]h$]h&]uh1jXhjplubeh}(h]h ]h"]h$]h&]uh1j8hjlhM>hj4lubj9)}(h ``u32 ctxlen`` length of secctx h](j?)}(h``u32 ctxlen``h]h)}(hjlh]h u32 ctxlen}(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)}(hlength of secctxh]hlength of secctx}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlhM?hjlubah}(h]h ]h"]h$]h&]uh1jXhjlubeh}(h]h ]h"]h$]h&]uh1j8hjlhM?hj4lubeh}(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.chMAhjlubh)}(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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMAhjlubh)}(h **Return**h]j)}(hjmh]hReturn}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMIhjlubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hj'mhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMIhjlubeh}(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}(hjVmhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjRmhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM[ubjE)}(h h]h }(hjemhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjRmhhhjdmhM[ubjV)}(hsecurity_inode_getsecctxh]j\)}(hsecurity_inode_getsecctxh]hsecurity_inode_getsecctx}(hjwmhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjsmubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjRmhhhjdmhM[ubjw)}(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}(hjmhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjmubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmmodnameN classnameNjsjv)}jy]j|)}jojymsbc.security_inode_getsecctxasbuh1hhjmubjE)}(h h]h }(hjmhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjmubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjmubj\)}(hinodeh]hinode}(hjmhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjmubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjmubj})}(hstruct lsm_context *cph](j8)}(hj;h]hstruct}(hjnhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjnubjE)}(h h]h }(hjnhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjnubh)}(hhh]j\)}(h lsm_contexth]h lsm_context}(hj#nhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj nubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj%nmodnameN classnameNjsjv)}jy]jmc.security_inode_getsecctxasbuh1hhjnubjE)}(h h]h }(hjAnhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjnubj)}(hjh]h*}(hjOnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj\)}(hcph]hcp}(hj\nhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjnubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjmubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjRmhhhjdmhM[ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjNmhhhjdmhM[ubah}(h]jImah ](jjeh"]h$]h&]jj)jhuh1j&hjdmhM[hjKmhhubj)}(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.chMRhjnhhubah}(h]h ]h"]h$]h&]uh1jhjKmhhhjdmhM[ubeh}(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.chMVhjnubj4)}(hhh](j9)}(h``struct inode *inode`` inode h](j?)}(h``struct inode *inode``h]h)}(hjnh]hstruct inode *inode}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMShjnubjY)}(hhh]h)}(hinodeh]hinode}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMShjnubah}(h]h ]h"]h$]h&]uh1jXhjnubeh}(h]h ]h"]h$]h&]uh1j8hjnhMShjnubj9)}(h,``struct lsm_context *cp`` security context h](j?)}(h``struct lsm_context *cp``h]h)}(hjoh]hstruct lsm_context *cp}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMThjnubjY)}(hhh]h)}(hsecurity contexth]hsecurity context}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhjohMThjoubah}(h]h ]h"]h$]h&]uh1jXhjnubeh}(h]h ]h"]h$]h&]uh1j8hjohMThjnubeh}(h]h ]h"]h$]h&]uh1j3hjnubh)}(h**Description**h]j)}(hj;oh]h Description}(hj=ohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9oubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMVhjnubh)}(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 }(hjQohhhNhNubj)}(h**cp**h]hcp}(hjYohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQoubh) with the security context for the given }(hjQohhhNhNubj)}(h **inode**h]hinode}(hjkohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQoubh.}(hjQohhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMVhjnubh)}(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.chMYhjnubh)}(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.chMYhjnubeh}(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}(hjohhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjohhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjohhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjohhhjohMubjV)}(hsecurity_unix_stream_connecth]j\)}(hsecurity_unix_stream_connecth]hsecurity_unix_stream_connect}(hjohhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjoubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjohhhjohMubjw)}(h;(struct sock *sock, struct sock *other, struct sock *newsk)h](j})}(hstruct sock *sockh](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}(hj&phhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj#pubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj(pmodnameN classnameNjsjv)}jy]j|)}jojosbc.security_unix_stream_connectasbuh1hhjpubjE)}(h h]h }(hjFphhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjpubj)}(hjh]h*}(hjTphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj\)}(hsockh]hsock}(hjaphhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjpubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjpubj})}(hstruct sock *otherh](j8)}(hj;h]hstruct}(hjzphhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjvpubjE)}(h h]h }(hjphhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjvpubh)}(hhh]j\)}(hsockh]hsock}(hjphhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjpubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjpmodnameN classnameNjsjv)}jy]jBpc.security_unix_stream_connectasbuh1hhjvpubjE)}(h h]h }(hjphhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjvpubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvpubj\)}(hotherh]hother}(hjphhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjvpubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjpubj})}(hstruct sock *newskh](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}(hjqhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjqubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj qmodnameN classnameNjsjv)}jy]jBpc.security_unix_stream_connectasbuh1hhjpubjE)}(h h]h }(hj&qhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjpubj)}(hjh]h*}(hj4qhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj\)}(hnewskh]hnewsk}(hjAqhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjpubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjpubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjohhhjohMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjohhhjohMubah}(h]joah ](jjeh"]h$]h&]jj)jhuh1j&hjohMhjohhubj)}(hhh]h)}(h$Check if a AF_UNIX stream is allowedh]h$Check if a AF_UNIX stream is allowed}(hjkqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhqhhubah}(h]h ]h"]h$]h&]uh1jhjohhhjohMubeh}(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}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjqubah}(h]h ]h"]h$]h&]uh1jXhjqubeh}(h]h ]h"]h$]h&]uh1j8hjqhMhjqubj9)}(h!``struct sock *other`` peer sock h](j?)}(h``struct sock *other``h]h)}(hjqh]hstruct sock *other}(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)}(h peer sockh]h peer sock}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhMhjqubah}(h]h ]h"]h$]h&]uh1jXhjqubeh}(h]h ]h"]h$]h&]uh1j8hjqhMhjqubj9)}(h ``struct sock *newsk`` new sock h](j?)}(h``struct sock *newsk``h]h)}(hjrh]hstruct sock *newsk}(hj rhhhNhNubah}(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.chMhjrubjY)}(hhh]h)}(hnew sockh]hnew sock}(hj7rhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3rhMhj4rubah}(h]h ]h"]h$]h&]uh1jXhjrubeh}(h]h ]h"]h$]h&]uh1j8hj3rhMhjqubeh}(h]h ]h"]h$]h&]uh1j3hjqubh)}(h**Description**h]j)}(hjYrh]h Description}(hj[rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWrubah}(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 }(hjorhhhNhNubj)}(h**sock**h]hsock}(hjwrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjorubh and }(hjorhhhNhNubj)}(h **other**h]hother}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjorubh.}(hjorhhhNhNubeh}(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}(hjrhhhNhNubah}(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)}(hjrh]hReturn}(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)}(h#Returns 0 if permission is granted.h]h#Returns 0 if permission is granted.}(hjrhhhNhNubah}(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}(hjshhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjshhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hj+shhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjshhhj*shMubjV)}(hsecurity_unix_may_sendh]j\)}(hsecurity_unix_may_sendh]hsecurity_unix_may_send}(hj=shhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj9subah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjshhhj*shMubjw)}(h+(struct socket *sock, struct socket *other)h](j})}(hstruct socket *sockh](j8)}(hj;h]hstruct}(hjYshhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjUsubjE)}(h h]h }(hjfshhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjUsubh)}(hhh]j\)}(hsocketh]hsocket}(hjwshhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjtsubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjysmodnameN classnameNjsjv)}jy]j|)}joj?ssbc.security_unix_may_sendasbuh1hhjUsubjE)}(h h]h }(hjshhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjUsubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUsubj\)}(hsockh]hsock}(hjshhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjUsubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjQsubj})}(hstruct socket *otherh](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]jsc.security_unix_may_sendasbuh1hhjsubjE)}(h h]h }(hjthhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjsubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubj\)}(hotherh]hother}(hj"thhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjsubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjQsubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjshhhj*shMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjshhhj*shMubah}(h]jsah ](jjeh"]h$]h&]jj)jhuh1j&hj*shMhjshhubj)}(hhh]h)}(h*Check if AF_UNIX socket can send datagramsh]h*Check if AF_UNIX socket can send datagrams}(hjLthhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjIthhubah}(h]h ]h"]h$]h&]uh1jhjshhhj*shMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjdtjjdtjjjuh1j!hhhhhNhNubj)}(hX**Parameters** ``struct socket *sock`` originating sock ``struct socket *other`` peer sock **Description** Check permissions before connecting or sending datagrams from **sock** to **other**. The **unix_stream_connect** and **unix_may_send** hooks were necessary because Linux provides an alternative to the conventional file name space for Unix domain sockets. Whereas binding and connecting to sockets in the file name space is mediated by the typical file permissions (and caught by the mknod and permission hooks in inode_security_ops), binding and connecting to sockets in the abstract name space is completely unmediated. Sufficient control of Unix domain sockets in the abstract name space isn't possible using only the socket layer hooks, since we need to know the actual target socket, which is not looked up until we are inside the af_unix code. **Return** Returns 0 if permission is granted.h](h)}(h**Parameters**h]j)}(hjnth]h Parameters}(hjpthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjltubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhtubj4)}(hhh](j9)}(h)``struct socket *sock`` originating sock h](j?)}(h``struct socket *sock``h]h)}(hjth]hstruct socket *sock}(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.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)}(hjth]hstruct socket *other}(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.chMhjtubjY)}(hhh]h)}(h peer sockh]h peer sock}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjthMhjtubah}(h]h ]h"]h$]h&]uh1jXhjtubeh}(h]h ]h"]h$]h&]uh1j8hjthMhjtubeh}(h]h ]h"]h$]h&]uh1j3hjhtubh)}(h**Description**h]j)}(hjuh]h Description}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhtubh)}(hTCheck permissions before connecting or sending datagrams from **sock** to **other**.h](h>Check permissions before connecting or sending datagrams from }(hjuhhhNhNubj)}(h**sock**h]hsock}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubh to }(hjuhhhNhNubj)}(h **other**h]hother}(hj1uhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubh.}(hjuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhtubh)}(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 }(hjJuhhhNhNubj)}(h**unix_stream_connect**h]hunix_stream_connect}(hjRuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJuubh and }(hjJuhhhNhNubj)}(h**unix_may_send**h]h unix_may_send}(hjduhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJuubhXj 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.}(hjJuhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhtubh)}(h **Return**h]j)}(hjuh]hReturn}(hjuhhhNhNubah}(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.chMhjhtubh)}(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.chMhjhtubeh}(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}(hjuhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjuhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjuhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjuhhhjuhMubjV)}(hsecurity_socket_socketpairh]j\)}(hsecurity_socket_socketpairh]hsecurity_socket_socketpair}(hjuhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjuubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjuhhhjuhMubjw)}(h,(struct socket *socka, struct socket *sockb)h](j})}(hstruct socket *sockah](j8)}(hj;h]hstruct}(hjvhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjuubjE)}(h h]h }(hjvhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjuubh)}(hhh]j\)}(hsocketh]hsocket}(hjvhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjvubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj!vmodnameN classnameNjsjv)}jy]j|)}jojusbc.security_socket_socketpairasbuh1hhjuubjE)}(h h]h }(hj?vhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjuubj)}(hjh]h*}(hjMvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuubj\)}(hsockah]hsocka}(hjZvhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjuubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjuubj})}(hstruct socket *sockbh](j8)}(hj;h]hstruct}(hjsvhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjovubjE)}(h h]h }(hjvhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjovubh)}(hhh]j\)}(hsocketh]hsocket}(hjvhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjvubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjvmodnameN classnameNjsjv)}jy]j;vc.security_socket_socketpairasbuh1hhjovubjE)}(h h]h }(hjvhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjovubj)}(hjh]h*}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjovubj\)}(hsockbh]hsockb}(hjvhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjovubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjuubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjuhhhjuhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjuhhhjuhMubah}(h]juah ](jjeh"]h$]h&]jj)jhuh1j&hjuhMhjuhhubj)}(hhh]h)}(h)Check if creating a socketpair is allowedh]h)Check if creating a socketpair is allowed}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjvhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjuhMubeh}(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)}(hjwh]h Parameters}(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.chMhjwubj4)}(hhh](j9)}(h&``struct socket *socka`` first socket h](j?)}(h``struct socket *socka``h]h)}(hj5wh]hstruct socket *socka}(hj7whhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3wubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj/wubjY)}(hhh]h)}(h first socketh]h first socket}(hjNwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJwhMhjKwubah}(h]h ]h"]h$]h&]uh1jXhj/wubeh}(h]h ]h"]h$]h&]uh1j8hjJwhMhj,wubj9)}(h'``struct socket *sockb`` second socket h](j?)}(h``struct socket *sockb``h]h)}(hjnwh]hstruct socket *sockb}(hjpwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjlwubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhwubjY)}(hhh]h)}(h second socketh]h second socket}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjwhMhjwubah}(h]h ]h"]h$]h&]uh1jXhjhwubeh}(h]h ]h"]h$]h&]uh1j8hjwhMhj,wubeh}(h]h ]h"]h$]h&]uh1j3hjwubh)}(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.chMhjwubh)}(h:Check permissions before creating a fresh pair of sockets.h]h:Check permissions before creating a fresh pair of sockets.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjwubh)}(h **Return**h]j)}(hjwh]hReturn}(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.chMhjwubj4)}(hhh]j9)}(hFReturns 0 if permission is granted and the connection was established.h](j?)}(h9Returns 0 if permission is granted and the connection wash]h9Returns 0 if permission is granted and the connection was}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjwubjY)}(hhh]h)}(h established.h]h established.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjwubah}(h]h ]h"]h$]h&]uh1jXhjwubeh}(h]h ]h"]h$]h&]uh1j8hjwhMhjwubah}(h]h ]h"]h$]h&]uh1j3hjwubeh}(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}(hj@xhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjh\/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)}(hjyh]hstruct sk_buff *skb}(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)}(hincoming packeth]hincoming packet}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjyhMhjzubah}(h]h ]h"]h$]h&]uh1jXhjyubeh}(h]h ]h"]h$]h&]uh1j8hjyhMhjyubeh}(h]h ]h"]h$]h&]uh1j3hjyubh)}(h**Description**h]j)}(hj%zh]h Description}(hj'zhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#zubah}(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 }(hj;zhhhNhNubj)}(h**skb**h]hskb}(hjCzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;zubh/ has been associated with a particular socket, }(hj;zhhhNhNubj)}(h**sk**h]hsk}(hjUzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;zubhG. Must not sleep inside this hook because some callers hold spinlocks.}(hj;zhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjyubh)}(h **Return**h]j)}(hjpzh]hReturn}(hjrzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnzubah}(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}(hjzhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjzubjE)}(h h]h }(hjzhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjzubh)}(hhh]j\)}(hsocketh]hsocket}(hj{hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj {ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj{modnameN classnameNjsjv)}jy]j|)}jojzsb"c.security_socket_getpeersec_dgramasbuh1hhjzubjE)}(h h]h }(hj0{hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjzubj)}(hjh]h*}(hj>{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubj\)}(hsockh]hsock}(hjK{hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjzubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjzubj})}(hstruct sk_buff *skbh](j8)}(hj;h]hstruct}(hjd{hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj`{ubjE)}(h h]h }(hjq{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]j,{"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|hjzubj})}(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,{"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}(hj|hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj{ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjzubeh}(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.chMhj7|hhubah}(h]h ]h"]h$]h&]uh1jhjzhhhjzhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjR|jjR|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&]uh1jhjZ|ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjV|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&]uh1hhjy|ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhju|ubjY)}(hhh]h)}(hsocketh]hsocket}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMhj|ubah}(h]h ]h"]h$]h&]uh1jXhju|ubeh}(h]h ]h"]h$]h&]uh1j8hj|hMhjr|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|hMhjr|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}hMhjr|ubeh}(h]h ]h"]h$]h&]uh1j3hjV|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.chMhjV|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.}(hj>}hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjV|ubh)}(h **Return**h]j)}(hjO}h]hReturn}(hjQ}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM}ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjV|ubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hje}hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjV|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.chMubjE)}(h h]h }(hj}hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj}hhhj}hMubjV)}(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}hMubjw)}(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}(hj ~hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj~ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj ~modnameN classnameNjsjv)}jy]j|)}joj}sbc.security_sk_cloneasbuh1hhj}ubjE)}(h h]h }(hj*~hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj}ubj)}(hjh]h*}(hj8~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj\)}(hskh]hsk}(hjE~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&]uh1j7hjZ~ubjE)}(h h]h }(hjk~hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjZ~ubh)}(hhh]j\)}(hsockh]hsock}(hj|~hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjy~ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj~~modnameN classnameNjsjv)}jy]j&~c.security_sk_cloneasbuh1hhjZ~ubjE)}(h h]h }(hj~hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjZ~ubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZ~ubj\)}(hnewskh]hnewsk}(hj~hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjZ~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)}(hClone a sock's LSM stateh]hClone a sock’s LSM state}(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)}(h**Parameters** ``const struct sock *sk`` original sock ``struct sock *newsk`` target sock **Description** Clone/copy security structure.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)}(h(``const struct sock *sk`` original sock h](j?)}(h``const struct sock *sk``h]h)}(hj h]hconst struct sock *sk}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubjY)}(hhh]h)}(h original sockh]h original sock}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hMhj6ubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hj5hMhjubj9)}(h#``struct sock *newsk`` target sock h](j?)}(h``struct sock *newsk``h]h)}(hjYh]hstruct sock *newsk}(hj[hhhNhNubah}(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.chMhjSubjY)}(hhh]h)}(h target sockh]h target sock}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjnhMhjoubah}(h]h ]h"]h$]h&]uh1jXhjSubeh}(h]h ]h"]h$]h&]uh1j8hjnhMhjubeh}(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)}(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.chMhj~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.chM"ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjhM"ubjV)}(hsecurity_sk_classify_flowh]j\)}(hsecurity_sk_classify_flowh]hsecurity_sk_classify_flow}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhM"ubjw)}(h2(const struct sock *sk, struct flowi_common *flic)h](j})}(hconst struct sock *skh](j8)}(hj h]hconst}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hj#hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj8)}(hj;h]hstruct}(hj1hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hj>hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hsockh]hsock}(hjOhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjLubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjQmodnameN classnameNjsjv)}jy]j|)}jojsbc.security_sk_classify_flowasbuh1hhjubjE)}(h h]h }(hjohhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hskh]hsk}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hstruct flowi_common *flich](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(h flowi_commonh]h flowi_common}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjÀmodnameN classnameNjsjv)}jy]jkc.security_sk_classify_flowasbuh1hhjubjE)}(h h]h }(hj߀hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hflich]hflic}(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)}(h"Set a flow's secid based on socketh]h$Set a flow’s secid based on 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&]uh1jhjhhhjhM"ubeh}(h]h ](jfunctioneh"]h$]h&]j jjj<jj<jjjuh1j!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)}(hjFh]h Parameters}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjDubah}(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 sock *sk`` original socket h](j?)}(h``const struct sock *sk``h]h)}(hjeh]hconst struct sock *sk}(hjghhhNhNubah}(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.chMhj_ubjY)}(hhh]h)}(horiginal socketh]horiginal socket}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1jXhj_ubeh}(h]h ]h"]h$]h&]uh1j8hjzhMhj\ubj9)}(h*``struct flowi_common *flic`` target flow h](j?)}(h``struct flowi_common *flic``h]h)}(hjh]hstruct flowi_common *flic}(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 target flowh]h target flow}(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&]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.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.chM hj@ubeh}(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}(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 }(hj-hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhj,hM/ubjV)}(hsecurity_req_classify_flowh]j\)}(hsecurity_req_classify_flowh]hsecurity_req_classify_flow}(hj?hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj;ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhj,hM/ubjw)}(h;(const struct request_sock *req, struct flowi_common *flic)h](j})}(hconst struct request_sock *reqh](j8)}(hj h]hconst}(hj[hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjWubjE)}(h h]h }(hjhhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjWubj8)}(hj;h]hstruct}(hjvhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjWubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjWubh)}(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|)}jojAsbc.security_req_classify_flowasbuh1hhjWubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjWubj)}(hjh]h*}(hj‚hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubj\)}(hreqh]hreq}(hjςhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjWubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjSubj})}(hstruct flowi_common *flich](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(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_req_classify_flowasbuh1hhjubjE)}(h h]h }(hj$hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hflich]hflic}(hj?hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjSubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhj,hM/ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhj,hM/ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hj,hM/hjhhubj)}(hhh]h)}(h(Set a flow's secid based on request_sockh]h*Set a flow’s secid based on request_sock}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM)hjfhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hM/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.chM-hjubj4)}(hhh](j9)}(h0``const struct request_sock *req`` request_sock h](j?)}(h"``const struct request_sock *req``h]h)}(hjh]hconst struct 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.chM*hjubjY)}(hhh]h)}(h request_sockh]h request_sock}(hjÃhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM*hjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhM*hjubj9)}(h*``struct flowi_common *flic`` target flow h](j?)}(h``struct flowi_common *flic``h]h)}(hjh]hstruct flowi_common *flic}(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 target flowh]h target flow}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM+hjubah}(h]h ]h"]h$]h&]uh1jXhj݃ubeh}(h]h ]h"]h$]h&]uh1j8hjhM+hjubeh}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hjh]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.chM-hjubh)}(h)Sets **flic**'s secid to **req**'s secid.h](hSets }(hj4hhhNhNubj)}(h**flic**h]hflic}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh’s secid to }(hj4hhhNhNubj)}(h**req**h]hreq}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh ’s secid.}(hj4hhhNhNubeh}(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_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.chM>ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjhM>ubjV)}(hsecurity_sock_grafth]j\)}(hsecurity_sock_grafth]hsecurity_sock_graft}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhM>ubjw)}(h((struct sock *sk, struct socket *parent)h](j})}(hstruct sock *skh](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\)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj߄ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojsbc.security_sock_graftasbuh1hhjubjE)}(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 socket *parenth](j8)}(hj;h]hstruct}(hj6hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj2ubjE)}(h h]h }(hjChhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj2ubh)}(hhh]j\)}(hsocketh]hsocket}(hjThhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjQubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjVmodnameN classnameNjsjv)}jy]jc.security_sock_graftasbuh1hhj2ubjE)}(h h]h }(hjrhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj2ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj\)}(hparenth]hparent}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj2ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhjhM>ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhjhM>ubah}(h]jzah ](jjeh"]h$]h&]jj)jhuh1j&hjhM>hj|hhubj)}(hhh]h)}(h4Reconcile LSM state when grafting a sock on a socketh]h4Reconcile LSM state when grafting a sock on a socket}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM7hjhhubah}(h]h ]h"]h$]h&]uh1jhj|hhhjhM>ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjυjjυjjjuh1j!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)}(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 sock *sk`` sock being grafted 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.chM8hjubjY)}(hhh]h)}(hsock being graftedh]hsock being grafted}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM8hjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hj hM8hjubj9)}(h/``struct socket *parent`` target parent socket h](j?)}(h``struct socket *parent``h]h)}(hj1h]hstruct socket *parent}(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.chM9hj+ubjY)}(hhh]h)}(htarget parent socketh]htarget parent socket}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhM9hjGubah}(h]h ]h"]h$]h&]uh1jXhj+ubeh}(h]h ]h"]h$]h&]uh1j8hjFhM9hjubeh}(h]h ]h"]h$]h&]uh1j3hjӅubh)}(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;hjӅubh)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh’s secid and update }(hjhhhNhNubj)}(h**sk**h]hsk}(hjhhhNhNubah}(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.chM;hjӅubeh}(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.chMNubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjhMNubjV)}(hsecurity_inet_conn_requesth]j\)}(hsecurity_inet_conn_requesth]hsecurity_inet_conn_request}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhMNubjw)}(hF(const struct sock *sk, struct sk_buff *skb, struct request_sock *req)h](j})}(hconst struct sock *skh](j8)}(hj h]hconst}(hj6hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj2ubjE)}(h h]h }(hjChhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj2ubj8)}(hj;h]hstruct}(hjQhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj2ubjE)}(h h]h }(hj^hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj2ubh)}(hhh]j\)}(hsockh]hsock}(hjohhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjlubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjqmodnameN classnameNjsjv)}jy]j|)}jojsbc.security_inet_conn_requestasbuh1hhj2ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj2ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubj\)}(hskh]hsk}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj2ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj.ubj})}(hstruct sk_buff *skbh](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\)}(hsk_buffh]hsk_buff}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjއubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]jc.security_inet_conn_requestasbuh1hhjubjE)}(h h]h }(hjhhhNhNubah}(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|hj.ubj})}(hstruct request_sock *reqh](j8)}(hj;h]hstruct}(hj3hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj/ubjE)}(h h]h }(hj@hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj/ubh)}(hhh]j\)}(h request_sockh]h request_sock}(hjQhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjNubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjSmodnameN classnameNjsjv)}jy]jc.security_inet_conn_requestasbuh1hhj/ubjE)}(h h]h }(hjohhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj/ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubj\)}(hreqh]hreq}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj/ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj.ubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhjhMNubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhjhMNubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hjhMNhjhhubj)}(hhh]h)}(h-Set request_sock state using incoming connecth]h-Set request_sock state using incoming connect}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMEhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMNubeh}(h]h ](jfunctioneh"]h$]h&]j jjj̈jj̈jjjuh1j!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)}(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.chMIhjЈubj4)}(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.chMFhjubjY)}(hhh]h)}(hparent listening sockh]hparent listening sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMFhj ubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hj hMFhjubj9)}(h,``struct sk_buff *skb`` incoming connection h](j?)}(h``struct sk_buff *skb``h]h)}(hj.h]hstruct sk_buff *skb}(hj0hhhNhNubah}(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.chMGhj(ubjY)}(hhh]h)}(hincoming connectionh]hincoming connection}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMGhjDubah}(h]h ]h"]h$]h&]uh1jXhj(ubeh}(h]h ]h"]h$]h&]uh1j8hjChMGhjubj9)}(h.``struct request_sock *req`` new request_sock h](j?)}(h``struct request_sock *req``h]h)}(hjgh]hstruct request_sock *req}(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.chMHhjaubjY)}(hhh]h)}(hnew request_sockh]hnew request_sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hMHhj}ubah}(h]h ]h"]h$]h&]uh1jXhjaubeh}(h]h ]h"]h$]h&]uh1j8hj|hMHhjubeh}(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.chMJhjЈubh)}(hUInitialize the **req** LSM state based on **sk** and the incoming connect in **skb**.h](hInitialize the }(hjhhhNhNubj)}(h**req**h]hreq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh LSM state based on }(hjhhhNhNubj)}(h**sk**h]hsk}(hj҉hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and the incoming connect in }(hjhhhNhNubj)}(h**skb**h]hskb}(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.chMJhjЈ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.chMLhjЈ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.chMLhjЈubeh}(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}(hjDhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj@hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMiubjE)}(h h]h }(hjShhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj@hhhjRhMiubjV)}(hsecurity_inet_conn_establishedh]j\)}(hsecurity_inet_conn_establishedh]hsecurity_inet_conn_established}(hjehhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjaubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj@hhhjRhMiubjw)}(h&(struct sock *sk, struct sk_buff *skb)h](j})}(hstruct sock *skh](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\)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojgsb c.security_inet_conn_establishedasbuh1hhj}ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj}ubj)}(hjh]h*}(hj͊hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj}ubj\)}(hskh]hsk}(hjڊhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj}ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjyubj})}(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_inet_conn_establishedasbuh1hhjubjE)}(h h]h }(hj/hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hskbh]hskb}(hjJhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjyubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj@hhhjRhMiubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj<hhhjRhMiubah}(h]j7ah ](jjeh"]h$]h&]jj)jhuh1j&hjRhMihj9hhubj)}(hhh]h)}(h'Update sock's LSM state with connectionh]h)Update sock’s LSM state with connection}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMchjqhhubah}(h]h ]h"]h$]h&]uh1jhj9hhhjRhMiubeh}(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.chMghjubj4)}(hhh](j9)}(h``struct sock *sk`` 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.chMdhjubjY)}(hhh]h)}(hsockh]hsock}(hj΋hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjʋhMdhjˋubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjʋhMdhjubj9)}(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.chMehjubjY)}(hhh]h)}(hconnection packeth]hconnection packet}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMehjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMehjubeh}(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.chMghjubh)}(hGUpdate **sock**'s LSM state to represent a new connection from **skb**.h](hUpdate }(hj?hhhNhNubj)}(h**sock**h]hsock}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubh2’s LSM state to represent a new connection from }(hj?hhhNhNubj)}(h**skb**h]hskb}(hjYhhhNhNubah}(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.chMghjubeh}(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.chMxubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjhMxubjV)}(hsecurity_secmark_relabel_packeth]j\)}(hsecurity_secmark_relabel_packeth]hsecurity_secmark_relabel_packet}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhMxubjw)}(h (u32 secid)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|)}jojsb!c.security_secmark_relabel_packetasbuh1hhjˌubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjˌubj\)}(hsecidh]hsecid}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjˌubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjnjubah}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhjhMxubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhjhMxubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hjhMxhjhhubj)}(hhh]h)}(h%Check if setting a secmark is allowedh]h%Check if setting a secmark is allowed}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMqhj'hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMxubeh}(h]h ](jfunctioneh"]h$]h&]j jjjBjjBjjjuh1j!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)}(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.chMuhjFubj4)}(hhh]j9)}(h ``u32 secid`` new secmark value h](j?)}(h ``u32 secid``h]h)}(hjkh]h u32 secid}(hjmhhhNhNubah}(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.chMrhjeubjY)}(hhh]h)}(hnew secmark valueh]hnew secmark value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMrhjubah}(h]h ]h"]h$]h&]uh1jXhjeubeh}(h]h ]h"]h$]h&]uh1j8hjhMrhjbubah}(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.chMthjFubh)}(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}(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.chMthjFubh)}(h **Return**h]j)}(hjߍh]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.chMvhjFubh)}(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.chMvhjFubeh}(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}(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 }(hj3hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj hhhj2hMubjV)}(hsecurity_secmark_refcount_inch]j\)}(hsecurity_secmark_refcount_inch]hsecurity_secmark_refcount_inc}(hjEhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjAubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj hhhj2hMubjw)}(h(void)h]j})}(hvoidh]j3)}(hvoidh]hvoid}(hjahhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj]ubah}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjYubah}(h]h ]h"]h$]h&]jtjuuh1jvhj hhhj2hMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhj2hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j&hj2hMhjhhubj)}(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&]uh1jhjhhhj2hMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!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)}(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)}(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.chMhjƎubjY)}(hhh]h)}(h no argumentsh]h no arguments}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjƎubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjÎubah}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hjh]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.chMhjubh)}(hGTells the LSM to increment the number of secmark labeling rules loaded.h]hGTells the LSM to increment the number of secmark labeling rules loaded.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubeh}(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}(hjLhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjHhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hj[hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjHhhhjZhMubjV)}(hsecurity_secmark_refcount_dech]j\)}(hsecurity_secmark_refcount_dech]hsecurity_secmark_refcount_dec}(hjmhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjiubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjHhhhjZhMubjw)}(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&]jtjuuh1jvhjHhhhjZhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjDhhhjZhMubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1j&hjZhMhjAhhubj)}(hhh]h)}(h)Decrement the secmark labeling rule counth]h)Decrement 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&]uh1jhjAhhhjZhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjˏjjˏjjjuh1j!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)}(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.chMhjubjY)}(hhh]h)}(h no argumentsh]h no arguments}(hj hhhNhNubah}(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&]uh1j3hjϏubh)}(h**Description**h]j)}(hj/h]h Description}(hj1hhhNhNubah}(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)}(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.}(hjEhhhNhNubah}(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_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}(hjthhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjphhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjphhhjhMubjV)}(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&]jtjuuh1jUhjphhhjhMubjw)}(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)}(hjh]h*}(hjڐhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hsecurityh]hsecurity}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubah}(h]h ]h"]h$]h&]jtjuuh1jvhjphhhjhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjlhhhjhMubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1j&hjhMhjihhubj)}(hhh]h)}(h$Allocate a LSM blob for a TUN deviceh]h$Allocate a LSM blob for a TUN device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjj)jj)jjjuh1j!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)}(hj3h]h Parameters}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(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`` pointer to the LSM blob h](j?)}(h``void **security``h]h)}(hjRh]hvoid **security}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjLubjY)}(hhh]h)}(hpointer to the LSM blobh]hpointer to the LSM blob}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjghMhjhubah}(h]h ]h"]h$]h&]uh1jXhjLubeh}(h]h ]h"]h$]h&]uh1j8hjghMhjIubah}(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)}(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 }(hjhhhNhNubj)}(h **security**h]hsecurity}(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.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)}(h6Returns a zero on success, negative values on failure.h]h6Returns a zero 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.chMhj-ubeh}(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}(hj hhhNhNubah}(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_free_securityh]j\)}(hsecurity_tun_dev_free_securityh]hsecurity_tun_dev_free_security}(hj,hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj(ubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhMubjw)}(h(void *security)h]j})}(hvoid *securityh](j3)}(hvoidh]hvoid}(hjHhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjDubjE)}(h h]h }(hjVhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjDubj)}(hjh]h*}(hjdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubj\)}(hsecurityh]hsecurity}(hjqhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjDubeh}(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 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&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!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.chMhjubj4)}(hhh]j9)}(h``void *security`` 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.chMhj֒ubjY)}(hhh]h)}(hLSM blobh]hLSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhj֒ubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjӒ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.chMhjubh)}(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.}(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_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}(hj\hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjXhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjkhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjXhhhjjhMubjV)}(hsecurity_tun_dev_createh]j\)}(hsecurity_tun_dev_createh]hsecurity_tun_dev_create}(hj}hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjyubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjXhhhjjhMubjw)}(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&]jtjuuh1jvhjXhhhjjhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjThhhjjhMubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1j&hjjhMhjQhhubj)}(hhh]h)}(h)Check if creating a TUN device is allowedh]h)Check if creating a TUN device is allowed}(hjÓhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjjhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjۓjjۓjjjuh1j!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)}(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`` 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.chMhjubjY)}(hhh]h)}(h no argumentsh]h no arguments}(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}(hjAhhhNhNubah}(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)}(h5Check permissions prior to creating a new TUN device.h]h5Check permissions prior to creating a new TUN device.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjߓubh)}(h **Return**h]j)}(hjfh]hReturn}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(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_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}(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_attach_queueh]j\)}(hsecurity_tun_dev_attach_queueh]hsecurity_tun_dev_attach_queue}(hj̔hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjȔubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhMubjw)}(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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hsecurityh]hsecurity}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubah}(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 attaching a TUN queue is allowedh]h)Check if attaching a TUN queue is allowed}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj8hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjSjjSjjjuh1j!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)}(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.chMhjWubj4)}(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&]uh1hhjzubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjvubjY)}(hhh]h)}(hTUN device LSM blobh]hTUN device LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjvubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjsubah}(h]h ]h"]h$]h&]uh1j3hjWubh)}(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.chMhjWubh)}(h;Check permissions prior to attaching to a TUN device queue.h]h;Check permissions prior to attaching to a TUN device queue.}(hj͕hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjWubh)}(h **Return**h]j)}(hjޕh]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.chMhjWubh)}(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.chMhjWubeh}(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-)}(hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj`ubjY)}(hhh]h)}(hassociated sockh]hassociated sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj|ubah}(h]h ]h"]h$]h&]uh1jXhj`ubeh}(h]h ]h"]h$]h&]uh1j8hj{hMhj]ubj9)}(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&]uh1j8hjhMhj]ubeh}(h]h ]h"]h$]h&]uh1j3hjAubh)}(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.chMhjAubh)}(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.chMhjAubh)}(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.chMhjAubh)}(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.chMhjAubeh}(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}(hjFhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjBhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjUhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjBhhhjThMubjV)}(hsecurity_tun_dev_openh]j\)}(hsecurity_tun_dev_openh]hsecurity_tun_dev_open}(hjghhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjcubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjBhhhjThMubjw)}(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*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hsecurityh]hsecurity}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj{ubah}(h]h ]h"]h$]h&]jtjuuh1jvhjBhhhjThMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj>hhhjThMubah}(h]j9ah ](jjeh"]h$]h&]jj)jhuh1j&hjThMhj;hhubj)}(hhh]h)}(h#Update TUN device LSM state on openh]h#Update TUN device LSM state on open}(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;hhhjThMubeh}(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}(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 *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}(hj0hhhNhNubah}(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)}(hjRh]h Description}(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.chMhjubh)}(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.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(h **Return**h]j)}(hjyh]hReturn}(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.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_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.chMubjE)}(h h]h }(hj͙hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhj̙hMubjV)}(hsecurity_sctp_assoc_requesth]j\)}(hsecurity_sctp_assoc_requesth]hsecurity_sctp_assoc_request}(hjߙhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjۙubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhj̙hMubjw)}(h4(struct sctp_association *asoc, struct sk_buff *skb)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|)}jojsbc.security_sctp_assoc_requestasbuh1hhjubjE)}(h h]h }(hj9hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hasoch]hasoc}(hjThhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hstruct sk_buff *skbh](j8)}(hj;h]hstruct}(hjmhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjiubjE)}(h h]h }(hjzhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjiubh)}(hhh]j\)}(hsk_buffh]hsk_buff}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j5c.security_sctp_assoc_requestasbuh1hhjiubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjiubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjiubj\)}(hskbh]hskb}(hjĚhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjiubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(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(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.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj̙hMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!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)}(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)}(h3``struct sctp_association *asoc`` SCTP association h](j?)}(h!``struct sctp_association *asoc``h]h)}(hj/h]hstruct sctp_association *asoc}(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)}(hSCTP associationh]hSCTP association}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjEubah}(h]h ]h"]h$]h&]uh1jXhj)ubeh}(h]h ]h"]h$]h&]uh1j8hjDhMhj&ubj9)}(h:``struct sk_buff *skb`` packet requesting the association h](j?)}(h``struct sk_buff *skb``h]h)}(hjhh]hstruct sk_buff *skb}(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.chMhjbubjY)}(hhh]h)}(h!packet requesting the associationh]h!packet requesting the association}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1jXhjbubeh}(h]h ]h"]h$]h&]uh1j8hj}hMhj&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)}(hQPasses the **asoc** and **chunk->skb** of the association INIT packet to the LSM.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}(hjӛhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh+ of the association INIT packet to the LSM.}(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 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_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}(hj3hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj/hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjBhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj/hhhjAhMubjV)}(hsecurity_sctp_bind_connecth]j\)}(hsecurity_sctp_bind_connecth]hsecurity_sctp_bind_connect}(hjThhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjPubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj/hhhjAhMubjw)}(hE(struct sock *sk, int optname, struct sockaddr *address, int addrlen)h](j})}(hstruct sock *skh](j8)}(hj;h]hstruct}(hjphhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjlubjE)}(h h]h }(hj}hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjlubh)}(hhh]j\)}(hsockh]hsock}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojVsbc.security_sctp_bind_connectasbuh1hhjlubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj\)}(hskh]hsk}(hjɜhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjlubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjhubj})}(h int optnameh](j3)}(hinth]hint}(hjhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjޜubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjޜubj\)}(hoptnameh]hoptname}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjޜubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjhubj})}(hstruct sockaddr *addressh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hj$hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hsockaddrh]hsockaddr}(hj5hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj2ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj7modnameN classnameNjsjv)}jy]jc.security_sctp_bind_connectasbuh1hhjubjE)}(h h]h }(hjShhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(haddressh]haddress}(hjnhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjhubj})}(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}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjhubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj/hhhjAhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj+hhhjAhMubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1j&hjAhMhj(hhubj)}(hhh]h)}(h*Validate a list of addrs for a SCTP optionh]h*Validate a list of addrs for a SCTP option}(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(hhhjAhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!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)}(hjh]hstruct sock *sk}(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.chMhjubjY)}(hhh]h)}(hsocketh]hsocket}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hMhj$ubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hj#hMhjubj9)}(h(``int optname`` SCTP option to validate h](j?)}(h``int optname``h]h)}(hjGh]h int optname}(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)}(hSCTP option to validateh]hSCTP option to validate}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hMhj]ubah}(h]h ]h"]h$]h&]uh1jXhjAubeh}(h]h ]h"]h$]h&]uh1j8hj\hMhjubj9)}(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&]uh1hhj~ubah}(h]h ]h"]h$]h&]uh1j>h\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjzubjY)}(hhh]h)}(h list of IP addresses to validateh]h list of IP addresses to validate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjzubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubj9)}(h+``int addrlen`` length of the address list h](j?)}(h``int addrlen``h]h)}(hjh]h int addrlen}(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)}(hlength of the address listh]hlength of the address list}(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&]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 }(hj hhhNhNubj)}(h**sk**h]hsk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh. Depending on }(hj hhhNhNubj)}(h **optname**h]hoptname}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhI, the addresses will be treated as either a connect or bind service. The }(hj hhhNhNubj)}(h **addrlen**h]haddrlen}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubhm is calculated on each IPv4 and IPv6 address using sizeof(struct sockaddr_in) or sizeof(struct sockaddr_in6).}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM hjubh)}(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.chMhjubh)}(h'Returns 0 on success, error on failure.h]h'Returns 0 on success, error on failure.}(hjghhhNhNubah}(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_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.chM#ubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjhM#ubjV)}(hsecurity_sctp_sk_cloneh]j\)}(hsecurity_sctp_sk_cloneh]hsecurity_sctp_sk_clone}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhM#ubjw)}(hD(struct sctp_association *asoc, struct sock *sk, struct sock *newsk)h](j})}(hstruct sctp_association *asoch](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\)}(hsctp_associationh]hsctp_association}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojsbc.security_sctp_sk_cloneasbuh1hhjϟubjE)}(h h]h }(hjhhhNhNubah}(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 sock *skh](j8)}(hj;h]hstruct}(hjEhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjAubjE)}(h h]h }(hjRhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjAubh)}(hhh]j\)}(hsockh]hsock}(hjchhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj`ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjemodnameN classnameNjsjv)}jy]j c.security_sctp_sk_cloneasbuh1hhjAubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjAubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubj\)}(hskh]hsk}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjAubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj˟ubj})}(hstruct sock *newskh](j8)}(hj;h]hstruct}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hj hhhNhNubah}(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 reftargetjՠmodnameN classnameNjsjv)}jy]j c.security_sctp_sk_cloneasbuh1hhjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hnewskh]hnewsk}(hj hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(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)}(hClone a SCTP sock's LSM stateh]hClone a SCTP sock’s LSM state}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj3hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM#ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjNjjNjjjuh1j!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)}(hjXh]h Parameters}(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.chMhjRubj4)}(hhh](j9)}(h3``struct sctp_association *asoc`` SCTP association h](j?)}(h!``struct sctp_association *asoc``h]h)}(hjwh]hstruct sctp_association *asoc}(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)}(hSCTP associationh]hSCTP association}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjqubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjnubj9)}(h"``struct sock *sk`` original 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.chMhjubjY)}(hhh]h)}(h original sockh]h original sock}(hjɡhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjšhMhjơubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjšhMhjnubj9)}(h#``struct sock *newsk`` target sock h](j?)}(h``struct sock *newsk``h]h)}(hjh]hstruct sock *newsk}(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 target sockh]h target sock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjnubeh}(h]h ]h"]h$]h&]uh1j3hjRubh)}(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.chMhjRubh)}(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.chMhjRubeh}(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}(hjihhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjehhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM4ubjE)}(h h]h }(hjxhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjehhhjwhM4ubjV)}(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&]jtjuuh1jUhjehhhjwhM4ubjw)}(h4(struct sctp_association *asoc, struct sk_buff *skb)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}(hjĢhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjƢmodnameN classnameNjsjv)}jy]j|)}jojsb!c.security_sctp_assoc_establishedasbuh1hhjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hasoch]hasoc}(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}(hj6hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj3ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj8modnameN classnameNjsjv)}jy]j!c.security_sctp_assoc_establishedasbuh1hhjubjE)}(h h]h }(hjThhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hskbh]hskb}(hjohhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjehhhjwhM4ubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjahhhjwhM4ubah}(h]j\ah ](jjeh"]h$]h&]jj)jhuh1j&hjwhM4hj^hhubj)}(hhh]h)}(h'Update LSM state when assoc establishedh]h'Update LSM state when assoc established}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM+hjhhubah}(h]h ]h"]h$]h&]uh1jhj^hhhjwhM4ubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM/hjubj4)}(hhh](j9)}(h3``struct sctp_association *asoc`` SCTP association h](j?)}(h!``struct sctp_association *asoc``h]h)}(hjڣh]hstruct sctp_association *asoc}(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)}(hSCTP associationh]hSCTP association}(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 sk_buff *skb`` packet establishing 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.chM-hj ubjY)}(hhh]h)}(h#packet establishing the associationh]h#packet establishing the association}(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&]uh1j3hjubh)}(h**Description**h]j)}(hjNh]h Description}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM/hjubh)}(hcPasses the **asoc** and **chunk->skb** of the association COOKIE_ACK packet to the security module.h](h Passes the }(hjdhhhNhNubj)}(h**asoc**h]hasoc}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh and }(hjdhhhNhNubj)}(h**chunk->skb**h]h chunk->skb}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubh= of the association COOKIE_ACK packet to the security module.}(hjdhhhNhNubeh}(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.chM2hjubh)}(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.chM2hjubeh}(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}(hjޤ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 }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjڤhhhjhMYubjV)}(hsecurity_ib_pkey_accessh]j\)}(hsecurity_ib_pkey_accessh]hsecurity_ib_pkey_access}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjڤhhhjhMYubjw)}(h((void *sec, u64 subnet_prefix, u16 pkey)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*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hsech]hsec}(hjDhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hu64 subnet_prefixh](h)}(hhh]j\)}(hu64h]hu64}(hj`hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj]ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjbmodnameN classnameNjsjv)}jy]j|)}jojsbc.security_ib_pkey_accessasbuh1hhjYubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjYubj\)}(h subnet_prefixh]h subnet_prefix}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjYubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(hu16 pkeyh](h)}(hhh]j\)}(hu16h]hu16}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|c.security_ib_pkey_accessasbuh1hhjubjE)}(h h]h }(hjȥhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj\)}(hpkeyh]hpkey}(hj֥hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjڤhhhjhMYubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj֤hhhjhMYubah}(h]jѤah ](jjeh"]h$]h&]jj)jhuh1j&hjhMYhjӤhhubj)}(hhh]h)}(h(Check if access to an IB pkey is allowedh]h(Check if access to an IB pkey is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMPhjhhubah}(h]h ]h"]h$]h&]uh1jhjӤhhhjhMYubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!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)}(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.chMThjubj4)}(hhh](j9)}(h``void *sec`` LSM blob h](j?)}(h ``void *sec``h]h)}(hjAh]h void *sec}(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.chMQhj;ubjY)}(hhh]h)}(hLSM blobh]hLSM blob}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMQhjWubah}(h]h ]h"]h$]h&]uh1jXhj;ubeh}(h]h ]h"]h$]h&]uh1j8hjVhMQhj8ubj9)}(h0``u64 subnet_prefix`` subnet prefix of the port h](j?)}(h``u64 subnet_prefix``h]h)}(hjzh]hu64 subnet_prefix}(hj|hhhNhNubah}(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.chMRhjtubjY)}(hhh]h)}(hsubnet prefix of the porth]hsubnet prefix of the port}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMRhjubah}(h]h ]h"]h$]h&]uh1jXhjtubeh}(h]h ]h"]h$]h&]uh1j8hjhMRhj8ubj9)}(h``u16 pkey`` IB pkey h](j?)}(h ``u16 pkey``h]h)}(hjh]hu16 pkey}(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.chMShjubjY)}(hhh]h)}(hIB pkeyh]hIB pkey}(hj̦hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjȦhMShjɦubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjȦhMShj8ubeh}(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.chMUhjubh)}(h6Check permission to access a pkey when modifying a QP.h]h6Check permission to access a pkey when modifying a QP.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMUhjubh)}(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.chMWhjubh)}(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.chMWhjubeh}(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}(hjZhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjVhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMiubjE)}(h h]h }(hjihhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjVhhhjhhMiubjV)}(h!security_ib_endport_manage_subneth]j\)}(h!security_ib_endport_manage_subneth]h!security_ib_endport_manage_subnet}(hj{hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjwubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjVhhhjhhMiubjw)}(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 }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjhhhNhNubah}(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}(hj٧hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjէubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjէubj3)}(hcharh]hchar}(hjhhhNhNubah}(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\)}(hdev_nameh]hdev_name}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjէubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubj})}(h u8 port_numh](h)}(hhh]j\)}(hu8h]hu8}(hj9hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj6ubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetj;modnameN classnameNjsjv)}jy]j|)}joj}sb#c.security_ib_endport_manage_subnetasbuh1hhj2ubjE)}(h h]h }(hjYhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj2ubj\)}(hport_numh]hport_num}(hjghhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj2ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(h]h ]h"]h$]h&]jtjuuh1jvhjVhhhjhhMiubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjRhhhjhhMiubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1j&hjhhMihjOhhubj)}(hhh]h)}(h Check if SMPs traffic is allowedh]h Check if SMPs traffic is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chM`hjhhubah}(h]h ]h"]h$]h&]uh1jhjOhhhjhhMiubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!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)}(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.chMdhjubj4)}(hhh](j9)}(h``void *sec`` LSM blob h](j?)}(h ``void *sec``h]h)}(hjҨh]h void *sec}(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.chMahj̨ubjY)}(hhh]h)}(hLSM blobh]hLSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMahjubah}(h]h ]h"]h$]h&]uh1jXhj̨ubeh}(h]h ]h"]h$]h&]uh1j8hjhMahjɨubj9)}(h(``const char *dev_name`` IB device name h](j?)}(h``const char *dev_name``h]h)}(hj h]hconst char *dev_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.chMbhjubjY)}(hhh]h)}(hIB device nameh]hIB device name}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMbhj!ubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hj hMbhjɨubj9)}(h``u8 port_num`` port number h](j?)}(h``u8 port_num``h]h)}(hjDh]h u8 port_num}(hjFhhhNhNubah}(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.chMchj>ubjY)}(hhh]h)}(h port numberh]h port number}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhMchjZubah}(h]h ]h"]h$]h&]uh1jXhj>ubeh}(h]h ]h"]h$]h&]uh1j8hjYhMchjɨubeh}(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.chMehjubh)}(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.chMehjubh)}(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.chMghjubh)}(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.chMghjubeh}(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&]uh1j2hjhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMxubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjhMxubjV)}(hsecurity_ib_alloc_securityh]j\)}(hsecurity_ib_alloc_securityh]hsecurity_ib_alloc_security}(hj hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhMxubjw)}(h (void **sec)h]j})}(h void **sech](j3)}(hvoidh]hvoid}(hj(hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj$ubjE)}(h h]h }(hj6hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj$ubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubj\)}(hsech]hsec}(hj^hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj$ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hj ubah}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhjhMxubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhjhMxubah}(h]jީah ](jjeh"]h$]h&]jj)jhuh1j&hjhMxhjhhubj)}(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.chMqhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMxubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!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)}(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.chMuhjubj4)}(hhh]j9)}(h``void **sec`` LSM blob h](j?)}(h``void **sec``h]h)}(hjɪh]h void **sec}(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.chMrhjêubjY)}(hhh]h)}(hLSM blobh]hLSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjުhMrhjߪubah}(h]h ]h"]h$]h&]uh1jXhjêubeh}(h]h ]h"]h$]h&]uh1j8hjުhMrhjubah}(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.chMthjubh)}(h5Allocate a security structure for Infiniband objects.h]h5Allocate a security structure for Infiniband objects.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMthjubh)}(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.chMvhjubh)}(h*Returns 0 on success, non-zero on failure.h]h*Returns 0 on success, non-zero on failure.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMvhjubeh}(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}(hjphhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjlhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjlhhhj~hMubjV)}(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&]jtjuuh1jUhjlhhhj~hMubjw)}(h (void *sec)h]j})}(h void *sech](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\)}(hsech]hsec}(hj֫hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubah}(h]h ]h"]h$]h&]jtjuuh1jvhjlhhhj~hMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhhj~hMubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1j&hj~hMhjehhubj)}(hhh]h)}(hFree an Infiniband LSM blobh]hFree an Infiniband LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjehhhj~hMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!hhhhhNhNubj)}(hg**Parameters** ``void *sec`` LSM blob **Description** Deallocate an Infiniband 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.chMhjubj4)}(hhh]j9)}(h``void *sec`` LSM blob h](j?)}(h ``void *sec``h]h)}(hjAh]h void *sec}(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)}(hLSM blobh]hLSM blob}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjVhMhjWubah}(h]h ]h"]h$]h&]uh1jXhj;ubeh}(h]h ]h"]h$]h&]uh1j8hjVhMhj8ubah}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hj|h]h Description}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubh)}(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.chMhjubeh}(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 }(hjЬhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjhhhjϬhMubjV)}(hsecurity_xfrm_policy_alloch]j\)}(hsecurity_xfrm_policy_alloch]hsecurity_xfrm_policy_alloc}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjެubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjϬhMubjw)}(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}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hj hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojsbc.security_xfrm_policy_allocasbuh1hhjubjE)}(h h]h }(hj<hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hctxph]hctxp}(hjdhhhNhNubah}(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}(hj}hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjyubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjyubh)}(hhh]j\)}(hxfrm_user_sec_ctxh]hxfrm_user_sec_ctx}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j8c.security_xfrm_policy_allocasbuh1hhjyubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjyubj)}(hjh]h*}(hjǭhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyubj\)}(hsec_ctxh]hsec_ctx}(hjԭhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjyubeh}(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]j8c.security_xfrm_policy_allocasbuh1hhjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj\)}(hgfph]hgfp}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubeh}(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)}(hAllocate a xfrm policy LSM blobh]hAllocate a xfrm policy LSM blob}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjChhubah}(h]h ]h"]h$]h&]uh1jhjhhhjϬhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjj^jj^jjjuh1j!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)}(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)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhj~ubj9)}(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}(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$security label provided by userspaceh]h$security label provided by userspace}(hjٮhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjծhMhj֮ubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjծhMhj~ubj9)}(h``gfp_t gfp`` gfp flags h](j?)}(h ``gfp_t gfp``h]h)}(hjh]h gfp_t gfp}(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 gfp flagsh]h gfp flags}(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&]uh1j3hjbubh)}(h**Description**h]j)}(hj4h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjbubh)}(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.}(hjJhhhNhNubah}(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&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjbubh)}(h%Return 0 if operation was successful.h]h%Return 0 if operation was successful.}(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_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}(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_freeh]j\)}(hsecurity_xfrm_policy_freeh]hsecurity_xfrm_policy_free}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhMubjw)}(h(struct xfrm_sec_ctx *ctx)h]j})}(hstruct xfrm_sec_ctx *ctxh](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\)}(h xfrm_sec_ctxh]h xfrm_sec_ctx}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojïsbc.security_xfrm_policy_freeasbuh1hhjٯubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjٯubj)}(hjh]h*}(hj)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjٯubj\)}(hctxh]hctx}(hj6hhhNhNubah}(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 a xfrm security contexth]hFree a xfrm security context}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhj]hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjxjjxjjjuh1j!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.chMhj|ubj4)}(hhh]j9)}(h3``struct xfrm_sec_ctx *ctx`` xfrm security context h](j?)}(h``struct xfrm_sec_ctx *ctx``h]h)}(hjh]hstruct xfrm_sec_ctx *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)}(hxfrm security contexth]hxfrm security context}(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+Free LSM resources associated with **ctx**.h](h#Free LSM resources associated with }(hjhhhNhNubj)}(h**ctx**h]hctx}(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.chMhj|ubeh}(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}(hj3hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj/hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjBhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj/hhhjAhMubjV)}(hsecurity_xfrm_state_alloch]j\)}(hsecurity_xfrm_state_alloch]hsecurity_xfrm_state_alloc}(hjThhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjPubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj/hhhjAhMubjw)}(h9(struct xfrm_state *x, struct xfrm_user_sec_ctx *sec_ctx)h](j})}(hstruct xfrm_state *xh](j8)}(hj;h]hstruct}(hjphhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjlubjE)}(h h]h }(hj}hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjlubh)}(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|)}jojVsbc.security_xfrm_state_allocasbuh1hhjlubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubj\)}(hxh]hx}(hjɱhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjlubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjhubj})}(h!struct xfrm_user_sec_ctx *sec_ctxh](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\)}(hxfrm_user_sec_ctxh]hxfrm_user_sec_ctx}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]jc.security_xfrm_state_allocasbuh1hhjޱubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjޱubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjޱubj\)}(hsec_ctxh]hsec_ctx}(hj9hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjޱubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjhubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj/hhhjAhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj+hhhjAhMubah}(h]j&ah ](jjeh"]h$]h&]jj)jhuh1j&hjAhMhj(hhubj)}(hhh]h)}(hAllocate a xfrm state LSM blobh]hAllocate a xfrm state LSM blob}(hjchhhNhNubah}(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(hhhjAhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjj{jj{jjjuh1j!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"0]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubj4)}(hhh](j9)}(h;``struct xfrm_state *x`` xfrm state being added to the SAD h](j?)}(h``struct xfrm_state *x``h]h)}(hjh]hstruct xfrm_state *x}(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 state being added to the SADh]h!xfrm state being added to the SAD}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubj9)}(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)}(hjݲh]h!struct xfrm_user_sec_ctx *sec_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.chMhjײubjY)}(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&]uh1jXhjײubeh}(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)}(hAllocate a security structure to the **x->security** field; the security field is initialized to NULL when the xfrm_state is allocated. Set the context to correspond to **sec_ctx**.h](h%Allocate a security structure to the }(hj.hhhNhNubj)}(h**x->security**h]h x->security}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubhu field; the security field is initialized to NULL when the xfrm_state is allocated. Set the context to correspond to }(hj.hhhNhNubj)}(h **sec_ctx**h]hsec_ctx}(hjHhhhNhNubah}(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)}(hjch]hReturn}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(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.}(hjyhhhNhNubah}(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_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}(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_state_deleteh]j\)}(hsecurity_xfrm_state_deleteh]hsecurity_xfrm_state_delete}(hjɳhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjųubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhMubjw)}(h(struct xfrm_state *x)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_deleteasbuh1hhjubjE)}(h h]h }(hj#hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj\)}(hj˱h]hx}(hj>hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(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)Check if deleting a xfrm state is allowedh]h)Check if deleting a xfrm state is allowed}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjdhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j 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.chMhjubj4)}(hhh]j9)}(h$``struct xfrm_state *x`` xfrm state h](j?)}(h``struct xfrm_state *x``h]h)}(hjh]hstruct xfrm_state *x}(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 stateh]h xfrm state}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(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"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.chMhjubh)}(h **Return**h]j)}(hj h]hReturn}(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.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_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}(hjOhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjKhhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hj^hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjKhhhj]hMubjV)}(hsecurity_locked_downh]j\)}(hsecurity_locked_downh]hsecurity_locked_down}(hjphhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjlubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjKhhhj]hMubjw)}(h(enum lockdown_reason what)h]j})}(henum lockdown_reason whath](j8)}(hj;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}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojrsbc.security_locked_downasbuh1hhjubjE)}(h h]h }(hjʵhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj\)}(hwhath]hwhat}(hjصhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubah}(h]h ]h"]h$]h&]jtjuuh1jvhjKhhhj]hMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjGhhhj]hMubah}(h]jBah ](jjeh"]h$]h&]jj)jhuh1j&hj]hMhjDhhubj)}(hhh]h)}(h$Check if a kernel feature is allowedh]h$Check if a kernel feature is allowed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjDhhhj]hMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!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)}(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)}(h7``enum lockdown_reason what`` requested kernel feature h](j?)}(h``enum lockdown_reason what``h]h)}(hjCh]henum lockdown_reason what}(hjEhhhNhNubah}(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.chMhj=ubjY)}(hhh]h)}(hrequested kernel featureh]hrequested kernel feature}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1jXhj=ubeh}(h]h ]h"]h$]h&]uh1j8hjXhMhj:ubah}(h]h ]h"]h$]h&]uh1j3hjubh)}(h**Description**h]j)}(hj~h]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)}(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.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_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&]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_bdev_alloch]j\)}(hsecurity_bdev_alloch]hsecurity_bdev_alloc}(hj hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhMubjw)}(h(struct block_device *bdev)h]j})}(hstruct block_device *bdevh](j8)}(hj;h]hstruct}(hj'hhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hj#ubjE)}(h h]h }(hj4hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj#ubh)}(hhh]j\)}(h block_deviceh]h block_device}(hjEhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjBubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjGmodnameN classnameNjsjv)}jy]j|)}joj sbc.security_bdev_allocasbuh1hhj#ubjE)}(h h]h }(hjehhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj#ubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubj\)}(hbdevh]hbdev}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hj#ubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjubah}(h]h ]h"]h$]h&]jtjuuh1jvhjhhhjhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhjhhhjhMubah}(h]jݶah ](jjeh"]h$]h&]jj)jhuh1j&hjhMhj߶hhubj)}(hhh]h)}(h Allocate a block device LSM blobh]h Allocate a block device LSM blob}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj߶hhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjj·jj·jjjuh1j!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)}(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 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.chMhjubjY)}(hhh]h)}(h block deviceh]h block device}(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)}(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 }(hj<hhhNhNubj)}(h**bdev->bd_security**h]hbdev->bd_security}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubhR. The security field is initialized to NULL when the bdev structure is allocated.}(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}(hjahhhNhNubah}(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%Return 0 if operation was successful.h]h%Return 0 if operation was successful.}(hjuhhhNhNubah}(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](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}(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_bdev_freeh]j\)}(hsecurity_bdev_freeh]hsecurity_bdev_free}(hjŸhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhjhhhjhMubjw)}(h(struct block_device *bdev)h]j})}(hstruct block_device *bdevh](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 block_deviceh]h block_device}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]j|)}jojǸsbc.security_bdev_freeasbuh1hhjݸubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjݸubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݸubj\)}(hbdevh]hbdev}(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)}(hFree a block device's LSM blobh]h Free a block device’s LSM blob}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjahhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjj|jj|jjjuh1j!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.chMhjubj4)}(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.chMhjubjY)}(hhh]h)}(h block deviceh]h block device}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhjubah}(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)}(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}(hjhhhNhNubah}(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.chMhjubeh}(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}(hj7hhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hj3hhh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMubjE)}(h h]h }(hjFhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhj3hhhjEhMubjV)}(hsecurity_bdev_setintegrityh]j\)}(hsecurity_bdev_setintegrityh]hsecurity_bdev_setintegrity}(hjXhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjTubah}(h]h ](jojpeh"]h$]h&]jtjuuh1jUhj3hhhjEhMubjw)}(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}(hjthhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjpubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjpubh)}(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|)}jojZsbc.security_bdev_setintegrityasbuh1hhjpubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjpubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubj\)}(hbdevh]hbdev}(hjͺhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjpubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjlubj})}(henum lsm_integrity_type typeh](j8)}(hj;h]henum}(hjhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjubjE)}(h h]h }(hjhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubh)}(hhh]j\)}(hlsm_integrity_typeh]hlsm_integrity_type}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]jc.security_bdev_setintegrityasbuh1hhjubjE)}(h h]h }(hj"hhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj\)}(htypeh]htype}(hj0hhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjlubj})}(hconst void *valueh](j8)}(hj h]hconst}(hjIhhhNhNubah}(h]h ]jDah"]h$]h&]uh1j7hjEubjE)}(h h]h }(hjVhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjEubj3)}(hvoidh]hvoid}(hjdhhhNhNubah}(h]h ]j?ah"]h$]h&]uh1j2hjEubjE)}(h h]h }(hjrhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjEubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEubj\)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjEubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjlubj})}(h size_t sizeh](h)}(hhh]j\)}(hsize_th]hsize_t}(hjhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubah}(h]h ]h"]h$]h&] refdomainjreftypejo reftargetjmodnameN classnameNjsjv)}jy]jc.security_bdev_setintegrityasbuh1hhjubjE)}(h h]h }(hjǻhhhNhNubah}(h]h ]jQah"]h$]h&]uh1jDhjubj\)}(hsizeh]hsize}(hjջhhhNhNubah}(h]h ]jhah"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]noemphjtjuuh1j|hjlubeh}(h]h ]h"]h$]h&]jtjuuh1jvhj3hhhjEhMubeh}(h]h ]h"]h$]h&]jtjujuh1j,jjhj/hhhjEhMubah}(h]j*ah ](jjeh"]h$]h&]jj)jhuh1j&hjEhMhj,hhubj)}(hhh]h)}(hSet the device's integrity datah]h!Set the device’s integrity data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj,hhhjEhMubeh}(h]h ](jfunctioneh"]h$]h&]j jjjjjjjjuh1j!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)}(hj!h]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.chMhjubj4)}(hhh](j9)}(h+``struct block_device *bdev`` block device h](j?)}(h``struct block_device *bdev``h]h)}(hj@h]hstruct block_device *bdev}(hjBhhhNhNubah}(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 block deviceh]h block device}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjVubah}(h]h ]h"]h$]h&]uh1jXhj:ubeh}(h]h ]h"]h$]h&]uh1j8hjUhMhj7ubj9)}(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)}(hjyh]henum lsm_integrity_type type}(hj{hhhNhNubah}(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.chMhjsubjY)}(hhh]h)}(h3type of integrity, e.g. hash digest, signature, etch]h3type of integrity, e.g. hash digest, signature, etc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjsubeh}(h]h ]h"]h$]h&]uh1j8hjhMhj7ubj9)}(h*``const void *value`` the integrity value h](j?)}(h``const void *value``h]h)}(hjh]hconst void *value}(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 integrity valueh]hthe integrity value}(hj˼hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjǼhMhjȼubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjǼhMhj7ubj9)}(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.chMhjubjY)}(hhh]h)}(hsize of the integrity valueh]hsize of the integrity value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]uh1j8hjhMhj7ubeh}(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)}(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 }(hj<hhhNhNubj)}(h **value**h]hvalue}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<ubhX8 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.}(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}(hjahhhNhNubah}(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)}(h1Returns 0 on success, negative values on failure.h]h1Returns 0 on success, negative values on failure.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/security/lsm-development:16: ./security/security.chMhjubeh}(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_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}jjs nametypes}jsh}(jhjj(jjjjjRjWju jz j j jGjLjjjjjjj j ju#jz#j%j%jD*jI*j-j-j/j/j2j2j5j5jP8jU8j:j:jA>jF>j3Aj8AjCjCjFj FjRHjWHjJjJjlMjqMjPjPjRjRjUjUjYWj^WjYjYj[j[j]j]j_j_j[bj`bjdjejfjfjhjhjjjjjImjNmjojojsjsjujuj3xj8xjzjzj}j}jjjjjzjjjj7j<jjjjj?jDjgjljjjOjTjjjjj9j>jjj&j+jjj\jajѤj֤jMjRjީjjcjhjjjjj&j+jjjBjGjݶjjjj*j/u 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.