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