no ACL set for hotplugged devices after upgrade to saucy

Bug #1177828 reported by Steve Langasek
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
udev (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

After upgrading to saucy, ACLs are not being set correctly on my USB microphone (actually, sound devices for my webcam) when I plug it in after login. This is a regression vs. raring, which I assume has to do with the consolekit->logind transition. I'm not sure if this is a problem with logind itself, or perhaps a mismatch between logind and the udev version that we're currently shipping.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: systemd-services 202-0ubuntu5
ProcVersionSignature: Ubuntu 3.9.0-0.4-generic 3.9.0
Uname: Linux 3.9.0-0-generic x86_64
ApportVersion: 2.10-0ubuntu1
Architecture: amd64
Date: Wed May 8 07:47:39 2013
InstallationDate: Installed on 2010-09-24 (957 days ago)
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
MarkForUpload: True
SourcePackage: systemd
UpgradeStatus: Upgraded to saucy on 2013-05-06 (1 days ago)

Revision history for this message
Steve Langasek (vorlon) wrote :
Changed in systemd (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
Steve Langasek (vorlon) wrote :

I see that udev in saucy has dropped udev-acl support, so this is probably related to that. Martin, you say in the changelog that logind is supposed to use uaccess now, but I don't see what/where that is on the system. Can you have a look here, please?

Revision history for this message
Martin Pitt (pitti) wrote :

The rules are in /lib/udev/rules.d/70-uaccess.rules now, and in raring I backported current udev's "uaccess" helper to our old udev package (of course in saucy we should actually update to the current udev).

My webcam doesn't have a microphone, and I don't currently have an USB audio device at hand, so I cannot reproduce this and thus have to ask you for some further debugging. For a start, can you please attach the output of "udevadm info --export-db" with the device attached? Also, the output of "ls -lR /dev/snd" might be helpful.

Thanks!

Revision history for this message
Steve Langasek (vorlon) wrote :

udevadm db output attached as requested. Listing of /dev/snd included below. Note that the acls on controlC1 and pcmC1D0c have been set by hand - these devices had no acl set automatically.

$ ls -l /dev/snd/
total 0
drwxr-xr-x 2 root root 60 May 8 07:41 by-id
drwxr-xr-x 2 root root 100 May 8 07:41 by-path
crw-rw---T+ 1 root audio 116, 8 May 6 16:36 controlC0
crw-rw---T+ 1 root audio 116, 10 May 8 07:41 controlC1
crw-rw---T+ 1 root audio 116, 2 May 6 16:36 controlC29
crw-rw---T+ 1 root audio 116, 7 May 6 16:36 hwC0D0
crw-rw---T+ 1 root audio 116, 6 May 6 16:36 hwC0D3
crw-rw---T+ 1 root audio 116, 5 May 8 07:44 pcmC0D0c
crw-rw---T+ 1 root audio 116, 4 May 8 07:43 pcmC0D0p
crw-rw---T+ 1 root audio 116, 3 May 8 07:43 pcmC0D3p
crw-rw---T+ 1 root audio 116, 9 May 8 07:44 pcmC1D0c
crw-rw---T+ 1 root audio 116, 1 May 6 16:36 seq
crw-rw---T+ 1 root audio 116, 33 May 6 16:36 timer
$

Revision history for this message
Martin Pitt (pitti) wrote :

I can reproduce this with a gphoto (PtP) camera and my scanner. This might be a botched uaccess backport in our udev (this was working in raring when I did it, but since then we got quite a number of changes.

summary: - no ACL set for USB sound device after upgrade to saucy
+ no ACL set for hotplugged devices after upgrade to saucy
Changed in systemd (Ubuntu):
importance: Undecided → High
milestone: none → ubuntu-13.05
status: New → In Progress
Martin Pitt (pitti)
affects: systemd (Ubuntu) → udev (Ubuntu)
Changed in udev (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package udev - 175-0ubuntu28

---------------
udev (175-0ubuntu28) saucy; urgency=low

  * Build with --enable-udev_acl again, as this also controls the uaccess
    backport. Just don't install the ConsoleKit helper and the udev-acl rules.
    (LP: #1177828)
 -- Martin Pitt <email address hidden> Fri, 10 May 2013 08:44:06 +0200

Changed in udev (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.