aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/tdfx
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2011-08-11 12:30:23 +0000
committerRobert Watson <rwatson@FreeBSD.org>2011-08-11 12:30:23 +0000
commita9d2f8d84f69e98100b5746816b35666bcf992ac (patch)
tree4b691c0e209134040c3cf5ce75660b61282933d0 /sys/dev/tdfx
parent2ffd5fdcc433626b1adb061119cd412f9b3020e9 (diff)
Notes
Diffstat (limited to 'sys/dev/tdfx')
-rw-r--r--sys/dev/tdfx/tdfx_linux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/tdfx/tdfx_linux.c b/sys/dev/tdfx/tdfx_linux.c
index 2e877f6d0173..0b769f01a241 100644
--- a/sys/dev/tdfx/tdfx_linux.c
+++ b/sys/dev/tdfx/tdfx_linux.c
@@ -28,6 +28,7 @@
__FBSDID("$FreeBSD$");
#include <sys/param.h>
+#include <sys/capability.h>
#include <sys/file.h>
#include <sys/kernel.h>
#include <sys/module.h>
@@ -53,7 +54,7 @@ linux_ioctl_tdfx(struct thread *td, struct linux_ioctl_args* args)
struct file *fp;
- if ((error = fget(td, args->fd, &fp)) != 0)
+ if ((error = fget(td, args->fd, CAP_IOCTL, &fp)) != 0)
return (error);
/* We simply copy the data and send it right to ioctl */
copyin((caddr_t)args->arg, &d_pio, sizeof(d_pio));