freebsd-nq/sys
Robert Watson 1811d6bf7f Add an experimental DTrace audit provider, which allows users of DTrace to
instrument security event auditing rather than relying on conventional BSM
trail files or audit pipes:

- Add a set of per-event 'commit' probes, which provide access to
  particular auditable events at the time of commit in system-call return.
  These probes gain access to audit data via the in-kernel audit_record
  data structure, providing convenient access to system-call arguments and
  return values in a single probe.

- Add a set of per-event 'bsm' probes, which provide access to particular
  auditable events at the time of BSM record generation in the audit
  worker thread. These probes have access to the in-kernel audit_record
  data structure and BSM representation as would be written to a trail
  file or audit pipe -- i.e., asynchronously in the audit worker thread.

DTrace probe arguments consist of the name of the audit event (to support
future mechanisms of instrumenting multiple events via a single probe --
e.g., using classes), a pointer to the in-kernel audit record, and an
optional pointer to the BSM data and its length. For human convenience,
upper-case audit event names (AUE_...) are converted to lower case in
DTrace.

DTrace scripts can now cause additional audit-based data to be collected
on system calls, and inspect internal and BSM representations of the data.
They do not affect data captured in the audit trail or audit pipes
configured in the system. auditd(8) must be configured and running in
order to provide a database of event information, as well as other audit
configuration parameters (e.g., to capture command-line arguments or
environmental variables) for the provider to operate.

Reviewed by:	gnn, jonathan, markj
Sponsored by:	DARPA, AFRL
MFC after:	3 weeks
Differential Revision:	https://reviews.freebsd.org/D10149
2017-03-29 19:58:00 +00:00
..
amd64 revert r315959 because it causes build problems 2017-03-27 12:34:29 +00:00
arm Remove usfs(4) from arm kernel configs 2017-03-28 00:57:33 +00:00
arm64 Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
boot xfsread inlined uses more space, so remove the inline tag. This 2017-03-29 18:35:20 +00:00
bsm Merge OpenBSM 1.2-alpha5 from vendor branch to FreeBSD -CURRENT: 2017-03-26 21:14:49 +00:00
cam In r289137 the legacy_aliases compatibility shims for ata were removed, 2017-03-28 23:02:41 +00:00
cddl MFV: 315989 2017-03-27 17:27:46 +00:00
compat Implement vmalloc_32() in the LinuxKPI. 2017-03-27 17:18:04 +00:00
conf Add an experimental DTrace audit provider, which allows users of DTrace to 2017-03-29 19:58:00 +00:00
contrib Copy needed include files from EDK2. This is a minimal set gleened 2017-03-08 02:47:59 +00:00
crypto Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
ddb Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
dev cxgbe: Don't call t4_edc_err_read for errors not related to the EDCs. 2017-03-29 19:25:31 +00:00
fs remove procfs ctl interface 2017-03-05 03:05:24 +00:00
gdb
geom Avoid sleeping when the mirror I/O queue is non-empty. 2017-03-29 19:39:07 +00:00
gnu Update our device tree files to a Linux 4.10 2017-03-07 13:56:49 +00:00
i386 Adjust the constraint for "src" in atomic_(f)cmpset_8. 2017-03-27 16:18:19 +00:00
isa Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
kern Oops, my fix for bright colors broke bright black some more (in cases 2017-03-27 10:48:28 +00:00
kgssapi
libkern Use inline asm instead of unportable intrinsics for the SSE4 crc32 2017-03-26 10:31:48 +00:00
mips [etherswitch] simplify kernconf for recently added etherswitch drivers 2017-03-27 19:26:09 +00:00
modules Add an experimental DTrace audit provider, which allows users of DTrace to 2017-03-29 19:58:00 +00:00
net ake pfil's locking macros private. 2017-03-27 08:18:13 +00:00
net80211 net80211: fix possible panic when wlan(4) interface is destroyed. 2017-03-24 22:29:51 +00:00
netgraph mppc - Finish pluging NETGRAPH_MPPC_COMPRESSION. 2017-01-20 00:02:11 +00:00
netinet Enable route and LLE (ndp) caching in TCP/IPv6 2017-03-27 23:48:36 +00:00
netinet6 Fix reference count leak with L2 caching. 2017-03-25 15:06:28 +00:00
netipsec Fix bug in r308972 that leads to panic when non-compressed IPComp 2017-03-29 10:24:48 +00:00
netnatm
netpfil pf: Fix possible shutdown race 2017-03-22 21:18:18 +00:00
netsmb
nfs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfsclient Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nfsserver Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nlm
ofed Add full VNET support to the inet_get_local_port_range() function in 2017-03-22 15:46:31 +00:00
opencrypto
powerpc Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
riscv Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
rpc Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
security Add an experimental DTrace audit provider, which allows users of DTrace to 2017-03-29 19:58:00 +00:00
sparc64 Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
sys Fix TUNABLE_UINT64() on 32bit architectures. 2017-03-27 06:37:03 +00:00
teken Oops, my fix for bright colors broke bright black some more (in cases 2017-03-27 10:48:28 +00:00
tests
tools [fdt] Make DTBs generated by make_dtb.sh overlay-ready 2017-03-10 22:45:07 +00:00
ufs Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
vm Two changes to vm_fault_populate(): 2017-03-19 19:52:47 +00:00
x86 revert r315959 because it causes build problems 2017-03-27 12:34:29 +00:00
xdr
xen xenstore: fix suspension when using the xenstore device 2017-03-07 09:17:48 +00:00
Makefile Remove pc98 support completely. 2017-01-28 02:22:15 +00:00