Date: Wed, 25 Feb 2026 14:22:44 +1100 From: Greg 'groggy' Lehey <grog@freebsd.org> To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= <des@freebsd.org> Cc: core@freebsd.org, arch@freebsd.org, stable@freebsd.org Subject: Re: lpd: the thin edge of the wedge? Message-ID: <aZ5rBOkopIoUVO14@hydra.lemis.com> In-Reply-To: <86ecmatm3k.fsf@ltc.des.dev> References: <aZ0QP82UCeTXfFGc@hydra.lemis.com> <86ecmatm3k.fsf@ltc.des.dev>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Tuesday, 24 February 2026 at 12:30:39 +0100, Dag-Erling Smørgrav wrote: > Greg 'groggy' Lehey <grog@freebsd.org> writes: >> I'm really quite concerned about the plans to remove lpd. I >> understand that there are security issues with lpd, even if I haven't >> heard any reports of exploits in over a third of a century, but the >> approach seems wrong to me. > > Feel free to review https://reviews.freebsd.org/D55399 yourself, keeping > in mind that it addresses only _some_ of the issues I found in just > _one_ of the 28 source files that make up lpr / lpd. No, I believe you. You've only quoted the start of my message, and even there I say that I accept that there are security issues. That's why I didn't copy you explicitly on my message. The real point of the message was further down, which you don't quote, and which core@ has not addressed at all: we shouldn't remove basic functionality from the base system. Still, to your points: > I estimate the effort needed to overhaul the entire code base and > add tests to about 200 hours or two months full-time. Noted. I didn't expect the current code to be salvageable. > I would also like to point out that: > > - I have not removed lpr / lpd. I have merely marked them deprecated > and proposed a plan to remove them in or around September 2027, which > is more than a year and half from now, unless they have significantly > improved in the interim. Right, but the current course doesn't seem to make that likely. > - I have done more to improve lpd and keep it alive in the last 5 days > than everyone else combined in the last 25 years. But I can't > continue to neglect my paying customers to fix something that almost > nobody uses. Someone will have to step up to either do the work or > hire me to do it. Yes, I understood this too, just not the details. > - Simply moving the code to ports will do nothing to address the > underlying issue, and I will strenuously object to adding software > with known vulnerabilities to the ports tree. Agreed. Moving to ports is exactly what I don't want to do. > - Some of the issues with lpd cannot be fixed because they are > inherent to its design, which cannot be changed without breaking > compatibility, which is _the only reason_ to keep lpd. The rest > of the world has moved on to IPP. You've caught me here. I had never heard of IPP. My understanding is that it, too, is not supported by the base system. What would it take to change that? It looks as if it could be a good alternative. Declaring lpd obsolete would be fine then, and people who really want it could then use a port. But CUPS is not the answer either, for most of the same reasons. In addition, a comment from Theo (who confirmed that nobody had spoken to the OpenBSD community): well, let them enjoy cups. I have studied that monster a few times. it is a huge piece of software lacking any attempt at a security architecture, and a culture around it that will never make changes. in such circumstances, i always stick to small pieces of software where we can hopefully delineate the boundaries. Would you see things differently? Greg -- Sent from my desktop computer. See complete headers for address and phone numbers. This message is digitally signed. If your Microsoft mail program reports problems, please read http://lemis.com/broken-MUA.php [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSaG4ICvM64RvkvCawi5vKQUHpCIwUCaZ5rBAAKCRAi5vKQUHpC I0V9AJ9bq++wMbylcmVaVE48wTnIOmERdwCdGtMgL/oEFid+/hWfsGyqYtjRDyA= =KBiS -----END PGP SIGNATURE-----home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aZ5rBOkopIoUVO14>
