NEWS revision 191273
1184902SrwatsonOpenBSM Version History 2184902Srwatson 3191273SrwatsonOpenBSM 1.1 4191273Srwatson 5191273Srwatson- Change auditon(2) parameters and data structures to be 32/64-bit architecture 6191273Srwatson independent. Add more information to man page about auditon(2) parameters. 7191273Srwatson- Add wrapper functions for auditon(2) to use legacy commands when the new 8191273Srwatson commands are not supported. 9191273Srwatson- Add default for 'expire-after' in audit_control to expire trail files when 10191273Srwatson the audit directory is more than 10 megabytes ('10M'). 11191273Srwatson- Interface to convert between local and BSM fcntl(2) command values has been 12191273Srwatson added: au_bsm_to_fcntl_cmd(3) and au_fcntl_cmd_to_bsm(3), along with 13191273Srwatson definitions of constants in audit_fcntl.h. 14191273Srwatson- A bug, introduced in OpenBSM 1.1 alpha 4, in which AUT_RETURN32 tokens 15191273Srwatson generated by audit_submit(3) were improperly encoded has been fixed. 16191273Srwatson- Fix example in audit_submit(3) man page. Also, make it clear that we want 17191273Srwatson the audit ID as the argument. 18191273Srwatson- A new audit event class 'aa', for post-login authentication and 19191273Srwatson authorization events, has been added. 20191273Srwatson 21189279SrwatsonOpenBSM 1.1 beta 1 22189279Srwatson 23189279Srwatson- The filesz parameter in audit_control(5) now accepts suffixes: 'B' for 24189279Srwatson Bytes, 'K' for Kilobytes, 'M' for Megabytes, and 'G' for Gigabytes. 25189279Srwatson For legacy support no suffix defaults to bytes. 26189279Srwatson- Audit trail log expiration support added. It is configured in 27189279Srwatson audit_control(5) with the expire-after parameter. If there is no 28189279Srwatson expire-after parameter in audit_control(5), the default, then the audit 29189279Srwatson trail files are not expired and removed. See audit_control(5) for 30189279Srwatson more information. 31189279Srwatson- Change defaults in audit_control: warn at 5% rather than 20% free for audit 32189279Srwatson partitions, rotate automatically at 2mb, and set the default policy to 33189279Srwatson cnt,argv rather than cnt so that execve(2) arguments are captured if 34189279Srwatson AUE_EXECVE events are audited. These may provide more usable defaults for 35189279Srwatson many users. 36189279Srwatson- Use au_domain_to_bsm(3) and au_socket_type_to_bsm(3) to convert 37189279Srwatson au_to_socket_ex(3) arguments to BSM format. 38189279Srwatson- Fix error encoding AUT_IPC_PERM tokens. 39189279Srwatson 40187214SrwatsonOpenBSM 1.1 alpha 5 41187214Srwatson 42187214Srwatson- Stub libauditd(3) man page added. 43187214Srwatson- All BSM error number constants with BSM_ERRNO_. 44187214Srwatson- Interfaces to convert between local and BSM socket types and protocol 45187214Srwatson families have been added: au_bsm_to_domain(3), au_bsm_to_socket_type(3), 46187214Srwatson au_domain_to_bsm(3), and au_socket_type_to_bsm(3), along with definitions 47187214Srwatson of constants in audit_domain.h and audit_socket_type.h. This improves 48187214Srwatson interoperability by converting local constant spaces, which vary by OS, to 49187214Srwatson and from Solaris constants (where available) or OpenBSM constants for 50187214Srwatson protocol domains not present in Solaris (a fair number). These routines 51187214Srwatson should be used when generating and interpreting extended socket tokens. 52187214Srwatson- Fix build warnings with full gcc warnings enabled on most supported 53187214Srwatson platforms. 54187214Srwatson- Don't compile error strings into bsm_errno.c when building it in the kernel 55187214Srwatson environment. 56187214Srwatson- When started by launchd, use the label com.apple.auditd rather than 57187214Srwatson org.trustedbsd.auditd. 58187214Srwatson 59186647SrwatsonOpenBSM 1.1 alpha 4 60186647Srwatson 61186647Srwatson- With the addition of BSM error number mapping, we also need to map the 62186647Srwatson local error number passed to audit_submit(3) to a BSM error number, rather 63186647Srwatson than have the caller perform that conversion. 64186647Srwatson- Reallocate user audit events to avoid collisions with Solaris; adopt a more 65186647Srwatson formal allocation scheme, and add some events allocated in Solaris that 66186647Srwatson will be of immediate use on other platforms. 67186647Srwatson- Add an event for Calife. 68186647Srwatson- Add au_strerror(3), which allows generating strings for BSM errors 69186647Srwatson directly, rather than requiring applications to map to the local error 70186647Srwatson space, which might not be able to entirely represent the BSM error number 71186647Srwatson space. 72186647Srwatson- Major auditd rewrite for launchd(8) support. Add libauditd library that is 73186647Srwatson shared between launchd and auditd. 74186647Srwatson- Add AUDIT_TRIGGER_INITIALIZE trigger (sent via 'audit -i') for (re)starting 75186647Srwatson auditing under launchd(8) on Mac OS X. 76186647Srwatson- Add 'current' symlink to active audit trail. 77186647Srwatson- Add crash recovery of previous audit trail file when detected on audit 78186647Srwatson startup that it has not been properly terminated. 79186647Srwatson- Add the event AUE_audit_recovery to indicated when an audit trail file has 80186647Srwatson been recovered from not being properly terminated. This event is stored 81186647Srwatson in the new audit trail file and includes the path of recovered audit trail 82186647Srwatson file. 83186647Srwatson- Mac OS X and FreeBSD dependent code in auditd.c is separated into 84186647Srwatson auditd_darwin.c and auditd_fbsd.c files. 85186647Srwatson- Add an event for the posix_spawn(2) and fsgetpath(2) Mac OS X system calls. 86186647Srwatson- For Mac OS X, we use ASL(3) instead of syslog(3) for logging. 87186647Srwatson- Add support for NOTICE level logging. 88186647Srwatson 89186647SrwatsonOpenBSM 1.1 alpha 3 90186647Srwatson 91186647Srwatson- Add two new functions, au_bsm_to_errno() and au_errno_to_bsm(), to map 92186647Srwatson between BSM error numbers (largely the Solaris definitions) and local 93186647Srwatson errno(2) values for 32-bit and 64-bit return tokens. This is required as 94186647Srwatson operating systems don't agree on some of the values of more recent error 95186647Srwatson numbers. 96186647Srwatson- Fix a bug how au_to_exec_args(3) and au_to_exec_env(3) calculates the total 97186647Srwatson size for the token. This bug resulted in "unknown" tokens being printed 98186647Srwatson after the exec args/env tokens. 99186647Srwatson- Support for AUT_SOCKET_EX extended socket tokens, which describe a socket 100186647Srwatson using a pair of IPv4/IPv6 and port tuples. 101186647Srwatson- OpenBSM BSM file header version bumped for 1.1 release. 102186647Srwatson- Deprecated Darwin constants, such as TRAILER_PAD_MAGIC, removed. 103186647Srwatson 104184902SrwatsonOpenBSM 1.1 alpha 2 105184902Srwatson 106184902Srwatson- Include files in OpenBSM are now broken out into two parts: library builds 107184902Srwatson required solely for user space, and system includes, which may also be 108184902Srwatson required for use in the kernels of systems integrating OpenBSM. Submitted 109184902Srwatson by Stacey Son. 110184902Srwatson- Configure option --with-native-includes allows forcing the use of native 111184902Srwatson include for system includes, rather than the versions bundled with OpenBSM. 112184902Srwatson This is intended specifically for platforms that ship OpenBSM, have adapted 113184902Srwatson versions of the system includes in a kernel source tree, and will use the 114184902Srwatson OpenBSM build infrastructure with an unmodified OpenBSM distribution, 115184902Srwatson allowing the customized system includes to be used with the OpenBSM build. 116184902Srwatson Submitted by Stacey Son. 117184902Srwatson- Various strcpy()'s/strcat()'s have been changed to strlcpy()'s/strlcat()'s 118184902Srwatson or asprintf(). Added compat/strlcpy.h for Linux. 119184902Srwatson- Remove compatibility defines for old Darwin token constant names; now only 120184902Srwatson BSM token names are provided and used. 121184902Srwatson- Add support for extended header tokens, which contain space for information 122184902Srwatson on the host generating the record. 123184902Srwatson- Add support for setting extended host information in the kernel, which is 124184902Srwatson used for setting host information in extended header tokens. The 125184902Srwatson audit_control file now supports a "host" parameter which can be used by 126184902Srwatson auditd to set the information; if not present, the kernel parameters won't 127184902Srwatson be set and auditd uses unextended headers for records that it generates. 128184902Srwatson 129184902SrwatsonOpenBSM 1.1 alpha 1 130184902Srwatson 131184902Srwatson- Add option to auditreduce(1) which allows users to invert sense of 132184902Srwatson matching, such that BSM records that do not match, are selected. 133184902Srwatson- Fix bug in audit_write() where we commit an incomplete record in the 134184902Srwatson event there is an error writing the subject token. This was submitted 135184902Srwatson by Diego Giagio. 136184902Srwatson- Build support for Mac OS X 10.5.1 submitted by Eric Hall. 137184902Srwatson- Fix a bug which resulted in host XML attributes not being printed 138184902Srwatson while processing extended header tokens. This patch was submitted by 139184902Srwatson Martin Voros. 140184902Srwatson- Constification of function arguments so that const strings can be passed 141184902Srwatson as arguments to tokens. This patch was submitted by Xin LI. 142184902Srwatson- Modify the -m option so users can select more then one audit event. 143184902Srwatson- For Mac OS X, added Mach IPC support for audit trigger messages. 144184902Srwatson- Fixed a bug in getacna() which resulted in a locking problem on Mac OS X. 145184902Srwatson- Added LOG_PERROR flag to openlog when -d option is used with auditd. 146184902Srwatson- AUE events added for Mac OS X Leopard system calls. 147184902Srwatson 148184902SrwatsonOpenBSM 1.0 149184902Srwatson 150184902Srwatson- Fix bug in auditreduce(1) which resulted in a memory fault/crash when 151184902Srwatson the user specified an event name with -m. 152184902Srwatson- Remove AU_.* hard-coded audit class constants, as audit classes are now 153184902Srwatson entirely dynamically configured using /etc/security/audit_class. 154184902Srwatson 155184902SrwatsonOpenBSM 1.0 alpha 15 156184902Srwatson 157184902Srwatson- Fix bug when processing in_addr_ex tokens. 158184902Srwatson- Restore the behavior of printing the string/text specified while 159184902Srwatson auditing arg32 tokens. 160184902Srwatson- Synchronized audit event list to Solaris, picking up the *at(2) system call 161184902Srwatson definitions, now required for FreeBSD and Linux. Added additional events 162184902Srwatson for *at(2) system calls not present in Solaris. 163184902Srwatson- Bugs in auditreduce(1) fixed allowing partial date strings to be used in 164184902Srwatson filtering events. 165184902Srwatson 166184902SrwatsonOpenBSM 1.0 alpha 14 167184902Srwatson 168184902Srwatson- Fix endian issues when processing IPv6 addresses for extended subject 169184902Srwatson and process tokens. 170184902Srwatson- gcc41 warnings clean. 171184902Srwatson- Teach audit_submit(3) about getaudit_addr(2). 172184902Srwatson- Add support for zonename tokens. 173184902Srwatson 174184902SrwatsonOpenBSM 1.0 alpha 13 175184902Srwatson 176184902Srwatson- compat/clock_gettime.h now provides a compatibility implementation of 177184902Srwatson clock_gettime(), which fixes building on Mac OS X. 178184902Srwatson- Countless man page improvements, markup fixes, content fixs, etc. 179184902Srwatson- XML printing support via "praudit -x". 180184902Srwatson- audit.log.5 expanded to include additional BSM token types. 181184902Srwatson- Added encoding and decoding routines for process64_ex, process32_ex, 182184902Srwatson subject32_ex, header64, and attr64 tokens. 183184902Srwatson- Additional audit event identifiers for listen, mlockall/munlockall, 184184902Srwatson getpath, POSIX message queues, and mandatory access control. 185184902Srwatson 186184902SrwatsonOpenBSM 1.0 alpha 12 187184902Srwatson 188184902Srwatson- Correct bug in auditreduce which prevented the -c option from working 189184902Srwatson correctly when the user specifies to process successful or failed events. 190184902Srwatson The problem stemmed from not having access to the return token at the time 191184902Srwatson the initial preselection occurred, but now a second preselection process 192184902Srwatson occurs while processing the return token. 193184902Srwatson- getacfilesz(3) API added to read new audit_control(5) filesz setting, 194184902Srwatson which auditd(8) now sets the kernel audit trail rotation size to. 195184902Srwatson- auditreduce(1) now uses stdin if no file names are specified on the command 196184902Srwatson line; this was the documented behavior previously, but it was not 197184902Srwatson implemented. Be more specific in auditreduce(1)'s examples section about 198184902Srwatson what might be done with the output of auditreduce. 199184902Srwatson- Add audit_warn(5) closefile event so that administrators can hook 200184902Srwatson termination of an audit trail file. For example, this might be used to 201184902Srwatson compress the trail file after it is closed. 202184902Srwatson- auditreduce(1) now uses regular expressions for pathname matching. Users can 203184902Srwatson now supply one or more (comma delimited) regular expressions for searching 204184902Srwatson the pathnames. If one of the regular expressions is prefixed with a tilde 205184902Srwatson (~), and a path matches, it will be excluded from the search results. 206184902Srwatson 207184902SrwatsonOpenBSM 1.0 alpha 11 208184902Srwatson 209184902Srwatson- Reclassify certain read/write operations as having no class rather than the 210184902Srwatson fr/fw class; our default classes audit intent (open) not operations (read, 211184902Srwatson write). 212184902Srwatson- Introduce AUE_SYSCTL_WRITE event so that BSD/Darwin systems can audit reads 213184902Srwatson and writes of sysctls as separate events. Add additional kernel 214184902Srwatson environment and jail events for FreeBSD. 215184902Srwatson- Break AUDIT_TRIGGER_OPEN_NEW into two events, AUDIT_TRIGGER_ROTATE_USER 216184902Srwatson (issued by the user audit(8) tool) and AUDIT_TRIGGER_ROTATE_KERNEL (issued 217184902Srwatson by the kernel audit implementation) so that they can be distinguished. 218184902Srwatson- Disable rate limiting of rotate requests; as the kernel doesn't retransmit 219184902Srwatson a dropped request, the log file will otherwise grow indefinitely if the 220184902Srwatson trigger is dropped. 221184902Srwatson- Improve auditd debugging output. 222184902Srwatson- Fix a number of threading related bugs in audit_control file reading 223184902Srwatson routines. 224184902Srwatson- Add APIs au_poltostr() and au_strtopol() to convert between text 225184902Srwatson representations of audit_control policy flags and the flags passed to 226184902Srwatson auditon(A_SETPOLICY) and retrieved from auditon(A_GETPOLICY). 227184902Srwatson- Add API getacpol() to return the 'policy:' entry from audit_control, an 228184902Srwatson extension to the Solaris file format to allow specification of policy 229184902Srwatson persistent flags. 230184902Srwatson- Update audump to print the audit_control policy field. 231184902Srwatson- Update auditd to read the audit_control policy field and set the kernel 232184902Srwatson policy to match it when configuring/reconfiguring. Remove the -s and -h 233184902Srwatson arguments as these policies are now set via the configuration file. If a 234184902Srwatson policy line is not found in the configuration file, continue with the 235184902Srwatson current default of setting AUDIT_CNT. 236184902Srwatson- Fix bugs in the parsing of large execve(2) arguments and environmental 237184902Srwatson variable tokens; increase maximum parsed argument and variable count. 238184902Srwatson- configure now detects strlcat(), used by policy-related functions. 239184902Srwatson- Reference token and record sample files added to test tree. 240184902Srwatson 241184902SrwatsonOpenBSM 1.0 alpha 10 242184902Srwatson 243184902Srwatson- auditd now generates complete audit records for its events, as required for 244184902Srwatson application-submitted audit records in the FreeBSD kernel audit 245184902Srwatson implementation. 246184902Srwatson 247184902SrwatsonOpenBSM 1.0 alpha 9 248184902Srwatson 249184902Srwatson- Rename many OpenBSM-specific constants and API elements containing the 250184902Srwatson strings "BSM" and "bsm" to "AUDIT" and "audit", observing that this is true 251184902Srwatson for almost all existing constants and APIs. 252184902Srwatson- Instead of passing a per-instance cookie directly into all audit filter 253184902Srwatson APIs, pass in the audit filter daemon state pointer, which is then used by 254184902Srwatson the module using an audit_filter_{get,set}cookie() API. This will allow 255184902Srwatson future service APIs provided by the filter daemon to maintain their own 256184902Srwatson state -- for example, per-module preselection state. 257184902Srwatson 258184902SrwatsonOpenBSM 1.0 alpha 8 259184902Srwatson 260184902Srwatson- Correct typo in definition of AUR_INT. 261184902Srwatson- Adopt OpenSolaris constant values for AUDIT_* configuration flags. 262184902Srwatson- Arguments to au_to_exec_args() and au_to_exec_env() no longer const. 263184902Srwatson- Add kernel versions of au_to_exec_args() and au_to_exec_env(). 264184902Srwatson- Fix exec argument type that is printed for env strings from 'arg' to 'env'. 265184902Srwatson- New OpenBSM token version number assigned, constants added for other 266184902Srwatson commonly seen version numbers. 267184902Srwatson- OpenBSM-specific events assigned numbers in the 43xxx range to avoid future 268184902Srwatson collisions with Solaris. Darwin events renamed to AUE_DARWIN_foo, as they 269184902Srwatson are now deprecated numberings. 270184902Srwatson- autoconf now detects clock_gettime(), which is not available on Darwin. 271184902Srwatson- praudit output fixes relating to arg32 and arg64 tokens. 272184902Srwatson- Maximum record size updated to 64k-1 to match Solaris record size limit. 273184902Srwatson- Various style and comment cleanups in include files. 274184902Srwatson 275184902SrwatsonOpenBSM 1.0 alpha 7 276184902Srwatson 277184902Srwatson- Adopted Solaris-compatible format for subject32_ex and subject64_ex 278184902Srwatson tokens, which previously did not correctly implement variable length 279184902Srwatson address storage. 280184902Srwatson- Prefer inttypes.h to stdint.h; enhance queue.h detection to test for 281184902Srwatson TAILQ_FOREACH_SAFE(), which is present in recent BSD queue.h's, but not 282184902Srwatson older ones. OpenBSM now builds on some FreeBSD 4.x versions. 283184902Srwatson- New event types for extended attributes, ACLs, and scheduling. 284184902Srwatson 285184902SrwatsonOpenBSM 1.0 alpha 6 286184902Srwatson 287184902Srwatson- Use AU_TO_WRITE and AU_NO_TO_WRITE for the 'keep' argument to au_close(); 288184902Srwatson previously we used hard-coded 0 and 1 values. 289184902Srwatson- Add man page for au_open(), au_write(), au_close(), and 290184902Srwatson au_close_buffer(). 291184902Srwatson- Support a more complete range of data types for the arbitrary data token: 292184902Srwatson add AUR_CHAR (alias to AUR_BYTE), remove AUR_LONG, add AUR_INT32 (alias 293184902Srwatson to AUR_INT), add AUR_INT64. 294184902Srwatson- Add au_close_token(), which allows writing a single token_t to a memory 295184902Srwatson buffer. Not likely to be used much by applications, but useful for 296184902Srwatson writing test tools. 297184902Srwatson- Modify au_to_file() so that it accepts a timeval in user space, not just 298184902Srwatson kernel -- this is not a Solaris BSM API so can be modified without 299184902Srwatson causing compatibility issues. 300184902Srwatson- Define a new API, au_to_header32_tm(), which adds a struct timeval 301184902Srwatson argument to the ordinary au_to_header32(), which is now implemented by 302184902Srwatson wrapping au_to_header32_tm() and calling gettimeofday(). #ifndef KERNEL 303184902Srwatson the APIs that invoke gettimeofday(), rather than having a variable 304184902Srwatson definition. Don't try to retrieve time zone information using 305184902Srwatson gettimeofday(), as it's not needed, and introduces possible failure 306184902Srwatson modes. 307184902Srwatson- Don't perform byte order transformations on the addr/machine fields of 308184902Srwatson the terminal ID that appears in the process32/subject32 tokens. These 309184902Srwatson are assumed to be IP addresses, and as such, to be in network byte 310184902Srwatson order. 311184902Srwatson- Universally, APIs now assume that IP addresses and ports are provided 312184902Srwatson in network byte order. APIs now generally provide these types in 313184902Srwatson network byte order when decoding. 314184902Srwatson- Beginnings of an OpenBSM test framework can now be found in openbsm/test. 315184902Srwatson This code is not built or installed by default. 316184902Srwatson- auditd now assigns more appropriate syslog levels to its debugging and 317184902Srwatson error information. 318184902Srwatson- Support for audit filters introduced: audit filters are dynamically 319184902Srwatson loaded shared objects that run in the context of a new daemon, 320184902Srwatson auditfilterd. The daemon reads from an audit pipe and feeds both BSM and 321184902Srwatson parsed versions of records to shared objects using a module API. This 322184902Srwatson will provide a framework for the writing of intrusion detection services. 323184902Srwatson- New utility API, audit_submit(), added to capture common elements of audit 324184902Srwatson record submission for many applications. 325184902Srwatson 326184902SrwatsonOpenBSM 1.0 alpha 5 327184902Srwatson 328184902Srwatson- Update install notes to indicate /etc files are to be installed manually. 329184902Srwatson- On systems without LOG_SECURITY, use LOG_AUTH. 330184902Srwatson- Convert to autoconf/automake in order to move to a more portable (not 331184902Srwatson BSD-specific) build infrastructure, and more easy conditional building of 332184902Srwatson components. Currently, the primary feature loss is that automake does 333184902Srwatson not have native support for manual symlinks. This will be addressed in a 334184902Srwatson future OpenBSM release. 335184902Srwatson- Add compat/queue.h, to be used on systems dated BSD queue macro libraries 336184902Srwatson (as found on Linux). 337184902Srwatson- Rename CHANGELOG to HISTORY, as our change log doesn't follow some of the 338184902Srwatson existing conventions for a CHANGELOG. 339184902Srwatson- Some private data structures moved from audit.h to audit_internal.h to 340184902Srwatson prevent inappropriate use by applications and name space pollution. 341184902Srwatson- Improved detection and use of endian macros using autoconf. 342184902Srwatson- Avoid non-portable use of struct in6_addr, which is largely opaque. 343184902Srwatson- Avoid leaking BSD kernel socket related token code to user space in 344184902Srwatson bsm_token.c. 345184902Srwatson- Teach System V IPC calls to look for Linux naming variations for certain 346184902Srwatson struct ipc_perm fields. 347184902Srwatson- Test for audit system calls, and if not present, don't build 348184902Srwatson bsm_wrappers.c, bsm_notify.c, audit(8), and auditd(8), which rely on 349184902Srwatson those system calls. 350184902Srwatson- au_close() is not implemented on systems that don't have audit system 351184902Srwatson calls, but au_close_buffer() is. 352184902Srwatson- Work around missing BSDisms in bsm_wrapper.c. 353184902Srwatson- Fix nested includes so including libbsm.h in an application on Linux 354184902Srwatson picks up the necessary definitions. 355184902Srwatson 356184902SrwatsonOpenBSM 1.0 alpha 4 357184902Srwatson 358184902Srwatson- Remove "audit" user example from audit_user, as it's not present on most 359184902Srwatson systems. 360184902Srwatson- Add cannot_audit() function non-Darwin systems that wraps auditon(); 361184902Srwatson required by OpenSSH BSM support. Convert Darwin cannot_audit() into a 362184902Srwatson function rather than a macro. 363184902Srwatson- Library build fixed on Darwin following include file tweaks. The native 364184902Srwatson Darwin sys/audit.h conflicts with bsm/audit.h due to duplicate types, so 365184902Srwatson for now we force bsm_wrappers.c to not perform a nested include of 366184902Srwatson sys/audit.h. 367184902Srwatson 368184902SrwatsonOpenBSM 1.0 alpha 3 369184902Srwatson 370184902Srwatson- Man page formatting, cross reference, mlinks, and accuracy improvements. 371184902Srwatson- auditd and tools now compile and run on FreeBSD/arm. 372184902Srwatson- auditd will now fchown() the trail file to the audit review group, if 373184902Srwatson defined at compile-time. 374184902Srwatson- Added AUE_SYSARCH for FreeBSD. 375184902Srwatson- Definition of AUE_SETFSGID fixed for Linux. 376184902Srwatson 377184902SrwatsonOpenBSM 1.0 alpha 2 378184902Srwatson 379184902Srwatson- Man page formatting improvements. 380184902Srwatson- A number of new audit event identifiers for FreeBSD, Linux, and POSIX.1b 381184902Srwatson events. 382184902Srwatson- Remove 'tfm' class, unused in OpenBSM. 383184902Srwatson 384184902SrwatsonOpenBSM 1.0 alpha 1 385184902Srwatson 386184902Srwatson- Import of Darwin74 BSM drop 387184902Srwatson- Use 'syslog' for audit log warnings, rather than echoing to a file in 388184902Srwatson audit_warn. 389184902Srwatson- Compile using BSD make infrastructure. 390184902Srwatson- Integrate bsm/ include files from Darwin74 XNU drop into OpenBSM. 391184902Srwatson- Narrow set of symbols and defines that are exposed in user space: don't 392184902Srwatson compile in code relying on kernel-only types such as 'struct socket'. 393184902Srwatson- Add README, including basic build documentation. 394184902Srwatson- Compilation of Apple-specific notify and Machroutines now #ifdef __APPLE__. 395184902Srwatson- Staticize libbsm global variables to avoid leakage into applications. 396184902Srwatson- Add free_au_user_ent() so that au_user_ent's don't have to be leaked. 397184902Srwatson- Clean up bogus nul-termination checks in libbsm. 398184902Srwatson- Add libbsm API man pages: au_class.3 au_control.3 au_event.3 399184902Srwatson au_free_token.3 au_io.3 au_mask.3 au_token.3 au_user.3 libbsm.3. 400184902Srwatson- Add man pages for BSM system calls: audit.2 auditctl.2 auditon.2 getaudit.2 401184902Srwatson getauid.2 setaudit.2 setauid.2 402184902Srwatson- Modify various libbsm interfaces to more consistently return 'errno' values 403184902Srwatson on failure. 404184902Srwatson- Break out au_close() into constituent parts, allowing records to be written 405184902Srwatson to memory as well as files. 406184902Srwatson- Prefix various defines with 'BSM_' to reduce name space pollution. 407184902Srwatson- Added audit_internal.h, which can be used by a kernel audit implementation 408184902Srwatson wanting to rely on libbsm components. 409184902Srwatson- Build with warnings, and eliminate warnings. 410184902Srwatson- Make libbsm endian-independent, storing and reading BSM are big endian 411184902Srwatson (network byte order) rather than native byte order. More consistently 412184902Srwatson print IP addresses using the IP address print routine. These changes 413184902Srwatson make use of sys/endian.h from *BSD; since this isn't present on Darwin, 414184902Srwatson add it to OpenBSM as compat/endian.h, which is used only on Darwin. 415184902Srwatson- Import of Darwin80 BSM drop, including 64-bit file IDs, better 416184902Srwatson documentation of private APIs, and bug fixes. 417184902Srwatson- White space cleanup. 418184902Srwatson- Add audit.log.5, a first cut at a man page documenting the BSM file format. 419184902Srwatson- Teach au_read_rec() to recognize stand-alone file tokens, which are present 420184902Srwatson at the beginning and end of Solaris audit trails. Technically, these 421184902Srwatson appear to violate the high level BSM spec, which suggests that all tokens 422184902Srwatson are present in records, but need to be supported. 423184902Srwatson- Implement HEADER64, ATTR64, SUBJECT64 token types, which make it possible 424184902Srwatson to run praudit(1) on basic Solaris BSM streams. 425184902Srwatson- Switched to Solaris spelling of token names; Darwin spellings are now 426184902Srwatson deprecated and will be removed in a future version of OpenBSM. 427184902Srwatson- Adopt Solaris model for representing IPv4 and IPv6 addresses. 428184902Srwatson- Prefer C99 types. 429184902Srwatson- Attempt to universally adopt the BSD style(9) coding style for 430184902Srwatson consistency. 431184902Srwatson- auditreduce(1) now has a usage message. 432184902Srwatson- Update support for auditctl(2) system call to support FreeBSD. 433184902Srwatson- Add support for /dev/audit as the trigger source on FreeBSD. 434184902Srwatson- Add additional event types for Darwin, FreeBSD, and Solaris. Annotate 435184902Srwatson conflicts (there are a few, unfortunately). Correct spellings, comment, 436184902Srwatson sort, etc. These include {get,set}res[ug]id(), sendfile(), lchflags(), 437184902Srwatson eaccess(), kqueue(), kevent(), poll(), lchmod(). 438184902Srwatson- Relicensed under a BSD license, many thanks to Apple, Inc! 439184902Srwatson- Many bug fixes, cleanups, thread safety in the class, control, event, 440184902Srwatson and user system audit databases. Annotate some persisting atomicity 441184902Srwatson bugs associated with the API and implementation. 442184902Srwatson- Add audump test tool. 443184902Srwatson- Adopt OpenSolaris BSM API memory semantics: caller allocates memory, 444184902Srwatson or static memory is returned for non-_r() versions of API calls. 445184902Srwatson _free() calls dropped as a result, and source code compatibility with 446184902Srwatson OpenSolaris improved significantly. 447184902Srwatson- Annotate BSM events with origin OS and compatibility information. 448184902Srwatson- auditd(8), audit(8) added to the OpenBSM distribution. auditd extended 449184902Srwatson to support reloading of kernel event table. 450184902Srwatson- Allow comments in /etc/security configuration files. 451184902Srwatson 452191273Srwatson$P4: //depot/projects/trustedbsd/openbsm/NEWS#40 $ 453