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