Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27857 - /etc/security/console.perms sets devfs /dev/snd and /dev/sound permissions wrong
Summary: /etc/security/console.perms sets devfs /dev/snd and /dev/sound permissions wrong
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 29463 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-03 06:14 UTC by Tomasz Sterna
Modified: 2004-03-15 12:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Sterna 2003-09-03 06:14:39 UTC
/etc/devfsd.conf:
REGISTER        sound/.*     PERMISSIONS root.audio 660
REGISTER        snd/.*       PERMISSIONS root.audio 660
This gives sound card access to 'audio' group, which is correct.

But: /etc/security/console.perms
<sound>=/dev/dsp* /dev/audio* /dev/midi* \
        /dev/mixer* /dev/sequencer* \
        /dev/sound/* /dev/snd/* /dev/beep \
        /dev/admm* \
        /dev/adsp* /dev/aload* /dev/amidi* /dev/dmfm* \
        /dev/dmmidi* /dev/sndstat
sets it like this:
$ ls -l /dev/snd /dev/sound
/dev/snd:
crw-------    1 smoku    audio    116,   0 1970-01-01 01:00 controlC0
crw-------    1 smoku    audio    116,   8 1970-01-01 01:00 midiC0D0
crw-------    1 smoku    audio    116,  24 1970-01-01 01:00 pcmC0D0c
crw-------    1 smoku    audio    116,  16 1970-01-01 01:00 pcmC0D0p
crw-------    1 smoku    audio    116,  17 1970-01-01 01:00 pcmC0D1p
crw-------    1 smoku    audio    116,   1 1970-01-01 01:00 seq
crw-------    1 smoku    audio    116,  33 1970-01-01 01:00 timer
 
/dev/sound:
crw-------    1 smoku    audio     14,  12 1970-01-01 01:00 adsp
crw-------    1 smoku    audio     14,   4 1970-01-01 01:00 audio
crw-------    1 smoku    audio     14,   9 1970-01-01 01:00 dmmidi
crw-------    1 smoku    audio     14,   3 1970-01-01 01:00 dsp
crw-------    1 smoku    audio     14,   2 1970-01-01 01:00 midi00
crw-------    1 smoku    audio     14,   0 1970-01-01 01:00 mixer

effectively removing soundcard access from audio group and giving it to the
first, locally logged user (which may not be in 'audio' group, and should NOT
have soundcard access). Later logged in 'audio' group members have no soundcard
access.

Reproducible: Always
Steps to Reproduce:
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-10-27 12:22:06 UTC
No, its a pam_console feature.  Remove pam_console.so from /etc/pam.d/login
if
you do not like this.
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2004-03-15 12:04:23 UTC
*** Bug 29463 has been marked as a duplicate of this bug. ***