Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jul 2009 15:37:23 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r195242 - in head/sys: kern security/audit
Message-ID:  <200907011537.n61FbN8P016707@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rwatson
Date: Wed Jul  1 15:37:23 2009
New Revision: 195242
URL: http://svn.freebsd.org/changeset/base/195242

Log:
  Audit the file descriptor number passed to lseek(2).
  
  Approved by:	re (kib)
  MFC after:	3 days

Modified:
  head/sys/kern/vfs_syscalls.c
  head/sys/security/audit/audit_bsm.c

Modified: head/sys/kern/vfs_syscalls.c
==============================================================================
--- head/sys/kern/vfs_syscalls.c	Wed Jul  1 15:11:23 2009	(r195241)
+++ head/sys/kern/vfs_syscalls.c	Wed Jul  1 15:37:23 2009	(r195242)
@@ -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)) {

Modified: head/sys/security/audit/audit_bsm.c
==============================================================================
--- head/sys/security/audit/audit_bsm.c	Wed Jul  1 15:11:23 2009	(r195241)
+++ head/sys/security/audit/audit_bsm.c	Wed Jul  1 15:37:23 2009	(r195242)
@@ -679,7 +679,6 @@ kaudit_to_bsm(struct kaudit_record *kar,
 	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,
 	case AUE_FUTIMES:
 	case AUE_GETDIRENTRIES:
 	case AUE_GETDIRENTRIESATTR:
+	case AUE_LSEEK:
 	case AUE_POLL:
 	case AUE_READ:
 	case AUE_READV:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907011537.n61FbN8P016707>