← Back to team overview

desktop-packages team mailing list archive

[Bug 1458329] [NEW] hplip has wrong order of udev rules ⇒ scanner ACLs not set

 

Public bug reported:

hplip installs 56-hpmud.rules in /lib/udev/rules.d/, which comes *after*
40-libsane.rules. For HP scanners recognized by 56-hpmud.rules, but not
by 40-libsane.rules, ENV{libsane_matched} is set to ‘yes’, which is
correct. But as 56-hpmud.rules is evaluated *after* 40-libsane.rules,
the rule from 40-libsane.rules which has ‘RUN+="/bin/setfacl -m
g:scanner:rw $env{DEVNAME}"’ is not executed anymore. This leads to the
ACLs for the scanner group *not* being set for the device.

In my case, the device is 03f0:4f11 (an HP OfficeJet 5610, known as
“Hewlett-Packard OfficeJet 5600”). hplip version is 3.14.3-0ubuntu3.2 on
Ubuntu 14.04.2 LTS (trusty).

What I tried: copied /lib/udev/rules.d/56-hpmud.rules to
/etc/udev/rules.d/10-localoverride.rules – worked fine, ACLs set
properly.

** Affects: hplip (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to hplip in Ubuntu.
https://bugs.launchpad.net/bugs/1458329

Title:
  hplip has wrong order of udev rules ⇒ scanner ACLs not set

Status in hplip package in Ubuntu:
  New

Bug description:
  hplip installs 56-hpmud.rules in /lib/udev/rules.d/, which comes
  *after* 40-libsane.rules. For HP scanners recognized by
  56-hpmud.rules, but not by 40-libsane.rules, ENV{libsane_matched} is
  set to ‘yes’, which is correct. But as 56-hpmud.rules is evaluated
  *after* 40-libsane.rules, the rule from 40-libsane.rules which has
  ‘RUN+="/bin/setfacl -m g:scanner:rw $env{DEVNAME}"’ is not executed
  anymore. This leads to the ACLs for the scanner group *not* being set
  for the device.

  In my case, the device is 03f0:4f11 (an HP OfficeJet 5610, known as
  “Hewlett-Packard OfficeJet 5600”). hplip version is 3.14.3-0ubuntu3.2
  on Ubuntu 14.04.2 LTS (trusty).

  What I tried: copied /lib/udev/rules.d/56-hpmud.rules to
  /etc/udev/rules.d/10-localoverride.rules – worked fine, ACLs set
  properly.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1458329/+subscriptions


Follow ups

References