diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-10-17 10:39:11 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-10-17 10:39:11 +0000 |
commit | 4fb9aef39732f61018ea5bc215cc514328861680 (patch) | |
tree | 4d8e99eb1bcee1ec77b8e7c0a321bb2ddc0f4122 /sys/dev/pci | |
parent | c4fb0e9f47340ee63def31d3a8ac385bcc8f71f6 (diff) |
Fix permissions on the DRM_I915_HWS_ADDR ioctl, should be master only.
Pointed out by Olaf Kirch, this has been in snaps for two weeks, no
problems.
ok millert@, deraadt@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/drm/i915_drv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915_drv.c b/sys/dev/pci/drm/i915_drv.c index 1ec7703d867..562de1c2f39 100644 --- a/sys/dev/pci/drm/i915_drv.c +++ b/sys/dev/pci/drm/i915_drv.c @@ -58,7 +58,8 @@ struct drm_ioctl_desc i915_ioctls[] = { DRM_IOCTL_DEF(DRM_I915_GET_VBLANK_PIPE, i915_vblank_pipe_get, DRM_AUTH ), DRM_IOCTL_DEF(DRM_I915_VBLANK_SWAP, i915_vblank_swap, DRM_AUTH), DRM_IOCTL_DEF(DRM_I915_MMIO, i915_mmio, DRM_AUTH), - DRM_IOCTL_DEF(DRM_I915_HWS_ADDR, i915_set_status_page, DRM_AUTH), + DRM_IOCTL_DEF(DRM_I915_HWS_ADDR, i915_set_status_page, + DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY), }; static const struct drm_driver_info i915_driver = { |