Re: Devfsd Audio Permissions
On 2001.08.17 09:01 Michael Heldebrant wrote:
> I have stuff like:
> hmike@sandworm:/etc/devfs/conf.d$ cat alsa
> # device permissions for ALSA sound devices.
> REGISTER ^snd/.* PERMISSIONS root.audio 0660
>
I did have this installed, which was odd, because I don't use alsa,
although I have it installed for dependancy purposes. (grr. but that's
another issue, and less severe at that. :) )
I tried creating a ^sound/.* rule to catch OSS devices, but that didn't
work. To be honest I'm not sure where devfsd is getting its permissions for
/dev/sound/*, because it _is_ setting them correctly on '/etc/init.d/devfsd
restart', just not on boot. (Yes, I've confirmed the link from
/etc/rc2.d/S??devfsd to /etc/init.d/devfsd. :) )
What I have discovered through some further annoyances, that the same
situation is cropping up with my cdrom device
(/dev/ide/host2/bus0/target0/lun0/cd). Oddly, the opposite is happening to
my /dev/input devices. They start out as "crw-r--r-, root.root", but go to
"crw-rw---, root.root" on a devfsd restart. To summarize:
After boot:
gehn@aitrus:~$ ls /dev/ide/host2/bus0/target0/lun0/ -l
drw------- 1 root root 33, 0 Dec 31 1969 cd
gehn@aitrus:~$ ls /dev/input/ -l
total 0
crw-r--r-- 1 root root 13, 0 Dec 31 1969 js0
crw-r--r-- 1 root root 13, 63 Dec 31 1969 mice
crw-r--r-- 1 root root 13, 32 Dec 31 1969 mouse0
gehn@aitrus:~$ ls /dev/sound/ -l
total 0
crw-rw--w- 1 root root 14, 4 Dec 31 1969 audio
crw------- 1 root root 14, 3 Dec 31 1969 dsp
crw-rw--w- 1 root root 14, 5 Dec 31 1969 dspW
crw------- 1 root root 14, 2 Dec 31 1969 midi
crw------- 1 root root 14, 0 Dec 31 1969 mixer
crw------- 1 root root 14, 1 Dec 31 1969 sequencer
crw------- 1 root root 14, 8 Dec 31 1969 sequencer2
After devfsd restart:
gehn@aitrus:~$ ls /dev/ide/host2/bus0/target0/lun0/ -l
brw-rw---- 1 root cdrom 33, 0 Dec 31 1969 cd
gehn@aitrus:~$ ls /dev/sound/ -l
total 0
crw-rw---- 1 root audio 14, 4 Dec 31 1969 audio
crw-rw---- 1 root audio 14, 3 Dec 31 1969 dsp
crw-rw---- 1 root audio 14, 5 Dec 31 1969 dspW
crw-rw---- 1 root audio 14, 2 Dec 31 1969 midi
crw-rw---- 1 root audio 14, 0 Dec 31 1969 mixer
crw-rw---- 1 root audio 14, 1 Dec 31 1969 sequencer
crw-rw---- 1 root audio 14, 8 Dec 31 1969 sequencer2
gehn@aitrus:~$ ls /dev/input/ -l
total 0
crw-rw---- 1 root root 13, 0 Dec 31 1969 js0
crw-rw---- 1 root root 13, 63 Dec 31 1969 mice
crw-rw---- 1 root root 13, 32 Dec 31 1969 mouse0
Reply to: