PERFORCE change 169487 for review

Robert Watson rwatson at FreeBSD.org
Wed Oct 14 11:49:56 UTC 2009


http://p4web.freebsd.org/chv.cgi?CH=169487

Change 169487 by rwatson at rwatson_cinnamon on 2009/10/14 11:49:26

	Add missing capability argument to fget(9) for 32-bit FreeBSD
	compatibility code.

Affected files ...

.. //depot/projects/trustedbsd/capabilities/src/sys/compat/freebsd32/freebsd32_ioctl.c#3 edit

Differences ...

==== //depot/projects/trustedbsd/capabilities/src/sys/compat/freebsd32/freebsd32_ioctl.c#3 (text+ko) ====

@@ -33,6 +33,7 @@
 #include "opt_compat.h"
 
 #include <sys/param.h>
+#include <sys/capability.h>
 #include <sys/cdio.h>
 #include <sys/fcntl.h>
 #include <sys/filio.h>
@@ -207,7 +208,7 @@
 	struct file *fp;
 	int error;
 
-	if ((error = fget(td, uap->fd, &fp)) != 0)
+	if ((error = fget(td, uap->fd, CAP_IOCTL, &fp)) != 0)
 		return (error);
 	if ((fp->f_flag & (FREAD | FWRITE)) == 0) {
 		fdrop(fp, td);


More information about the p4-projects mailing list