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