diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2025-01-14 14:19:24 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2025-01-17 13:18:51 +0000 |
| commit | 4b9ba274d736de74676051c8f13e7d3dd536334b (patch) | |
| tree | c7d06088187add8537f8cefdfc26e2efadfa18f7 /sys/security/audit | |
| parent | e16a2508e17de8dffaf06d41df59918cc57b27e0 (diff) | |
Diffstat (limited to 'sys/security/audit')
| -rw-r--r-- | sys/security/audit/audit.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/security/audit/audit.h b/sys/security/audit/audit.h index b87dd52e0773..28e84dce79f3 100644 --- a/sys/security/audit/audit.h +++ b/sys/security/audit/audit.h @@ -389,9 +389,11 @@ void audit_thread_free(struct thread *td); audit_arg_vnode2((vp)); \ } while (0) +#define AUDIT_SYSCALL_ENABLED() audit_syscalls_enabled + #define AUDIT_SYSCALL_ENTER(code, td) ({ \ bool _audit_entered = false; \ - if (__predict_false(audit_syscalls_enabled)) { \ + if (audit_syscalls_enabled) { \ audit_syscall_enter(code, td); \ _audit_entered = true; \ } \ @@ -468,6 +470,7 @@ void audit_thread_free(struct thread *td); #define AUDITING_TD(td) 0 +#define AUDIT_SYSCALL_ENABLED() 0 #define AUDIT_SYSCALL_ENTER(code, td) 0 #define AUDIT_SYSCALL_EXIT(error, td) |
