diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-07-01 15:37:23 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-07-01 15:37:23 +0000 |
commit | f90eaa96d0f28d9abe3e285a7f091e20ae941613 (patch) | |
tree | 209dbcb0db8163797e30cc34f9ca0cb354cd2c2b /sys/kern/vfs_syscalls.c | |
parent | 0e50a12ccd2315f8904f598d5e0161af368f1dd5 (diff) | |
download | FreeBSD-src-f90eaa96d0f28d9abe3e285a7f091e20ae941613.zip FreeBSD-src-f90eaa96d0f28d9abe3e285a7f091e20ae941613.tar.gz |
Audit the file descriptor number passed to lseek(2).
Approved by: re (kib)
MFC after: 3 days
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r-- | sys/kern/vfs_syscalls.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index f3d21e9..2008efe 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1924,6 +1924,7 @@ lseek(td, uap) int error, noneg; int vfslocked; + AUDIT_ARG_FD(uap->fd); if ((error = fget(td, uap->fd, &fp)) != 0) return (error); if (!(fp->f_ops->fo_flags & DFLAG_SEEKABLE)) { |