Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jul 2009 09:16:25 +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: r195281 - head/sys/kern
Message-ID:  <200907020916.n629GPJB038971@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rwatson
Date: Thu Jul  2 09:16:25 2009
New Revision: 195281
URL: http://svn.freebsd.org/changeset/base/195281

Log:
  Audit file descriptor and command arguments to ioctl(2).
  
  Approved by:	re (audit argument blanket)
  MFC after:	1 week

Modified:
  head/sys/kern/sys_generic.c

Modified: head/sys/kern/sys_generic.c
==============================================================================
--- head/sys/kern/sys_generic.c	Thu Jul  2 09:15:30 2009	(r195280)
+++ head/sys/kern/sys_generic.c	Thu Jul  2 09:16:25 2009	(r195281)
@@ -693,6 +693,8 @@ kern_ioctl(struct thread *td, int fd, u_
 	int error;
 	int tmp;
 
+	AUDIT_ARG_FD(fd);
+	AUDIT_ARG_CMD(com);
 	if ((error = fget(td, fd, &fp)) != 0)
 		return (error);
 	if ((fp->f_flag & (FREAD | FWRITE)) == 0) {



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