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