Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strange devfsd behavior
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
turbofish
n00b
n00b


Joined: 05 Dec 2002
Posts: 8
Location: Sweden

PostPosted: Thu Dec 05, 2002 8:17 pm    Post subject: Strange devfsd behavior Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum