diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-07-02 09:16:25 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-07-02 09:16:25 +0000 |
commit | 5260e3a73c3a7bf3a1b819742f457df084b063ef (patch) | |
tree | 28df2fbc5a63e1477b8fd7ca5822a94068336089 /sys/kern | |
parent | b803771ae122fa81c95ea5e6f44489d46b8c8db9 (diff) | |
download | FreeBSD-src-5260e3a73c3a7bf3a1b819742f457df084b063ef.zip FreeBSD-src-5260e3a73c3a7bf3a1b819742f457df084b063ef.tar.gz |
Audit file descriptor and command arguments to ioctl(2).
Approved by: re (audit argument blanket)
MFC after: 1 week
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/sys_generic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c index 9073a85..de70348 100644 --- a/sys/kern/sys_generic.c +++ b/sys/kern/sys_generic.c @@ -693,6 +693,8 @@ kern_ioctl(struct thread *td, int fd, u_long com, caddr_t data) int error; int tmp; + AUDIT_ARG_FD(fd); + AUDIT_ARG_CMD(com); if ((error = fget(td, fd, &fp)) != 0) return (error); if ((fp->f_flag & (FREAD | FWRITE)) == 0) { |