NEWS revision 184902
1184902SrwatsonOpenBSM Version History
2184902Srwatson
3184902SrwatsonOpenBSM 1.1 alpha 2
4184902Srwatson
5184902Srwatson- Include files in OpenBSM are now broken out into two parts: library builds
6184902Srwatson  required solely for user space, and system includes, which may also be
7184902Srwatson  required for use in the kernels of systems integrating OpenBSM.  Submitted
8184902Srwatson  by Stacey Son.
9184902Srwatson- Configure option --with-native-includes allows forcing the use of native
10184902Srwatson  include for system includes, rather than the versions bundled with OpenBSM.
11184902Srwatson  This is intended specifically for platforms that ship OpenBSM, have adapted
12184902Srwatson  versions of the system includes in a kernel source tree, and will use the
13184902Srwatson  OpenBSM build infrastructure with an unmodified OpenBSM distribution,
14184902Srwatson  allowing the customized system includes to be used with the OpenBSM build.
15184902Srwatson  Submitted by Stacey Son.
16184902Srwatson- Various strcpy()'s/strcat()'s have been changed to strlcpy()'s/strlcat()'s
17184902Srwatson  or asprintf().  Added compat/strlcpy.h for Linux.
18184902Srwatson- Remove compatibility defines for old Darwin token constant names; now only
19184902Srwatson  BSM token names are provided and used.
20184902Srwatson- Add support for extended header tokens, which contain space for information
21184902Srwatson  on the host generating the record.
22184902Srwatson- Add support for setting extended host information in the kernel, which is
23184902Srwatson  used for setting host information in extended header tokens.  The
24184902Srwatson  audit_control file now supports a "host" parameter which can be used by
25184902Srwatson  auditd to set the information; if not present, the kernel parameters won't
26184902Srwatson  be set and auditd uses unextended headers for records that it generates.
27184902Srwatson
28184902SrwatsonOpenBSM 1.1 alpha 1
29184902Srwatson
30184902Srwatson- Add option to auditreduce(1) which allows users to invert sense of
31184902Srwatson  matching, such that BSM records that do not match, are selected.
32184902Srwatson- Fix bug in audit_write() where we commit an incomplete record in the
33184902Srwatson  event there is an error writing the subject token.  This was submitted
34184902Srwatson  by Diego Giagio.
35184902Srwatson- Build support for Mac OS X 10.5.1 submitted by Eric Hall.
36184902Srwatson- Fix a bug which resulted in host XML attributes not being printed
37184902Srwatson  while processing extended header tokens.  This patch was submitted by
38184902Srwatson  Martin Voros.
39184902Srwatson- Constification of function arguments so that const strings can be passed
40184902Srwatson  as arguments to tokens.  This patch was submitted by Xin LI.
41184902Srwatson- Modify the -m option so users can select more then one audit event.
42184902Srwatson- For Mac OS X, added Mach IPC support for audit trigger messages.
43184902Srwatson- Fixed a bug in getacna() which resulted in a locking problem on Mac OS X.
44184902Srwatson- Added LOG_PERROR flag to openlog when -d option is used with auditd.
45184902Srwatson- AUE events added for Mac OS X Leopard system calls.
46184902Srwatson
47184902SrwatsonOpenBSM 1.0
48184902Srwatson
49184902Srwatson- Fix bug in auditreduce(1) which resulted in a memory fault/crash when
50184902Srwatson  the user specified an event name with -m.
51184902Srwatson- Remove AU_.* hard-coded audit class constants, as audit classes are now
52184902Srwatson  entirely dynamically configured using /etc/security/audit_class.
53184902Srwatson
54184902SrwatsonOpenBSM 1.0 alpha 15
55184902Srwatson
56184902Srwatson- Fix bug when processing in_addr_ex tokens.
57184902Srwatson- Restore the behavior of printing the string/text specified while
58184902Srwatson  auditing arg32 tokens.
59184902Srwatson- Synchronized audit event list to Solaris, picking up the *at(2) system call
60184902Srwatson  definitions, now required for FreeBSD and Linux.  Added additional events
61184902Srwatson  for *at(2) system calls not present in Solaris.
62184902Srwatson- Bugs in auditreduce(1) fixed allowing partial date strings to be used in
63184902Srwatson  filtering events.
64184902Srwatson
65184902SrwatsonOpenBSM 1.0 alpha 14
66184902Srwatson
67184902Srwatson- Fix endian issues when processing IPv6 addresses for extended subject
68184902Srwatson  and process tokens.
69184902Srwatson- gcc41 warnings clean.
70184902Srwatson- Teach audit_submit(3) about getaudit_addr(2).
71184902Srwatson- Add support for zonename tokens.
72184902Srwatson
73184902SrwatsonOpenBSM 1.0 alpha 13
74184902Srwatson
75184902Srwatson- compat/clock_gettime.h now provides a compatibility implementation of
76184902Srwatson  clock_gettime(), which fixes building on Mac OS X.
77184902Srwatson- Countless man page improvements, markup fixes, content fixs, etc.
78184902Srwatson- XML printing support via "praudit -x".
79184902Srwatson- audit.log.5 expanded to include additional BSM token types.
80184902Srwatson- Added encoding and decoding routines for process64_ex, process32_ex,
81184902Srwatson  subject32_ex, header64, and attr64 tokens.
82184902Srwatson- Additional audit event identifiers for listen, mlockall/munlockall,
83184902Srwatson  getpath, POSIX message queues, and mandatory access control.
84184902Srwatson
85184902SrwatsonOpenBSM 1.0 alpha 12
86184902Srwatson
87184902Srwatson- Correct bug in auditreduce which prevented the -c option from working
88184902Srwatson  correctly when the user specifies to process successful or failed events.
89184902Srwatson  The problem stemmed from not having access to the return token at the time
90184902Srwatson  the initial preselection occurred, but now a second preselection process
91184902Srwatson  occurs while processing the return token.
92184902Srwatson- getacfilesz(3) API added to read new audit_control(5) filesz setting,
93184902Srwatson  which auditd(8) now sets the kernel audit trail rotation size to.
94184902Srwatson- auditreduce(1) now uses stdin if no file names are specified on the command
95184902Srwatson  line; this was the documented behavior previously, but it was not
96184902Srwatson  implemented.  Be more specific in auditreduce(1)'s examples section about
97184902Srwatson  what might be done with the output of auditreduce.
98184902Srwatson- Add audit_warn(5) closefile event so that administrators can hook
99184902Srwatson  termination of an audit trail file.  For example, this might be used to
100184902Srwatson  compress the trail file after it is closed.
101184902Srwatson- auditreduce(1) now uses regular expressions for pathname matching. Users can
102184902Srwatson  now supply one or more (comma delimited) regular expressions for searching
103184902Srwatson  the pathnames. If one of the regular expressions is prefixed with a tilde
104184902Srwatson  (~), and a path matches, it will be excluded from the search results.
105184902Srwatson
106184902SrwatsonOpenBSM 1.0 alpha 11
107184902Srwatson
108184902Srwatson- Reclassify certain read/write operations as having no class rather than the
109184902Srwatson  fr/fw class; our default classes audit intent (open) not operations (read,
110184902Srwatson  write).
111184902Srwatson- Introduce AUE_SYSCTL_WRITE event so that BSD/Darwin systems can audit reads
112184902Srwatson  and writes of sysctls as separate events.  Add additional kernel
113184902Srwatson  environment and jail events for FreeBSD.
114184902Srwatson- Break AUDIT_TRIGGER_OPEN_NEW into two events, AUDIT_TRIGGER_ROTATE_USER
115184902Srwatson  (issued by the user audit(8) tool) and AUDIT_TRIGGER_ROTATE_KERNEL (issued
116184902Srwatson  by the kernel audit implementation) so that they can be distinguished.
117184902Srwatson- Disable rate limiting of rotate requests; as the kernel doesn't retransmit
118184902Srwatson  a dropped request, the log file will otherwise grow indefinitely if the
119184902Srwatson  trigger is dropped.
120184902Srwatson- Improve auditd debugging output.
121184902Srwatson- Fix a number of threading related bugs in audit_control file reading
122184902Srwatson  routines.
123184902Srwatson- Add APIs au_poltostr() and au_strtopol() to convert between text
124184902Srwatson  representations of audit_control policy flags and the flags passed to
125184902Srwatson  auditon(A_SETPOLICY) and retrieved from auditon(A_GETPOLICY).
126184902Srwatson- Add API getacpol() to return the 'policy:' entry from audit_control, an
127184902Srwatson  extension to the Solaris file format to allow specification of policy
128184902Srwatson  persistent flags.
129184902Srwatson- Update audump to print the audit_control policy field.
130184902Srwatson- Update auditd to read the audit_control policy field and set the kernel
131184902Srwatson  policy to match it when configuring/reconfiguring.  Remove the -s and -h
132184902Srwatson  arguments as these policies are now set via the configuration file.  If a
133184902Srwatson  policy line is not found in the configuration file, continue with the
134184902Srwatson  current default of setting AUDIT_CNT.
135184902Srwatson- Fix bugs in the parsing of large execve(2) arguments and environmental
136184902Srwatson  variable tokens; increase maximum parsed argument and variable count.
137184902Srwatson- configure now detects strlcat(), used by policy-related functions.
138184902Srwatson- Reference token and record sample files added to test tree.
139184902Srwatson
140184902SrwatsonOpenBSM 1.0 alpha 10
141184902Srwatson
142184902Srwatson- auditd now generates complete audit records for its events, as required for
143184902Srwatson  application-submitted audit records in the FreeBSD kernel audit
144184902Srwatson  implementation.
145184902Srwatson
146184902SrwatsonOpenBSM 1.0 alpha 9
147184902Srwatson
148184902Srwatson- Rename many OpenBSM-specific constants and API elements containing the
149184902Srwatson  strings "BSM" and "bsm" to "AUDIT" and "audit", observing that this is true
150184902Srwatson  for almost all existing constants and APIs.
151184902Srwatson- Instead of passing a per-instance cookie directly into all audit filter
152184902Srwatson  APIs, pass in the audit filter daemon state pointer, which is then used by
153184902Srwatson  the module using an audit_filter_{get,set}cookie() API.  This will allow
154184902Srwatson  future service APIs provided by the filter daemon to maintain their own
155184902Srwatson  state -- for example, per-module preselection state.
156184902Srwatson
157184902SrwatsonOpenBSM 1.0 alpha 8
158184902Srwatson
159184902Srwatson- Correct typo in definition of AUR_INT.
160184902Srwatson- Adopt OpenSolaris constant values for AUDIT_* configuration flags.
161184902Srwatson- Arguments to au_to_exec_args() and au_to_exec_env() no longer const.
162184902Srwatson- Add kernel versions of au_to_exec_args() and au_to_exec_env().
163184902Srwatson- Fix exec argument type that is printed for env strings from 'arg' to 'env'.
164184902Srwatson- New OpenBSM token version number assigned, constants added for other
165184902Srwatson  commonly seen version numbers.
166184902Srwatson- OpenBSM-specific events assigned numbers in the 43xxx range to avoid future
167184902Srwatson  collisions with Solaris.  Darwin events renamed to AUE_DARWIN_foo, as they
168184902Srwatson  are now deprecated numberings.
169184902Srwatson- autoconf now detects clock_gettime(), which is not available on Darwin.
170184902Srwatson- praudit output fixes relating to arg32 and arg64 tokens.
171184902Srwatson- Maximum record size updated to 64k-1 to match Solaris record size limit.
172184902Srwatson- Various style and comment cleanups in include files.
173184902Srwatson
174184902SrwatsonOpenBSM 1.0 alpha 7
175184902Srwatson
176184902Srwatson- Adopted Solaris-compatible format for subject32_ex and subject64_ex
177184902Srwatson  tokens, which previously did not correctly implement variable length
178184902Srwatson  address storage.
179184902Srwatson- Prefer inttypes.h to stdint.h; enhance queue.h detection to test for
180184902Srwatson  TAILQ_FOREACH_SAFE(), which is present in recent BSD queue.h's, but not
181184902Srwatson  older ones.  OpenBSM now builds on some FreeBSD 4.x versions.
182184902Srwatson- New event types for extended attributes, ACLs, and scheduling.
183184902Srwatson
184184902SrwatsonOpenBSM 1.0 alpha 6
185184902Srwatson
186184902Srwatson- Use AU_TO_WRITE and AU_NO_TO_WRITE for the 'keep' argument to au_close();
187184902Srwatson  previously we used hard-coded 0 and 1 values.
188184902Srwatson- Add man page for au_open(), au_write(), au_close(), and
189184902Srwatson  au_close_buffer().
190184902Srwatson- Support a more complete range of data types for the arbitrary data token:
191184902Srwatson  add AUR_CHAR (alias to AUR_BYTE), remove AUR_LONG, add AUR_INT32 (alias
192184902Srwatson  to AUR_INT), add AUR_INT64.
193184902Srwatson- Add au_close_token(), which allows writing a single token_t to a memory
194184902Srwatson  buffer.  Not likely to be used much by applications, but useful for
195184902Srwatson  writing test tools.
196184902Srwatson- Modify au_to_file() so that it accepts a timeval in user space, not just
197184902Srwatson  kernel -- this is not a Solaris BSM API so can be modified without
198184902Srwatson  causing compatibility issues.
199184902Srwatson- Define a new API, au_to_header32_tm(), which adds a struct timeval
200184902Srwatson  argument to the ordinary au_to_header32(), which is now implemented by
201184902Srwatson  wrapping au_to_header32_tm() and calling gettimeofday().  #ifndef KERNEL
202184902Srwatson  the APIs that invoke gettimeofday(), rather than having a variable
203184902Srwatson  definition.  Don't try to retrieve time zone information using
204184902Srwatson  gettimeofday(), as it's not needed, and introduces possible failure
205184902Srwatson  modes.
206184902Srwatson- Don't perform byte order transformations on the addr/machine fields of
207184902Srwatson  the terminal ID that appears in the process32/subject32 tokens.  These
208184902Srwatson  are assumed to be IP addresses, and as such, to be in network byte
209184902Srwatson  order.
210184902Srwatson- Universally, APIs now assume that IP addresses and ports are provided
211184902Srwatson  in network byte order.  APIs now generally provide these types in
212184902Srwatson  network byte order when decoding.
213184902Srwatson- Beginnings of an OpenBSM test framework can now be found in openbsm/test.
214184902Srwatson  This code is not built or installed by default.
215184902Srwatson- auditd now assigns more appropriate syslog levels to its debugging and
216184902Srwatson  error information.
217184902Srwatson- Support for audit filters introduced: audit filters are dynamically
218184902Srwatson  loaded shared objects that run in the context of a new daemon,
219184902Srwatson  auditfilterd.  The daemon reads from an audit pipe and feeds both BSM and
220184902Srwatson  parsed versions of records to shared objects using a module API.  This
221184902Srwatson  will provide a framework for the writing of intrusion detection services.
222184902Srwatson- New utility API, audit_submit(), added to capture common elements of audit
223184902Srwatson  record submission for many applications.
224184902Srwatson
225184902SrwatsonOpenBSM 1.0 alpha 5
226184902Srwatson
227184902Srwatson- Update install notes to indicate /etc files are to be installed manually.
228184902Srwatson- On systems without LOG_SECURITY, use LOG_AUTH.
229184902Srwatson- Convert to autoconf/automake in order to move to a more portable (not
230184902Srwatson  BSD-specific) build infrastructure, and more easy conditional building of
231184902Srwatson  components.  Currently, the primary feature loss is that automake does
232184902Srwatson  not have native support for manual symlinks.  This will be addressed in a
233184902Srwatson  future OpenBSM release.
234184902Srwatson- Add compat/queue.h, to be used on systems dated BSD queue macro libraries
235184902Srwatson  (as found on Linux).
236184902Srwatson- Rename CHANGELOG to HISTORY, as our change log doesn't follow some of the
237184902Srwatson  existing conventions for a CHANGELOG.
238184902Srwatson- Some private data structures moved from audit.h to audit_internal.h to
239184902Srwatson  prevent inappropriate use by applications and name space pollution.
240184902Srwatson- Improved detection and use of endian macros using autoconf.
241184902Srwatson- Avoid non-portable use of struct in6_addr, which is largely opaque.
242184902Srwatson- Avoid leaking BSD kernel socket related token code to user space in
243184902Srwatson  bsm_token.c.
244184902Srwatson- Teach System V IPC calls to look for Linux naming variations for certain
245184902Srwatson  struct ipc_perm fields.
246184902Srwatson- Test for audit system calls, and if not present, don't build
247184902Srwatson  bsm_wrappers.c, bsm_notify.c, audit(8), and auditd(8), which rely on
248184902Srwatson  those system calls.
249184902Srwatson- au_close() is not implemented on systems that don't have audit system
250184902Srwatson  calls, but au_close_buffer() is.
251184902Srwatson- Work around missing BSDisms in bsm_wrapper.c.
252184902Srwatson- Fix nested includes so including libbsm.h in an application on Linux
253184902Srwatson  picks up the necessary definitions.
254184902Srwatson
255184902SrwatsonOpenBSM 1.0 alpha 4
256184902Srwatson
257184902Srwatson- Remove "audit" user example from audit_user, as it's not present on most
258184902Srwatson  systems.
259184902Srwatson- Add cannot_audit() function non-Darwin systems that wraps auditon();
260184902Srwatson  required by OpenSSH BSM support.  Convert Darwin cannot_audit() into a
261184902Srwatson  function rather than a macro.
262184902Srwatson- Library build fixed on Darwin following include file tweaks.  The native
263184902Srwatson  Darwin sys/audit.h conflicts with bsm/audit.h due to duplicate types, so
264184902Srwatson  for now we force bsm_wrappers.c to not perform a nested include of
265184902Srwatson  sys/audit.h.
266184902Srwatson
267184902SrwatsonOpenBSM 1.0 alpha 3
268184902Srwatson
269184902Srwatson- Man page formatting, cross reference, mlinks, and accuracy improvements.
270184902Srwatson- auditd and tools now compile and run on FreeBSD/arm.
271184902Srwatson- auditd will now fchown() the trail file to the audit review group, if
272184902Srwatson  defined at compile-time.
273184902Srwatson- Added AUE_SYSARCH for FreeBSD.
274184902Srwatson- Definition of AUE_SETFSGID fixed for Linux.
275184902Srwatson
276184902SrwatsonOpenBSM 1.0 alpha 2
277184902Srwatson
278184902Srwatson- Man page formatting improvements.
279184902Srwatson- A number of new audit event identifiers for FreeBSD, Linux, and POSIX.1b
280184902Srwatson  events.
281184902Srwatson- Remove 'tfm' class, unused in OpenBSM.
282184902Srwatson
283184902SrwatsonOpenBSM 1.0 alpha 1
284184902Srwatson
285184902Srwatson- Import of Darwin74 BSM drop
286184902Srwatson- Use 'syslog' for audit log warnings, rather than echoing to a file in
287184902Srwatson  audit_warn.
288184902Srwatson- Compile using BSD make infrastructure.
289184902Srwatson- Integrate bsm/ include files from Darwin74 XNU drop into OpenBSM.
290184902Srwatson- Narrow set of symbols and defines that are exposed in user space: don't
291184902Srwatson  compile in code relying on kernel-only types such as 'struct socket'.
292184902Srwatson- Add README, including basic build documentation.
293184902Srwatson- Compilation of Apple-specific notify and Machroutines now #ifdef __APPLE__.
294184902Srwatson- Staticize libbsm global variables to avoid leakage into applications.
295184902Srwatson- Add free_au_user_ent() so that au_user_ent's don't have to be leaked.
296184902Srwatson- Clean up bogus nul-termination checks in libbsm.
297184902Srwatson- Add libbsm API man pages: au_class.3 au_control.3 au_event.3
298184902Srwatson  au_free_token.3 au_io.3 au_mask.3 au_token.3 au_user.3 libbsm.3.
299184902Srwatson- Add man pages for BSM system calls: audit.2 auditctl.2 auditon.2 getaudit.2
300184902Srwatson  getauid.2 setaudit.2 setauid.2
301184902Srwatson- Modify various libbsm interfaces to more consistently return 'errno' values
302184902Srwatson  on failure.
303184902Srwatson- Break out au_close() into constituent parts, allowing records to be written
304184902Srwatson  to memory as well as files.
305184902Srwatson- Prefix various defines with 'BSM_' to reduce name space pollution.
306184902Srwatson- Added audit_internal.h, which can be used by a kernel audit implementation
307184902Srwatson  wanting to rely on libbsm components.
308184902Srwatson- Build with warnings, and eliminate warnings.
309184902Srwatson- Make libbsm endian-independent, storing and reading BSM are big endian
310184902Srwatson  (network byte order) rather than native byte order.  More consistently
311184902Srwatson  print IP addresses using the IP address print routine.  These changes
312184902Srwatson  make use of sys/endian.h from *BSD; since this isn't present on Darwin,
313184902Srwatson  add it to OpenBSM as compat/endian.h, which is used only on Darwin.
314184902Srwatson- Import of Darwin80 BSM drop, including 64-bit file IDs, better
315184902Srwatson  documentation of private APIs, and bug fixes.
316184902Srwatson- White space cleanup.
317184902Srwatson- Add audit.log.5, a first cut at a man page documenting the BSM file format.
318184902Srwatson- Teach au_read_rec() to recognize stand-alone file tokens, which are present
319184902Srwatson  at the beginning and end of Solaris audit trails.  Technically, these
320184902Srwatson  appear to violate the high level BSM spec, which suggests that all tokens
321184902Srwatson  are present in records, but need to be supported.
322184902Srwatson- Implement HEADER64, ATTR64, SUBJECT64 token types, which make it possible
323184902Srwatson  to run praudit(1) on basic Solaris BSM streams.
324184902Srwatson- Switched to Solaris spelling of token names; Darwin spellings are now
325184902Srwatson  deprecated and will be removed in a future version of OpenBSM.
326184902Srwatson- Adopt Solaris model for representing IPv4 and IPv6 addresses.
327184902Srwatson- Prefer C99 types.
328184902Srwatson- Attempt to universally adopt the BSD style(9) coding style for
329184902Srwatson  consistency.
330184902Srwatson- auditreduce(1) now has a usage message.
331184902Srwatson- Update support for auditctl(2) system call to support FreeBSD.
332184902Srwatson- Add support for /dev/audit as the trigger source on FreeBSD.
333184902Srwatson- Add additional event types for Darwin, FreeBSD, and Solaris.  Annotate
334184902Srwatson  conflicts (there are a few, unfortunately).  Correct spellings, comment,
335184902Srwatson  sort, etc.  These include {get,set}res[ug]id(), sendfile(), lchflags(),
336184902Srwatson  eaccess(), kqueue(), kevent(), poll(), lchmod().
337184902Srwatson- Relicensed under a BSD license, many thanks to Apple, Inc!
338184902Srwatson- Many bug fixes, cleanups, thread safety in the class, control, event,
339184902Srwatson  and user system audit databases.  Annotate some persisting atomicity
340184902Srwatson  bugs associated with the API and implementation.
341184902Srwatson- Add audump test tool.
342184902Srwatson- Adopt OpenSolaris BSM API memory semantics: caller allocates memory,
343184902Srwatson  or static memory is returned for non-_r() versions of API calls.
344184902Srwatson  _free() calls dropped as a result, and source code compatibility with
345184902Srwatson  OpenSolaris improved significantly.
346184902Srwatson- Annotate BSM events with origin OS and compatibility information.
347184902Srwatson- auditd(8), audit(8) added to the OpenBSM distribution.  auditd extended
348184902Srwatson  to support reloading of kernel event table.
349184902Srwatson- Allow comments in /etc/security configuration files.
350184902Srwatson
351184902Srwatson$P4: //depot/projects/trustedbsd/openbsm/NEWS#9 $
352