Comment 4 for bug 1847477

Revision history for this message
zdohnal (zdohnal) wrote :

I have the same problem in Fedora https://bugzilla.redhat.com/show_bug.cgi?id=1987141 - additionally now hp-plugin installs another file - /etc/udev/rules.d/40-libsane.rules , which has the same problem.

And both files has other two issues:
1) have bad permissions - the bad permissions are set in installer/pluginhandler.py:

405 if not os.path.exists(trg):
406 log.error("Target file %s does not exist. File copy failed." % trg)
407 continue
408 else:
409 os.chmod(trg, stat.S_IRWXU | stat.S_IRGRP | stat.S_IXGRP | stat.S_IROTH | stat.S_IXOTH)

The last line sets the perms to 755, which is not ok for configuration files.

2) sets the device for 'scanner' group, which doesn't exist on my Fedora installation at least.

I'll post the patch for perms here, but the bad labels and bad group (the plugin should work on all OS, so IMO OS-specific groups aren't allowed) in rule files should be fixed by plugin provider - HP.

I will work it around in Fedora for now.