From nobody Wed Sep 28 23:10:43 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MdC041tlpz4YGBG; Wed, 28 Sep 2022 23:10:44 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: from spindle.one-eyed-alien.net (spindle.one-eyed-alien.net [199.48.129.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4MdC040s8Wz3P5S; Wed, 28 Sep 2022 23:10:44 +0000 (UTC) (envelope-from brooks@spindle.one-eyed-alien.net) Received: by spindle.one-eyed-alien.net (Postfix, from userid 3001) id 19C973C0199; Wed, 28 Sep 2022 23:10:43 +0000 (UTC) Date: Wed, 28 Sep 2022 23:10:43 +0000 From: Brooks Davis To: Xin LI Cc: Brooks Davis , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: 0eea46fb1f83 - main - Remove telnetd Message-ID: <20220928231043.GA79265@spindle.one-eyed-alien.net> References: <202209281854.28SIsEXN074680@gitrepo.freebsd.org> List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="C7zPtVaVf+AK4Oqc" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Rspamd-Queue-Id: 4MdC040s8Wz3P5S X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N --C7zPtVaVf+AK4Oqc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable For the list, there's a review stack beginning here: https://reviews.freebsd.org/D36782 Thanks, Brooks On Wed, Sep 28, 2022 at 01:54:46PM -0700, Xin LI wrote: > This removal is incomplete. Could you please also remove it from e.g. > usr.sbin/inetd/inetd.conf, release/packages/Makefile.package, bsdbox, and > mentions in various manual pages? >=20 > On Wed, Sep 28, 2022 at 11:54 AM Brooks Davis wrote: >=20 > > The branch main has been updated by brooks: > > > > URL: > > https://cgit.FreeBSD.org/src/commit/?id=3D0eea46fb1f83f6091df92b5f2eae9= 93cd6c2c873 > > > > commit 0eea46fb1f83f6091df92b5f2eae993cd6c2c873 > > Author: Brooks Davis > > AuthorDate: 2022-09-28 18:53:10 +0000 > > Commit: Brooks Davis > > CommitDate: 2022-09-28 18:53:49 +0000 > > > > Remove telnetd > > > > The telnetd codebase is unmaintained and has a number of quality > > issues. Telnet has been largely supplanted by ssh. If needed, a por= t is > > available (net/freebsd-telnetd), but a more maintained implementati= on > > should be prefered. > > > > While the telnet client suffers from the same issues, it is deemed > > to be of lower risk and is required to connect to legacy devices, so > > it remains. > > > > Reviewed by: emaste, imp > > Differential Revision: https://reviews.freebsd.org/D36620 > > --- > > ObsoleteFiles.inc | 5 ++++ > > lib/libpam/pam.d/Makefile | 6 ----- > > lib/libpam/pam.d/telnetd | 26 ------------------ > > libexec/Makefile | 5 ---- > > libexec/telnetd/Makefile | 45 > > -------------------------------- > > libexec/telnetd/Makefile.depend | 25 ------------------ > > libexec/telnetd/Makefile.depend.options | 6 ----- > > tools/build/mk/OptionalObsoleteFiles.inc | 3 --- > > 8 files changed, 5 insertions(+), 116 deletions(-) > > > > diff --git a/ObsoleteFiles.inc b/ObsoleteFiles.inc > > index 2056b4296a94..0a0c6dfb044a 100644 > > --- a/ObsoleteFiles.inc > > +++ b/ObsoleteFiles.inc > > @@ -52,6 +52,11 @@ > > # xargs -n1 | sort | uniq -d; > > # done > > > > +# 20220928: telnetd(8) removed > > +OLD_FILES+=3Detc/pam.d/telnetd > > +OLD_FILES+=3Dusr/libexec/telnetd > > +OLD_FILES+=3Dusr/share/man/man8/telnetd.8.gz > > + > > # 20220914: domain(9) updated > > OLD_FILES+=3Dusr/share/man/man9/domain_init.9.gz > > OLD_FILES+=3Dusr/share/man/man9/pfctlinput.9.gz > > diff --git a/lib/libpam/pam.d/Makefile b/lib/libpam/pam.d/Makefile > > index 1499f916cb17..da30a4682f53 100644 > > --- a/lib/libpam/pam.d/Makefile > > +++ b/lib/libpam/pam.d/Makefile > > @@ -34,10 +34,4 @@ afterinstallconfig: > > ${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}${CONFDIR}/ftpd > > ${DESTDIR}${CONFDIR}/ftp > > .endif > > > > -.if ${MK_TELNET} !=3D "no" > > -CONFGROUPS+=3D TELNET > > -TELNET+=3D telnetd > > -TELNETPACKAGE=3D telnet > > -.endif > > - > > .include > > diff --git a/lib/libpam/pam.d/telnetd b/lib/libpam/pam.d/telnetd > > deleted file mode 100644 > > index fb2f523d4ad1..000000000000 > > --- a/lib/libpam/pam.d/telnetd > > +++ /dev/null > > @@ -1,26 +0,0 @@ > > -# > > -# $FreeBSD$ > > -# > > -# PAM configuration for the "telnetd" service > > -# > > - > > -# auth > > -auth sufficient pam_opie.so no_warn > > no_fake_prompts > > -auth requisite pam_opieaccess.so no_warn allow_l= ocal > > -#auth sufficient pam_krb5.so no_warn > > try_first_pass > > -#auth sufficient pam_ssh.so no_warn > > try_first_pass > > -auth required pam_unix.so no_warn > > try_first_pass > > - > > -# account > > -account required pam_nologin.so > > -#account required pam_krb5.so > > -account required pam_login_access.so > > -account required pam_unix.so > > - > > -# session > > -#session optional pam_ssh.so want_agent > > -session required pam_lastlog.so no_fail > > - > > -# password > > -#password sufficient pam_krb5.so no_warn > > try_first_pass > > -password required pam_unix.so no_warn > > try_first_pass > > diff --git a/libexec/Makefile b/libexec/Makefile > > index 1b41ae81565c..8d7565fe3ee5 100644 > > --- a/libexec/Makefile > > +++ b/libexec/Makefile > > @@ -27,7 +27,6 @@ SUBDIR=3D ${_atf} \ > > ${_rtld-elf} \ > > save-entropy \ > > ${_smrsh} \ > > - ${_telnetd} \ > > ${_tests} \ > > ${_tftp-proxy} \ > > ulog-helper \ > > @@ -104,10 +103,6 @@ SUBDIR+=3D talkd > > SUBDIR+=3D tcpd > > .endif > > > > -.if ${MK_TELNET} !=3D "no" > > -_telnetd=3D telnetd > > -.endif > > - > > .if ${MK_TFTP} !=3D "no" > > SUBDIR+=3D tftpd > > .endif > > diff --git a/libexec/telnetd/Makefile b/libexec/telnetd/Makefile > > deleted file mode 100644 > > index 09136d360a71..000000000000 > > --- a/libexec/telnetd/Makefile > > +++ /dev/null > > @@ -1,45 +0,0 @@ > > -# $FreeBSD$ > > - > > -# Do not define -DKLUDGELINEMODE, as it does not interact well with ma= ny > > -# telnet implementations. > > - > > -.include > > - > > -PACKAGE=3D telnet > > - > > -TELNETDIR=3D ${SRCTOP}/contrib/telnet > > -.PATH: ${TELNETDIR}/telnetd > > - > > -PROG=3D telnetd > > -MAN=3D telnetd.8 > > - > > -SRCS=3D global.c slc.c state.c sys_term.c telnetd.c \ > > - termstat.c utility.c > > - > > -WARNS?=3D 2 > > -WFORMAT?=3D 0 > > - > > -CFLAGS+=3D -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \ > > - -DENV_HACK -DSTREAMSPTY > > - > > -.if ${MK_INET6_SUPPORT} !=3D "no" > > -CFLAGS+=3D -DINET6 > > -.endif > > - > > -CFLAGS+=3D -I${TELNETDIR} > > -CFLAGS+=3D -I${TELNETDIR}/telnet > > - > > -LIBADD=3D telnet util tinfow > > - > > -.if ${MK_OPENSSL} !=3D "no" > > -SRCS+=3D authenc.c > > -CFLAGS+=3D -DAUTHENTICATION -DENCRYPTION > > -LIBADD+=3D mp crypto pam > > -.endif > > - > > -.if ${MK_KERBEROS_SUPPORT} !=3D "no" > > -CFLAGS+=3D -DKRB5 -DFORWARD -Dnet_write=3Dtelnet_net_write > > -LIBADD+=3D krb5 roken > > -.endif > > - > > -.include > > diff --git a/libexec/telnetd/Makefile.depend > > b/libexec/telnetd/Makefile.depend > > deleted file mode 100644 > > index 60b7e4479a3f..000000000000 > > --- a/libexec/telnetd/Makefile.depend > > +++ /dev/null > > @@ -1,25 +0,0 @@ > > -# $FreeBSD$ > > -# Autogenerated - do NOT edit! > > - > > -DIRDEPS =3D \ > > - include \ > > - include/arpa \ > > - include/xlocale \ > > - lib/${CSU_DIR} \ > > - lib/libc \ > > - lib/libcom_err \ > > - lib/libcompiler_rt \ > > - lib/libcrypt \ > > - lib/libmp \ > > - lib/libpam/libpam \ > > - lib/libtelnet \ > > - lib/libthr \ > > - lib/libutil \ > > - lib/ncurses/ncursesw \ > > - > > - > > -.include > > - > > -.if ${DEP_RELDIR} =3D=3D ${_DEP_RELDIR} > > -# local dependencies - needed for -jN in clean tree > > -.endif > > diff --git a/libexec/telnetd/Makefile.depend.options > > b/libexec/telnetd/Makefile.depend.options > > deleted file mode 100644 > > index 4c4ba810c0e2..000000000000 > > --- a/libexec/telnetd/Makefile.depend.options > > +++ /dev/null > > @@ -1,6 +0,0 @@ > > -# $FreeBSD$ > > -# This file is not autogenerated - take care! > > - > > -DIRDEPS_OPTIONS=3D KERBEROS_SUPPORT OPENSSL > > - > > -.include > > diff --git a/tools/build/mk/OptionalObsoleteFiles.inc > > b/tools/build/mk/OptionalObsoleteFiles.inc > > index 1bcc0d2d80bc..4145859f21cd 100644 > > --- a/tools/build/mk/OptionalObsoleteFiles.inc > > +++ b/tools/build/mk/OptionalObsoleteFiles.inc > > @@ -8242,11 +8242,8 @@ OLD_FILES+=3Dusr/share/nls/uk_UA.UTF-8/tcsh.cat > > .endif > > > > .if ${MK_TELNET} =3D=3D no > > -OLD_FILES+=3Detc/pam.d/telnetd > > OLD_FILES+=3Dusr/bin/telnet > > -OLD_FILES+=3Dusr/libexec/telnetd > > OLD_FILES+=3Dusr/share/man/man1/telnet.1.gz > > -OLD_FILES+=3Dusr/share/man/man8/telnetd.8.gz > > .endif > > > > .if ${MK_TESTS} =3D=3D yes > > --C7zPtVaVf+AK4Oqc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJjNNRyAAoJEKzQXbSebgfA0dUH/0o+hodRfEDM+094Dvvfo67O 1DoYlUm8FIYqT6nPSo/JlKryR06uRbdgMujnc6XSNnAPNX3tU+x1bG8ttI3WWJXL RKIifAi5PLNn87SMAHdq9E0WLw/ZjsLBQArHv8t0FbCQFPQqmzj8Ue4TSpOiZhyA 7lEOikIC8eNLr3kBUA4JIwQxNRezHOqGmU/UX2VUYhvNy83q9pxNbf5x0cBJFFRT /c2vytkBGDCu3vpLmzEEzP7ecpdsRH4nEkjSsIkK7IfTr6zs2+gP5baqnhfJUfMx kcz63ukQOijIkXDowwx+faRBh7yq0Ap3vaILMqf5+AubruN4+MqHEdj5mgpuTCY= =9kKw -----END PGP SIGNATURE----- --C7zPtVaVf+AK4Oqc--