1184902SrwatsonOpenBSM Version History 2184902Srwatson 3292432SbruefferOpenBSM 1.2 alpha 4 4292432Sbrueffer 5292432Sbrueffer- Fix praudit to emit correct XML. 6292432Sbrueffer- Fix auditdistd bugs related to IPv6 support, locking, and a kqueue-related 7292432Sbrueffer descriptor leak. 8292432Sbrueffer- Add audit event definitions for Capsicum-related syscalls, as well as 9292432Sbrueffer AUE_BINDAT and AUE_CONNECTAT. 10292432Sbrueffer- Manpage symlinks for all libbsm functions are installed again after the 11292432Sbrueffer move to autotools in OpenBSM 1.0 Alpha 5. 12292432Sbrueffer- A variety of minor documentation cleanups. 13292432Sbrueffer 14244265SrwatsonOpenBSM 1.2 alpha 3 15244265Srwatson 16244265Srwatson- Various minor tweaks to the auditdistd build to make it fit the FreeBSD 17244265Srwatson build environment better. 18244265Srwatson- AUE_WAIT6 merged from FreeBSD 9. 19244265Srwatson 20243750SrwatsonOpenBSM 1.2 alpha 2 21243750Srwatson 22243750Srwatson- auditdistd, a distributed audit trail management daemon, has now been 23243750Srwatson merged. This allows trail files to be securely and reliably synced from 24243750Srwatson audited hosts to an audit server, and employs TLS encryption. Where 25243750Srwatson available, it uses Capsicum to sandbox the service. This work was 26243750Srwatson contributed by Pawel Jakub Dawidek under sponsorship from the FreeBSD 27243750Srwatson Foundation. 28243750Srwatson 29243750SrwatsonOpenBSM 1.2 alpha 1 30243750Srwatson 31243750Srwatson- Add Capsicum-related error numbers for FreeBSD: ENOTCAPABLE, ECAPMODE. 32243750Srwatson- Add Capsicum, process descriptor audit events for FreeBSD. 33243750Srwatson- Allow 0% minspace. 34243750Srwatson- Fixes from the clang static analyser. 35243750Srwatson- Fix expiration of trail files when the host parameter is used. 36243750Srwatson- Various typo fixes. 37243750Srwatson- Support for Solaris privilege and privilege set tokens. 38243750Srwatson- Documentation for getachost(), improvements for getacfilesz(). 39243750Srwatson- Fix a directory descriptor leak that happened when audit trail partitions 40243750Srwatson filled. 41243750Srwatson- Support for more Linux distributions with a partial contemporary endian.h. 42243750Srwatson- Improved escaping of XML-encapsulated BSM. 43243750Srwatson- A variety of minor documentation, style, and functional. 44243750Srwatson 45196031SrwatsonOpenBSM 1.1p2 46196031Srwatson 47196031Srwatson- Fix audit_event definitions of AUE_OPENAT_RWT and AUE_OPENAT_RWTC. 48196031Srwatson- Fix build on Linux. 49196031Srwatson- Fix printing of class masks in the audump tool. 50196031Srwatson 51195740SrwatsonOpenBSM 1.1p1 52195740Srwatson 53195740Srwatson- Fixes to AUT_SOCKUNIX token parsing. 54195740Srwatson- IPv6 support for au_to_me(3). 55195740Srwatson- Improved robustness in the parsing of audit_control, especially long 56195740Srwatson flags/naflags strings and whitespace in all fields. 57195740Srwatson- Add missing conversion of a number of FreeBSD/Mac OS X errnos to/from BSM 58195740Srwatson error number space. 59195740Srwatson 60191273SrwatsonOpenBSM 1.1 61191273Srwatson 62191273Srwatson- Change auditon(2) parameters and data structures to be 32/64-bit architecture 63191273Srwatson independent. Add more information to man page about auditon(2) parameters. 64191273Srwatson- Add wrapper functions for auditon(2) to use legacy commands when the new 65191273Srwatson commands are not supported. 66191273Srwatson- Add default for 'expire-after' in audit_control to expire trail files when 67191273Srwatson the audit directory is more than 10 megabytes ('10M'). 68191273Srwatson- Interface to convert between local and BSM fcntl(2) command values has been 69191273Srwatson added: au_bsm_to_fcntl_cmd(3) and au_fcntl_cmd_to_bsm(3), along with 70191273Srwatson definitions of constants in audit_fcntl.h. 71191273Srwatson- A bug, introduced in OpenBSM 1.1 alpha 4, in which AUT_RETURN32 tokens 72191273Srwatson generated by audit_submit(3) were improperly encoded has been fixed. 73191273Srwatson- Fix example in audit_submit(3) man page. Also, make it clear that we want 74191273Srwatson the audit ID as the argument. 75191273Srwatson- A new audit event class 'aa', for post-login authentication and 76191273Srwatson authorization events, has been added. 77191273Srwatson 78189279SrwatsonOpenBSM 1.1 beta 1 79189279Srwatson 80189279Srwatson- The filesz parameter in audit_control(5) now accepts suffixes: 'B' for 81189279Srwatson Bytes, 'K' for Kilobytes, 'M' for Megabytes, and 'G' for Gigabytes. 82189279Srwatson For legacy support no suffix defaults to bytes. 83189279Srwatson- Audit trail log expiration support added. It is configured in 84189279Srwatson audit_control(5) with the expire-after parameter. If there is no 85189279Srwatson expire-after parameter in audit_control(5), the default, then the audit 86189279Srwatson trail files are not expired and removed. See audit_control(5) for 87189279Srwatson more information. 88189279Srwatson- Change defaults in audit_control: warn at 5% rather than 20% free for audit 89189279Srwatson partitions, rotate automatically at 2mb, and set the default policy to 90189279Srwatson cnt,argv rather than cnt so that execve(2) arguments are captured if 91189279Srwatson AUE_EXECVE events are audited. These may provide more usable defaults for 92189279Srwatson many users. 93189279Srwatson- Use au_domain_to_bsm(3) and au_socket_type_to_bsm(3) to convert 94189279Srwatson au_to_socket_ex(3) arguments to BSM format. 95189279Srwatson- Fix error encoding AUT_IPC_PERM tokens. 96189279Srwatson 97187214SrwatsonOpenBSM 1.1 alpha 5 98187214Srwatson 99187214Srwatson- Stub libauditd(3) man page added. 100187214Srwatson- All BSM error number constants with BSM_ERRNO_. 101187214Srwatson- Interfaces to convert between local and BSM socket types and protocol 102187214Srwatson families have been added: au_bsm_to_domain(3), au_bsm_to_socket_type(3), 103187214Srwatson au_domain_to_bsm(3), and au_socket_type_to_bsm(3), along with definitions 104187214Srwatson of constants in audit_domain.h and audit_socket_type.h. This improves 105187214Srwatson interoperability by converting local constant spaces, which vary by OS, to 106187214Srwatson and from Solaris constants (where available) or OpenBSM constants for 107187214Srwatson protocol domains not present in Solaris (a fair number). These routines 108187214Srwatson should be used when generating and interpreting extended socket tokens. 109187214Srwatson- Fix build warnings with full gcc warnings enabled on most supported 110187214Srwatson platforms. 111187214Srwatson- Don't compile error strings into bsm_errno.c when building it in the kernel 112187214Srwatson environment. 113187214Srwatson- When started by launchd, use the label com.apple.auditd rather than 114187214Srwatson org.trustedbsd.auditd. 115187214Srwatson 116186647SrwatsonOpenBSM 1.1 alpha 4 117186647Srwatson 118186647Srwatson- With the addition of BSM error number mapping, we also need to map the 119186647Srwatson local error number passed to audit_submit(3) to a BSM error number, rather 120186647Srwatson than have the caller perform that conversion. 121186647Srwatson- Reallocate user audit events to avoid collisions with Solaris; adopt a more 122186647Srwatson formal allocation scheme, and add some events allocated in Solaris that 123186647Srwatson will be of immediate use on other platforms. 124186647Srwatson- Add an event for Calife. 125186647Srwatson- Add au_strerror(3), which allows generating strings for BSM errors 126186647Srwatson directly, rather than requiring applications to map to the local error 127186647Srwatson space, which might not be able to entirely represent the BSM error number 128186647Srwatson space. 129186647Srwatson- Major auditd rewrite for launchd(8) support. Add libauditd library that is 130186647Srwatson shared between launchd and auditd. 131186647Srwatson- Add AUDIT_TRIGGER_INITIALIZE trigger (sent via 'audit -i') for (re)starting 132186647Srwatson auditing under launchd(8) on Mac OS X. 133186647Srwatson- Add 'current' symlink to active audit trail. 134186647Srwatson- Add crash recovery of previous audit trail file when detected on audit 135186647Srwatson startup that it has not been properly terminated. 136186647Srwatson- Add the event AUE_audit_recovery to indicated when an audit trail file has 137186647Srwatson been recovered from not being properly terminated. This event is stored 138186647Srwatson in the new audit trail file and includes the path of recovered audit trail 139186647Srwatson file. 140186647Srwatson- Mac OS X and FreeBSD dependent code in auditd.c is separated into 141186647Srwatson auditd_darwin.c and auditd_fbsd.c files. 142186647Srwatson- Add an event for the posix_spawn(2) and fsgetpath(2) Mac OS X system calls. 143186647Srwatson- For Mac OS X, we use ASL(3) instead of syslog(3) for logging. 144186647Srwatson- Add support for NOTICE level logging. 145186647Srwatson 146186647SrwatsonOpenBSM 1.1 alpha 3 147186647Srwatson 148186647Srwatson- Add two new functions, au_bsm_to_errno() and au_errno_to_bsm(), to map 149186647Srwatson between BSM error numbers (largely the Solaris definitions) and local 150186647Srwatson errno(2) values for 32-bit and 64-bit return tokens. This is required as 151186647Srwatson operating systems don't agree on some of the values of more recent error 152186647Srwatson numbers. 153186647Srwatson- Fix a bug how au_to_exec_args(3) and au_to_exec_env(3) calculates the total 154186647Srwatson size for the token. This bug resulted in "unknown" tokens being printed 155186647Srwatson after the exec args/env tokens. 156186647Srwatson- Support for AUT_SOCKET_EX extended socket tokens, which describe a socket 157186647Srwatson using a pair of IPv4/IPv6 and port tuples. 158186647Srwatson- OpenBSM BSM file header version bumped for 1.1 release. 159186647Srwatson- Deprecated Darwin constants, such as TRAILER_PAD_MAGIC, removed. 160186647Srwatson 161184902SrwatsonOpenBSM 1.1 alpha 2 162184902Srwatson 163184902Srwatson- Include files in OpenBSM are now broken out into two parts: library builds 164184902Srwatson required solely for user space, and system includes, which may also be 165184902Srwatson required for use in the kernels of systems integrating OpenBSM. Submitted 166184902Srwatson by Stacey Son. 167184902Srwatson- Configure option --with-native-includes allows forcing the use of native 168184902Srwatson include for system includes, rather than the versions bundled with OpenBSM. 169184902Srwatson This is intended specifically for platforms that ship OpenBSM, have adapted 170184902Srwatson versions of the system includes in a kernel source tree, and will use the 171184902Srwatson OpenBSM build infrastructure with an unmodified OpenBSM distribution, 172184902Srwatson allowing the customized system includes to be used with the OpenBSM build. 173184902Srwatson Submitted by Stacey Son. 174184902Srwatson- Various strcpy()'s/strcat()'s have been changed to strlcpy()'s/strlcat()'s 175184902Srwatson or asprintf(). Added compat/strlcpy.h for Linux. 176184902Srwatson- Remove compatibility defines for old Darwin token constant names; now only 177184902Srwatson BSM token names are provided and used. 178184902Srwatson- Add support for extended header tokens, which contain space for information 179184902Srwatson on the host generating the record. 180184902Srwatson- Add support for setting extended host information in the kernel, which is 181184902Srwatson used for setting host information in extended header tokens. The 182184902Srwatson audit_control file now supports a "host" parameter which can be used by 183184902Srwatson auditd to set the information; if not present, the kernel parameters won't 184184902Srwatson be set and auditd uses unextended headers for records that it generates. 185184902Srwatson 186184902SrwatsonOpenBSM 1.1 alpha 1 187184902Srwatson 188184902Srwatson- Add option to auditreduce(1) which allows users to invert sense of 189184902Srwatson matching, such that BSM records that do not match, are selected. 190184902Srwatson- Fix bug in audit_write() where we commit an incomplete record in the 191184902Srwatson event there is an error writing the subject token. This was submitted 192184902Srwatson by Diego Giagio. 193184902Srwatson- Build support for Mac OS X 10.5.1 submitted by Eric Hall. 194184902Srwatson- Fix a bug which resulted in host XML attributes not being printed 195184902Srwatson while processing extended header tokens. This patch was submitted by 196184902Srwatson Martin Voros. 197184902Srwatson- Constification of function arguments so that const strings can be passed 198184902Srwatson as arguments to tokens. This patch was submitted by Xin LI. 199184902Srwatson- Modify the -m option so users can select more then one audit event. 200184902Srwatson- For Mac OS X, added Mach IPC support for audit trigger messages. 201184902Srwatson- Fixed a bug in getacna() which resulted in a locking problem on Mac OS X. 202184902Srwatson- Added LOG_PERROR flag to openlog when -d option is used with auditd. 203184902Srwatson- AUE events added for Mac OS X Leopard system calls. 204184902Srwatson 205184902SrwatsonOpenBSM 1.0 206184902Srwatson 207184902Srwatson- Fix bug in auditreduce(1) which resulted in a memory fault/crash when 208184902Srwatson the user specified an event name with -m. 209184902Srwatson- Remove AU_.* hard-coded audit class constants, as audit classes are now 210184902Srwatson entirely dynamically configured using /etc/security/audit_class. 211184902Srwatson 212184902SrwatsonOpenBSM 1.0 alpha 15 213184902Srwatson 214184902Srwatson- Fix bug when processing in_addr_ex tokens. 215184902Srwatson- Restore the behavior of printing the string/text specified while 216184902Srwatson auditing arg32 tokens. 217184902Srwatson- Synchronized audit event list to Solaris, picking up the *at(2) system call 218184902Srwatson definitions, now required for FreeBSD and Linux. Added additional events 219184902Srwatson for *at(2) system calls not present in Solaris. 220184902Srwatson- Bugs in auditreduce(1) fixed allowing partial date strings to be used in 221184902Srwatson filtering events. 222184902Srwatson 223184902SrwatsonOpenBSM 1.0 alpha 14 224184902Srwatson 225184902Srwatson- Fix endian issues when processing IPv6 addresses for extended subject 226184902Srwatson and process tokens. 227184902Srwatson- gcc41 warnings clean. 228184902Srwatson- Teach audit_submit(3) about getaudit_addr(2). 229184902Srwatson- Add support for zonename tokens. 230184902Srwatson 231184902SrwatsonOpenBSM 1.0 alpha 13 232184902Srwatson 233184902Srwatson- compat/clock_gettime.h now provides a compatibility implementation of 234184902Srwatson clock_gettime(), which fixes building on Mac OS X. 235184902Srwatson- Countless man page improvements, markup fixes, content fixs, etc. 236184902Srwatson- XML printing support via "praudit -x". 237184902Srwatson- audit.log.5 expanded to include additional BSM token types. 238184902Srwatson- Added encoding and decoding routines for process64_ex, process32_ex, 239184902Srwatson subject32_ex, header64, and attr64 tokens. 240184902Srwatson- Additional audit event identifiers for listen, mlockall/munlockall, 241184902Srwatson getpath, POSIX message queues, and mandatory access control. 242184902Srwatson 243184902SrwatsonOpenBSM 1.0 alpha 12 244184902Srwatson 245184902Srwatson- Correct bug in auditreduce which prevented the -c option from working 246184902Srwatson correctly when the user specifies to process successful or failed events. 247184902Srwatson The problem stemmed from not having access to the return token at the time 248184902Srwatson the initial preselection occurred, but now a second preselection process 249184902Srwatson occurs while processing the return token. 250184902Srwatson- getacfilesz(3) API added to read new audit_control(5) filesz setting, 251184902Srwatson which auditd(8) now sets the kernel audit trail rotation size to. 252184902Srwatson- auditreduce(1) now uses stdin if no file names are specified on the command 253184902Srwatson line; this was the documented behavior previously, but it was not 254184902Srwatson implemented. Be more specific in auditreduce(1)'s examples section about 255184902Srwatson what might be done with the output of auditreduce. 256184902Srwatson- Add audit_warn(5) closefile event so that administrators can hook 257184902Srwatson termination of an audit trail file. For example, this might be used to 258184902Srwatson compress the trail file after it is closed. 259184902Srwatson- auditreduce(1) now uses regular expressions for pathname matching. Users can 260184902Srwatson now supply one or more (comma delimited) regular expressions for searching 261184902Srwatson the pathnames. If one of the regular expressions is prefixed with a tilde 262184902Srwatson (~), and a path matches, it will be excluded from the search results. 263184902Srwatson 264184902SrwatsonOpenBSM 1.0 alpha 11 265184902Srwatson 266184902Srwatson- Reclassify certain read/write operations as having no class rather than the 267184902Srwatson fr/fw class; our default classes audit intent (open) not operations (read, 268184902Srwatson write). 269184902Srwatson- Introduce AUE_SYSCTL_WRITE event so that BSD/Darwin systems can audit reads 270184902Srwatson and writes of sysctls as separate events. Add additional kernel 271184902Srwatson environment and jail events for FreeBSD. 272184902Srwatson- Break AUDIT_TRIGGER_OPEN_NEW into two events, AUDIT_TRIGGER_ROTATE_USER 273184902Srwatson (issued by the user audit(8) tool) and AUDIT_TRIGGER_ROTATE_KERNEL (issued 274184902Srwatson by the kernel audit implementation) so that they can be distinguished. 275184902Srwatson- Disable rate limiting of rotate requests; as the kernel doesn't retransmit 276184902Srwatson a dropped request, the log file will otherwise grow indefinitely if the 277184902Srwatson trigger is dropped. 278184902Srwatson- Improve auditd debugging output. 279184902Srwatson- Fix a number of threading related bugs in audit_control file reading 280184902Srwatson routines. 281184902Srwatson- Add APIs au_poltostr() and au_strtopol() to convert between text 282184902Srwatson representations of audit_control policy flags and the flags passed to 283184902Srwatson auditon(A_SETPOLICY) and retrieved from auditon(A_GETPOLICY). 284184902Srwatson- Add API getacpol() to return the 'policy:' entry from audit_control, an 285184902Srwatson extension to the Solaris file format to allow specification of policy 286184902Srwatson persistent flags. 287184902Srwatson- Update audump to print the audit_control policy field. 288184902Srwatson- Update auditd to read the audit_control policy field and set the kernel 289184902Srwatson policy to match it when configuring/reconfiguring. Remove the -s and -h 290184902Srwatson arguments as these policies are now set via the configuration file. If a 291184902Srwatson policy line is not found in the configuration file, continue with the 292184902Srwatson current default of setting AUDIT_CNT. 293184902Srwatson- Fix bugs in the parsing of large execve(2) arguments and environmental 294184902Srwatson variable tokens; increase maximum parsed argument and variable count. 295184902Srwatson- configure now detects strlcat(), used by policy-related functions. 296184902Srwatson- Reference token and record sample files added to test tree. 297184902Srwatson 298184902SrwatsonOpenBSM 1.0 alpha 10 299184902Srwatson 300184902Srwatson- auditd now generates complete audit records for its events, as required for 301184902Srwatson application-submitted audit records in the FreeBSD kernel audit 302184902Srwatson implementation. 303184902Srwatson 304184902SrwatsonOpenBSM 1.0 alpha 9 305184902Srwatson 306184902Srwatson- Rename many OpenBSM-specific constants and API elements containing the 307184902Srwatson strings "BSM" and "bsm" to "AUDIT" and "audit", observing that this is true 308184902Srwatson for almost all existing constants and APIs. 309184902Srwatson- Instead of passing a per-instance cookie directly into all audit filter 310184902Srwatson APIs, pass in the audit filter daemon state pointer, which is then used by 311184902Srwatson the module using an audit_filter_{get,set}cookie() API. This will allow 312184902Srwatson future service APIs provided by the filter daemon to maintain their own 313184902Srwatson state -- for example, per-module preselection state. 314184902Srwatson 315184902SrwatsonOpenBSM 1.0 alpha 8 316184902Srwatson 317184902Srwatson- Correct typo in definition of AUR_INT. 318184902Srwatson- Adopt OpenSolaris constant values for AUDIT_* configuration flags. 319184902Srwatson- Arguments to au_to_exec_args() and au_to_exec_env() no longer const. 320184902Srwatson- Add kernel versions of au_to_exec_args() and au_to_exec_env(). 321184902Srwatson- Fix exec argument type that is printed for env strings from 'arg' to 'env'. 322184902Srwatson- New OpenBSM token version number assigned, constants added for other 323184902Srwatson commonly seen version numbers. 324184902Srwatson- OpenBSM-specific events assigned numbers in the 43xxx range to avoid future 325184902Srwatson collisions with Solaris. Darwin events renamed to AUE_DARWIN_foo, as they 326184902Srwatson are now deprecated numberings. 327184902Srwatson- autoconf now detects clock_gettime(), which is not available on Darwin. 328184902Srwatson- praudit output fixes relating to arg32 and arg64 tokens. 329184902Srwatson- Maximum record size updated to 64k-1 to match Solaris record size limit. 330184902Srwatson- Various style and comment cleanups in include files. 331184902Srwatson 332184902SrwatsonOpenBSM 1.0 alpha 7 333184902Srwatson 334184902Srwatson- Adopted Solaris-compatible format for subject32_ex and subject64_ex 335184902Srwatson tokens, which previously did not correctly implement variable length 336184902Srwatson address storage. 337184902Srwatson- Prefer inttypes.h to stdint.h; enhance queue.h detection to test for 338184902Srwatson TAILQ_FOREACH_SAFE(), which is present in recent BSD queue.h's, but not 339184902Srwatson older ones. OpenBSM now builds on some FreeBSD 4.x versions. 340184902Srwatson- New event types for extended attributes, ACLs, and scheduling. 341184902Srwatson 342184902SrwatsonOpenBSM 1.0 alpha 6 343184902Srwatson 344184902Srwatson- Use AU_TO_WRITE and AU_NO_TO_WRITE for the 'keep' argument to au_close(); 345184902Srwatson previously we used hard-coded 0 and 1 values. 346184902Srwatson- Add man page for au_open(), au_write(), au_close(), and 347184902Srwatson au_close_buffer(). 348184902Srwatson- Support a more complete range of data types for the arbitrary data token: 349184902Srwatson add AUR_CHAR (alias to AUR_BYTE), remove AUR_LONG, add AUR_INT32 (alias 350184902Srwatson to AUR_INT), add AUR_INT64. 351184902Srwatson- Add au_close_token(), which allows writing a single token_t to a memory 352184902Srwatson buffer. Not likely to be used much by applications, but useful for 353184902Srwatson writing test tools. 354184902Srwatson- Modify au_to_file() so that it accepts a timeval in user space, not just 355184902Srwatson kernel -- this is not a Solaris BSM API so can be modified without 356184902Srwatson causing compatibility issues. 357184902Srwatson- Define a new API, au_to_header32_tm(), which adds a struct timeval 358184902Srwatson argument to the ordinary au_to_header32(), which is now implemented by 359184902Srwatson wrapping au_to_header32_tm() and calling gettimeofday(). #ifndef KERNEL 360184902Srwatson the APIs that invoke gettimeofday(), rather than having a variable 361184902Srwatson definition. Don't try to retrieve time zone information using 362184902Srwatson gettimeofday(), as it's not needed, and introduces possible failure 363184902Srwatson modes. 364184902Srwatson- Don't perform byte order transformations on the addr/machine fields of 365184902Srwatson the terminal ID that appears in the process32/subject32 tokens. These 366184902Srwatson are assumed to be IP addresses, and as such, to be in network byte 367184902Srwatson order. 368184902Srwatson- Universally, APIs now assume that IP addresses and ports are provided 369184902Srwatson in network byte order. APIs now generally provide these types in 370184902Srwatson network byte order when decoding. 371184902Srwatson- Beginnings of an OpenBSM test framework can now be found in openbsm/test. 372184902Srwatson This code is not built or installed by default. 373184902Srwatson- auditd now assigns more appropriate syslog levels to its debugging and 374184902Srwatson error information. 375184902Srwatson- Support for audit filters introduced: audit filters are dynamically 376184902Srwatson loaded shared objects that run in the context of a new daemon, 377184902Srwatson auditfilterd. The daemon reads from an audit pipe and feeds both BSM and 378184902Srwatson parsed versions of records to shared objects using a module API. This 379184902Srwatson will provide a framework for the writing of intrusion detection services. 380184902Srwatson- New utility API, audit_submit(), added to capture common elements of audit 381184902Srwatson record submission for many applications. 382184902Srwatson 383184902SrwatsonOpenBSM 1.0 alpha 5 384184902Srwatson 385184902Srwatson- Update install notes to indicate /etc files are to be installed manually. 386184902Srwatson- On systems without LOG_SECURITY, use LOG_AUTH. 387184902Srwatson- Convert to autoconf/automake in order to move to a more portable (not 388184902Srwatson BSD-specific) build infrastructure, and more easy conditional building of 389184902Srwatson components. Currently, the primary feature loss is that automake does 390184902Srwatson not have native support for manual symlinks. This will be addressed in a 391184902Srwatson future OpenBSM release. 392184902Srwatson- Add compat/queue.h, to be used on systems dated BSD queue macro libraries 393184902Srwatson (as found on Linux). 394184902Srwatson- Rename CHANGELOG to HISTORY, as our change log doesn't follow some of the 395184902Srwatson existing conventions for a CHANGELOG. 396184902Srwatson- Some private data structures moved from audit.h to audit_internal.h to 397184902Srwatson prevent inappropriate use by applications and name space pollution. 398184902Srwatson- Improved detection and use of endian macros using autoconf. 399184902Srwatson- Avoid non-portable use of struct in6_addr, which is largely opaque. 400184902Srwatson- Avoid leaking BSD kernel socket related token code to user space in 401184902Srwatson bsm_token.c. 402184902Srwatson- Teach System V IPC calls to look for Linux naming variations for certain 403184902Srwatson struct ipc_perm fields. 404184902Srwatson- Test for audit system calls, and if not present, don't build 405184902Srwatson bsm_wrappers.c, bsm_notify.c, audit(8), and auditd(8), which rely on 406184902Srwatson those system calls. 407184902Srwatson- au_close() is not implemented on systems that don't have audit system 408184902Srwatson calls, but au_close_buffer() is. 409184902Srwatson- Work around missing BSDisms in bsm_wrapper.c. 410184902Srwatson- Fix nested includes so including libbsm.h in an application on Linux 411184902Srwatson picks up the necessary definitions. 412184902Srwatson 413184902SrwatsonOpenBSM 1.0 alpha 4 414184902Srwatson 415184902Srwatson- Remove "audit" user example from audit_user, as it's not present on most 416184902Srwatson systems. 417184902Srwatson- Add cannot_audit() function non-Darwin systems that wraps auditon(); 418184902Srwatson required by OpenSSH BSM support. Convert Darwin cannot_audit() into a 419184902Srwatson function rather than a macro. 420184902Srwatson- Library build fixed on Darwin following include file tweaks. The native 421184902Srwatson Darwin sys/audit.h conflicts with bsm/audit.h due to duplicate types, so 422184902Srwatson for now we force bsm_wrappers.c to not perform a nested include of 423184902Srwatson sys/audit.h. 424184902Srwatson 425184902SrwatsonOpenBSM 1.0 alpha 3 426184902Srwatson 427184902Srwatson- Man page formatting, cross reference, mlinks, and accuracy improvements. 428184902Srwatson- auditd and tools now compile and run on FreeBSD/arm. 429184902Srwatson- auditd will now fchown() the trail file to the audit review group, if 430184902Srwatson defined at compile-time. 431184902Srwatson- Added AUE_SYSARCH for FreeBSD. 432184902Srwatson- Definition of AUE_SETFSGID fixed for Linux. 433184902Srwatson 434184902SrwatsonOpenBSM 1.0 alpha 2 435184902Srwatson 436184902Srwatson- Man page formatting improvements. 437184902Srwatson- A number of new audit event identifiers for FreeBSD, Linux, and POSIX.1b 438184902Srwatson events. 439184902Srwatson- Remove 'tfm' class, unused in OpenBSM. 440184902Srwatson 441184902SrwatsonOpenBSM 1.0 alpha 1 442184902Srwatson 443184902Srwatson- Import of Darwin74 BSM drop 444184902Srwatson- Use 'syslog' for audit log warnings, rather than echoing to a file in 445184902Srwatson audit_warn. 446184902Srwatson- Compile using BSD make infrastructure. 447184902Srwatson- Integrate bsm/ include files from Darwin74 XNU drop into OpenBSM. 448184902Srwatson- Narrow set of symbols and defines that are exposed in user space: don't 449184902Srwatson compile in code relying on kernel-only types such as 'struct socket'. 450184902Srwatson- Add README, including basic build documentation. 451184902Srwatson- Compilation of Apple-specific notify and Machroutines now #ifdef __APPLE__. 452184902Srwatson- Staticize libbsm global variables to avoid leakage into applications. 453184902Srwatson- Add free_au_user_ent() so that au_user_ent's don't have to be leaked. 454184902Srwatson- Clean up bogus nul-termination checks in libbsm. 455184902Srwatson- Add libbsm API man pages: au_class.3 au_control.3 au_event.3 456184902Srwatson au_free_token.3 au_io.3 au_mask.3 au_token.3 au_user.3 libbsm.3. 457184902Srwatson- Add man pages for BSM system calls: audit.2 auditctl.2 auditon.2 getaudit.2 458184902Srwatson getauid.2 setaudit.2 setauid.2 459184902Srwatson- Modify various libbsm interfaces to more consistently return 'errno' values 460184902Srwatson on failure. 461184902Srwatson- Break out au_close() into constituent parts, allowing records to be written 462184902Srwatson to memory as well as files. 463184902Srwatson- Prefix various defines with 'BSM_' to reduce name space pollution. 464184902Srwatson- Added audit_internal.h, which can be used by a kernel audit implementation 465184902Srwatson wanting to rely on libbsm components. 466184902Srwatson- Build with warnings, and eliminate warnings. 467184902Srwatson- Make libbsm endian-independent, storing and reading BSM are big endian 468184902Srwatson (network byte order) rather than native byte order. More consistently 469184902Srwatson print IP addresses using the IP address print routine. These changes 470184902Srwatson make use of sys/endian.h from *BSD; since this isn't present on Darwin, 471184902Srwatson add it to OpenBSM as compat/endian.h, which is used only on Darwin. 472184902Srwatson- Import of Darwin80 BSM drop, including 64-bit file IDs, better 473184902Srwatson documentation of private APIs, and bug fixes. 474184902Srwatson- White space cleanup. 475184902Srwatson- Add audit.log.5, a first cut at a man page documenting the BSM file format. 476184902Srwatson- Teach au_read_rec() to recognize stand-alone file tokens, which are present 477184902Srwatson at the beginning and end of Solaris audit trails. Technically, these 478184902Srwatson appear to violate the high level BSM spec, which suggests that all tokens 479184902Srwatson are present in records, but need to be supported. 480184902Srwatson- Implement HEADER64, ATTR64, SUBJECT64 token types, which make it possible 481184902Srwatson to run praudit(1) on basic Solaris BSM streams. 482184902Srwatson- Switched to Solaris spelling of token names; Darwin spellings are now 483184902Srwatson deprecated and will be removed in a future version of OpenBSM. 484184902Srwatson- Adopt Solaris model for representing IPv4 and IPv6 addresses. 485184902Srwatson- Prefer C99 types. 486184902Srwatson- Attempt to universally adopt the BSD style(9) coding style for 487184902Srwatson consistency. 488184902Srwatson- auditreduce(1) now has a usage message. 489184902Srwatson- Update support for auditctl(2) system call to support FreeBSD. 490184902Srwatson- Add support for /dev/audit as the trigger source on FreeBSD. 491184902Srwatson- Add additional event types for Darwin, FreeBSD, and Solaris. Annotate 492184902Srwatson conflicts (there are a few, unfortunately). Correct spellings, comment, 493184902Srwatson sort, etc. These include {get,set}res[ug]id(), sendfile(), lchflags(), 494184902Srwatson eaccess(), kqueue(), kevent(), poll(), lchmod(). 495184902Srwatson- Relicensed under a BSD license, many thanks to Apple, Inc! 496184902Srwatson- Many bug fixes, cleanups, thread safety in the class, control, event, 497184902Srwatson and user system audit databases. Annotate some persisting atomicity 498184902Srwatson bugs associated with the API and implementation. 499184902Srwatson- Add audump test tool. 500184902Srwatson- Adopt OpenSolaris BSM API memory semantics: caller allocates memory, 501184902Srwatson or static memory is returned for non-_r() versions of API calls. 502184902Srwatson _free() calls dropped as a result, and source code compatibility with 503184902Srwatson OpenSolaris improved significantly. 504184902Srwatson- Annotate BSM events with origin OS and compatibility information. 505184902Srwatson- auditd(8), audit(8) added to the OpenBSM distribution. auditd extended 506184902Srwatson to support reloading of kernel event table. 507184902Srwatson- Allow comments in /etc/security configuration files. 508