summaryrefslogtreecommitdiff
path: root/linux-core/drm_bufs.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-05-12 16:29:13 +1000
committerDave Airlie <airlied@redhat.com>2008-05-12 16:29:22 +1000
commit3f66a0005c1273b0fc935b9bd62a6fabaf99c2be (patch)
tree59f7f2441979aef25b47efd3d9b62887ce58d7da /linux-core/drm_bufs.c
parent1eedeed09192738334570e13acab381441f3d817 (diff)
drm: remove root only from a lot of drm ioctls to get stuff running as non-root
Diffstat (limited to 'linux-core/drm_bufs.c')
-rw-r--r--linux-core/drm_bufs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_bufs.c b/linux-core/drm_bufs.c
index f6ff75ab..e9052570 100644
--- a/linux-core/drm_bufs.c
+++ b/linux-core/drm_bufs.c
@@ -345,7 +345,7 @@ int drm_addmap_ioctl(struct drm_device *dev, void *data,
struct drm_map_list *maplist;
int err;
- if (!(capable(CAP_SYS_ADMIN) || map->type == _DRM_AGP))
+ if (!(capable(CAP_SYS_ADMIN) || map->type == _DRM_AGP || map->type == _DRM_SHM))
return -EPERM;
err = drm_addmap_core(dev, map->offset, map->size, map->type,