From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Fri, 7 Aug 2015 12:55:24 +0200 From: Clemens Gruber Message-ID: <20150807105524.GA11298@pqgruber.com> References: <1437170091-7429-1-git-send-email-clemens.gruber@pqgruber.com> <20150807101323.GK18141@pengutronix.de> <20150807104548.GA24388@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20150807104548.GA24388@pengutronix.de> Subject: Re: [ptxdist] [PATCH] openssh: improve rc.once.d script and harden sshd_config List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Michael Olbrich SGkgTWljaGFlbCwKCk9uIEZyaSwgQXVnIDA3LCAyMDE1IGF0IDEyOjQ1OjQ4UE0gKzAyMDAsIE1p Y2hhZWwgT2xicmljaCB3cm90ZToKPiBGb3Jnb3QgdGhlIGF0dGFjaG1lbnQuLi4KPiAKPiBNaWNo YWVsCj4gCj4gLS0gCj4gUGVuZ3V0cm9uaXggZS5LLiAgICAgICAgICAgICAgICAgICAgICAgICAg IHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKPiBJbmR1c3RyaWFsIExpbnV4IFNvbHV0 aW9ucyAgICAgICAgICAgICAgICAgfCBodHRwOi8vd3d3LnBlbmd1dHJvbml4LmRlLyAgfAo+IFBl aW5lciBTdHIuIDYtOCwgMzExMzcgSGlsZGVzaGVpbSwgR2VybWFueSB8IFBob25lOiArNDktNTEy MS0yMDY5MTctMCAgICB8Cj4gQW10c2dlcmljaHQgSGlsZGVzaGVpbSwgSFJBIDI2ODYgICAgICAg ICAgIHwgRmF4OiAgICs0OS01MTIxLTIwNjkxNy01NTU1IHwKCj4gIyEvYmluL3NoCj4gCj4gUEFU SD0vc2JpbjovYmluOi91c3Ivc2Jpbjov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