Audit the file descriptor number passed to lseek(2).

Approved by:	re (kib)
MFC after:	3 days
This commit is contained in:
Robert Watson 2009-07-01 15:37:23 +00:00
parent c5957d6bba
commit 422d786676
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=195242
2 changed files with 2 additions and 1 deletions

View File

@ -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)) {

View File

@ -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: