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