aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/lsm_hooks.h
diff options
context:
space:
mode:
authorDenis Efremov <efremov@ispras.ru>2019-02-26 15:49:08 -0500
committerJames Morris <james.morris@microsoft.com>2019-03-26 19:46:21 -0400
commit5fdd268f6eb8e84f04ae2458cc640f7c7331dd19 (patch)
treef0bb95d82c40292fb86f3d5f9c88f1fd7c0f9ee7 /include/linux/lsm_hooks.h
parent6b6b6476a32f763843c9a3c91dff4d91faa1267e (diff)
LSM: fix documentation for the audit_* hooks
This patch updates the documentation for the audit_* hooks to use the same arguments names as in the hook's declarations. Signed-off-by: Denis Efremov <efremov@ispras.ru> Acked-by: Kees Cook <keescook@chromium.org> Acked-by: Casey Schaufler <casey@schaufler-ca.com> Signed-off-by: James Morris <james.morris@microsoft.com>
Diffstat (limited to 'include/linux/lsm_hooks.h')
-rw-r--r--include/linux/lsm_hooks.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h
index 1a4e4dda5235..2f0990f0ed64 100644
--- a/include/linux/lsm_hooks.h
+++ b/include/linux/lsm_hooks.h
@@ -1345,9 +1345,9 @@
1345 * -EINVAL in case of an invalid rule. 1345 * -EINVAL in case of an invalid rule.
1346 * 1346 *
1347 * @audit_rule_known: 1347 * @audit_rule_known:
1348 * Specifies whether given @rule contains any fields related to 1348 * Specifies whether given @krule contains any fields related to
1349 * current LSM. 1349 * current LSM.
1350 * @rule contains the audit rule of interest. 1350 * @krule contains the audit rule of interest.
1351 * Return 1 in case of relation found, 0 otherwise. 1351 * Return 1 in case of relation found, 0 otherwise.
1352 * 1352 *
1353 * @audit_rule_match: 1353 * @audit_rule_match:
@@ -1356,13 +1356,13 @@
1356 * @secid contains the security id in question. 1356 * @secid contains the security id in question.
1357 * @field contains the field which relates to current LSM. 1357 * @field contains the field which relates to current LSM.
1358 * @op contains the operator that will be used for matching. 1358 * @op contains the operator that will be used for matching.
1359 * @rule points to the audit rule that will be checked against. 1359 * @lrule points to the audit rule that will be checked against.
1360 * Return 1 if secid matches the rule, 0 if it does not, -ERRNO on failure. 1360 * Return 1 if secid matches the rule, 0 if it does not, -ERRNO on failure.
1361 * 1361 *
1362 * @audit_rule_free: 1362 * @audit_rule_free:
1363 * Deallocate the LSM audit rule structure previously allocated by 1363 * Deallocate the LSM audit rule structure previously allocated by
1364 * audit_rule_init. 1364 * audit_rule_init.
1365 * @rule contains the allocated rule 1365 * @lsmrule contains the allocated rule
1366 * 1366 *
1367 * @inode_invalidate_secctx: 1367 * @inode_invalidate_secctx:
1368 * Notify the security module that it must revalidate the security context 1368 * Notify the security module that it must revalidate the security context