diff options
author | jhb <jhb@FreeBSD.org> | 2006-08-15 17:42:14 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-08-15 17:42:14 +0000 |
commit | ae769794c624d0a925f10ca83f651df2071751fa (patch) | |
tree | 9a92a4f8e8a27a88e90e3f286e3aa72901364579 | |
parent | d900df3c77eecb25672872cdf6fe152d7b6f936b (diff) | |
download | FreeBSD-src-ae769794c624d0a925f10ca83f651df2071751fa.zip FreeBSD-src-ae769794c624d0a925f10ca83f651df2071751fa.tar.gz |
Use SYS_AUE_<syscallname> to include the appropriate audit event identifier
for syscalls in kld's, even when compiled into the kernel statically.
Note that since this hardcodes the SYS_ prefix SYSCALL_MODULE_HELPER() now
only works for native ABI system calls. Those are the only ones that
used the macro anyway, and I chose to not require a second argument to the
macro to specify the prefix or audit event directly.
-rw-r--r-- | sys/sys/sysent.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/sys/sysent.h b/sys/sys/sysent.h index 7e4d7aa..d2941e6 100644 --- a/sys/sys/sysent.h +++ b/sys/sys/sysent.h @@ -121,7 +121,7 @@ struct syscall_module_data { #define SYSCALL_MODULE(name, offset, new_sysent, evh, arg) \ static struct syscall_module_data name##_syscall_mod = { \ - evh, arg, offset, new_sysent, { 0, NULL } \ + evh, arg, offset, new_sysent, { 0, NULL, AUE_NULL } \ }; \ \ static moduledata_t name##_mod = { \ @@ -136,7 +136,8 @@ static int syscallname##_syscall = SYS_##syscallname; \ static struct sysent syscallname##_sysent = { \ (sizeof(struct syscallname ## _args ) \ / sizeof(register_t)), \ - (sy_call_t *)& syscallname \ + (sy_call_t *)& syscallname, \ + SYS_AUE_##syscallname \ }; \ SYSCALL_MODULE(syscallname, \ & syscallname##_syscall, & syscallname##_sysent, \ |