opnsense-src/sys
Robert Watson 2ddefb6d5d Rework the logic around quick checks for auditing that take place at
system-call entry and whenever audit arguments or return values are
captured:

1. Expose a single global, audit_syscalls_enabled, which controls
   whether the audit framework is entered, rather than exposing
   components of the policy -- e.g., if the trail is enabled,
   suspended, etc.

2. Introduce a new function audit_syscalls_enabled_update(), which is
   called to update audit_syscalls_enabled whenever an aspect of the
   policy changes, so that the value can be updated.

3. Remove a check of trail enablement/suspension from audit_new() --
   at the point where this function has been entered, we believe that
   system-call auditing is already in force, or we wouldn't get here,
   so simply proceed to more expensive policy checks.

4. Use an audit-provided global, audit_dtrace_enabled, rather than a
   dtaudit-provided global, to provide policy indicating whether
   dtaudit would like system calls to be audited.

5. Do some minor cosmetic renaming to clarify what various variables
   are for.

These changes collectively arrange it so that traditional audit
(trail, pipes) or the DTrace audit provider can enable system-call
probes without the other configured.  Otherwise, dtaudit cannot
capture system-call data without auditd(8) started.

Reviewed by:		gnn
Sponsored by:		DARPA, AFRL
Approved by:		re (gjb)
Differential Revision:	https://reviews.freebsd.org/D17348
2018-10-02 15:58:17 +00:00
..
amd64 Apply r339046 to i386. 2018-10-01 18:48:33 +00:00
arm Enable Capsicum on armv6/armv7 2018-09-13 21:00:17 +00:00
arm64 Add kernel ifunc support on arm64. 2018-10-01 18:51:08 +00:00
bsm
cam Fix a da(4) driver memory leak for SCSI SMR devices. 2018-10-01 19:00:46 +00:00
cddl Avoid panic when adjusting priority of a read in the face of an IO error 2018-09-29 01:26:07 +00:00
compat Regenerate after UNIMPL -> OBSOL changes in r339001. 2018-09-28 17:25:28 +00:00
conf Add kernel ifunc support on arm64. 2018-10-01 18:51:08 +00:00
contrib Add proper support for VIMAGE to krping. 2018-09-06 14:03:11 +00:00
crypto Reapply, with minor tweaks, r338025, from the original commit: 2018-09-26 17:12:14 +00:00
ddb add an option for ddb ps command to print process arguments 2018-08-09 11:21:31 +00:00
dev Fix the MODULE_PNP_INFO() for iwm(4) where I got the bus and module 2018-10-01 10:44:33 +00:00
dts arm64: Add DTS overlays for A64 2018-08-24 15:00:36 +00:00
fs Remove the Yarrow PRNG algorithm option in accordance with due notice 2018-08-26 12:51:46 +00:00
gdb
geom Fix use-after-free in RAID0 error reporting of GEOM_RAID. 2018-09-24 16:58:55 +00:00
gnu dts: Import DTS for arm64 2018-08-23 13:21:01 +00:00
i386 Apply r339046 to i386. 2018-10-01 18:48:33 +00:00
isa Reapply, with minor tweaks, r338025, from the original commit: 2018-09-26 17:12:14 +00:00
kern Add kernel ifunc support on arm64. 2018-10-01 18:51:08 +00:00
kgssapi OpenCrypto: Convert sessions to opaque handles instead of integers 2018-07-18 00:56:25 +00:00
libkern Sync strlcpy with userland version, again 2018-06-21 17:35:13 +00:00
mips Re-enable kernel modules for the MALTA64EL kernel configuration. 2018-09-06 19:21:31 +00:00
modules Catch exceptions during EFI RT calls on amd64. 2018-09-02 21:37:05 +00:00
net For changing the MTU on tun/tap devices, it should not matter whether it 2018-09-29 13:01:23 +00:00
net80211 Fix misspellings of transmitter/transmitted 2018-08-10 20:37:32 +00:00
netgraph Remove the Yarrow PRNG algorithm option in accordance with due notice 2018-08-26 12:51:46 +00:00
netinet Mitigate providing a timing signal if the COOKIE or AUTH 2018-10-01 14:05:31 +00:00
netinet6 In in6_pcbpurgeif0() called, e.g., from if_clone_destroy(), 2018-09-27 15:32:37 +00:00
netipsec Fix witness warning in xform_init(). 2018-09-26 14:47:51 +00:00
netpfil Significantly improve pf purge cpu usage by only taking locks 2018-09-16 00:44:23 +00:00
netsmb Make timespecadd(3) and friends public 2018-07-30 15:46:40 +00:00
nfs Switch RIB and RADIX_NODE_HEAD lock from rwlock(9) to rmlock(9). 2018-06-16 08:26:23 +00:00
nfsclient
nfsserver
nlm
ofed Introduce and use sgid_index in CM requests in ibcore. 2018-09-09 07:20:15 +00:00
opencrypto Add per-session locking to cryptosoft (swcr). 2018-09-26 20:23:12 +00:00
powerpc powerpc: Blacklist the top 64kB range of the lower 4GB PA space 2018-09-25 02:34:28 +00:00
riscv Implement pmap_sync_icache(). 2018-09-24 17:41:29 +00:00
rpc Set SO_SNDTIMEO in the client side krpc when CLSET_TIMEOUT is done. 2018-07-20 12:03:16 +00:00
security Rework the logic around quick checks for auditing that take place at 2018-10-02 15:58:17 +00:00
sparc64 Prepare the kernel linker to handle PC-relative ifunc relocations. 2018-08-22 20:44:30 +00:00
sys Use an unsigned iterator for domain sets. 2018-10-01 18:51:39 +00:00
teken teken: Fix sequences header which was crossing the 80-col boundary 2018-05-29 08:41:44 +00:00
tests epoch_test: fix compile 2018-07-15 00:31:17 +00:00
tools make_dtb: Always add root directory in the include path 2018-08-23 13:23:21 +00:00
ufs Correct panic messages. 2018-09-22 17:05:49 +00:00
vm Use an unsigned iterator for domain sets. 2018-10-01 18:51:39 +00:00
x86 Allow empty NUMA memory domains to support Threadripper2 2018-10-01 14:14:21 +00:00
xdr
xen xen: legacy PVH fixes for the new interrupt count 2018-09-13 07:14:11 +00:00
Makefile