2008-05-17 02:31:19 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.include "Makefile.inc"
|
|
|
|
|
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
|
|
|
SUBDIR= dtaudit \
|
|
|
|
dtmalloc \
|
2011-06-18 23:02:53 +00:00
|
|
|
dtnfscl \
|
2008-05-17 02:31:19 +00:00
|
|
|
dtrace \
|
|
|
|
dtraceall \
|
2008-05-31 09:37:40 +00:00
|
|
|
dtrace_test \
|
2012-11-07 23:45:09 +00:00
|
|
|
profile \
|
2008-05-17 02:31:19 +00:00
|
|
|
prototype \
|
|
|
|
sdt \
|
|
|
|
systrace
|
|
|
|
|
2010-08-23 06:13:29 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
|
2015-10-22 21:28:20 +00:00
|
|
|
SUBDIR+= fasttrap fbt systrace_linux
|
|
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
|
|
SUBDIR+= systrace_linux32
|
2011-03-12 09:09:25 +00:00
|
|
|
.endif
|
2017-09-06 03:19:52 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "amd64" || \
|
2018-01-11 21:17:05 +00:00
|
|
|
${MACHINE_CPUARCH} == "aarch64" || \
|
2017-09-06 03:19:52 +00:00
|
|
|
${MACHINE_ARCH} == "mips64" || \
|
|
|
|
${MACHINE_ARCH} == "powerpc64"
|
2011-03-12 09:09:25 +00:00
|
|
|
SUBDIR+= systrace_freebsd32
|
2008-05-17 02:31:19 +00:00
|
|
|
.endif
|
2016-07-29 12:30:33 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "aarch64" || \
|
|
|
|
${MACHINE_CPUARCH} == "arm" || \
|
2017-09-06 03:19:52 +00:00
|
|
|
${MACHINE_CPUARCH} == "mips" || \
|
2019-02-21 22:49:21 +00:00
|
|
|
${MACHINE_CPUARCH} == "powerpc" || \
|
2016-07-29 12:30:33 +00:00
|
|
|
${MACHINE_CPUARCH} == "riscv"
|
2015-02-10 19:41:30 +00:00
|
|
|
SUBDIR+= fbt
|
|
|
|
.endif
|
2019-02-21 22:49:21 +00:00
|
|
|
|
2008-05-17 02:31:19 +00:00
|
|
|
.include <bsd.subdir.mk>
|