diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2020-07-13 22:51:59 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-07-21 18:12:31 +0300 |
commit | f1d9b23cabc61e58509164c3c3132556476491d2 (patch) | |
tree | 51bc0fb8b3a88c2227a03db8827645506bf439ea /security/lsm_audit.c | |
parent | d7481b24b816b8c3955a9eaf01b97e2bd7f61a37 (diff) | |
download | linux-f1d9b23cabc61e58509164c3c3132556476491d2.tar.xz |
audit: purge audit_log_string from the intra-kernel audit API
audit_log_string() was inteded to be an internal audit function and
since there are only two internal uses, remove them. Purge all external
uses of it by restructuring code to use an existing audit_log_format()
or using audit_log_format().
Please see the upstream issue
https://github.com/linux-audit/audit-kernel/issues/84
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/lsm_audit.c')
-rw-r--r-- | security/lsm_audit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/lsm_audit.c b/security/lsm_audit.c index 7c555621c2bd..53d0d183db8f 100644 --- a/security/lsm_audit.c +++ b/security/lsm_audit.c @@ -432,8 +432,8 @@ static void dump_common_audit_data(struct audit_buffer *ab, a->u.ibendport->port); break; case LSM_AUDIT_DATA_LOCKDOWN: - audit_log_format(ab, " lockdown_reason="); - audit_log_string(ab, lockdown_reasons[a->u.reason]); + audit_log_format(ab, " lockdown_reason=\"%s\"", + lockdown_reasons[a->u.reason]); break; } /* switch (a->type) */ } |