projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a875821
)
drm/bo: allow non-suser priv to add kernel BOs.
author
Dave Airlie
<airlied@panoply-rh.(none)>
Thu, 6 Mar 2008 04:43:23 +0000
(14:43 +1000)
committer
Dave Airlie
<airlied@panoply-rh.(none)>
Thu, 6 Mar 2008 04:43:23 +0000
(14:43 +1000)
modprobe can be run with dropped capabilities we still want the kernel bos
to work.
linux-core/drm_bo.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_bo.c
b/linux-core/drm_bo.c
index
3e8ffa0
..
fd3cf9d
100644
(file)
--- a/
linux-core/drm_bo.c
+++ b/
linux-core/drm_bo.c
@@
-970,7
+970,7
@@
static int drm_bo_modify_proposed_flags (struct drm_buffer_object *bo,
return -EINVAL;
}
- if ((new_mask & DRM_BO_FLAG_NO_EVICT) && !DRM_SUSER(DRM_CURPROC)) {
+ if (
bo->type != drm_bo_type_kernel &&
(new_mask & DRM_BO_FLAG_NO_EVICT) && !DRM_SUSER(DRM_CURPROC)) {
DRM_ERROR("DRM_BO_FLAG_NO_EVICT is only available to priviliged processes.\n");
return -EPERM;
}