Hi all,
Some DRM ioctls like this: DRM_IOCTL_DEF(DRM_IOCTL_ADD_CTX, drm_addctx,
DRM_AUTH|DRM_ROOT_ONLY),
it means that the drm_addctx must be called with both DRM_auth and root
priviledge. And I have a dount that the DRM_ROOT_ONLY is the superset of
DRM_AUTH according to the code below:
static int drm_open_helper(struct inode *inode, struct file *filp,
struct drm_device * dev)
{
.......
priv->authenticated = capable(CAP_SYS_ADMIN);
.......
}
So why is it necessary to put flag DRM_AUTH besides DRM_ROOT_ONLY?
Thanks.
Donnie
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel