summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-07-01 15:37:23 +0000
committerrwatson <rwatson@FreeBSD.org>2009-07-01 15:37:23 +0000
commitf90eaa96d0f28d9abe3e285a7f091e20ae941613 (patch)
tree209dbcb0db8163797e30cc34f9ca0cb354cd2c2b /sys
parent0e50a12ccd2315f8904f598d5e0161af368f1dd5 (diff)
downloadFreeBSD-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')
-rw-r--r--sys/kern/vfs_syscalls.c1
-rw-r--r--sys/security/audit/audit_bsm.c2
2 files changed, 2 insertions, 1 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)) {
diff --git a/sys/security/audit/audit_bsm.c b/sys/security/audit/audit_bsm.c
index ee92e16..1eb9679 100644
--- a/sys/security/audit/audit_bsm.c
+++ b/sys/security/audit/audit_bsm.c
@@ -679,7 +679,6 @@ kaudit_to_bsm(struct kaudit_record *kar, struct au_record **pau)
case AUE_GETRESUID:
case AUE_GETRESGID:
case AUE_KQUEUE:
- case AUE_LSEEK:
case AUE_MODLOAD:
case AUE_MODUNLOAD:
case AUE_MSGSYS:
@@ -870,6 +869,7 @@ kaudit_to_bsm(struct kaudit_record *kar, struct au_record **pau)
case AUE_FUTIMES:
case AUE_GETDIRENTRIES:
case AUE_GETDIRENTRIESATTR:
+ case AUE_LSEEK:
case AUE_POLL:
case AUE_READ:
case AUE_READV:
OpenPOWER on IntegriCloud