diff options
author | Dave Airlie <airlied@redhat.com> | 2008-05-12 16:29:13 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-05-12 16:29:22 +1000 |
commit | 3f66a0005c1273b0fc935b9bd62a6fabaf99c2be (patch) | |
tree | 59f7f2441979aef25b47efd3d9b62887ce58d7da /linux-core/drm_bufs.c | |
parent | 1eedeed09192738334570e13acab381441f3d817 (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.c | 2 |
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, |