summaryrefslogtreecommitdiff
path: root/linux-core/drmP.h
diff options
context:
space:
mode:
authorThomas Hellstrom <unichrome@shipmail.org>2005-08-10 19:46:46 +0000
committerThomas Hellstrom <unichrome@shipmail.org>2005-08-10 19:46:46 +0000
commitd5e8ab13ff5399531eb1927dcd4535aeeed18c94 (patch)
treea6e2aacb12fbaec99c841b84dfdfc67293ed8243 /linux-core/drmP.h
parent0d81954b0e4430428eddc00c6097e614e51ba0b1 (diff)
Security fix on via: Checking that the specified context belongs to the
caller on fb / agp memory alloc and free. Otherwise malicious clients can register allocations on other clients or free memory used by other clients which will lead to severe memory manager inconsistensies.
Diffstat (limited to 'linux-core/drmP.h')
-rw-r--r--linux-core/drmP.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index 2b4dbcf6..8fed5e72 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -838,6 +838,7 @@ extern int drm_context_switch_complete(drm_device_t * dev, int new);
extern int drm_ctxbitmap_init(drm_device_t * dev);
extern void drm_ctxbitmap_cleanup(drm_device_t * dev);
extern void drm_ctxbitmap_free(drm_device_t * dev, int ctx_handle);
+extern int drm_check_context(drm_file_t *priv, drm_context_t handle);
extern int drm_setsareactx(struct inode *inode, struct file *filp,
unsigned int cmd, unsigned long arg);