From owner-freebsd-arch@freebsd.org Tue Jun 20 14:05:00 2017 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4FBBED99A0F for ; Tue, 20 Jun 2017 14:05:00 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1a.eu.mailhop.org (outbound1a.eu.mailhop.org [52.58.109.202]) (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 DADDD84007 for ; Tue, 20 Jun 2017 14:04:59 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 4588bf98-55c1-11e7-8f51-6f1fdf31063e X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.eu.mailhop.org (Halon) with ESMTPSA id 4588bf98-55c1-11e7-8f51-6f1fdf31063e; Tue, 20 Jun 2017 14:03:45 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v5KE3hFn003532; Tue, 20 Jun 2017 08:03:43 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1497967423.81013.76.camel@freebsd.org> Subject: Re: rtools were deemed almost unused 15 years ago... From: Ian Lepore To: Michael Gmelin , Baptiste Daroussin Cc: Jeremie Le Hen , freebsd-arch@freebsd.org Date: Tue, 20 Jun 2017 08:03:43 -0600 In-Reply-To: <20170620155954.150dedc5@bsd64.grem.de> References: <20170620111136.fz5ovfa4imm3p4hj@ivaldir.net> <20170620155954.150dedc5@bsd64.grem.de> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2017 14:05:00 -0000 On Tue, 2017-06-20 at 15:59 +0200, Michael Gmelin wrote: > > On Tue, 20 Jun 2017 13:11:37 +0200 > Baptiste Daroussin wrote: > > > > > On Tue, Jun 20, 2017 at 12:25:46PM +0200, Jeremie Le Hen wrote: > > > > > > Hey folks, > > > > > > I remember when I was still barely out of my teenagehood, people > > > were mostly using ssh/scp while rtools (rsh, rlogin, ... for the > > > youngsters) were left in place as a courtesy for legacy > > > production > > > systems still relying it on them. > > > > > > Fast forward to 2017 (so yes, 15 years later), stack-clash [1] > > > sorely reminds us that suid binaries are an attack surface. I > > > don't > > > even need to mention that it's a healthy engineering practice to > > > remove unused code, both from a maintenance and security > > > perspective. > > > > > > Therefore, I hereby propose to remove rtools from the base > > > system. > > > I acknowledge this will likely cause troubles for a handful of > > > people who are still relying on it for good or bad reasons. But > > > the > > > flipside is that the attack surface of millions of FreeBSD > > > installed out there will be reduced. > > > > > > The proposed roadmap is: > > > - disable from the build on head and let it soak for one month > > > - remove rtools from the base. > > > > > > What do you guys think?  Any preferred color for the bikeshed? :) > > > > > > > > > > > > [1] https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt > > >    > > Yeah! > > > > Is telnetd part of your list? > As long as the telnet(1) client stays in I'm all for it. > > -m > As long as ports are available for all these things, the impact of removing them should be negligible for the few still using them. -- Ian