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