Re: tty: add 'active' sysfs attribute to tty0 and console device

From: Valdis . Kletnieks
Date: Wed Nov 17 2010 - 17:01:26 EST


On Wed, 17 Nov 2010 00:10:24 +0100, Lennart Poettering said:

> When two users A and B are logged in, on tty1 resp. tty2, then as long
> as tty1 is active user A should get access to the sound card, usb key,
> .... As soon as we switch to tty2 user B should.

So I change to tty1, plug in my 8G USB memory stick, and I have access to it.
I start copying something big to it, and change to tty2 to do something else
while the long copy happens...

... and my copy craps out because tty1 lost access to the USB.

Brilliant.

Attachment: pgp00000.pgp
Description: PGP signature