1 OpenBSM Version History
5 - Fix praudit to emit correct XML.
6 - Fix auditdistd bugs related to IPv6 support, locking, and a kqueue-related
8 - Add audit event definitions for Capsicum-related syscalls, as well as
9 AUE_BINDAT and AUE_CONNECTAT.
10 - Manpage symlinks for all libbsm functions are installed again after the
11 move to autotools in OpenBSM 1.0 Alpha 5.
12 - A variety of minor documentation cleanups.
16 - Various minor tweaks to the auditdistd build to make it fit the FreeBSD
17 build environment better.
18 - AUE_WAIT6 merged from FreeBSD 9.
22 - auditdistd, a distributed audit trail management daemon, has now been
23 merged. This allows trail files to be securely and reliably synced from
24 audited hosts to an audit server, and employs TLS encryption. Where
25 available, it uses Capsicum to sandbox the service. This work was
26 contributed by Pawel Jakub Dawidek under sponsorship from the FreeBSD
31 - Add Capsicum-related error numbers for FreeBSD: ENOTCAPABLE, ECAPMODE.
32 - Add Capsicum, process descriptor audit events for FreeBSD.
34 - Fixes from the clang static analyser.
35 - Fix expiration of trail files when the host parameter is used.
37 - Support for Solaris privilege and privilege set tokens.
38 - Documentation for getachost(), improvements for getacfilesz().
39 - Fix a directory descriptor leak that happened when audit trail partitions
41 - Support for more Linux distributions with a partial contemporary endian.h.
42 - Improved escaping of XML-encapsulated BSM.
43 - A variety of minor documentation, style, and functional.
47 - Fix audit_event definitions of AUE_OPENAT_RWT and AUE_OPENAT_RWTC.
49 - Fix printing of class masks in the audump tool.
53 - Fixes to AUT_SOCKUNIX token parsing.
54 - IPv6 support for au_to_me(3).
55 - Improved robustness in the parsing of audit_control, especially long
56 flags/naflags strings and whitespace in all fields.
57 - Add missing conversion of a number of FreeBSD/Mac OS X errnos to/from BSM
62 - Change auditon(2) parameters and data structures to be 32/64-bit architecture
63 independent. Add more information to man page about auditon(2) parameters.
64 - Add wrapper functions for auditon(2) to use legacy commands when the new
65 commands are not supported.
66 - Add default for 'expire-after' in audit_control to expire trail files when
67 the audit directory is more than 10 megabytes ('10M').
68 - Interface to convert between local and BSM fcntl(2) command values has been
69 added: au_bsm_to_fcntl_cmd(3) and au_fcntl_cmd_to_bsm(3), along with
70 definitions of constants in audit_fcntl.h.
71 - A bug, introduced in OpenBSM 1.1 alpha 4, in which AUT_RETURN32 tokens
72 generated by audit_submit(3) were improperly encoded has been fixed.
73 - Fix example in audit_submit(3) man page. Also, make it clear that we want
74 the audit ID as the argument.
75 - A new audit event class 'aa', for post-login authentication and
76 authorization events, has been added.
80 - The filesz parameter in audit_control(5) now accepts suffixes: 'B' for
81 Bytes, 'K' for Kilobytes, 'M' for Megabytes, and 'G' for Gigabytes.
82 For legacy support no suffix defaults to bytes.
83 - Audit trail log expiration support added. It is configured in
84 audit_control(5) with the expire-after parameter. If there is no
85 expire-after parameter in audit_control(5), the default, then the audit
86 trail files are not expired and removed. See audit_control(5) for
88 - Change defaults in audit_control: warn at 5% rather than 20% free for audit
89 partitions, rotate automatically at 2mb, and set the default policy to
90 cnt,argv rather than cnt so that execve(2) arguments are captured if
91 AUE_EXECVE events are audited. These may provide more usable defaults for
93 - Use au_domain_to_bsm(3) and au_socket_type_to_bsm(3) to convert
94 au_to_socket_ex(3) arguments to BSM format.
95 - Fix error encoding AUT_IPC_PERM tokens.
99 - Stub libauditd(3) man page added.
100 - All BSM error number constants with BSM_ERRNO_.
101 - Interfaces to convert between local and BSM socket types and protocol
102 families have been added: au_bsm_to_domain(3), au_bsm_to_socket_type(3),
103 au_domain_to_bsm(3), and au_socket_type_to_bsm(3), along with definitions
104 of constants in audit_domain.h and audit_socket_type.h. This improves
105 interoperability by converting local constant spaces, which vary by OS, to
106 and from Solaris constants (where available) or OpenBSM constants for
107 protocol domains not present in Solaris (a fair number). These routines
108 should be used when generating and interpreting extended socket tokens.
109 - Fix build warnings with full gcc warnings enabled on most supported
111 - Don't compile error strings into bsm_errno.c when building it in the kernel
113 - When started by launchd, use the label com.apple.auditd rather than
114 org.trustedbsd.auditd.
118 - With the addition of BSM error number mapping, we also need to map the
119 local error number passed to audit_submit(3) to a BSM error number, rather
120 than have the caller perform that conversion.
121 - Reallocate user audit events to avoid collisions with Solaris; adopt a more
122 formal allocation scheme, and add some events allocated in Solaris that
123 will be of immediate use on other platforms.
124 - Add an event for Calife.
125 - Add au_strerror(3), which allows generating strings for BSM errors
126 directly, rather than requiring applications to map to the local error
127 space, which might not be able to entirely represent the BSM error number
129 - Major auditd rewrite for launchd(8) support. Add libauditd library that is
130 shared between launchd and auditd.
131 - Add AUDIT_TRIGGER_INITIALIZE trigger (sent via 'audit -i') for (re)starting
132 auditing under launchd(8) on Mac OS X.
133 - Add 'current' symlink to active audit trail.
134 - Add crash recovery of previous audit trail file when detected on audit
135 startup that it has not been properly terminated.
136 - Add the event AUE_audit_recovery to indicated when an audit trail file has
137 been recovered from not being properly terminated. This event is stored
138 in the new audit trail file and includes the path of recovered audit trail
140 - Mac OS X and FreeBSD dependent code in auditd.c is separated into
141 auditd_darwin.c and auditd_fbsd.c files.
142 - Add an event for the posix_spawn(2) and fsgetpath(2) Mac OS X system calls.
143 - For Mac OS X, we use ASL(3) instead of syslog(3) for logging.
144 - Add support for NOTICE level logging.
148 - Add two new functions, au_bsm_to_errno() and au_errno_to_bsm(), to map
149 between BSM error numbers (largely the Solaris definitions) and local
150 errno(2) values for 32-bit and 64-bit return tokens. This is required as
151 operating systems don't agree on some of the values of more recent error
153 - Fix a bug how au_to_exec_args(3) and au_to_exec_env(3) calculates the total
154 size for the token. This bug resulted in "unknown" tokens being printed
155 after the exec args/env tokens.
156 - Support for AUT_SOCKET_EX extended socket tokens, which describe a socket
157 using a pair of IPv4/IPv6 and port tuples.
158 - OpenBSM BSM file header version bumped for 1.1 release.
159 - Deprecated Darwin constants, such as TRAILER_PAD_MAGIC, removed.
163 - Include files in OpenBSM are now broken out into two parts: library builds
164 required solely for user space, and system includes, which may also be
165 required for use in the kernels of systems integrating OpenBSM. Submitted
167 - Configure option --with-native-includes allows forcing the use of native
168 include for system includes, rather than the versions bundled with OpenBSM.
169 This is intended specifically for platforms that ship OpenBSM, have adapted
170 versions of the system includes in a kernel source tree, and will use the
171 OpenBSM build infrastructure with an unmodified OpenBSM distribution,
172 allowing the customized system includes to be used with the OpenBSM build.
173 Submitted by Stacey Son.
174 - Various strcpy()'s/strcat()'s have been changed to strlcpy()'s/strlcat()'s
175 or asprintf(). Added compat/strlcpy.h for Linux.
176 - Remove compatibility defines for old Darwin token constant names; now only
177 BSM token names are provided and used.
178 - Add support for extended header tokens, which contain space for information
179 on the host generating the record.
180 - Add support for setting extended host information in the kernel, which is
181 used for setting host information in extended header tokens. The
182 audit_control file now supports a "host" parameter which can be used by
183 auditd to set the information; if not present, the kernel parameters won't
184 be set and auditd uses unextended headers for records that it generates.
188 - Add option to auditreduce(1) which allows users to invert sense of
189 matching, such that BSM records that do not match, are selected.
190 - Fix bug in audit_write() where we commit an incomplete record in the
191 event there is an error writing the subject token. This was submitted
193 - Build support for Mac OS X 10.5.1 submitted by Eric Hall.
194 - Fix a bug which resulted in host XML attributes not being printed
195 while processing extended header tokens. This patch was submitted by
197 - Constification of function arguments so that const strings can be passed
198 as arguments to tokens. This patch was submitted by Xin LI.
199 - Modify the -m option so users can select more then one audit event.
200 - For Mac OS X, added Mach IPC support for audit trigger messages.
201 - Fixed a bug in getacna() which resulted in a locking problem on Mac OS X.
202 - Added LOG_PERROR flag to openlog when -d option is used with auditd.
203 - AUE events added for Mac OS X Leopard system calls.
207 - Fix bug in auditreduce(1) which resulted in a memory fault/crash when
208 the user specified an event name with -m.
209 - Remove AU_.* hard-coded audit class constants, as audit classes are now
210 entirely dynamically configured using /etc/security/audit_class.
214 - Fix bug when processing in_addr_ex tokens.
215 - Restore the behavior of printing the string/text specified while
216 auditing arg32 tokens.
217 - Synchronized audit event list to Solaris, picking up the *at(2) system call
218 definitions, now required for FreeBSD and Linux. Added additional events
219 for *at(2) system calls not present in Solaris.
220 - Bugs in auditreduce(1) fixed allowing partial date strings to be used in
225 - Fix endian issues when processing IPv6 addresses for extended subject
227 - gcc41 warnings clean.
228 - Teach audit_submit(3) about getaudit_addr(2).
229 - Add support for zonename tokens.
233 - compat/clock_gettime.h now provides a compatibility implementation of
234 clock_gettime(), which fixes building on Mac OS X.
235 - Countless man page improvements, markup fixes, content fixs, etc.
236 - XML printing support via "praudit -x".
237 - audit.log.5 expanded to include additional BSM token types.
238 - Added encoding and decoding routines for process64_ex, process32_ex,
239 subject32_ex, header64, and attr64 tokens.
240 - Additional audit event identifiers for listen, mlockall/munlockall,
241 getpath, POSIX message queues, and mandatory access control.
245 - Correct bug in auditreduce which prevented the -c option from working
246 correctly when the user specifies to process successful or failed events.
247 The problem stemmed from not having access to the return token at the time
248 the initial preselection occurred, but now a second preselection process
249 occurs while processing the return token.
250 - getacfilesz(3) API added to read new audit_control(5) filesz setting,
251 which auditd(8) now sets the kernel audit trail rotation size to.
252 - auditreduce(1) now uses stdin if no file names are specified on the command
253 line; this was the documented behavior previously, but it was not
254 implemented. Be more specific in auditreduce(1)'s examples section about
255 what might be done with the output of auditreduce.
256 - Add audit_warn(5) closefile event so that administrators can hook
257 termination of an audit trail file. For example, this might be used to
258 compress the trail file after it is closed.
259 - auditreduce(1) now uses regular expressions for pathname matching. Users can
260 now supply one or more (comma delimited) regular expressions for searching
261 the pathnames. If one of the regular expressions is prefixed with a tilde
262 (~), and a path matches, it will be excluded from the search results.
266 - Reclassify certain read/write operations as having no class rather than the
267 fr/fw class; our default classes audit intent (open) not operations (read,
269 - Introduce AUE_SYSCTL_WRITE event so that BSD/Darwin systems can audit reads
270 and writes of sysctls as separate events. Add additional kernel
271 environment and jail events for FreeBSD.
272 - Break AUDIT_TRIGGER_OPEN_NEW into two events, AUDIT_TRIGGER_ROTATE_USER
273 (issued by the user audit(8) tool) and AUDIT_TRIGGER_ROTATE_KERNEL (issued
274 by the kernel audit implementation) so that they can be distinguished.
275 - Disable rate limiting of rotate requests; as the kernel doesn't retransmit
276 a dropped request, the log file will otherwise grow indefinitely if the
278 - Improve auditd debugging output.
279 - Fix a number of threading related bugs in audit_control file reading
281 - Add APIs au_poltostr() and au_strtopol() to convert between text
282 representations of audit_control policy flags and the flags passed to
283 auditon(A_SETPOLICY) and retrieved from auditon(A_GETPOLICY).
284 - Add API getacpol() to return the 'policy:' entry from audit_control, an
285 extension to the Solaris file format to allow specification of policy
287 - Update audump to print the audit_control policy field.
288 - Update auditd to read the audit_control policy field and set the kernel
289 policy to match it when configuring/reconfiguring. Remove the -s and -h
290 arguments as these policies are now set via the configuration file. If a
291 policy line is not found in the configuration file, continue with the
292 current default of setting AUDIT_CNT.
293 - Fix bugs in the parsing of large execve(2) arguments and environmental
294 variable tokens; increase maximum parsed argument and variable count.
295 - configure now detects strlcat(), used by policy-related functions.
296 - Reference token and record sample files added to test tree.
300 - auditd now generates complete audit records for its events, as required for
301 application-submitted audit records in the FreeBSD kernel audit
306 - Rename many OpenBSM-specific constants and API elements containing the
307 strings "BSM" and "bsm" to "AUDIT" and "audit", observing that this is true
308 for almost all existing constants and APIs.
309 - Instead of passing a per-instance cookie directly into all audit filter
310 APIs, pass in the audit filter daemon state pointer, which is then used by
311 the module using an audit_filter_{get,set}cookie() API. This will allow
312 future service APIs provided by the filter daemon to maintain their own
313 state -- for example, per-module preselection state.
317 - Correct typo in definition of AUR_INT.
318 - Adopt OpenSolaris constant values for AUDIT_* configuration flags.
319 - Arguments to au_to_exec_args() and au_to_exec_env() no longer const.
320 - Add kernel versions of au_to_exec_args() and au_to_exec_env().
321 - Fix exec argument type that is printed for env strings from 'arg' to 'env'.
322 - New OpenBSM token version number assigned, constants added for other
323 commonly seen version numbers.
324 - OpenBSM-specific events assigned numbers in the 43xxx range to avoid future
325 collisions with Solaris. Darwin events renamed to AUE_DARWIN_foo, as they
326 are now deprecated numberings.
327 - autoconf now detects clock_gettime(), which is not available on Darwin.
328 - praudit output fixes relating to arg32 and arg64 tokens.
329 - Maximum record size updated to 64k-1 to match Solaris record size limit.
330 - Various style and comment cleanups in include files.
334 - Adopted Solaris-compatible format for subject32_ex and subject64_ex
335 tokens, which previously did not correctly implement variable length
337 - Prefer inttypes.h to stdint.h; enhance queue.h detection to test for
338 TAILQ_FOREACH_SAFE(), which is present in recent BSD queue.h's, but not
339 older ones. OpenBSM now builds on some FreeBSD 4.x versions.
340 - New event types for extended attributes, ACLs, and scheduling.
344 - Use AU_TO_WRITE and AU_NO_TO_WRITE for the 'keep' argument to au_close();
345 previously we used hard-coded 0 and 1 values.
346 - Add man page for au_open(), au_write(), au_close(), and
348 - Support a more complete range of data types for the arbitrary data token:
349 add AUR_CHAR (alias to AUR_BYTE), remove AUR_LONG, add AUR_INT32 (alias
350 to AUR_INT), add AUR_INT64.
351 - Add au_close_token(), which allows writing a single token_t to a memory
352 buffer. Not likely to be used much by applications, but useful for
354 - Modify au_to_file() so that it accepts a timeval in user space, not just
355 kernel -- this is not a Solaris BSM API so can be modified without
356 causing compatibility issues.
357 - Define a new API, au_to_header32_tm(), which adds a struct timeval
358 argument to the ordinary au_to_header32(), which is now implemented by
359 wrapping au_to_header32_tm() and calling gettimeofday(). #ifndef KERNEL
360 the APIs that invoke gettimeofday(), rather than having a variable
361 definition. Don't try to retrieve time zone information using
362 gettimeofday(), as it's not needed, and introduces possible failure
364 - Don't perform byte order transformations on the addr/machine fields of
365 the terminal ID that appears in the process32/subject32 tokens. These
366 are assumed to be IP addresses, and as such, to be in network byte
368 - Universally, APIs now assume that IP addresses and ports are provided
369 in network byte order. APIs now generally provide these types in
370 network byte order when decoding.
371 - Beginnings of an OpenBSM test framework can now be found in openbsm/test.
372 This code is not built or installed by default.
373 - auditd now assigns more appropriate syslog levels to its debugging and
375 - Support for audit filters introduced: audit filters are dynamically
376 loaded shared objects that run in the context of a new daemon,
377 auditfilterd. The daemon reads from an audit pipe and feeds both BSM and
378 parsed versions of records to shared objects using a module API. This
379 will provide a framework for the writing of intrusion detection services.
380 - New utility API, audit_submit(), added to capture common elements of audit
381 record submission for many applications.
385 - Update install notes to indicate /etc files are to be installed manually.
386 - On systems without LOG_SECURITY, use LOG_AUTH.
387 - Convert to autoconf/automake in order to move to a more portable (not
388 BSD-specific) build infrastructure, and more easy conditional building of
389 components. Currently, the primary feature loss is that automake does
390 not have native support for manual symlinks. This will be addressed in a
391 future OpenBSM release.
392 - Add compat/queue.h, to be used on systems dated BSD queue macro libraries
394 - Rename CHANGELOG to HISTORY, as our change log doesn't follow some of the
395 existing conventions for a CHANGELOG.
396 - Some private data structures moved from audit.h to audit_internal.h to
397 prevent inappropriate use by applications and name space pollution.
398 - Improved detection and use of endian macros using autoconf.
399 - Avoid non-portable use of struct in6_addr, which is largely opaque.
400 - Avoid leaking BSD kernel socket related token code to user space in
402 - Teach System V IPC calls to look for Linux naming variations for certain
403 struct ipc_perm fields.
404 - Test for audit system calls, and if not present, don't build
405 bsm_wrappers.c, bsm_notify.c, audit(8), and auditd(8), which rely on
407 - au_close() is not implemented on systems that don't have audit system
408 calls, but au_close_buffer() is.
409 - Work around missing BSDisms in bsm_wrapper.c.
410 - Fix nested includes so including libbsm.h in an application on Linux
411 picks up the necessary definitions.
415 - Remove "audit" user example from audit_user, as it's not present on most
417 - Add cannot_audit() function non-Darwin systems that wraps auditon();
418 required by OpenSSH BSM support. Convert Darwin cannot_audit() into a
419 function rather than a macro.
420 - Library build fixed on Darwin following include file tweaks. The native
421 Darwin sys/audit.h conflicts with bsm/audit.h due to duplicate types, so
422 for now we force bsm_wrappers.c to not perform a nested include of
427 - Man page formatting, cross reference, mlinks, and accuracy improvements.
428 - auditd and tools now compile and run on FreeBSD/arm.
429 - auditd will now fchown() the trail file to the audit review group, if
430 defined at compile-time.
431 - Added AUE_SYSARCH for FreeBSD.
432 - Definition of AUE_SETFSGID fixed for Linux.
436 - Man page formatting improvements.
437 - A number of new audit event identifiers for FreeBSD, Linux, and POSIX.1b
439 - Remove 'tfm' class, unused in OpenBSM.
443 - Import of Darwin74 BSM drop
444 - Use 'syslog' for audit log warnings, rather than echoing to a file in
446 - Compile using BSD make infrastructure.
447 - Integrate bsm/ include files from Darwin74 XNU drop into OpenBSM.
448 - Narrow set of symbols and defines that are exposed in user space: don't
449 compile in code relying on kernel-only types such as 'struct socket'.
450 - Add README, including basic build documentation.
451 - Compilation of Apple-specific notify and Machroutines now #ifdef __APPLE__.
452 - Staticize libbsm global variables to avoid leakage into applications.
453 - Add free_au_user_ent() so that au_user_ent's don't have to be leaked.
454 - Clean up bogus nul-termination checks in libbsm.
455 - Add libbsm API man pages: au_class.3 au_control.3 au_event.3
456 au_free_token.3 au_io.3 au_mask.3 au_token.3 au_user.3 libbsm.3.
457 - Add man pages for BSM system calls: audit.2 auditctl.2 auditon.2 getaudit.2
458 getauid.2 setaudit.2 setauid.2
459 - Modify various libbsm interfaces to more consistently return 'errno' values
461 - Break out au_close() into constituent parts, allowing records to be written
462 to memory as well as files.
463 - Prefix various defines with 'BSM_' to reduce name space pollution.
464 - Added audit_internal.h, which can be used by a kernel audit implementation
465 wanting to rely on libbsm components.
466 - Build with warnings, and eliminate warnings.
467 - Make libbsm endian-independent, storing and reading BSM are big endian
468 (network byte order) rather than native byte order. More consistently
469 print IP addresses using the IP address print routine. These changes
470 make use of sys/endian.h from *BSD; since this isn't present on Darwin,
471 add it to OpenBSM as compat/endian.h, which is used only on Darwin.
472 - Import of Darwin80 BSM drop, including 64-bit file IDs, better
473 documentation of private APIs, and bug fixes.
474 - White space cleanup.
475 - Add audit.log.5, a first cut at a man page documenting the BSM file format.
476 - Teach au_read_rec() to recognize stand-alone file tokens, which are present
477 at the beginning and end of Solaris audit trails. Technically, these
478 appear to violate the high level BSM spec, which suggests that all tokens
479 are present in records, but need to be supported.
480 - Implement HEADER64, ATTR64, SUBJECT64 token types, which make it possible
481 to run praudit(1) on basic Solaris BSM streams.
482 - Switched to Solaris spelling of token names; Darwin spellings are now
483 deprecated and will be removed in a future version of OpenBSM.
484 - Adopt Solaris model for representing IPv4 and IPv6 addresses.
486 - Attempt to universally adopt the BSD style(9) coding style for
488 - auditreduce(1) now has a usage message.
489 - Update support for auditctl(2) system call to support FreeBSD.
490 - Add support for /dev/audit as the trigger source on FreeBSD.
491 - Add additional event types for Darwin, FreeBSD, and Solaris. Annotate
492 conflicts (there are a few, unfortunately). Correct spellings, comment,
493 sort, etc. These include {get,set}res[ug]id(), sendfile(), lchflags(),
494 eaccess(), kqueue(), kevent(), poll(), lchmod().
495 - Relicensed under a BSD license, many thanks to Apple, Inc!
496 - Many bug fixes, cleanups, thread safety in the class, control, event,
497 and user system audit databases. Annotate some persisting atomicity
498 bugs associated with the API and implementation.
499 - Add audump test tool.
500 - Adopt OpenSolaris BSM API memory semantics: caller allocates memory,
501 or static memory is returned for non-_r() versions of API calls.
502 _free() calls dropped as a result, and source code compatibility with
503 OpenSolaris improved significantly.
504 - Annotate BSM events with origin OS and compatibility information.
505 - auditd(8), audit(8) added to the OpenBSM distribution. auditd extended
506 to support reloading of kernel event table.
507 - Allow comments in /etc/security configuration files.