* [PATCH] security: fix documentation for the audit_* hooks
@ 2018-10-23 11:17 efremov
2018-10-23 19:29 ` Kees Cook
0 siblings, 1 reply; 2+ messages in thread
From: efremov @ 2018-10-23 11:17 UTC (permalink / raw)
To: James Morris
Cc: Denis Efremov, Serge E. Hallyn, Eric Paris, Paul Moore,
Kees Cook, John Johansen, linux-kernel
From: Denis Efremov <efremov@linux.com>
This patch makes argument names equal in the documentation and
declarations of the audit_* hooks.
Signed-off-by: Denis Efremov <efremov@linux.com>
---
include/linux/lsm_hooks.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h
index 596351f7c3d1..9fb67c212298 100644
--- a/include/linux/lsm_hooks.h
+++ b/include/linux/lsm_hooks.h
@@ -1329,7 +1329,7 @@
* @audit_rule_known:
* Specifies whether given @rule contains any fields related to
* current LSM.
- * @rule contains the audit rule of interest.
+ * @krule contains the audit rule of interest.
* Return 1 in case of relation found, 0 otherwise.
*
* @audit_rule_match:
@@ -1338,14 +1338,14 @@
* @secid contains the security id in question.
* @field contains the field which relates to current LSM.
* @op contains the operator that will be used for matching.
- * @rule points to the audit rule that will be checked against.
+ * @lsmrule points to the audit rule that will be checked against.
* @actx points to the audit context associated with the check.
* Return 1 if secid matches the rule, 0 if it does not, -ERRNO on failure.
*
* @audit_rule_free:
* Deallocate the LSM audit rule structure previously allocated by
* audit_rule_init.
- * @rule contains the allocated rule
+ * @lsmrule contains the allocated rule.
*
* @inode_invalidate_secctx:
* Notify the security module that it must revalidate the security context
--
2.17.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] security: fix documentation for the audit_* hooks
2018-10-23 11:17 [PATCH] security: fix documentation for the audit_* hooks efremov
@ 2018-10-23 19:29 ` Kees Cook
0 siblings, 0 replies; 2+ messages in thread
From: Kees Cook @ 2018-10-23 19:29 UTC (permalink / raw)
To: efremov
Cc: James Morris, Serge E. Hallyn, Eric Paris, Paul Moore,
John Johansen, LKML
On Tue, Oct 23, 2018 at 4:17 AM, <efremov@linux.com> wrote:
> From: Denis Efremov <efremov@linux.com>
>
> This patch makes argument names equal in the documentation and
> declarations of the audit_* hooks.
>
> Signed-off-by: Denis Efremov <efremov@linux.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
-Kees
> ---
> include/linux/lsm_hooks.h | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h
> index 596351f7c3d1..9fb67c212298 100644
> --- a/include/linux/lsm_hooks.h
> +++ b/include/linux/lsm_hooks.h
> @@ -1329,7 +1329,7 @@
> * @audit_rule_known:
> * Specifies whether given @rule contains any fields related to
> * current LSM.
> - * @rule contains the audit rule of interest.
> + * @krule contains the audit rule of interest.
> * Return 1 in case of relation found, 0 otherwise.
> *
> * @audit_rule_match:
> @@ -1338,14 +1338,14 @@
> * @secid contains the security id in question.
> * @field contains the field which relates to current LSM.
> * @op contains the operator that will be used for matching.
> - * @rule points to the audit rule that will be checked against.
> + * @lsmrule points to the audit rule that will be checked against.
> * @actx points to the audit context associated with the check.
> * Return 1 if secid matches the rule, 0 if it does not, -ERRNO on failure.
> *
> * @audit_rule_free:
> * Deallocate the LSM audit rule structure previously allocated by
> * audit_rule_init.
> - * @rule contains the allocated rule
> + * @lsmrule contains the allocated rule.
> *
> * @inode_invalidate_secctx:
> * Notify the security module that it must revalidate the security context
> --
> 2.17.2
>
--
Kees Cook
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-10-23 19:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-23 11:17 [PATCH] security: fix documentation for the audit_* hooks efremov
2018-10-23 19:29 ` Kees Cook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).