|
Bugzilla – Full Text Bug Listing |
| Summary: | Printer sharing stopped working after installing security fix for bnc#857372 | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 13.1 | Reporter: | Petr Tesařík <ptesarik> |
| Component: | Security | Assignee: | Security Team bot <security-team> |
| Status: | RESOLVED DUPLICATE | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Major | ||
| Priority: | P1 - Urgent | CC: | amach, forgotten_j8w14dsa0P, jsmeix, msvec, sebastian.kuhne |
| Version: | Final | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | openSUSE 13.1 | ||
| Whiteboard: | |||
| Found By: | L3 | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Petr Tesařík
2014-01-25 14:06:52 UTC
I fixed it by changing /usr/lib/systemd/system/cups.socket from [Unit] Description=CUPS Printing Service Sockets [Socket] ListenStream=/var/run/cups/cups.sock ListenStream=127.0.0.1:631 ListenStream=[::1]:631 ListenDatagram=127.0.0.1:631 ListenDatagram=[::1]:631 BindIPv6Only=ipv6-only [Install] WantedBy=sockets.target to: [Unit] Description=CUPS Printing Service Sockets [Socket] ListenStream=/var/run/cups/cups.sock ListenStream=127.0.0.1:631 ListenDatagram=127.0.0.1:631 BindIPv6Only=ipv6-only [Install] WantedBy=sockets.target Those two lines were added after updating cups from 1.5.4-12.1.3 to 1.5.4-12.4.1 I was also able to get it working with the following configuration: [Unit] Description=CUPS Printing Service Sockets [Socket] ListenStream=/var/run/cups/cups.sock BindIPv6Only=ipv6-only [Install] WantedBy=sockets.target Given that cups creates the TCP and UDP sockets on startup, I'm unsure how things are supposed to work if they are created by systemd instead. Hi Christoph, first of all, I have experienced the same issue you observed. I tried your fix and changed /usr/lib/systemd/system/cups.socket according to your proposal (1:1). Unfortunately, this was not successful. The printer is not shared in the network. Hope we get a regular fix soon. Best regards Sebastian (In reply to comment #1) > I fixed it by changing /usr/lib/systemd/system/cups.socket from > > [Unit] > Description=CUPS Printing Service Sockets > > [Socket] > ListenStream=/var/run/cups/cups.sock > ListenStream=127.0.0.1:631 > ListenStream=[::1]:631 > ListenDatagram=127.0.0.1:631 > ListenDatagram=[::1]:631 > BindIPv6Only=ipv6-only > > [Install] > WantedBy=sockets.target > > to: > > [Unit] > Description=CUPS Printing Service Sockets > > [Socket] > ListenStream=/var/run/cups/cups.sock > ListenStream=127.0.0.1:631 > ListenDatagram=127.0.0.1:631 > BindIPv6Only=ipv6-only > > [Install] > WantedBy=sockets.target > > Those two lines were added after updating cups from 1.5.4-12.1.3 to > 1.5.4-12.4.1 cups-0002-systemd-listen-only-on-localhost-for-socket-activation.patch is the "right" security fix for bnc#857372 according to what was discusseed there, see in particular https://bugzilla.novell.com/show_bug.cgi?id=857372#c18 I think it is the intended purpose that with this fix it must no longer "just work" without explicit settings by the admin to make the cupsd accessible via outer network because otherwise it would be insecure. I think the security people together with the systemd people should try to find a secure and usable way how normal users can use the cupsd, see also bnc#860331 I think the current situation is a dilemma between security and "make it all just work out of the box" that I cannot solve, see https://bugzilla.novell.com/show_bug.cgi?id=857372#c19 According to https://bugzilla.novell.com/show_bug.cgi?id=860331#c1 I also change the bugzilla component to "Security" here. I reopened bnc#857372 and assigned it to me. I will try to clean up the mess - regardless that my knowledge regarding systemd unit files is very limited. For the full story see bnc#857372 ... ;-) *** This bug has been marked as a duplicate of bug 857372 *** |