From owner-freebsd-arch@freebsd.org Sun Jun 25 00:26:16 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 87AC9DA868B for ; Sun, 25 Jun 2017 00:26:16 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail.karels.net (mail.karels.net [63.231.190.5]) by mx1.freebsd.org (Postfix) with ESMTP id 2AC407D362; Sun, 25 Jun 2017 00:26:15 +0000 (UTC) (envelope-from mike@karels.net) Received: from [10.0.2.11] (mjk-mac2.karels.net [10.0.2.11]) by mail.karels.net (8.15.2/8.15.2) with ESMTP id v5P0Ob0H094571; Sat, 24 Jun 2017 19:24:37 -0500 (CDT) (envelope-from mike@karels.net) From: "Mike Karels" To: "Rodney W. Grimes" Cc: "Poul-Henning Kamp" , "Jeremie Le Hen" , "Mark Linimon" , "freebsd-arch@freebsd.org" Subject: Re: rtools were deemed almost unused 15 years ago... Date: Sat, 24 Jun 2017 19:24:33 -0500 Message-ID: <4081124D-D70E-40FD-B29C-E542D887FA2A@karels.net> In-Reply-To: <201706221553.v5MFrCgM098459@pdx.rh.CN85.dnsmgr.net> References: <201706221553.v5MFrCgM098459@pdx.rh.CN85.dnsmgr.net> MIME-Version: 1.0 X-Mailer: MailMate (1.9.6r5347) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Sun, 25 Jun 2017 00:26:16 -0000 On 22 Jun 2017, at 10:53, Rodney W. Grimes wrote: >> -------- >> In message <20170621034106.GA27501@lonesome.com>, Mark Linimon writes: >>> On Tue, Jun 20, 2017 at 12:36:37PM -0600, Warner Losh wrote: >>>> Keep the telnet client. It's still heavily used for more things than >>>> connecting to telnetd. >>> >>> e.g. dumb remote power controllers. >>> >>> nc blah 23 doesn't get me very far, am I missing a magic flag? >> >> No, you're missing TELNET option negotiations. > > nc -t well do that for you. (I only know this because I just went > and read the man page for nc as someone mentioned it in this > thread and I wanted to know if infact it supports telnet option > negatiation.) > > But this does NOT mean I agree with removal of telnet/telnetd. > > Isnt this whole discussion kinda pointless if you consider > this well be handle by packaged base? Those who want these > in there systems can have them, and those that think telnet/ > telnetd are a bigger security risk than nc can also remove > them. A belated +1 for removing most of the rtools, which were basically a proof of concept many, many years ago. I agree with keeping telnet, which I use constantly to connect to ports other than 23; I have mixed feelings about telnetd, but I haven=E2=80=99t enabled it in many years. Mike From owner-freebsd-arch@freebsd.org Sun Jun 25 13:09:32 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 5E0FBD913F3 for ; Sun, 25 Jun 2017 13:09:32 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (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 1F0D06E5A6; Sun, 25 Jun 2017 13:09:32 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1dP7I3-000DgJ-9U; Sun, 25 Jun 2017 16:09:23 +0300 Date: Sun, 25 Jun 2017 16:09:23 +0300 From: Slawa Olhovchenkov To: Jeremie Le Hen Cc: freebsd-arch@freebsd.org Subject: Re: rtools were deemed almost unused 15 years ago... Message-ID: <20170625130923.GD18123@zxy.spb.ru> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false 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: Sun, 25 Jun 2017 13:09:32 -0000 On Sat, Jun 24, 2017 at 10:29:22PM +0200, Jeremie Le Hen wrote: > So the first step was to create a port with FreeBSD rcmds, here we > are! But I need some eyes to vet it: > https://reviews.freebsd.org/D11345 1. Create port 2. Port unmantained 3. Port broken 4. Port removed. 5. Lack of functionality. From owner-freebsd-arch@freebsd.org Mon Jun 26 06:22:40 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 EEFE8DA2A10 for ; Mon, 26 Jun 2017 06:22:40 +0000 (UTC) (envelope-from pstef@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CADCA681CC; Mon, 26 Jun 2017 06:22:40 +0000 (UTC) (envelope-from pstef@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1403) id 22BF6ADCC; Mon, 26 Jun 2017 06:22:40 +0000 (UTC) Date: Mon, 26 Jun 2017 08:22:40 +0200 From: "Piotr P. Stefaniak" To: Slawa Olhovchenkov Cc: Jeremie Le Hen , freebsd-arch@freebsd.org Subject: Re: rtools were deemed almost unused 15 years ago... Message-ID: <20170626062240.GB84313@freefall.freebsd.org> References: <20170625130923.GD18123@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20170625130923.GD18123@zxy.spb.ru> User-Agent: Mutt/1.8.2 (2017-04-18) 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: Mon, 26 Jun 2017 06:22:41 -0000 On 2017-06-25 16:09:23, Slawa Olhovchenkov wrote: >On Sat, Jun 24, 2017 at 10:29:22PM +0200, Jeremie Le Hen wrote: > >> So the first step was to create a port with FreeBSD rcmds, here we >> are! But I need some eyes to vet it: >> https://reviews.freebsd.org/D11345 > >1. Create port >2. Port unmantained >3. Port broken >4. Port removed. >5. Lack of functionality. I prefer them to rot in ports than in base. From owner-freebsd-arch@freebsd.org Mon Jun 26 10:27:29 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 1921FDA6780 for ; Mon, 26 Jun 2017 10:27:29 +0000 (UTC) (envelope-from jlehen@gmail.com) Received: from mail-qk0-x22e.google.com (mail-qk0-x22e.google.com [IPv6:2607:f8b0:400d:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C76C67295D for ; Mon, 26 Jun 2017 10:27:28 +0000 (UTC) (envelope-from jlehen@gmail.com) Received: by mail-qk0-x22e.google.com with SMTP id p21so73666600qke.3 for ; Mon, 26 Jun 2017 03:27:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=5SDTmvq9CGuzFCLNQl+Wb5k8VlCtIUGuQC3XEgi6aBY=; b=jSMFyWUrvepbHTv9+/CL2dwl68I3KXwhtYKE7XBFPMxL/kiD6hXzEVPGmpXCBrCDqs c8KOe1FsRSzCCnjZLucF1JTPhE61dnFNVUAIaRRWyHhhb4KQr6GRBFranDmtNf090RKf 7sj10evfzEnLtXYYyDrlSVJ749y77cguU9ikiJwdKmhAj4NL+CKXgkx+d5gJnA0HZRMK qV7IqT8BB65o2BnoTqxvyzzCnsSdj/Pi86bNBrvxC0HZt70hieAENELGNxxf73NU8ccu GwmR8WBQf0FFouAEpYWXyjZN+eMd2FaW45IlHCpFiUErL3jdSPmJ5LKhDctkA9PBI4Ao Y6SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=5SDTmvq9CGuzFCLNQl+Wb5k8VlCtIUGuQC3XEgi6aBY=; b=ENrPWJpnq3OBEmh3Y02sgpVWtFRf2UCivlcYNuPnjLJFCajbeuAVHiHy7/o18Avh6P 3C6OaItwHSqwYn9zXfgElTtQfTACJql2y4/BBotq7nsp/k1z7Bigv+XpFdWcL6HDqrrl l5N50TwK/TFZN4yRDdpFJ4TZMV7DKveUZtikRX2qAweK/FYDMpEyoKAHd+SpfXGHIOrp 5FuV5Sww6ZIGqgZQpqaA/fHp5syOynCUr78TFUR6iB9Oz26ZIRlGLB4ZvKw+8t2FBjWA UU8sfSx2rcxpAPx4apF2YqLOJ5FKnffzMKdDhBt/fzjQkB3peeDVRiXBE+CdGHaOWYk3 v84w== X-Gm-Message-State: AKS2vOwieFwUIgNEOVXZzgFwmNR8AvfL7ubRcCyBlsKGFu7gizClSYwI VbeFV6wW+P+w+zEBqI4PJQYojigzn2Jt X-Received: by 10.55.124.194 with SMTP id x185mr21424278qkc.215.1498472847971; Mon, 26 Jun 2017 03:27:27 -0700 (PDT) MIME-Version: 1.0 Sender: jlehen@gmail.com Received: by 10.12.181.46 with HTTP; Mon, 26 Jun 2017 03:27:27 -0700 (PDT) In-Reply-To: <20170625130923.GD18123@zxy.spb.ru> References: <20170625130923.GD18123@zxy.spb.ru> From: Jeremie Le Hen Date: Mon, 26 Jun 2017 12:27:27 +0200 X-Google-Sender-Auth: 6T8B_Tpn7kVkui7kQncJn4lwbvk Message-ID: Subject: Re: rtools were deemed almost unused 15 years ago... To: Slawa Olhovchenkov Cc: freebsd-arch@freebsd.org Content-Type: text/plain; charset="UTF-8" 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: Mon, 26 Jun 2017 10:27:29 -0000 On Sun, Jun 25, 2017 at 3:09 PM, Slawa Olhovchenkov wrote: > On Sat, Jun 24, 2017 at 10:29:22PM +0200, Jeremie Le Hen wrote: > >> So the first step was to create a port with FreeBSD rcmds, here we >> are! But I need some eyes to vet it: >> https://reviews.freebsd.org/D11345 > > 1. Create port > 2. Port unmantained > 3. Port broken > 4. Port removed. > 5. Lack of functionality. Feel free to step in to help with the maintenance :-). -- Jeremie Le Hen jlh@FreeBSD.org From owner-freebsd-arch@freebsd.org Mon Jun 26 12:43:49 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 D7546DA9E0F for ; Mon, 26 Jun 2017 12:43:49 +0000 (UTC) (envelope-from jwd@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B3780779A0; Mon, 26 Jun 2017 12:43:49 +0000 (UTC) (envelope-from jwd@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 821) id 059B2F138; Mon, 26 Jun 2017 12:43:49 +0000 (UTC) Date: Mon, 26 Jun 2017 12:43:48 +0000 From: John To: Jeremie Le Hen Cc: Slawa Olhovchenkov , freebsd-arch@freebsd.org Subject: Re: rtools were deemed almost unused 15 years ago... Message-ID: <20170626124348.GA11618@FreeBSD.org> References: <20170625130923.GD18123@zxy.spb.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VbJkn9YxBvnuCH5J" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.2 (2017-04-18) 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: Mon, 26 Jun 2017 12:43:49 -0000 --VbJkn9YxBvnuCH5J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable ----- Jeremie Le Hen's Original Message ----- > On Sun, Jun 25, 2017 at 3:09 PM, Slawa Olhovchenkov wrot= e: > > On Sat, Jun 24, 2017 at 10:29:22PM +0200, Jeremie Le Hen wrote: > > > >> So the first step was to create a port with FreeBSD rcmds, here we > >> are! But I need some eyes to vet it: > >> https://reviews.freebsd.org/D11345 > > > > 1. Create port > > 2. Port unmantained > > 3. Port broken > > 4. Port removed. > > 5. Lack of functionality. >=20 > Feel free to step in to help with the maintenance :-). Let's commit this little snippet which is a major win for HA heads with 10 of thousands of file descriptors open... Index: libexec/rshd/rshd.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- libexec/rshd/rshd.c (revision 316672) +++ libexec/rshd/rshd.c (working copy) @@ -191,7 +191,7 @@ struct passwd *pwd; u_short port; fd_set ready, readfrom; - int cc, fd, nfd, pv[2], pid, s; + int cc, nfd, pv[2], pid, s; int one =3D 1; const char *cp, *errorstr; char sig, buf[BUFSIZ]; @@ -496,8 +496,7 @@ #ifdef USE_BLACKLIST blacklist(0, STDIN_FILENO, "success"); #endif - for (fd =3D getdtablesize(); fd > 2; fd--) - (void) close(fd); + closefrom(3); if (setsid() =3D=3D -1) syslog(LOG_ERR, "setsid() failed: %m"); if (setlogin(pwd->pw_name) < 0) Cheers, John > --=20 > Jeremie Le Hen > jlh@FreeBSD.org > _______________________________________________ > freebsd-arch@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" --VbJkn9YxBvnuCH5J Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQF8BAEBCgBmBQJZUQGEXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQwNDBGOTgxNzM0NzQ3OEFBNDYyODNGQzVC NjI0OTlBMTQyNEY3RjgxAAoJELYkmaFCT3+BYkEIAIBroqvSXOfP2s98/1+ZkCJg wgE7KxXP4FuPIahYB+gVUT/icY8PVD9yYHU5K28cf6+l8Jx2jeVBXMMPbhMtzk6R own4/na4RzJ5cxAHMpKzleO4UcaKWo0DWOcetB3CMts3Fy2YqGxc92qcHbTyoEeH DRLI7OYtg0h3spOAQJGBhZ7YcVvay+FIZDIlxx3qXESFCAiyhw4I9ZgrRN6WpHzP qZClJVmSfw3EuREd6o9pFyVyE5XnYUX1ddA1wIViEifh0GxG8RIkGHNI9YNWKdpx D2nd3jtDjdVpGaA/Un+u6ZHWb0pjVRyk3WKWzXCIcr0PqaEdPyE/XNdUT0Ic8iU= =XAH3 -----END PGP SIGNATURE----- --VbJkn9YxBvnuCH5J-- From owner-freebsd-arch@freebsd.org Mon Jun 26 13:35:58 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 B4EE3D876ED for ; Mon, 26 Jun 2017 13:35:58 +0000 (UTC) (envelope-from jlehen@gmail.com) Received: from mail-qt0-x244.google.com (mail-qt0-x244.google.com [IPv6:2607:f8b0:400d:c0d::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5EAAB79B71; Mon, 26 Jun 2017 13:35:58 +0000 (UTC) (envelope-from jlehen@gmail.com) Received: by mail-qt0-x244.google.com with SMTP id w6so205072qtg.1; Mon, 26 Jun 2017 06:35:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=ZLgjwTNYhvun57+HjuyJLRgGrSiuke1SwfuDEhjwtGo=; b=U0f83bjgtnjh/quzq+8qbUr/RKVHlbAsqGq6pm4tim/zJaS/5WwXd/lwACylqErlZK 9EUGv9xZMhKM9p0u949Wi84qlWL3c3+y8MpVTlHUQxDGAmq6otQIbbhGdtIgufoukvMu GgS6/OuN7sYiTrASZ0SsCIL/qfHod3eWBlbTw39KiaGicOqg6kkNjAhi/RxAuthlpZrq XhowLHp8bw+XLJUP12YqDaLpLxWvGoHXh8GtE/ezGQ8uncNvQ5fOaMND7VWNyd0CW1Hi crtWM1o5VUg5goGtI6+J8dpydp/10DQcDCn4k3HvPi8VZOYCQh+5LplH0ICQhMT5RNBD 0Ttg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=ZLgjwTNYhvun57+HjuyJLRgGrSiuke1SwfuDEhjwtGo=; b=g+Yv33A7y+5xr6r9O/kqp+J1ZMoTrkSBmun4ml3uxgVpj9s+u0sW/cIT5fMlncB3eZ IJ/xj6R+ncaLMnEHOwo+Dxj8vmNHunBlyaCujpGOMVvtitPrK35yVHgOdLyKAW1Nhygi r9P1hiGS5XjlSbBuRPeqHWv6f6/62sE53TOGLZLODpFwaY65hQVmrE4ooOhj5TXiYEyk /NTrzUofmgelGkF6M85GgCBNdwxXPrla0v8LqwdLFGpzKgJUfF6tCyltACW/92OnpIzh IItaVQgSooy69US/ZAgU5oDdRa74wqcqEAymerd55bsaTJX73Ro5+K6hg2NJE5g2Yx44 oR5A== X-Gm-Message-State: AKS2vOz9nRvLQyT7IQbSIMOeRlC4XGQr606HamxZoLUJuIeezRl4mQGi sW6mNb1bzSteVZUgb6IUtTA2L+yFuvS0 X-Received: by 10.200.47.176 with SMTP id l45mr307429qta.153.1498484157255; Mon, 26 Jun 2017 06:35:57 -0700 (PDT) MIME-Version: 1.0 Sender: jlehen@gmail.com Received: by 10.12.181.46 with HTTP; Mon, 26 Jun 2017 06:35:56 -0700 (PDT) In-Reply-To: <20170626124348.GA11618@FreeBSD.org> References: <20170625130923.GD18123@zxy.spb.ru> <20170626124348.GA11618@FreeBSD.org> From: Jeremie Le Hen Date: Mon, 26 Jun 2017 15:35:56 +0200 X-Google-Sender-Auth: LfoEhT08GF4VtflXuVfkhOo9P98 Message-ID: Subject: Re: rtools were deemed almost unused 15 years ago... To: John Cc: Slawa Olhovchenkov , freebsd-arch@freebsd.org Content-Type: text/plain; charset="UTF-8" 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: Mon, 26 Jun 2017 13:35:58 -0000 On Mon, Jun 26, 2017 at 2:43 PM, John wrote: > ----- Jeremie Le Hen's Original Message ----- >> On Sun, Jun 25, 2017 at 3:09 PM, Slawa Olhovchenkov wrote: >> > On Sat, Jun 24, 2017 at 10:29:22PM +0200, Jeremie Le Hen wrote: >> > >> >> So the first step was to create a port with FreeBSD rcmds, here we >> >> are! But I need some eyes to vet it: >> >> https://reviews.freebsd.org/D11345 >> > >> > 1. Create port >> > 2. Port unmantained >> > 3. Port broken >> > 4. Port removed. >> > 5. Lack of functionality. >> >> Feel free to step in to help with the maintenance :-). > > Let's commit this little snippet which is a major win for HA heads > with 10 of thousands of file descriptors open... I don't have any context here. If you think it's the right thing to do, then go ahead and I will update the port tarball. > Index: libexec/rshd/rshd.c > =================================================================== > --- libexec/rshd/rshd.c (revision 316672) > +++ libexec/rshd/rshd.c (working copy) > @@ -191,7 +191,7 @@ > struct passwd *pwd; > u_short port; > fd_set ready, readfrom; > - int cc, fd, nfd, pv[2], pid, s; > + int cc, nfd, pv[2], pid, s; > int one = 1; > const char *cp, *errorstr; > char sig, buf[BUFSIZ]; > @@ -496,8 +496,7 @@ > #ifdef USE_BLACKLIST > blacklist(0, STDIN_FILENO, "success"); > #endif > - for (fd = getdtablesize(); fd > 2; fd--) > - (void) close(fd); > + closefrom(3); > if (setsid() == -1) > syslog(LOG_ERR, "setsid() failed: %m"); > if (setlogin(pwd->pw_name) < 0) > > Cheers, > John > >> -- >> Jeremie Le Hen >> jlh@FreeBSD.org >> _______________________________________________ >> freebsd-arch@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-arch >> To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" -- Jeremie Le Hen jlh@FreeBSD.org From owner-freebsd-arch@freebsd.org Mon Jun 26 16:34:31 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 3FEDED8BAB9 for ; Mon, 26 Jun 2017 16:34:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C88E47FA79; Mon, 26 Jun 2017 16:34:30 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wr0-x243.google.com with SMTP id x23so29804415wrb.0; Mon, 26 Jun 2017 09:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=+Kc90a6Yl3UD/dd++ppxFYVGiXfWgLm5pobrkFya09g=; b=EgWxmkWA7z7maqbgxHE8ol6QvXjm1juTb5/hAY4JhWjP1bOKurkJAiGck110wyBor4 J5vpxRpOFMYcqjiHOee9SDLJ3PWY2vbxbcz1RnjiJRv9k7pOTUs2cr8qAspVFbltRowW hm/ExorOUxwDnZyIFE7S1CAWDds7sEoqF5hUrhilss7kWfR94mkuzrJtn68FjocayZrO /zHXOLyNuWDvpn6QmSjYXLtGbxSHyN8F5dbGuiJNM0DJ+1D6AZxDb4lnSsnsSpvJIQU+ ciASFNuCl2+ytZKoUK0B/6uADDZ/Od2/S54prpeXgbYV9VWvwsaREVV0L/UjakJqzurV dEzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=+Kc90a6Yl3UD/dd++ppxFYVGiXfWgLm5pobrkFya09g=; b=pgm0kOfdAD6oZK/sJc5EVtibObhPogu1mv0C6KVmVC6Kx4b0QolODQmJhLvkXFGDDz dqFT3mlmorFItj+V37dcCAwJD1tcbR6u1CKaVbavwnymJBjxEN+Op6gR0xkFO4fL3Ui4 trB2DMsAqro92D7JD5qgaSG4xpezBtgeCIMOje44qxeVuwTk6yYNBYpLGBcCb5Xql8Pu 5oPxgFtj1kN320wcFGkgJ64uMMZXV5uY3c8cdTHdyIealzrs2w8KI+jyLB1ZLbD7byf9 ZyaoArOd3zzIHLOcw0tm+T7zOWHGJm43Lpo6EdJSeKJBH/gPJYXC8fZNAlIw+4UhH1xk IiOQ== X-Gm-Message-State: AKS2vOyT6bJL+R+82irxUSFKS+HenPzlBcX1Ek7kVhAlJKVdzk2wpGGx 8l25Vc0iZZ7cMShthGBSWYgoKBN+8P5o X-Received: by 10.223.171.25 with SMTP id q25mr15470283wrc.89.1498494868989; Mon, 26 Jun 2017 09:34:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.183.138 with HTTP; Mon, 26 Jun 2017 09:34:28 -0700 (PDT) In-Reply-To: <20170626124348.GA11618@FreeBSD.org> References: <20170625130923.GD18123@zxy.spb.ru> <20170626124348.GA11618@FreeBSD.org> From: Adrian Chadd Date: Mon, 26 Jun 2017 09:34:28 -0700 Message-ID: Subject: Re: rtools were deemed almost unused 15 years ago... To: John Cc: Jeremie Le Hen , "freebsd-arch@freebsd.org" , Slawa Olhovchenkov Content-Type: text/plain; charset="UTF-8" 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: Mon, 26 Jun 2017 16:34:31 -0000 Oh holy crap yes please. Do you have commit privs to src? If not, Reviewed by: adrian -adrian On 26 June 2017 at 05:43, John wrote: > ----- Jeremie Le Hen's Original Message ----- >> On Sun, Jun 25, 2017 at 3:09 PM, Slawa Olhovchenkov wrote: >> > On Sat, Jun 24, 2017 at 10:29:22PM +0200, Jeremie Le Hen wrote: >> > >> >> So the first step was to create a port with FreeBSD rcmds, here we >> >> are! But I need some eyes to vet it: >> >> https://reviews.freebsd.org/D11345 >> > >> > 1. Create port >> > 2. Port unmantained >> > 3. Port broken >> > 4. Port removed. >> > 5. Lack of functionality. >> >> Feel free to step in to help with the maintenance :-). > > Let's commit this little snippet which is a major win for HA heads > with 10 of thousands of file descriptors open... > > Index: libexec/rshd/rshd.c > =================================================================== > --- libexec/rshd/rshd.c (revision 316672) > +++ libexec/rshd/rshd.c (working copy) > @@ -191,7 +191,7 @@ > struct passwd *pwd; > u_short port; > fd_set ready, readfrom; > - int cc, fd, nfd, pv[2], pid, s; > + int cc, nfd, pv[2], pid, s; > int one = 1; > const char *cp, *errorstr; > char sig, buf[BUFSIZ]; > @@ -496,8 +496,7 @@ > #ifdef USE_BLACKLIST > blacklist(0, STDIN_FILENO, "success"); > #endif > - for (fd = getdtablesize(); fd > 2; fd--) > - (void) close(fd); > + closefrom(3); > if (setsid() == -1) > syslog(LOG_ERR, "setsid() failed: %m"); > if (setlogin(pwd->pw_name) < 0) > > Cheers, > John > >> -- >> Jeremie Le Hen >> jlh@FreeBSD.org >> _______________________________________________ >> freebsd-arch@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-arch >> To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" From owner-freebsd-arch@freebsd.org Tue Jun 27 13:29:24 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 01A34DAAA00 for ; Tue, 27 Jun 2017 13:29:24 +0000 (UTC) (envelope-from jwd@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B59566630D; Tue, 27 Jun 2017 13:29:23 +0000 (UTC) (envelope-from jwd@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 821) id 130C64F88; Tue, 27 Jun 2017 13:29:23 +0000 (UTC) Date: Tue, 27 Jun 2017 13:29:23 +0000 From: John To: Adrian Chadd Cc: Jeremie Le Hen , "freebsd-arch@freebsd.org" , Slawa Olhovchenkov Subject: Re: rtools were deemed almost unused 15 years ago... Message-ID: <20170627132923.GA95716@FreeBSD.org> References: <20170625130923.GD18123@zxy.spb.ru> <20170626124348.GA11618@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.2 (2017-04-18) 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, 27 Jun 2017 13:29:24 -0000 --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable ----- Adrian Chadd's Original Message ----- > Oh holy crap yes please. Do you have commit privs to src? If not, > Reviewed by: adrian Done - r320406 Prefer to maintain them right where they are... -John > -adrian >=20 >=20 > On 26 June 2017 at 05:43, John wrote: > > ----- Jeremie Le Hen's Original Message ----- > >> On Sun, Jun 25, 2017 at 3:09 PM, Slawa Olhovchenkov w= rote: > >> > On Sat, Jun 24, 2017 at 10:29:22PM +0200, Jeremie Le Hen wrote: > >> > > >> >> So the first step was to create a port with FreeBSD rcmds, here we > >> >> are! But I need some eyes to vet it: > >> >> https://reviews.freebsd.org/D11345 > >> > > >> > 1. Create port > >> > 2. Port unmantained > >> > 3. Port broken > >> > 4. Port removed. > >> > 5. Lack of functionality. > >> > >> Feel free to step in to help with the maintenance :-). > > > > Let's commit this little snippet which is a major win for HA heads > > with 10 of thousands of file descriptors open... > > > > Index: libexec/rshd/rshd.c > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > --- libexec/rshd/rshd.c (revision 316672) > > +++ libexec/rshd/rshd.c (working copy) > > @@ -191,7 +191,7 @@ > > struct passwd *pwd; > > u_short port; > > fd_set ready, readfrom; > > - int cc, fd, nfd, pv[2], pid, s; > > + int cc, nfd, pv[2], pid, s; > > int one =3D 1; > > const char *cp, *errorstr; > > char sig, buf[BUFSIZ]; > > @@ -496,8 +496,7 @@ > > #ifdef USE_BLACKLIST > > blacklist(0, STDIN_FILENO, "success"); > > #endif > > - for (fd =3D getdtablesize(); fd > 2; fd--) > > - (void) close(fd); > > + closefrom(3); > > if (setsid() =3D=3D -1) > > syslog(LOG_ERR, "setsid() failed: %m"); > > if (setlogin(pwd->pw_name) < 0) > > > > Cheers, > > John > > > >> -- > >> Jeremie Le Hen > >> jlh@FreeBSD.org > >> _______________________________________________ > >> freebsd-arch@freebsd.org mailing list > >> https://lists.freebsd.org/mailman/listinfo/freebsd-arch > >> To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQF8BAEBCgBmBQJZUl2xXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQwNDBGOTgxNzM0NzQ3OEFBNDYyODNGQzVC NjI0OTlBMTQyNEY3RjgxAAoJELYkmaFCT3+B1fsH/RjnbWCbI1sfEIDdv2e/EdDV GlhoX0+XDI9VQSj4Us+tcKDaTxnvHrOAdOtycTRjJJbMl+1r8Y0E0dZAuFpR1Eqe 8ZATRlWlZ7RvZKkBYeKGUlRNuNRZICo7R0A4/9CBVZCFoXC2oPjzq8sWOIBqVLho gPDjPMDAHTPSboAA2GSlSZn9Uv9DZkqxMC5kjktx3EJon5RLPMGuCZxsM2NUP2Bc RGagMaZlXoKb3qg2B1IQjoRnvY0RMxS3SFJR/0cDDppFcKGdLgZhlFOkPq6FOs7r eJFdc6/oLdjbNm9xC7KOvHNT3FKbsg2qyI7woyP9RnBuovEiKXcvdi8pW42zzXc= =1FFI -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G-- From owner-freebsd-arch@freebsd.org Wed Jun 28 01:32:02 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 BC67CD94E6A for ; Wed, 28 Jun 2017 01:32:02 +0000 (UTC) (envelope-from maligin@bitrix272.timeweb.ru) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id AAA2484E35 for ; Wed, 28 Jun 2017 01:32:02 +0000 (UTC) (envelope-from maligin@bitrix272.timeweb.ru) Received: by mailman.ysv.freebsd.org (Postfix) id A9A8FD94E69; Wed, 28 Jun 2017 01:32:02 +0000 (UTC) Delivered-To: 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 A7685D94E68 for ; Wed, 28 Jun 2017 01:32:02 +0000 (UTC) (envelope-from maligin@bitrix272.timeweb.ru) Received: from bitrix272.timeweb.ru (bitrix272.timeweb.ru [IPv6:2a03:6f00:1::b039:d226]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 706B284E33 for ; Wed, 28 Jun 2017 01:32:02 +0000 (UTC) (envelope-from maligin@bitrix272.timeweb.ru) Delivery-date: Wed, 28 Jun 2017 04:32:02 +0300 To: arch@freebsd.org Subject: Notification status of your delivery (UPS 09307273) Date: Wed, 28 Jun 2017 04:31:57 +0300 Message-Id: From: maligin@bitrix272.timeweb.ru Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Wed, 28 Jun 2017 01:32:02 -0000 Dear Customer, Your parcel was successfully delivered June 25 to UPS Station, but our courier cound not contact you. Please review delivery label in attachment! Sincerely, , UPS Senior Delivery Manager. From owner-freebsd-arch@freebsd.org Thu Jun 29 06:22:21 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 0467AD941C8 for ; Thu, 29 Jun 2017 06:22:21 +0000 (UTC) (envelope-from nasirt@mocha3019.mochahost.com) Received: from mocha3019.mochahost.com (mocha3019.mochahost.com [198.38.82.140]) (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 D9EE777C24 for ; Thu, 29 Jun 2017 06:22:20 +0000 (UTC) (envelope-from nasirt@mocha3019.mochahost.com) Received: from nasirt by mocha3019.mochahost.com with local (Exim 4.86_1) (envelope-from ) id 1dQSqJ-002Por-Jo for freebsd-arch@freebsd.org; Thu, 29 Jun 2017 01:22:19 -0500 To: freebsd-arch@freebsd.org Subject: Notification status of your delivery (UPS 06556850) Date: Thu, 29 Jun 2017 01:22:19 -0500 Message-Id: From: nasirt@mocha3019.mochahost.com X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - mocha3019.mochahost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [1351 1348] / [47 12] X-AntiAbuse: Sender Address Domain - mocha3019.mochahost.com X-Get-Message-Sender-Via: mocha3019.mochahost.com: authenticated_id: nasirt/primary_hostname/system user X-Authenticated-Sender: mocha3019.mochahost.com: nasirt Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Thu, 29 Jun 2017 06:22:21 -0000 Dear Customer, Your item has arrived at the UPS Post Office at June 28, but the courier was unable to deliver parcel to you. Download postal receipt attached to e-mail! Thank you for your time, , UPS Chief Support Manager. From owner-freebsd-arch@freebsd.org Sat Jul 1 10:08:34 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 D2CA0DA9793 for ; Sat, 1 Jul 2017 10:08:34 +0000 (UTC) (envelope-from jlehen@gmail.com) Received: from mail-qt0-x229.google.com (mail-qt0-x229.google.com [IPv6:2607:f8b0:400d:c0d::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8D6C680E39 for ; Sat, 1 Jul 2017 10:08:34 +0000 (UTC) (envelope-from jlehen@gmail.com) Received: by mail-qt0-x229.google.com with SMTP id b40so7134203qtb.2 for ; Sat, 01 Jul 2017 03:08:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to; bh=GUITwZ9x4nWQ9UwNKrsk9UD6c2BS50RDTtpj8cv5gf0=; b=VxQrE4W8ibgn4owLHyHYhh47m/sUIq/b9RwrnwNfJPUzjB7avXQmxNxl+/5DOonhSb ZhNDF+PCalAPnpo0gzbcwSnSEHZDZKqqFAF21fDnEaApL+9OlOlIIlhIbIoDtLf/NrxY cW0O4o5FrZ2FaG3nGkk0sGNDNsnuOsl/1Tn4DO0+tqIi0qltD2oNzgdSBGYFa/zBtOz0 5vxaC+g8rFSQPGojkqbVGIAskPdjdUcAdu2fu4z/xOTu/0yGQMoZkyzmh/oJa3KxyYxH rFN495Ysh29HupopaJBy9qrslO8+Ry0C7pc09moQ0RLwJf8FzzHBLYASHBmTYV7V2fTa CMOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=GUITwZ9x4nWQ9UwNKrsk9UD6c2BS50RDTtpj8cv5gf0=; b=DyLvVexkFZmimGXPw6OtfEEhZXMEjM/KXlm9DHcB+hChzOBatOTclszFU0wBFclaWl t+/33HMXOVgBQx19Dj8l/GLIWvdoOk9yZNgiGJDM8Esih7ebbMKTtvmGiS/4UqvkJQ0J Kh2/nt3T8ExJYQQTjg7GYSuP+1LuiEwjGFq5uEKgiTSSvlK0arEg4QK7JpbFHGqPwQ8h f+MWJVzDqKdPHR9+rQJJzbpNzOzDkbFRzgI7syxMPFGP29i0k/nprzVivujmxfRHq97f pfe/doc5Fx31FPZ2QGeG+KYF7d6S0bpSTVVs07PTuEFkfbzNoU6328Phi3udmaWGvsqz gh2Q== X-Gm-Message-State: AKS2vOzRqUhj4MW/IX/MP+wYubY/tqHecR1BD0yPRYB8q1+fX3/5XTNK dEqgon1nLEo0e9Q551L5Zexxs8HWIDPC X-Received: by 10.237.53.244 with SMTP id d49mr15042917qte.46.1498903713285; Sat, 01 Jul 2017 03:08:33 -0700 (PDT) MIME-Version: 1.0 Sender: jlehen@gmail.com Received: by 10.12.181.46 with HTTP; Sat, 1 Jul 2017 03:08:32 -0700 (PDT) In-Reply-To: References: From: Jeremie Le Hen Date: Sat, 1 Jul 2017 12:08:32 +0200 X-Google-Sender-Auth: eVDAPupc0TwK1TGLTxVoN4lMtFM Message-ID: Subject: Re: rtools were deemed almost unused 15 years ago... To: freebsd-arch@freebsd.org Content-Type: text/plain; charset="UTF-8" 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: Sat, 01 Jul 2017 10:08:34 -0000 On Sat, Jun 24, 2017 at 10:29 PM, Jeremie Le Hen wrote: > So the first step was to create a port with FreeBSD rcmds, here we > are! But I need some eyes to vet it: > https://reviews.freebsd.org/D11345 The port has been submitted and RCMDS are disabled by default from the base system. See you in a month for the removal! -- Jeremie > > Thanks. > -- Jeremie > > On Tue, Jun 20, 2017 at 12:25 PM, 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 >> -- >> Jeremie Le Hen >> jlh@FreeBSD.org > > > > -- > Jeremie Le Hen > jlh@FreeBSD.org -- Jeremie Le Hen jlh@FreeBSD.org