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