Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154237 - net-print/foo2zjs-20060607 UDEV rule creates device node with insecure mode
Summary: net-print/foo2zjs-20060607 UDEV rule creates device node with insecure mode
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-06 05:06 UTC by Sergey Zolotorev
Modified: 2006-12-03 07:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
/etc/udev/rules.d/11-hplj10xx.rules patch (11-hplj10xx.diff,1.59 KB, patch)
2006-11-06 05:08 UTC, Sergey Zolotorev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Zolotorev 2006-11-06 05:06:56 UTC
/etc/udev/rules.d/11-hplj10xx.rules creates device node with mode 0666. May be it is better to create device with mode 0660 and group lp (as it does default udev rule for printer)?
Comment 1 Sergey Zolotorev 2006-11-06 05:08:27 UTC
Created attachment 101330 [details, diff]
/etc/udev/rules.d/11-hplj10xx.rules patch

I've prepared patch to create device node with correct mode and group. I hope it will useful.
Comment 2 Roger 2006-12-02 00:43:47 UTC
Just an FYI, I've provided an updated foo2zjs-20061201.ebuild here:
http://bugs.gentoo.org/show_bug.cgi?id=156875

I don't seem to be experiencing the problem you're having with device permission.  I think this is probably because I'm using network rather then plugging the printer into a usb port. ;-)

So, if you are having a permission problem, instead of chmod 0666 and letting everyone access.  Why not something like 0660 and marking the group file on the device file as "lp" or "lpadmin"??
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2006-12-03 07:26:10 UTC
thanks, fixed in foo2zjs bumped to 20061130
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2006-12-03 07:27:06 UTC
fixed