Summary: | net-print/cups-pk-helper doesn't honor lpadmin group | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | poncho <poncho> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | CONFIRMED --- | ||
Severity: | enhancement | CC: | jstein, poncho |
Priority: | Normal | Keywords: | Inclusion |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugzilla.gnome.org/show_bug.cgi?id=669679#c23 | ||
See Also: | https://bugs.freedesktop.org/show_bug.cgi?id=46943 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | polkit rule |
Description
poncho
2013-04-18 09:52:44 UTC
Thanks for the report, but will wait for other gnome team members opinions to decide what we will do :/ Meh, it's been a while but yes, this is a good idea. Sorry but I am not familiar with it and I don't know how to apply that proposed rule :( there are more permission issues, even with above polkit rule from https://bugzilla.gnome.org/show_bug.cgi?id=669679#c23 So, the problem here is that gnome-control-center does not cancel jobs directly as the running user (thus the owner of the jobs) but as the "root" user, because it always relies on the cups-pk-helper service instead: https://git.gnome.org/browse/gnome-control-center/tree/panels/printers/pp-utils.c#n3969. Now, when cups-pk-helper asks CUPS for the job-originating-user-name attribute CUPS will know it's not the owner who requests it, but the root user. Thus, the only way CUPS will grant that other user access to the private attribute is, according to the value of JobPrivaveAccess (default), that the "root" user belongs to CUPS's system administration group, set by the SystemGroup directive in /etc/cups/cups-files.conf. And here comes the difference between Fedora and Debian/Ubuntu: while Fedora defines SystemGroup as "sys root", Debian/Ubuntu defines it as "lpadmin". Therefore, that does not work in Debian/Ubuntu because cups-pk-helper is a D-Bus service run by root, while in Fedora it will work as a charm. |