xref: /freebsd/contrib/openbsm/NEWS (revision 5e386598a6d77973b93c073080f0cc574edda9e2)
152267f74SRobert WatsonOpenBSM Version History
252267f74SRobert Watson
3*5e386598SRobert WatsonOpenBSM 1.2 alpha 5
4*5e386598SRobert Watson
5*5e386598SRobert Watson- Add a new "qsize" parameter in audit_control and the getacqsize(3) API to
6*5e386598SRobert Watson  query it, allowing to set the kernel's maximum audit queue length.
7*5e386598SRobert Watson- Add support to push a mapping between audit event names and event numbers
8*5e386598SRobert Watson  into the kernel (where supported) using new A_GETEVENT and A_SETEVENT
9*5e386598SRobert Watson  auditon(2) operations.
10*5e386598SRobert Watson- Add audit event identifiers for a number of new (and not-so-new) FreeBSD
11*5e386598SRobert Watson  system calls including those for asynchronous I/O, thread management, SCTP,
12*5e386598SRobert Watson  jails, multi-FIB support, and misc. POSIX interfaces such as
13*5e386598SRobert Watson  posix_fallocate(2) and posix_fadvise(2).
14*5e386598SRobert Watson- On operating systems supporting Capsicum, auditreduce(1) and praudit(1) now
15*5e386598SRobert Watson  run sandboxed.
16*5e386598SRobert Watson- Empty "flags" and "naflags" fields are now permitted in audit_control(5).
17*5e386598SRobert Watson
18b6a05070SChristian BruefferOpenBSM 1.2 alpha 4
19b6a05070SChristian Brueffer
20b6a05070SChristian Brueffer- Fix praudit to emit correct XML.
21b6a05070SChristian Brueffer- Fix auditdistd bugs related to IPv6 support, locking, and a kqueue-related
22b6a05070SChristian Brueffer  descriptor leak.
23b6a05070SChristian Brueffer- Add audit event definitions for Capsicum-related syscalls, as well as
24b6a05070SChristian Brueffer  AUE_BINDAT and AUE_CONNECTAT.
25b6a05070SChristian Brueffer- Manpage symlinks for all libbsm functions are installed again after the
26b6a05070SChristian Brueffer  move to autotools in OpenBSM 1.0 Alpha 5.
27b6a05070SChristian Brueffer- A variety of minor documentation cleanups.
28b6a05070SChristian Brueffer
29f7d22997SRobert WatsonOpenBSM 1.2 alpha 3
30f7d22997SRobert Watson
31f7d22997SRobert Watson- Various minor tweaks to the auditdistd build to make it fit the FreeBSD
32f7d22997SRobert Watson  build environment better.
33f7d22997SRobert Watson- AUE_WAIT6 merged from FreeBSD 9.
34f7d22997SRobert Watson
35aa772005SRobert WatsonOpenBSM 1.2 alpha 2
36aa772005SRobert Watson
37aa772005SRobert Watson- auditdistd, a distributed audit trail management daemon, has now been
38aa772005SRobert Watson  merged.  This allows trail files to be securely and reliably synced from
39aa772005SRobert Watson  audited hosts to an audit server, and employs TLS encryption.  Where
40aa772005SRobert Watson  available, it uses Capsicum to sandbox the service.  This work was
41aa772005SRobert Watson  contributed by Pawel Jakub Dawidek under sponsorship from the FreeBSD
42aa772005SRobert Watson  Foundation.
43aa772005SRobert Watson
44aa772005SRobert WatsonOpenBSM 1.2 alpha 1
45aa772005SRobert Watson
46aa772005SRobert Watson- Add Capsicum-related error numbers for FreeBSD: ENOTCAPABLE, ECAPMODE.
47aa772005SRobert Watson- Add Capsicum, process descriptor audit events for FreeBSD.
48aa772005SRobert Watson- Allow 0% minspace.
49aa772005SRobert Watson- Fixes from the clang static analyser.
50aa772005SRobert Watson- Fix expiration of trail files when the host parameter is used.
51aa772005SRobert Watson- Various typo fixes.
52aa772005SRobert Watson- Support for Solaris privilege and privilege set tokens.
53aa772005SRobert Watson- Documentation for getachost(), improvements for getacfilesz().
54aa772005SRobert Watson- Fix a directory descriptor leak that happened when audit trail partitions
55aa772005SRobert Watson  filled.
56aa772005SRobert Watson- Support for more Linux distributions with a partial contemporary endian.h.
57aa772005SRobert Watson- Improved escaping of XML-encapsulated BSM.
58aa772005SRobert Watson- A variety of minor documentation, style, and functional.
59aa772005SRobert Watson
60a743684eSRobert WatsonOpenBSM 1.1p2
61a743684eSRobert Watson
62a743684eSRobert Watson- Fix audit_event definitions of AUE_OPENAT_RWT and AUE_OPENAT_RWTC.
63a743684eSRobert Watson- Fix build on Linux.
64a743684eSRobert Watson- Fix printing of class masks in the audump tool.
65a743684eSRobert Watson
66597df30eSRobert WatsonOpenBSM 1.1p1
67597df30eSRobert Watson
68597df30eSRobert Watson- Fixes to AUT_SOCKUNIX token parsing.
69597df30eSRobert Watson- IPv6 support for au_to_me(3).
70597df30eSRobert Watson- Improved robustness in the parsing of audit_control, especially long
71597df30eSRobert Watson  flags/naflags strings and whitespace in all fields.
72597df30eSRobert Watson- Add missing conversion of a number of FreeBSD/Mac OS X errnos to/from BSM
73597df30eSRobert Watson  error number space.
74597df30eSRobert Watson
75c0020399SRobert WatsonOpenBSM 1.1
76c0020399SRobert Watson
77c0020399SRobert Watson- Change auditon(2) parameters and data structures to be 32/64-bit architecture
78c0020399SRobert Watson  independent.  Add more information to man page about auditon(2) parameters.
79c0020399SRobert Watson- Add wrapper functions for auditon(2) to use legacy commands when the new
80c0020399SRobert Watson  commands are not supported.
81c0020399SRobert Watson- Add default for 'expire-after' in audit_control to expire trail files when
82c0020399SRobert Watson  the audit directory is more than 10 megabytes ('10M').
83c0020399SRobert Watson- Interface to convert between local and BSM fcntl(2) command values has been
84c0020399SRobert Watson  added:  au_bsm_to_fcntl_cmd(3) and au_fcntl_cmd_to_bsm(3), along with
85c0020399SRobert Watson  definitions of constants in audit_fcntl.h.
86c0020399SRobert Watson- A bug, introduced in OpenBSM 1.1 alpha 4, in which AUT_RETURN32 tokens
87c0020399SRobert Watson  generated by audit_submit(3) were improperly encoded has been fixed.
88c0020399SRobert Watson- Fix example in audit_submit(3) man page.  Also, make it clear that we want
89c0020399SRobert Watson  the audit ID as the argument.
90c0020399SRobert Watson- A new audit event class 'aa', for post-login authentication and
91c0020399SRobert Watson  authorization events, has been added.
92c0020399SRobert Watson
9306edd2f1SRobert WatsonOpenBSM 1.1 beta 1
9406edd2f1SRobert Watson
9506edd2f1SRobert Watson- The filesz parameter in audit_control(5) now accepts suffixes: 'B' for
9606edd2f1SRobert Watson  Bytes, 'K' for Kilobytes, 'M' for Megabytes, and 'G' for Gigabytes.
9706edd2f1SRobert Watson  For legacy support no suffix defaults to bytes.
9806edd2f1SRobert Watson- Audit trail log expiration support added.  It is configured in
9906edd2f1SRobert Watson  audit_control(5) with the expire-after parameter.  If there is no
10006edd2f1SRobert Watson  expire-after parameter in audit_control(5), the default, then the audit
10106edd2f1SRobert Watson  trail files are not expired and removed.  See audit_control(5) for
10206edd2f1SRobert Watson  more information.
10306edd2f1SRobert Watson- Change defaults in audit_control: warn at 5% rather than 20% free for audit
10406edd2f1SRobert Watson  partitions, rotate automatically at 2mb, and set the default policy to
10506edd2f1SRobert Watson  cnt,argv rather than cnt so that execve(2) arguments are captured if
10606edd2f1SRobert Watson  AUE_EXECVE events are audited.  These may provide more usable defaults for
10706edd2f1SRobert Watson  many users.
10806edd2f1SRobert Watson- Use au_domain_to_bsm(3) and au_socket_type_to_bsm(3) to convert
10906edd2f1SRobert Watson  au_to_socket_ex(3) arguments to BSM format.
11006edd2f1SRobert Watson- Fix error encoding AUT_IPC_PERM tokens.
11106edd2f1SRobert Watson
112c74c7b73SRobert WatsonOpenBSM 1.1 alpha 5
113c74c7b73SRobert Watson
114c74c7b73SRobert Watson- Stub libauditd(3) man page added.
115c74c7b73SRobert Watson- All BSM error number constants with BSM_ERRNO_.
116c74c7b73SRobert Watson- Interfaces to convert between local and BSM socket types and protocol
117c74c7b73SRobert Watson  families have been added: au_bsm_to_domain(3), au_bsm_to_socket_type(3),
118c74c7b73SRobert Watson  au_domain_to_bsm(3), and au_socket_type_to_bsm(3), along with definitions
119c74c7b73SRobert Watson  of constants in audit_domain.h and audit_socket_type.h.  This improves
120c74c7b73SRobert Watson  interoperability by converting local constant spaces, which vary by OS, to
121c74c7b73SRobert Watson  and from Solaris constants (where available) or OpenBSM constants for
122c74c7b73SRobert Watson  protocol domains not present in Solaris (a fair number).  These routines
123c74c7b73SRobert Watson  should be used when generating and interpreting extended socket tokens.
124c74c7b73SRobert Watson- Fix build warnings with full gcc warnings enabled on most supported
125c74c7b73SRobert Watson  platforms.
126c74c7b73SRobert Watson- Don't compile error strings into bsm_errno.c when building it in the kernel
127c74c7b73SRobert Watson  environment.
128c74c7b73SRobert Watson- When started by launchd, use the label com.apple.auditd rather than
129c74c7b73SRobert Watson  org.trustedbsd.auditd.
130c74c7b73SRobert Watson
1317a0a89d2SRobert WatsonOpenBSM 1.1 alpha 4
1327a0a89d2SRobert Watson
1337a0a89d2SRobert Watson- With the addition of BSM error number mapping, we also need to map the
1347a0a89d2SRobert Watson  local error number passed to audit_submit(3) to a BSM error number, rather
1357a0a89d2SRobert Watson  than have the caller perform that conversion.
1367a0a89d2SRobert Watson- Reallocate user audit events to avoid collisions with Solaris; adopt a more
1377a0a89d2SRobert Watson  formal allocation scheme, and add some events allocated in Solaris that
1387a0a89d2SRobert Watson  will be of immediate use on other platforms.
1397a0a89d2SRobert Watson- Add an event for Calife.
1407a0a89d2SRobert Watson- Add au_strerror(3), which allows generating strings for BSM errors
1417a0a89d2SRobert Watson  directly, rather than requiring applications to map to the local error
1427a0a89d2SRobert Watson  space, which might not be able to entirely represent the BSM error number
1437a0a89d2SRobert Watson  space.
1447a0a89d2SRobert Watson- Major auditd rewrite for launchd(8) support.  Add libauditd library that is
1457a0a89d2SRobert Watson  shared between launchd and auditd.
1467a0a89d2SRobert Watson- Add AUDIT_TRIGGER_INITIALIZE trigger (sent via 'audit -i') for (re)starting
1477a0a89d2SRobert Watson  auditing under launchd(8) on Mac OS X.
1487a0a89d2SRobert Watson- Add 'current' symlink to active audit trail.
1497a0a89d2SRobert Watson- Add crash recovery of previous audit trail file when detected on audit
1507a0a89d2SRobert Watson  startup that it has not been properly terminated.
1517a0a89d2SRobert Watson- Add the event AUE_audit_recovery to indicated when an audit trail file has
1527a0a89d2SRobert Watson  been recovered from not being properly terminated.  This event is stored
1537a0a89d2SRobert Watson  in the new audit trail file and includes the path of recovered audit trail
1547a0a89d2SRobert Watson  file.
1557a0a89d2SRobert Watson- Mac OS X and FreeBSD dependent code in auditd.c is separated into
1567a0a89d2SRobert Watson  auditd_darwin.c and auditd_fbsd.c files.
1577a0a89d2SRobert Watson- Add an event for the posix_spawn(2) and fsgetpath(2) Mac OS X system calls.
1587a0a89d2SRobert Watson- For Mac OS X, we use ASL(3) instead of syslog(3) for logging.
1597a0a89d2SRobert Watson- Add support for NOTICE level logging.
1607a0a89d2SRobert Watson
1617a0a89d2SRobert WatsonOpenBSM 1.1 alpha 3
1627a0a89d2SRobert Watson
1637a0a89d2SRobert Watson- Add two new functions, au_bsm_to_errno() and au_errno_to_bsm(), to map
1647a0a89d2SRobert Watson  between BSM error numbers (largely the Solaris definitions) and local
1657a0a89d2SRobert Watson  errno(2) values for 32-bit and 64-bit return tokens.  This is required as
1667a0a89d2SRobert Watson  operating systems don't agree on some of the values of more recent error
1677a0a89d2SRobert Watson  numbers.
1687a0a89d2SRobert Watson- Fix a bug how au_to_exec_args(3) and au_to_exec_env(3) calculates the total
1697a0a89d2SRobert Watson  size for the token.  This bug resulted in "unknown" tokens being printed
1707a0a89d2SRobert Watson  after the exec args/env tokens.
1717a0a89d2SRobert Watson- Support for AUT_SOCKET_EX extended socket tokens, which describe a socket
1727a0a89d2SRobert Watson  using a pair of IPv4/IPv6 and port tuples.
1737a0a89d2SRobert Watson- OpenBSM BSM file header version bumped for 1.1 release.
1747a0a89d2SRobert Watson- Deprecated Darwin constants, such as TRAILER_PAD_MAGIC, removed.
1757a0a89d2SRobert Watson
17652267f74SRobert WatsonOpenBSM 1.1 alpha 2
17752267f74SRobert Watson
17852267f74SRobert Watson- Include files in OpenBSM are now broken out into two parts: library builds
17952267f74SRobert Watson  required solely for user space, and system includes, which may also be
18052267f74SRobert Watson  required for use in the kernels of systems integrating OpenBSM.  Submitted
18152267f74SRobert Watson  by Stacey Son.
18252267f74SRobert Watson- Configure option --with-native-includes allows forcing the use of native
18352267f74SRobert Watson  include for system includes, rather than the versions bundled with OpenBSM.
18452267f74SRobert Watson  This is intended specifically for platforms that ship OpenBSM, have adapted
18552267f74SRobert Watson  versions of the system includes in a kernel source tree, and will use the
18652267f74SRobert Watson  OpenBSM build infrastructure with an unmodified OpenBSM distribution,
18752267f74SRobert Watson  allowing the customized system includes to be used with the OpenBSM build.
18852267f74SRobert Watson  Submitted by Stacey Son.
18952267f74SRobert Watson- Various strcpy()'s/strcat()'s have been changed to strlcpy()'s/strlcat()'s
19052267f74SRobert Watson  or asprintf().  Added compat/strlcpy.h for Linux.
19152267f74SRobert Watson- Remove compatibility defines for old Darwin token constant names; now only
19252267f74SRobert Watson  BSM token names are provided and used.
19352267f74SRobert Watson- Add support for extended header tokens, which contain space for information
19452267f74SRobert Watson  on the host generating the record.
19552267f74SRobert Watson- Add support for setting extended host information in the kernel, which is
19652267f74SRobert Watson  used for setting host information in extended header tokens.  The
19752267f74SRobert Watson  audit_control file now supports a "host" parameter which can be used by
19852267f74SRobert Watson  auditd to set the information; if not present, the kernel parameters won't
19952267f74SRobert Watson  be set and auditd uses unextended headers for records that it generates.
20052267f74SRobert Watson
20152267f74SRobert WatsonOpenBSM 1.1 alpha 1
20252267f74SRobert Watson
20352267f74SRobert Watson- Add option to auditreduce(1) which allows users to invert sense of
20452267f74SRobert Watson  matching, such that BSM records that do not match, are selected.
20552267f74SRobert Watson- Fix bug in audit_write() where we commit an incomplete record in the
20652267f74SRobert Watson  event there is an error writing the subject token.  This was submitted
20752267f74SRobert Watson  by Diego Giagio.
20852267f74SRobert Watson- Build support for Mac OS X 10.5.1 submitted by Eric Hall.
20952267f74SRobert Watson- Fix a bug which resulted in host XML attributes not being printed
21052267f74SRobert Watson  while processing extended header tokens.  This patch was submitted by
21152267f74SRobert Watson  Martin Voros.
21252267f74SRobert Watson- Constification of function arguments so that const strings can be passed
21352267f74SRobert Watson  as arguments to tokens.  This patch was submitted by Xin LI.
21452267f74SRobert Watson- Modify the -m option so users can select more then one audit event.
21552267f74SRobert Watson- For Mac OS X, added Mach IPC support for audit trigger messages.
21652267f74SRobert Watson- Fixed a bug in getacna() which resulted in a locking problem on Mac OS X.
21752267f74SRobert Watson- Added LOG_PERROR flag to openlog when -d option is used with auditd.
21852267f74SRobert Watson- AUE events added for Mac OS X Leopard system calls.
21952267f74SRobert Watson
22052267f74SRobert WatsonOpenBSM 1.0
22152267f74SRobert Watson
22252267f74SRobert Watson- Fix bug in auditreduce(1) which resulted in a memory fault/crash when
22352267f74SRobert Watson  the user specified an event name with -m.
22452267f74SRobert Watson- Remove AU_.* hard-coded audit class constants, as audit classes are now
22552267f74SRobert Watson  entirely dynamically configured using /etc/security/audit_class.
22652267f74SRobert Watson
22752267f74SRobert WatsonOpenBSM 1.0 alpha 15
22852267f74SRobert Watson
22952267f74SRobert Watson- Fix bug when processing in_addr_ex tokens.
23052267f74SRobert Watson- Restore the behavior of printing the string/text specified while
23152267f74SRobert Watson  auditing arg32 tokens.
23252267f74SRobert Watson- Synchronized audit event list to Solaris, picking up the *at(2) system call
23352267f74SRobert Watson  definitions, now required for FreeBSD and Linux.  Added additional events
23452267f74SRobert Watson  for *at(2) system calls not present in Solaris.
23552267f74SRobert Watson- Bugs in auditreduce(1) fixed allowing partial date strings to be used in
23652267f74SRobert Watson  filtering events.
23752267f74SRobert Watson
23852267f74SRobert WatsonOpenBSM 1.0 alpha 14
23952267f74SRobert Watson
24052267f74SRobert Watson- Fix endian issues when processing IPv6 addresses for extended subject
24152267f74SRobert Watson  and process tokens.
24252267f74SRobert Watson- gcc41 warnings clean.
24352267f74SRobert Watson- Teach audit_submit(3) about getaudit_addr(2).
24452267f74SRobert Watson- Add support for zonename tokens.
24552267f74SRobert Watson
24652267f74SRobert WatsonOpenBSM 1.0 alpha 13
24752267f74SRobert Watson
24852267f74SRobert Watson- compat/clock_gettime.h now provides a compatibility implementation of
24952267f74SRobert Watson  clock_gettime(), which fixes building on Mac OS X.
25052267f74SRobert Watson- Countless man page improvements, markup fixes, content fixs, etc.
25152267f74SRobert Watson- XML printing support via "praudit -x".
25252267f74SRobert Watson- audit.log.5 expanded to include additional BSM token types.
25352267f74SRobert Watson- Added encoding and decoding routines for process64_ex, process32_ex,
25452267f74SRobert Watson  subject32_ex, header64, and attr64 tokens.
25552267f74SRobert Watson- Additional audit event identifiers for listen, mlockall/munlockall,
25652267f74SRobert Watson  getpath, POSIX message queues, and mandatory access control.
25752267f74SRobert Watson
25852267f74SRobert WatsonOpenBSM 1.0 alpha 12
25952267f74SRobert Watson
26052267f74SRobert Watson- Correct bug in auditreduce which prevented the -c option from working
26152267f74SRobert Watson  correctly when the user specifies to process successful or failed events.
26252267f74SRobert Watson  The problem stemmed from not having access to the return token at the time
26352267f74SRobert Watson  the initial preselection occurred, but now a second preselection process
26452267f74SRobert Watson  occurs while processing the return token.
26552267f74SRobert Watson- getacfilesz(3) API added to read new audit_control(5) filesz setting,
26652267f74SRobert Watson  which auditd(8) now sets the kernel audit trail rotation size to.
26752267f74SRobert Watson- auditreduce(1) now uses stdin if no file names are specified on the command
26852267f74SRobert Watson  line; this was the documented behavior previously, but it was not
26952267f74SRobert Watson  implemented.  Be more specific in auditreduce(1)'s examples section about
27052267f74SRobert Watson  what might be done with the output of auditreduce.
27152267f74SRobert Watson- Add audit_warn(5) closefile event so that administrators can hook
27252267f74SRobert Watson  termination of an audit trail file.  For example, this might be used to
27352267f74SRobert Watson  compress the trail file after it is closed.
27452267f74SRobert Watson- auditreduce(1) now uses regular expressions for pathname matching. Users can
27552267f74SRobert Watson  now supply one or more (comma delimited) regular expressions for searching
27652267f74SRobert Watson  the pathnames. If one of the regular expressions is prefixed with a tilde
27752267f74SRobert Watson  (~), and a path matches, it will be excluded from the search results.
27852267f74SRobert Watson
27952267f74SRobert WatsonOpenBSM 1.0 alpha 11
28052267f74SRobert Watson
28152267f74SRobert Watson- Reclassify certain read/write operations as having no class rather than the
28252267f74SRobert Watson  fr/fw class; our default classes audit intent (open) not operations (read,
28352267f74SRobert Watson  write).
28452267f74SRobert Watson- Introduce AUE_SYSCTL_WRITE event so that BSD/Darwin systems can audit reads
28552267f74SRobert Watson  and writes of sysctls as separate events.  Add additional kernel
28652267f74SRobert Watson  environment and jail events for FreeBSD.
28752267f74SRobert Watson- Break AUDIT_TRIGGER_OPEN_NEW into two events, AUDIT_TRIGGER_ROTATE_USER
28852267f74SRobert Watson  (issued by the user audit(8) tool) and AUDIT_TRIGGER_ROTATE_KERNEL (issued
28952267f74SRobert Watson  by the kernel audit implementation) so that they can be distinguished.
29052267f74SRobert Watson- Disable rate limiting of rotate requests; as the kernel doesn't retransmit
29152267f74SRobert Watson  a dropped request, the log file will otherwise grow indefinitely if the
29252267f74SRobert Watson  trigger is dropped.
29352267f74SRobert Watson- Improve auditd debugging output.
29452267f74SRobert Watson- Fix a number of threading related bugs in audit_control file reading
29552267f74SRobert Watson  routines.
29652267f74SRobert Watson- Add APIs au_poltostr() and au_strtopol() to convert between text
29752267f74SRobert Watson  representations of audit_control policy flags and the flags passed to
29852267f74SRobert Watson  auditon(A_SETPOLICY) and retrieved from auditon(A_GETPOLICY).
29952267f74SRobert Watson- Add API getacpol() to return the 'policy:' entry from audit_control, an
30052267f74SRobert Watson  extension to the Solaris file format to allow specification of policy
30152267f74SRobert Watson  persistent flags.
30252267f74SRobert Watson- Update audump to print the audit_control policy field.
30352267f74SRobert Watson- Update auditd to read the audit_control policy field and set the kernel
30452267f74SRobert Watson  policy to match it when configuring/reconfiguring.  Remove the -s and -h
30552267f74SRobert Watson  arguments as these policies are now set via the configuration file.  If a
30652267f74SRobert Watson  policy line is not found in the configuration file, continue with the
30752267f74SRobert Watson  current default of setting AUDIT_CNT.
30852267f74SRobert Watson- Fix bugs in the parsing of large execve(2) arguments and environmental
30952267f74SRobert Watson  variable tokens; increase maximum parsed argument and variable count.
31052267f74SRobert Watson- configure now detects strlcat(), used by policy-related functions.
31152267f74SRobert Watson- Reference token and record sample files added to test tree.
31252267f74SRobert Watson
31352267f74SRobert WatsonOpenBSM 1.0 alpha 10
31452267f74SRobert Watson
31552267f74SRobert Watson- auditd now generates complete audit records for its events, as required for
31652267f74SRobert Watson  application-submitted audit records in the FreeBSD kernel audit
31752267f74SRobert Watson  implementation.
31852267f74SRobert Watson
31952267f74SRobert WatsonOpenBSM 1.0 alpha 9
32052267f74SRobert Watson
32152267f74SRobert Watson- Rename many OpenBSM-specific constants and API elements containing the
32252267f74SRobert Watson  strings "BSM" and "bsm" to "AUDIT" and "audit", observing that this is true
32352267f74SRobert Watson  for almost all existing constants and APIs.
32452267f74SRobert Watson- Instead of passing a per-instance cookie directly into all audit filter
32552267f74SRobert Watson  APIs, pass in the audit filter daemon state pointer, which is then used by
32652267f74SRobert Watson  the module using an audit_filter_{get,set}cookie() API.  This will allow
32752267f74SRobert Watson  future service APIs provided by the filter daemon to maintain their own
32852267f74SRobert Watson  state -- for example, per-module preselection state.
32952267f74SRobert Watson
33052267f74SRobert WatsonOpenBSM 1.0 alpha 8
33152267f74SRobert Watson
33252267f74SRobert Watson- Correct typo in definition of AUR_INT.
33352267f74SRobert Watson- Adopt OpenSolaris constant values for AUDIT_* configuration flags.
33452267f74SRobert Watson- Arguments to au_to_exec_args() and au_to_exec_env() no longer const.
33552267f74SRobert Watson- Add kernel versions of au_to_exec_args() and au_to_exec_env().
33652267f74SRobert Watson- Fix exec argument type that is printed for env strings from 'arg' to 'env'.
33752267f74SRobert Watson- New OpenBSM token version number assigned, constants added for other
33852267f74SRobert Watson  commonly seen version numbers.
33952267f74SRobert Watson- OpenBSM-specific events assigned numbers in the 43xxx range to avoid future
34052267f74SRobert Watson  collisions with Solaris.  Darwin events renamed to AUE_DARWIN_foo, as they
34152267f74SRobert Watson  are now deprecated numberings.
34252267f74SRobert Watson- autoconf now detects clock_gettime(), which is not available on Darwin.
34352267f74SRobert Watson- praudit output fixes relating to arg32 and arg64 tokens.
34452267f74SRobert Watson- Maximum record size updated to 64k-1 to match Solaris record size limit.
34552267f74SRobert Watson- Various style and comment cleanups in include files.
34652267f74SRobert Watson
34752267f74SRobert WatsonOpenBSM 1.0 alpha 7
34852267f74SRobert Watson
34952267f74SRobert Watson- Adopted Solaris-compatible format for subject32_ex and subject64_ex
35052267f74SRobert Watson  tokens, which previously did not correctly implement variable length
35152267f74SRobert Watson  address storage.
35252267f74SRobert Watson- Prefer inttypes.h to stdint.h; enhance queue.h detection to test for
35352267f74SRobert Watson  TAILQ_FOREACH_SAFE(), which is present in recent BSD queue.h's, but not
35452267f74SRobert Watson  older ones.  OpenBSM now builds on some FreeBSD 4.x versions.
35552267f74SRobert Watson- New event types for extended attributes, ACLs, and scheduling.
35652267f74SRobert Watson
35752267f74SRobert WatsonOpenBSM 1.0 alpha 6
35852267f74SRobert Watson
35952267f74SRobert Watson- Use AU_TO_WRITE and AU_NO_TO_WRITE for the 'keep' argument to au_close();
36052267f74SRobert Watson  previously we used hard-coded 0 and 1 values.
36152267f74SRobert Watson- Add man page for au_open(), au_write(), au_close(), and
36252267f74SRobert Watson  au_close_buffer().
36352267f74SRobert Watson- Support a more complete range of data types for the arbitrary data token:
36452267f74SRobert Watson  add AUR_CHAR (alias to AUR_BYTE), remove AUR_LONG, add AUR_INT32 (alias
36552267f74SRobert Watson  to AUR_INT), add AUR_INT64.
36652267f74SRobert Watson- Add au_close_token(), which allows writing a single token_t to a memory
36752267f74SRobert Watson  buffer.  Not likely to be used much by applications, but useful for
36852267f74SRobert Watson  writing test tools.
36952267f74SRobert Watson- Modify au_to_file() so that it accepts a timeval in user space, not just
37052267f74SRobert Watson  kernel -- this is not a Solaris BSM API so can be modified without
37152267f74SRobert Watson  causing compatibility issues.
37252267f74SRobert Watson- Define a new API, au_to_header32_tm(), which adds a struct timeval
37352267f74SRobert Watson  argument to the ordinary au_to_header32(), which is now implemented by
37452267f74SRobert Watson  wrapping au_to_header32_tm() and calling gettimeofday().  #ifndef KERNEL
37552267f74SRobert Watson  the APIs that invoke gettimeofday(), rather than having a variable
37652267f74SRobert Watson  definition.  Don't try to retrieve time zone information using
37752267f74SRobert Watson  gettimeofday(), as it's not needed, and introduces possible failure
37852267f74SRobert Watson  modes.
37952267f74SRobert Watson- Don't perform byte order transformations on the addr/machine fields of
38052267f74SRobert Watson  the terminal ID that appears in the process32/subject32 tokens.  These
38152267f74SRobert Watson  are assumed to be IP addresses, and as such, to be in network byte
38252267f74SRobert Watson  order.
38352267f74SRobert Watson- Universally, APIs now assume that IP addresses and ports are provided
38452267f74SRobert Watson  in network byte order.  APIs now generally provide these types in
38552267f74SRobert Watson  network byte order when decoding.
38652267f74SRobert Watson- Beginnings of an OpenBSM test framework can now be found in openbsm/test.
38752267f74SRobert Watson  This code is not built or installed by default.
38852267f74SRobert Watson- auditd now assigns more appropriate syslog levels to its debugging and
38952267f74SRobert Watson  error information.
39052267f74SRobert Watson- Support for audit filters introduced: audit filters are dynamically
39152267f74SRobert Watson  loaded shared objects that run in the context of a new daemon,
39252267f74SRobert Watson  auditfilterd.  The daemon reads from an audit pipe and feeds both BSM and
39352267f74SRobert Watson  parsed versions of records to shared objects using a module API.  This
39452267f74SRobert Watson  will provide a framework for the writing of intrusion detection services.
39552267f74SRobert Watson- New utility API, audit_submit(), added to capture common elements of audit
39652267f74SRobert Watson  record submission for many applications.
39752267f74SRobert Watson
39852267f74SRobert WatsonOpenBSM 1.0 alpha 5
39952267f74SRobert Watson
40052267f74SRobert Watson- Update install notes to indicate /etc files are to be installed manually.
40152267f74SRobert Watson- On systems without LOG_SECURITY, use LOG_AUTH.
40252267f74SRobert Watson- Convert to autoconf/automake in order to move to a more portable (not
40352267f74SRobert Watson  BSD-specific) build infrastructure, and more easy conditional building of
40452267f74SRobert Watson  components.  Currently, the primary feature loss is that automake does
40552267f74SRobert Watson  not have native support for manual symlinks.  This will be addressed in a
40652267f74SRobert Watson  future OpenBSM release.
40752267f74SRobert Watson- Add compat/queue.h, to be used on systems dated BSD queue macro libraries
40852267f74SRobert Watson  (as found on Linux).
40952267f74SRobert Watson- Rename CHANGELOG to HISTORY, as our change log doesn't follow some of the
41052267f74SRobert Watson  existing conventions for a CHANGELOG.
41152267f74SRobert Watson- Some private data structures moved from audit.h to audit_internal.h to
41252267f74SRobert Watson  prevent inappropriate use by applications and name space pollution.
41352267f74SRobert Watson- Improved detection and use of endian macros using autoconf.
41452267f74SRobert Watson- Avoid non-portable use of struct in6_addr, which is largely opaque.
41552267f74SRobert Watson- Avoid leaking BSD kernel socket related token code to user space in
41652267f74SRobert Watson  bsm_token.c.
41752267f74SRobert Watson- Teach System V IPC calls to look for Linux naming variations for certain
41852267f74SRobert Watson  struct ipc_perm fields.
41952267f74SRobert Watson- Test for audit system calls, and if not present, don't build
42052267f74SRobert Watson  bsm_wrappers.c, bsm_notify.c, audit(8), and auditd(8), which rely on
42152267f74SRobert Watson  those system calls.
42252267f74SRobert Watson- au_close() is not implemented on systems that don't have audit system
42352267f74SRobert Watson  calls, but au_close_buffer() is.
42452267f74SRobert Watson- Work around missing BSDisms in bsm_wrapper.c.
42552267f74SRobert Watson- Fix nested includes so including libbsm.h in an application on Linux
42652267f74SRobert Watson  picks up the necessary definitions.
42752267f74SRobert Watson
42852267f74SRobert WatsonOpenBSM 1.0 alpha 4
42952267f74SRobert Watson
43052267f74SRobert Watson- Remove "audit" user example from audit_user, as it's not present on most
43152267f74SRobert Watson  systems.
43252267f74SRobert Watson- Add cannot_audit() function non-Darwin systems that wraps auditon();
43352267f74SRobert Watson  required by OpenSSH BSM support.  Convert Darwin cannot_audit() into a
43452267f74SRobert Watson  function rather than a macro.
43552267f74SRobert Watson- Library build fixed on Darwin following include file tweaks.  The native
43652267f74SRobert Watson  Darwin sys/audit.h conflicts with bsm/audit.h due to duplicate types, so
43752267f74SRobert Watson  for now we force bsm_wrappers.c to not perform a nested include of
43852267f74SRobert Watson  sys/audit.h.
43952267f74SRobert Watson
44052267f74SRobert WatsonOpenBSM 1.0 alpha 3
44152267f74SRobert Watson
44252267f74SRobert Watson- Man page formatting, cross reference, mlinks, and accuracy improvements.
44352267f74SRobert Watson- auditd and tools now compile and run on FreeBSD/arm.
44452267f74SRobert Watson- auditd will now fchown() the trail file to the audit review group, if
44552267f74SRobert Watson  defined at compile-time.
44652267f74SRobert Watson- Added AUE_SYSARCH for FreeBSD.
44752267f74SRobert Watson- Definition of AUE_SETFSGID fixed for Linux.
44852267f74SRobert Watson
44952267f74SRobert WatsonOpenBSM 1.0 alpha 2
45052267f74SRobert Watson
45152267f74SRobert Watson- Man page formatting improvements.
45252267f74SRobert Watson- A number of new audit event identifiers for FreeBSD, Linux, and POSIX.1b
45352267f74SRobert Watson  events.
45452267f74SRobert Watson- Remove 'tfm' class, unused in OpenBSM.
45552267f74SRobert Watson
45652267f74SRobert WatsonOpenBSM 1.0 alpha 1
45752267f74SRobert Watson
45852267f74SRobert Watson- Import of Darwin74 BSM drop
45952267f74SRobert Watson- Use 'syslog' for audit log warnings, rather than echoing to a file in
46052267f74SRobert Watson  audit_warn.
46152267f74SRobert Watson- Compile using BSD make infrastructure.
46252267f74SRobert Watson- Integrate bsm/ include files from Darwin74 XNU drop into OpenBSM.
46352267f74SRobert Watson- Narrow set of symbols and defines that are exposed in user space: don't
46452267f74SRobert Watson  compile in code relying on kernel-only types such as 'struct socket'.
46552267f74SRobert Watson- Add README, including basic build documentation.
46652267f74SRobert Watson- Compilation of Apple-specific notify and Machroutines now #ifdef __APPLE__.
46752267f74SRobert Watson- Staticize libbsm global variables to avoid leakage into applications.
46852267f74SRobert Watson- Add free_au_user_ent() so that au_user_ent's don't have to be leaked.
46952267f74SRobert Watson- Clean up bogus nul-termination checks in libbsm.
47052267f74SRobert Watson- Add libbsm API man pages: au_class.3 au_control.3 au_event.3
47152267f74SRobert Watson  au_free_token.3 au_io.3 au_mask.3 au_token.3 au_user.3 libbsm.3.
47252267f74SRobert Watson- Add man pages for BSM system calls: audit.2 auditctl.2 auditon.2 getaudit.2
47352267f74SRobert Watson  getauid.2 setaudit.2 setauid.2
47452267f74SRobert Watson- Modify various libbsm interfaces to more consistently return 'errno' values
47552267f74SRobert Watson  on failure.
47652267f74SRobert Watson- Break out au_close() into constituent parts, allowing records to be written
47752267f74SRobert Watson  to memory as well as files.
47852267f74SRobert Watson- Prefix various defines with 'BSM_' to reduce name space pollution.
47952267f74SRobert Watson- Added audit_internal.h, which can be used by a kernel audit implementation
48052267f74SRobert Watson  wanting to rely on libbsm components.
48152267f74SRobert Watson- Build with warnings, and eliminate warnings.
48252267f74SRobert Watson- Make libbsm endian-independent, storing and reading BSM are big endian
48352267f74SRobert Watson  (network byte order) rather than native byte order.  More consistently
48452267f74SRobert Watson  print IP addresses using the IP address print routine.  These changes
48552267f74SRobert Watson  make use of sys/endian.h from *BSD; since this isn't present on Darwin,
48652267f74SRobert Watson  add it to OpenBSM as compat/endian.h, which is used only on Darwin.
48752267f74SRobert Watson- Import of Darwin80 BSM drop, including 64-bit file IDs, better
48852267f74SRobert Watson  documentation of private APIs, and bug fixes.
48952267f74SRobert Watson- White space cleanup.
49052267f74SRobert Watson- Add audit.log.5, a first cut at a man page documenting the BSM file format.
49152267f74SRobert Watson- Teach au_read_rec() to recognize stand-alone file tokens, which are present
49252267f74SRobert Watson  at the beginning and end of Solaris audit trails.  Technically, these
49352267f74SRobert Watson  appear to violate the high level BSM spec, which suggests that all tokens
49452267f74SRobert Watson  are present in records, but need to be supported.
49552267f74SRobert Watson- Implement HEADER64, ATTR64, SUBJECT64 token types, which make it possible
49652267f74SRobert Watson  to run praudit(1) on basic Solaris BSM streams.
49752267f74SRobert Watson- Switched to Solaris spelling of token names; Darwin spellings are now
49852267f74SRobert Watson  deprecated and will be removed in a future version of OpenBSM.
49952267f74SRobert Watson- Adopt Solaris model for representing IPv4 and IPv6 addresses.
50052267f74SRobert Watson- Prefer C99 types.
50152267f74SRobert Watson- Attempt to universally adopt the BSD style(9) coding style for
50252267f74SRobert Watson  consistency.
50352267f74SRobert Watson- auditreduce(1) now has a usage message.
50452267f74SRobert Watson- Update support for auditctl(2) system call to support FreeBSD.
50552267f74SRobert Watson- Add support for /dev/audit as the trigger source on FreeBSD.
50652267f74SRobert Watson- Add additional event types for Darwin, FreeBSD, and Solaris.  Annotate
50752267f74SRobert Watson  conflicts (there are a few, unfortunately).  Correct spellings, comment,
50852267f74SRobert Watson  sort, etc.  These include {get,set}res[ug]id(), sendfile(), lchflags(),
50952267f74SRobert Watson  eaccess(), kqueue(), kevent(), poll(), lchmod().
51052267f74SRobert Watson- Relicensed under a BSD license, many thanks to Apple, Inc!
51152267f74SRobert Watson- Many bug fixes, cleanups, thread safety in the class, control, event,
51252267f74SRobert Watson  and user system audit databases.  Annotate some persisting atomicity
51352267f74SRobert Watson  bugs associated with the API and implementation.
51452267f74SRobert Watson- Add audump test tool.
51552267f74SRobert Watson- Adopt OpenSolaris BSM API memory semantics: caller allocates memory,
51652267f74SRobert Watson  or static memory is returned for non-_r() versions of API calls.
51752267f74SRobert Watson  _free() calls dropped as a result, and source code compatibility with
51852267f74SRobert Watson  OpenSolaris improved significantly.
51952267f74SRobert Watson- Annotate BSM events with origin OS and compatibility information.
52052267f74SRobert Watson- auditd(8), audit(8) added to the OpenBSM distribution.  auditd extended
52152267f74SRobert Watson  to support reloading of kernel event table.
52252267f74SRobert Watson- Allow comments in /etc/security configuration files.
523