[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#42907: *wav* executable are not setgid audio.



> root, if nobody is logged in). Don't ask me how to handle this if more
> than one different users are logged in on the virtual consoles.

I solved it this way: I made xdm change it for me. Since most "multimedia" apps
require X, and only one person can log using xdm at a single time, it solved
the puzzle.

Of course, it still leaves open the problems with guest accounts and people
letting programs in the background with /dev/dsp open. The later can be solved
using fuser to kill the offending proccess, the former would need a more
complex approach, which would be the Right Way to solve the "multimedia mess":
use a special daemon to manage it.

This way, all programs would contact the daemon (much like esd), and it would
check which {vt,X server} they come from. Everything they do while not on an
active VT would be queued (mixer commands, state changes) or ignored (most
noises). When the VT is switched the daemon would have to resync (doing a
graceful settings/sound fade).

This approach is also *very* important on some other problematic devices like
/dev/js* (and other input devices), scanners, CD ROM drivers (my xdm logon
script sets its owner to $USER too), and even printers when they are not
supposed to be used like "server printers" (guys from the other side of the
world print on it) but as "workstation printers" (only the guy on the current
VT would be allowed to queue jobs to it).

-- 
Cesar Eduardo Barros
cesarb@web4u.com.br
cesarb@dcc.ufrj.br


Reply to: