On 6/28/05, Thomas Hellström <[EMAIL PROTECTED]> wrote:
> Having thought a bit more about the SAREA problem, I'd like to see the
> following solution:
> 
> 1) AddMap returns an error if the flag CONTAINS_LOCK is not set. The
> first SAREA otherwise for
> backwards compatibility.
> 2) The device-specific code returns the number of possible SAREAS and
> the size of each of them.
> 3) The first one (containing the lock) is created on init or on open for
> backwards compatibility.
> 4) subsequent ones are requested and created by a new IOCTL taking the
> sarea number as an argument. This IOCTL should be used also for future
> user space access to the first sarea, since  standard lookup will fail
> if there are a number of SAREA maps greater than one. Refcount for
> destruction of subsequent maps?

You can't let a normal user request an arbitrary number or size of
sarea. If the API allows general requests it has to be root only.

-- 
Jon Smirl
[EMAIL PROTECTED]


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to