> My system call idea is to allow a superuser process to request a mmap on
> behalf of an user process. To see how this would be useful, let us consider
> svgalib.
[...]
> With my new system call, a superuser process can set the graphics mode in a
> safe manner and then ask for an mmap of the video array into the application
> data segment.
Ummm, couldn't the the root process open the video device, then pass
the file descriptor (via AF_UNIX socket) to the user process? The
user process would then call mmap() on the open file descriptor.
I'm not *completely* sure this would work, but it would avoid creating
a new system call if so.
-Doug
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/