https://bugzilla.novell.com/show_bug.cgi?id=861084 https://bugzilla.novell.com/show_bug.cgi?id=861084#c0 Summary: systemd generator to create cups.socket that matches cupsd.conf Classification: openSUSE Product: openSUSE Factory Version: 13.2 Milestone 0 Platform: All OS/Version: openSUSE 13.2 Status: ASSIGNED Severity: Enhancement Priority: P5 - None Component: Printing AssignedTo: jsmeix@suse.com ReportedBy: jsmeix@suse.com QAContact: jsmeix@suse.com Found By: Development Blocker: ---
If you want a really good solution, write a systemd generator that creates the cups.socket with ListenDatagram=<the network allowed in the cups config> --------------------------------------------------------------------------- Currently I don't know anything at all about systemd generator. I would very much appreciate any help. Preferably a first proof of concept systemd generator attached here (as MIME type text/plain) so that I could get a first idea how such a systemd generator for cups.socket might be implemented. Regarding "<the network allowed in the cups config>": This could become tricky because several settings in cupsd.conf can specify where the cupsd listens for TCP and UDP. For TCP see "Listen" and "Port" at http://www.cups.org/documentation.php/doc-1.5/ref-cupsd-conf.html ----------------------------------------------------------------------- Listen Examples Listen 127.0.0.1:631 Listen 192.0.2.1:631 Listen [::1]:631 Listen *:631 Description The Listen directive specifies a network address and port to listen for connections. Multiple Listen directives can be provided to listen on multiple addresses. The Listen directive is similar to the Port directive but allows you to restrict access to specific interfaces or networks. [...] Port Examples Port 631 Port 80 Description The Port directive specifies a port to listen on. Multiple Port lines can be specified to listen on multiple ports. The Port directive is equivalent to "Listen *:nnn". The default port is 631. Note: On systems that support IPv6, this directive will bind to both the IPv4 and IPv6 wildcard address. ----------------------------------------------------------------------- For UDP see in particular "Browsing" at http://www.cups.org/documentation.php/doc-1.5/ref-cupsd-conf.html ----------------------------------------------------------------------- Browsing Examples Browsing On Browsing Off Description The Browsing directive controls whether or not network printer browsing is enabled. The default setting is Yes. This directive does not enable sharing of local printers by itself; you must also use the BrowseAddress or BrowseProtocols directives to advertise local printers to other systems. ----------------------------------------------------------------------- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.