summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-07-24 13:29:29 -0700
committerIan Romanick <idr@us.ibm.com>2007-07-24 13:29:29 -0700
commit2ef2997ee38ff359c331b6a3febf194bd46e4962 (patch)
tree4521bc4a9199f6c5b85d2769220fd66ef7bcd950
parent887cb31ee9ec04e45829500f095aa4a3bc1095ea (diff)
Fix flags for serveral ioctls.
-rw-r--r--linux-core/xgi_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-core/xgi_drv.c b/linux-core/xgi_drv.c
index 11d6e950..3b520850 100644
--- a/linux-core/xgi_drv.c
+++ b/linux-core/xgi_drv.c
@@ -42,7 +42,7 @@ static struct pci_device_id pciidlist[] = {
static int xgi_bootstrap(DRM_IOCTL_ARGS);
static drm_ioctl_desc_t xgi_ioctls[] = {
- [DRM_IOCTL_NR(DRM_XGI_BOOTSTRAP)] = {xgi_bootstrap, DRM_AUTH},
+ [DRM_IOCTL_NR(DRM_XGI_BOOTSTRAP)] = {xgi_bootstrap, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY},
[DRM_IOCTL_NR(DRM_XGI_FB_ALLOC)] = {xgi_fb_alloc_ioctl, DRM_AUTH},
[DRM_IOCTL_NR(DRM_XGI_FB_FREE)] = {xgi_fb_free_ioctl, DRM_AUTH},
@@ -55,7 +55,7 @@ static drm_ioctl_desc_t xgi_ioctls[] = {
[DRM_IOCTL_NR(DRM_XGI_DEBUG_INFO)] = {xgi_restore_registers_ioctl, DRM_AUTH},
[DRM_IOCTL_NR(DRM_XGI_SUBMIT_CMDLIST)] = {xgi_submit_cmdlist_ioctl, DRM_AUTH},
[DRM_IOCTL_NR(DRM_XGI_TEST_RWINKERNEL)] = {xgi_test_rwinkernel_ioctl, DRM_AUTH},
- [DRM_IOCTL_NR(DRM_XGI_STATE_CHANGE)] = {xgi_state_change_ioctl, DRM_AUTH},
+ [DRM_IOCTL_NR(DRM_XGI_STATE_CHANGE)] = {xgi_state_change_ioctl, DRM_AUTH|DRM_MASTER},
};
static const int xgi_max_ioctl = DRM_ARRAY_SIZE(xgi_ioctls);