[Bug 768361] New: udev: static device nodes missing acl
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c0 Summary: udev: static device nodes missing acl Classification: openSUSE Product: openSUSE 12.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: rmilasan@suse.com ReportedBy: lnussel@suse.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- static device nodes like /dev/snd/seq lack an ACL so users can't access the device. When the module is loaded the acl gets installed. Since accessing the device is the trigger to actually load the module there's a chicken and egg problem :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c1 Robert Milasan <rmilasan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #1 from Robert Milasan <rmilasan@suse.com> 2012-06-22 13:13:36 UTC --- Can you try to get udev from: https://build.opensuse.org/package/binaries?package=udev&project=Base%3ASystem&repository=openSUSE_Factory and install it? It could be because some "parts" are missing. Please try udev (should be version 182-116.1) and let me know. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c2 Robert Milasan <rmilasan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |lnussel@suse.com --- Comment #2 from Robert Milasan <rmilasan@suse.com> 2012-06-27 09:02:25 UTC --- Ludwig can you please also put the output of command ls -la /dev/snd/ here in the bug? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c3 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|lnussel@suse.com | --- Comment #3 from Ludwig Nussel <lnussel@suse.com> 2012-06-28 11:07:53 CEST --- Created an attachment (id=496731) --> (http://bugzilla.novell.com/attachment.cgi?id=496731) l /dev/snd updating to the latest udev didn't change anything -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c4 --- Comment #4 from Robert Milasan <rmilasan@suse.com> 2012-06-28 09:20:10 UTC --- Well I'm not sure whats wrong there, because I have the same for openSUSE:12.1 and everything works: robert@viper:~> cat /etc/SuSE-release openSUSE 12.1 (x86_64) VERSION = 12.1 CODENAME = Asparagus robert@viper:~> ls -l /dev/snd/ total 0 drwxr-xr-x 2 root root 60 Jun 20 09:06 by-path crw-rw----+ 1 root audio 116, 6 Jun 20 09:06 controlC0 crw-rw----+ 1 root audio 116, 5 Jun 20 09:06 hwC0D0 crw-rw----+ 1 root audio 116, 4 Jun 28 11:19 pcmC0D0c crw-rw----+ 1 root audio 116, 3 Jun 28 11:08 pcmC0D0p crw-rw----+ 1 root audio 116, 2 Jun 20 09:06 pcmC0D2c crw-rw---- 1 root audio 116, 1 Jun 20 09:06 seq crw-rw----+ 1 root audio 116, 33 Jun 20 09:06 timer -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c5 --- Comment #5 from Robert Milasan <rmilasan@suse.com> 2012-06-28 09:28:28 UTC --- Found the issue. The snd_seq module is not loaded, but udev created the character file. If you would run manually "modprobe snd_seq" it will fix the acl on /dev/snd/seq. This doesn't seem like udev issue, but more like initrd issue. I mean I think it should be included in the initrd image. I'm not taking out udev from the problem, just considering other options :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c6 --- Comment #6 from Robert Milasan <rmilasan@suse.com> 2012-06-28 09:35:37 UTC --- Something like this is missing from /etc/modprobe.d/50-sound.conf, but this also affects openSUSE:12.1 install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; /sbin/modprobe --quiet --use-blacklist snd-seq-oss ; : ; } -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c Robert Milasan <rmilasan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |lnussel@suse.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c7 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|lnussel@suse.com | --- Comment #7 from Ludwig Nussel <lnussel@suse.com> 2012-06-28 11:41:15 CEST --- Sure, but that also only hides the problem. /dev/snd/seq isn't exactly the most crucial device, however the problem exists in general and could hit any device. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c8 Robert Milasan <rmilasan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |lnussel@suse.com --- Comment #8 from Robert Milasan <rmilasan@suse.com> 2012-06-28 09:50:32 UTC --- Like what you mean. I have not found any other issue. If you give a bit more examples maybe I could understand what you mean. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c9 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|lnussel@suse.com | --- Comment #9 from Ludwig Nussel <lnussel@suse.com> 2012-06-28 11:57:07 CEST --- Any device node created statically via /lib/modules/`uname -r`/modules.devname will not get ACLs so module autoloading won't work for desktop users. See also bug 768352 (not yet decided whether module autoloading should be used though) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c10 --- Comment #10 from Robert Milasan <rmilasan@suse.com> 2012-06-28 11:03:08 UTC --- Yes I agree, but this is not an udev issue. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c11 --- Comment #11 from Ludwig Nussel <lnussel@suse.com> 2012-06-28 13:31:55 CEST --- but? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c12 --- Comment #12 from Robert Milasan <rmilasan@suse.com> 2012-06-28 11:53:06 UTC --- Well, in my opinion should be a default setup in /etc/modprobe.d/50-sound.conf install snd /sbin/modprobe --ignore-install snd $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-ioctl32 ; /sbin/modprobe --quiet --use-blacklist snd-seq ; } install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-pcm-oss ; : ; } install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-mixer-oss ; : ; } install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && { /sbin/modprobe --quiet --use-blacklist snd-seq-midi ; /sbin/modprobe --quiet --use-blacklist snd-seq-oss ; : ; } (this example is taken from Ubuntu) doesn't mean it has to be exactly like this, but a similar idea. I've even checked Fedora and seems to have the same issue with /dev/mixer /dev/dsp and /dev/snd/seq like we do. Adding those lines in 50-sound.conf will fix the issue, or at least it should, it does fix it on openSUSE:12.2 :) If we don't wanna use 50-sound.conf, we can use a default one, something like 10-alsa-default.conf and add this to alsa package. Here is an example from openSUSE:12.2: openSUSE 12.2 Beta 2 (i586) VERSION = 12.2 CODENAME = Mantis robert@hp-mini:~> ls -l /dev/snd/ /dev/dsp /dev/mixer crw-rw----+ 1 root audio 14, 3 Jun 28 13:48 /dev/dsp crw-rw----+ 1 root audio 14, 0 Jun 28 13:48 /dev/mixer /dev/snd/: total 0 drwxr-xr-x 2 root root 60 Jun 28 13:48 by-path crw-rw----+ 1 root audio 116, 5 Jun 28 13:48 controlC0 crw-rw----+ 1 root audio 116, 4 Jun 28 13:48 hwC0D0 crw-rw----+ 1 root audio 116, 3 Jun 28 13:48 pcmC0D0c crw-rw----+ 1 root audio 116, 2 Jun 28 13:49 pcmC0D0p crw-rw----+ 1 root audio 116, 1 Jun 28 13:47 seq crw-rw----+ 1 root audio 116, 33 Jun 28 13:47 timer This example is with the above configuration added to 50-sound.conf. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c13 Takashi Iwai <tiwai@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tiwai@suse.com --- Comment #13 from Takashi Iwai <tiwai@suse.com> 2012-06-28 13:59:50 UTC --- Note that snd-seq and related modules were loaded by alsasound init script in the earlier versions (bnc#767738). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c14 --- Comment #14 from Robert Milasan <rmilasan@suse.com> 2012-06-28 14:14:25 UTC --- Well seems like they are not doing that anymore. I think adding a configuration in /etc/modprobe.d would fix all of our issues, but this is my opinion and it's actually tested and working opinion :). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c15 --- Comment #15 from Ludwig Nussel <lnussel@suse.com> 2012-06-28 16:18:06 CEST --- so let's add that hack and therefore fix all three bugs -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c16 --- Comment #16 from Robert Milasan <rmilasan@suse.com> 2012-06-28 14:20:54 UTC --- I can do this myself by adding a file in alsa package. This is what I think should be done, but I'm opened for suggestions. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c17 --- Comment #17 from Takashi Iwai <tiwai@suse.com> 2012-06-28 14:25:21 UTC --- Don't load snd-pcm-oss and snd-mixer-oss unconditionally. These are exclusive to PulseAudio or ALSA-native apps. Once when you access /dev/dsp, it'll block other sound operations. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c18 --- Comment #18 from Takashi Iwai <tiwai@suse.com> 2012-06-28 14:31:57 UTC --- BTW, there is no module "snd-mixer". The line must be bogus. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c19 --- Comment #19 from Takashi Iwai <tiwai@suse.com> 2012-06-28 14:49:45 UTC --- I think it'd be better to put the crufty install lines into a script, so that it can check the sysconfig variable, too. Below is a modprobe config and a script to do equivalently with alsasound init script. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c20 --- Comment #20 from Takashi Iwai <tiwai@suse.com> 2012-06-28 14:51:16 UTC --- Created an attachment (id=496784) --> (http://bugzilla.novell.com/attachment.cgi?id=496784) Script to load sound modules Put this to /sbin. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c21 --- Comment #21 from Takashi Iwai <tiwai@suse.com> 2012-06-28 14:51:51 UTC --- Created an attachment (id=496785) --> (http://bugzilla.novell.com/attachment.cgi?id=496785) extra modprobe config -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c22 Takashi Iwai <tiwai@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #496784|0 |1 is obsolete| | --- Comment #22 from Takashi Iwai <tiwai@suse.com> 2012-06-28 15:01:17 UTC --- Created an attachment (id=496787) --> (http://bugzilla.novell.com/attachment.cgi?id=496787) Revised script Fixed some typos. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c Takashi Iwai <tiwai@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #496787|application/octet-stream |text/plain mime type| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c23 Takashi Iwai <tiwai@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |lnussel@suse.com --- Comment #23 from Takashi Iwai <tiwai@suse.com> 2012-06-28 15:35:01 UTC --- The package with this fix is prepared in OBS home:tiwai:branches:multimedia:libs/alsa repo. Give it a try. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c24 --- Comment #24 from Robert Milasan <rmilasan@suse.com> 2012-06-28 16:01:17 UTC --- OK, I'll check it out. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c25 Robert Milasan <rmilasan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|lnussel@suse.com | --- Comment #25 from Robert Milasan <rmilasan@suse.com> 2012-06-28 16:03:36 UTC --- Sorry, I forgot to add that I'll be on vacation so only after July 9, I'll be able to properly test. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c26 --- Comment #26 from Robert Milasan <rmilasan@suse.com> 2012-06-28 16:44:11 UTC --- OK, I can confirm that Takashi's idea works. Thanks Takashi :) NOTE: I've only tested it on one system (HP Mini), can be that on some machine it might fail or not work. Please test people .... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c27 --- Comment #27 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-06-29 17:00:38 CEST --- This is an autogenerated message for OBS integration: This bug (768361) was mentioned in https://build.opensuse.org/request/show/126632 Factory / alsa -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c28 Takashi Iwai <tiwai@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #28 from Takashi Iwai <tiwai@suse.com> 2012-07-17 13:29:10 UTC --- The fixed package is checked in and found in 12.2 RC1. Let's close this bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c29 Geoff Kuenning <geoff@cs.hmc.edu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |geoff@cs.hmc.edu --- Comment #29 from Geoff Kuenning <geoff@cs.hmc.edu> 2013-01-06 11:36:00 UTC --- Can this get back-ported to 12.1? I spent a good hour trying to figure out why /dev/mixer and /dev/dsp aren't there (breaks "record" and "gkrellm"). It'd be nice if others running the older release didn't have to suffer the same fate. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=768361 https://bugzilla.novell.com/show_bug.cgi?id=768361#c30 --- Comment #30 from Takashi Iwai <tiwai@suse.com> 2013-01-07 08:35:57 UTC --- You can use the packages in OBS multimedia:libs/alsa repo. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com