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