turbofish n00b

Joined: 05 Dec 2002 Posts: 8 Location: Sweden
|
Posted: Thu Dec 05, 2002 8:17 pm Post subject: Strange devfsd behavior |
|
|
I've somehow manage to mess up my device-permissions
something fierce when using XDM.
My /etc/devfsd.conf contains the following lines:
| Code: |
LOOKUP snd MODLOAD ACTION snd
LOOKUP dsp MODLOAD
LOOKUP mixer MODLOAD
LOOKUP midi MODLOAD
REGISTER sound/.* PERMISSIONS root.audio 660
REGISTER snd/.* PERMISSIONS root.audio 660
|
Just the standard configuration.
Right after boot, the /dev/sound/ directory looks like this:
| Code: |
crw------- 1 turbofish audio 14, 4 Jan 1 1970 audio
crw------- 1 turbofish audio 14, 3 Jan 1 1970 dsp
crw------- 1 turbofish audio 14, 19 Jan 1 1970 dsp1
crw------- 1 turbofish audio 14, 5 Jan 1 1970 dspW
crw------- 1 turbofish audio 14, 2 Jan 1 1970 midi
crw------- 1 turbofish audio 14, 0 Jan 1 1970 mixer
crw------- 1 turbofish audio 14, 1 Jan 1 1970 sequencer
crw------- 1 turbofish audio 14, 8 Jan 1 1970 sequencer2
|
As you can see, the permissions are not the same as defined in the config.
Fair enough, I can still use the soundcard with the 'turbofish' user.
Now things start to get strange. If I add xdm to /etc/conf.d/local.start
and reboot the following happens:
After the user "turbofish" (in the groups users, audio and cdrw only)
logs in, kills the X-session with CTRL+ALT+Backspace, and logs in again,
the /dev/sound/ directory looks like this:
| Code: |
crw------- 1 root audio 14, 4 Jan 1 1970 audio
crw------- 1 root audio 14, 3 Jan 1 1970 dsp
crw------- 1 root audio 14, 19 Jan 1 1970 dsp1
crw------- 1 root audio 14, 5 Jan 1 1970 dspW
crw------- 1 root audio 14, 2 Jan 1 1970 midi
crw------- 1 root audio 14, 0 Jan 1 1970 mixer
crw------- 1 root audio 14, 1 Jan 1 1970 sequencer
crw------- 1 root audio 14, 8 Jan 1 1970 sequencer2
|
Hmm, I managed to change the permissions somehow.
Now I can't access my soundcard anymore and listen to those Primus mp3s, so I have to 'su' and do a killall -HUP devfsd.
After that, /dev/sound/ looks like this:
| Code: |
crw-rw---- 1 root audio 14, 4 Jan 1 1970 audio
crw-rw---- 1 root audio 14, 3 Jan 1 1970 dsp
crw-rw---- 1 root audio 14, 19 Jan 1 1970 dsp1
crw-rw---- 1 root audio 14, 5 Jan 1 1970 dspW
crw-rw---- 1 root audio 14, 2 Jan 1 1970 midi
crw-rw---- 1 root audio 14, 0 Jan 1 1970 mixer
crw-rw---- 1 root audio 14, 1 Jan 1 1970 sequencer
crw-rw---- 1 root audio 14, 8 Jan 1 1970 sequencer2
|
Now everythings works as it should, and these permissions doesn't
change no matter how many times I kill the X-session.
Turbofish - confused. |
|