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