Neither - It is a resource allocation problem, which all UNIX style systems
seem to lack. And second, it doesn't happen at the present time with
mice/keyboard/display unless somebody (root) did not configure the system
properly (as in leave the device inodes accessable to world) OR change the
protection to permit access.
Once a resource is allocated to a user session (not process) it should not be
accessable to other users.
Linux doesn't have a resource allocation other than the limited single open
support for character device drivers. This is usually sufficient for
keyboard/mouse/display since it is the X server that is opening the device.
It is NOT sufficient for things like tape drives. The only way to prevent
conflict at the present time is to change the ownership of the inode, and
ensure that the protection mask only permits user access. It is ALSO
necessary to ensure that no other processes have that device open at the same
time.
How those devices are controled/configured/used after allocation is and
should remain a user mode function, NOT a kernel function.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/