Audit the file descriptor number passed to lseek(2).
Approved by: re (kib) MFC after: 3 days
This commit is contained in:
parent
c5957d6bba
commit
422d786676
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=195242
@ -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)) {
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user