summaryrefslogtreecommitdiff
path: root/include/linux/audit.h
diff options
context:
space:
mode:
authorRichard Guy Briggs <rgb@redhat.com>2020-07-13 22:51:59 +0300
committerPaul Moore <paul@paul-moore.com>2020-07-21 18:12:31 +0300
commitf1d9b23cabc61e58509164c3c3132556476491d2 (patch)
tree51bc0fb8b3a88c2227a03db8827645506bf439ea /include/linux/audit.h
parentd7481b24b816b8c3955a9eaf01b97e2bd7f61a37 (diff)
downloadlinux-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 'include/linux/audit.h')
-rw-r--r--include/linux/audit.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h
index 523f77494847..b3d859831a31 100644
--- a/include/linux/audit.h
+++ b/include/linux/audit.h
@@ -694,9 +694,4 @@ static inline bool audit_loginuid_set(struct task_struct *tsk)
return uid_valid(audit_get_loginuid(tsk));
}
-static inline void audit_log_string(struct audit_buffer *ab, const char *buf)
-{
- audit_log_n_string(ab, buf, strlen(buf));
-}
-
#endif