aboutsummaryrefslogtreecommitdiff
path: root/sys/security/audit
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2018-12-11 17:14:12 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2018-12-11 17:14:12 +0000
commite8451da5e8525de057a6b170d427cca33ae71c73 (patch)
treebd8a8dfb949c0d4928ba90a0a421d4e545c85e56 /sys/security/audit
parentb6da2600f96a9332dd46d0a991d8387ba0bf41bd (diff)
Notes
Diffstat (limited to 'sys/security/audit')
-rw-r--r--sys/security/audit/audit.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/security/audit/audit.h b/sys/security/audit/audit.h
index 689b541b8cb39..2aeb5329a4d87 100644
--- a/sys/security/audit/audit.h
+++ b/sys/security/audit/audit.h
@@ -389,7 +389,7 @@ void audit_thread_free(struct thread *td);
* auditing is disabled, so we don't just check audit_syscalls_enabled here.
*/
#define AUDIT_SYSCALL_EXIT(error, td) do { \
- if (td->td_pflags & TDP_AUDITREC) \
+ if (AUDITING_TD(td)) \
audit_syscall_exit(error, td); \
} while (0)
@@ -397,7 +397,7 @@ void audit_thread_free(struct thread *td);
* A Macro to wrap the audit_sysclose() function.
*/
#define AUDIT_SYSCLOSE(td, fd) do { \
- if (td->td_pflags & TDP_AUDITREC) \
+ if (AUDITING_TD(td)) \
audit_sysclose(td, fd); \
} while (0)