Bug 278851 - /dev/snd/* don't get the right permissions
Summary: /dev/snd/* don't get the right permissions
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: hal
Version: rawhide
Hardware: All
OS: Linux
medium
low
Target Milestone: ---
Assignee: David Zeuthen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-09-05 17:02 UTC by Ray Strode [halfline]
Modified: 2013-03-06 03:51 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2007-09-18 19:57:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ray Strode [halfline] 2007-09-05 17:02:18 UTC
In order for pulseaudio to work, I have to kill it, run chmod 777 /dev/snd/* and
start it again.

$ getfacl /dev/snd/*
getfacl: Removing leading '/' from absolute path names
# file: dev/snd/controlC0
# owner: 777
# group: root
user::rwx
group::rwx
other::rwx

# file: dev/snd/controlC1
# owner: 777
# group: root
user::rwx
group::rwx
other::rwx

# file: dev/snd/pcmC0D0c
# owner: 777
# group: root
user::rwx
group::rwx
other::rwx

# file: dev/snd/pcmC0D0p
# owner: 777
# group: root
user::rwx
group::rwx
other::rwx

# file: dev/snd/pcmC0D1c
# owner: 777
# group: root
user::rwx
group::rwx
other::rwx

# file: dev/snd/pcmC0D2c
# owner: 777
# group: root
user::rwx
group::rwx
other::rwx

# file: dev/snd/pcmC0D3c
# owner: 777
# group: root
user::rwx
group::rwx
other::rwx

# file: dev/snd/pcmC0D4p
# owner: 777
# group: root
user::rwx
group::rwx
other::rwx

# file: dev/snd/pcmC1D0c
# owner: 777
# group: root
user::rwx
group::rwx
other::rwx

# file: dev/snd/pcmC1D0p
# owner: 777
# group: root
user::rwx
group::rwx
other::rwx

# file: dev/snd/seq
# owner: 777
# group: root
user::rwx
group::rwx
other::rwx

# file: dev/snd/timer
# owner: 777
# group: root
user::rwx
group::rwx
other::rwx

$ /etc/init.d/ConsoleKit status
console-kit-daemon (pid 1721) is running...

$ ls -lZ /dev/snd/*
crwxrwxrwx  root root system_u:object_r:sound_device_t /dev/snd/controlC0
crwxrwxrwx  root root system_u:object_r:sound_device_t /dev/snd/controlC1
crwxrwxrwx  root root system_u:object_r:sound_device_t /dev/snd/pcmC0D0c
crwxrwxrwx  root root system_u:object_r:sound_device_t /dev/snd/pcmC0D0p
crwxrwxrwx  root root system_u:object_r:sound_device_t /dev/snd/pcmC0D1c
crwxrwxrwx  root root system_u:object_r:sound_device_t /dev/snd/pcmC0D2c
crwxrwxrwx  root root system_u:object_r:sound_device_t /dev/snd/pcmC0D3c
crwxrwxrwx  root root system_u:object_r:sound_device_t /dev/snd/pcmC0D4p
crwxrwxrwx  root root system_u:object_r:sound_device_t /dev/snd/pcmC1D0c
crwxrwxrwx  root root system_u:object_r:sound_device_t /dev/snd/pcmC1D0p
crwxrwxrwx  root root system_u:object_r:sound_device_t /dev/snd/seq
crwxrwxrwx  root root system_u:object_r:sound_device_t /dev/snd/timer

$ sudo /usr/sbin/getenforce 
Enforcing

$ rpm -q ConsoleKit hal
ConsoleKit-0.2.2-0.16.20070831git.fc7.hughsie.i386
hal-0.5.10-0.43.20070831git.fc7.hughsie.i386

Comment 1 Bastien Nocera 2007-09-05 19:05:00 UTC
Latest bits from rawhide for me, and no bits from hughsie.

$ /etc/init.d/ConsoleKit status
console-kit-daemon (pid 2304) is running...

$ ls -l /dev/snd/
total 0
0 crw-rw----+ 1 root root 116, 8 2007-09-05 18:35 controlC0
0 crw-rw----+ 1 root root 116, 7 2007-09-05 18:35 pcmC0D0c
0 crw-rw----+ 1 root root 116, 6 2007-09-05 18:35 pcmC0D0p
0 crw-rw----+ 1 root root 116, 5 2007-09-05 18:35 pcmC0D1c
0 crw-rw----+ 1 root root 116, 4 2007-09-05 18:35 pcmC0D1p
0 crw-rw----+ 1 root root 116, 3 2007-09-05 18:35 seq
0 crw-rw----+ 1 root root 116, 2 2007-09-05 18:35 timer

$ rpm -q hal ConsoleKit
hal-0.5.10-0.git20070831.fc8
ConsoleKit-0.2.1-4.fc8

Works fine. I had the same problem with hughsie's packages as well.

Comment 2 Ray Strode [halfline] 2007-09-05 19:39:09 UTC
ah adding Richard to the CC list then.

Comment 3 Richard Hughes 2007-09-07 14:53:54 UTC
Hmm. I'm only using git head versions of everything, with the fedora spec file.
I'll make sure my spec files are up to date.

Comment 4 David Zeuthen 2007-09-18 19:57:47 UTC
Ray showed me in the office that he was using hal packages from the utopia repo
-> UNSUPPORTED. :-)

Comment 5 Richard Hughes 2007-09-18 20:16:57 UTC
I've updated the utopia hal to match the fedora hal. Sorry guys :-)


Note You need to log in before you can comment on or make changes to this bug.