summaryrefslogtreecommitdiffstats
path: root/sys/bsm/audit_record.h
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2008-11-11 21:57:03 +0000
committercsjp <csjp@FreeBSD.org>2008-11-11 21:57:03 +0000
commit91a570b2e4cb1a2f386618178e26b64c72045054 (patch)
tree2ceb633e1416058aa83b2e9857eeac5b851912fd /sys/bsm/audit_record.h
parent83407db259b48d45da4d45d23fe20f2565f89a8b (diff)
downloadFreeBSD-src-91a570b2e4cb1a2f386618178e26b64c72045054.zip
FreeBSD-src-91a570b2e4cb1a2f386618178e26b64c72045054.tar.gz
Add support for extended header BSM tokens. Currently we use the
regular header tokens. The extended header tokens contain an IP or IPv6 address which makes it possible to identify which host an audit record came from when audit records are centralized. If the host information has not been specified, the system will default to the old style headers. Otherwise, audit records that are created as a result of system calls will contain host information. This implemented has been designed to be consistent with the Solaris implementation. Host information is set/retrieved using the A_GETKAUDIT and A_SETKAUDIT auditon(2) commands. These commands require that a pointer to a auditinfo_addr_t object is passed. Currently only IP and IPv6 address families are supported. The users pace bits associated with this change will follow in an openbsm import. Reviewed by: rwatson, (sson, wsalamon (older version)) MFC after: 1 month
Diffstat (limited to 'sys/bsm/audit_record.h')
-rw-r--r--sys/bsm/audit_record.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/bsm/audit_record.h b/sys/bsm/audit_record.h
index dd3ea29..4e269ea 100644
--- a/sys/bsm/audit_record.h
+++ b/sys/bsm/audit_record.h
@@ -244,10 +244,13 @@ token_t *au_to_file(char *file, struct timeval tm);
token_t *au_to_header32_tm(int rec_size, au_event_t e_type, au_emod_t e_mod,
struct timeval tm);
+token_t *au_to_header32_ex_tm(int rec_size, au_event_t e_type, au_emod_t e_mod,
+ struct timeval tm, struct auditinfo_addr *aia);
token_t *au_to_header64_tm(int rec_size, au_event_t e_type, au_emod_t e_mod,
struct timeval tm);
#if !defined(KERNEL) && !defined(_KERNEL)
token_t *au_to_header(int rec_size, au_event_t e_type, au_emod_t e_mod);
+token_t *au_to_header_ex(int rec_size, au_event_t e_type, au_emod_t e_mod);
token_t *au_to_header32(int rec_size, au_event_t e_type, au_emod_t e_mod);
token_t *au_to_header64(int rec_size, au_event_t e_type, au_emod_t e_mod);
#endif
OpenPOWER on IntegriCloud