Ubuntu is missing /dev/infiniband/uverbs* group ownership udev rule

Bug #218500 reported by Roland Dreier
6
Affects Status Importance Assigned to Milestone
libibverbs (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The Debian version of udev ships with the rule

    KERNEL=="uverbs*", GROUP="rdma"

in /etc/udev/rules.d/020_permissions.rules. This means that on systems with RDMA devices available, loading the ib_uverbs modules results in device files like

    crw-rw---- 1 root rdma 231, 192 2008-04-16 20:39 /dev/infiniband/uverbs0

That is, the uverbs* files are owned by group rdma, which means that ordinary users can be given permission to use RDMA devices by adding them to the group "rdma". (These devices are designed so that they are safe for ordinary users to access)

Ubuntu does not include this group ownership rule, due to a different policy about what rules are shipped as part of the udev package; the policy is that the group ownership rule should be in the package that creates the group, in this case libibverbs1.

This means that on Ubuntu systems, the device files end up as

    crw-rw---- 1 root root 231, 192 2008-04-16 20:38 /dev/infiniband/uverbs0

and only root can use RDMA devices.

Related branches

Revision history for this message
Roland Dreier (roland.dreier) wrote :

Here is a debdiff that bumps the version to -ubuntu1 and adds a libibverbs1.udev file with the required udev rules. It would be great if this could be integrated into the Ubuntu package for Hardy+1 (I assume it's too late for Hardy).

Changed in libibverbs:
status: New → Confirmed
Revision history for this message
Roland Dreier (roland.dreier) wrote :

Sorry... here's an updated patch with my correct email in the debian/changelog.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Subscribed motu-release (and therefore changed status back to "New").
In the meantime, please update the debdiff, so it fixes the maintainer field (update-maintainer in the source package), but if it's too much trouble the sponsor can do it herself then.

Changed in libibverbs:
status: Confirmed → New
Revision history for this message
Roland Dreier (roland.dreier) wrote :

It's no problem to update the maintainer field...but let me make sure I know what to update it to. I am the Debian package maintainer and I am also trying to update my package with Ubuntu-specific changes. Should I still set the maintainer to "Ubuntu MOTU Developers <email address hidden>"?

Revision history for this message
Roland Dreier (roland.dreier) wrote :

Anyway, here's the patch updated by running update-maintainer...

Revision history for this message
StefanPotyra (sistpoty) wrote :

ACK.

Morten Kjeldgaard (mok0)
Changed in libibverbs:
assignee: nobody → mok0
status: New → In Progress
Morten Kjeldgaard (mok0)
Changed in libibverbs:
assignee: mok0 → nobody
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libibverbs - 1.1.1-1ubuntu1

---------------
libibverbs (1.1.1-1ubuntu1) hardy; urgency=low

  * Add udev rules for /dev/infiniband/uverbs* group ownership, since
    Ubuntu's udev policy says such rules should live in the package
    that creates the group, while Debian ships the rules as part of the
    main udev package (LP: #218500).
  * Modify Maintainer value to match the DebianMaintainerField
    specification.

 -- Roland Dreier <email address hidden> Tue, 22 Apr 2008 10:38:18 -0700

Changed in libibverbs:
status: Fix Committed → Fix Released
Morten Kjeldgaard (mok0)
Changed in libibverbs:
assignee: nobody → mok0
status: Fix Released → Fix Committed
assignee: mok0 → nobody
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.