Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: Support discovery of printer applications on domain sockets #76

Open
DemiMarie opened this issue Jan 15, 2021 · 5 comments
Open

RFE: Support discovery of printer applications on domain sockets #76

DemiMarie opened this issue Jan 15, 2021 · 5 comments
Labels
enhancement New feature or request priority-medium

Comments

@DemiMarie
Copy link

Using TCP sockets on localhost raises concerns about local privilege escalation attacks. AF_UNIX sockets are more efficient and more secure.

Advertising AF_UNIX sockets over DNS-SD makes little sense, and accepting such an advertisement has its own security concerns. Specifying the AF_UNIX socket in a configuration file is more logical, IMO.

@michaelrsweet michaelrsweet changed the title RFE: AF_UNIX socket support RFE: Support discovery of printer applications on domain sockets Jan 15, 2021
@michaelrsweet
Copy link
Member

I updated the title of the bug to reflect what is being asked for. In short, @DemiMarie mentioned this on the Apple CUPS issue tracker and I asked her to submit an issue here so we can track support for printer applications that are accessible via domain sockets.

Ideally we should be able to publish (somewhere) a list of domain sockets representing local printer applications that are running, and then the CUPS dests API will be able to use Get-Printers requests to include all of the printers in the list of destinations, as if they were discovered via DNS-SD.

@michaelrsweet michaelrsweet added enhancement New feature or request priority-medium labels Jan 15, 2021
@marcthe12
Copy link

There could be to ways to handle it. Since we are localhost so we could do this via other protocols or via directory structure.
I think the best way to have directory that dropins either the sockets itself or a config for the socket.

@michaelrsweet michaelrsweet added this to the v3.0 milestone Feb 17, 2021
@DemiMarie
Copy link
Author

This is also necessary to support IPP-USB on AF_UNIX without firewall hacks.

@michaelrsweet
Copy link
Member

@DemiMarie I don't see how we can support an IPP-USB proxy/gateway over domain sockets and still support access to the printer's web page to configure things, clean print heads, etc.

@DemiMarie
Copy link
Author

@DemiMarie I don't see how we can support an IPP-USB proxy/gateway over domain sockets and still support access to the printer's web page to configure things, clean print heads, etc.

A browser in a separate network namespace with a TCP ⇔ AF_UNIX proxy in the network namespace is one approach. A program that embeds WebKitGTK and overrides its URL handling is another.

@michaelrsweet michaelrsweet removed this from the v3.0 milestone Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-medium
Projects
None yet
Development

No branches or pull requests

3 participants