From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 03 Sep 2021 16:02:06 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mM9le-0000o5-28 for lore@lore.pengutronix.de; Fri, 03 Sep 2021 16:02:06 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mM9ld-0006Wq-R1; Fri, 03 Sep 2021 16:02:05 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mM9lR-0006Wb-8h; Fri, 03 Sep 2021 16:01:53 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mM9lQ-0008QF-Op; Fri, 03 Sep 2021 16:01:52 +0200 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mM9lQ-00GwkG-Ly; Fri, 03 Sep 2021 16:01:52 +0200 Date: Fri, 3 Sep 2021 16:01:52 +0200 From: Michael Olbrich To: Roland Hieber , ptxdist@pengutronix.de Message-ID: <20210903140152.GF4027748@pengutronix.de> Mail-Followup-To: Roland Hieber , ptxdist@pengutronix.de References: <20210810100000.26602-1-rhi@pengutronix.de> <20210810100000.26602-4-rhi@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210810100000.26602-4-rhi@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [ptxdist] [PATCH v2 4/4] ptxd_lib_code_signing: enforce cleaning up on init X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list 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 Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false T24gVHVlLCBBdWcgMTAsIDIwMjEgYXQgMTI6MDA6MDBQTSArMDIwMCwgUm9sYW5kIEhpZWJlciB3 cm90ZToKPiBTaW1pbGFybHkgdG8gY3NfaW5pdF9zb2Z0aHNtLCBpbnRyb2R1Y2UgY3NfaW5pdCBm b3Igbm9uLVNvZnRIU00gdXNlCj4gY2FzZXMuIEluIGJvdGggY2FzZXMsIGNsZWFuIHVwIGFueSBs ZWZ0LW92ZXIgZmlsZXMgZnJvbSBwcmV2aW91cwo+IGluc3RhbGxhdGlvbnMgdG8gZW5zdXJlIGEg Y2xlYW4gc3RhdGUsIGFuZCBlbmZvcmNlIHRoZWlyIHVzZSBmb3IKPiBleGlzdGluZyBwcm92aWRl cnMuCj4gCj4gUmVwb3J0ZWQtYnk6IEJhc3RpYW4gS3JhdXNlIDxic3RAcGVuZ3V0cm9uaXguZGU+ Cj4gU2lnbmVkLW9mZi1ieTogUm9sYW5kIEhpZWJlciA8cmhpQHBlbmd1dHJvbml4LmRlPgo+IC0t LQo+IFBBVENIIHYyOiBuZXcgaW4gdjIsIHNwbGl0IG9mZiBmcm9tIHByZXZpb3VzIHBhdGNoCj4g IC0gZW5mb3JjZSBjYWxsaW5nIGNzX2luaXQqIGF0IHN0YXJ0IG9mIHRoZSBwcm92aWRlciAoZmVl ZGJhY2sgZnJvbQo+ICAgIEJhc3RpYW4gS3JhdXNlKQo+ICAtIHNsaW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LiAyMSAg ICAgICAgICAgICAgICAgICAgICAgfCBodHRwOi8vd3d3LnBlbmd1dHJvbml4LmRlLyAgfAozMTEz NyBIaWxkZXNoZWltLCBHZXJtYW55ICAgICAgICAgICAgICAgICAgfCBQaG9uZTogKzQ5LTUxMjEt MjA2OTE3LTAgICAgfApBbXRzZ2VyaWNodCBIaWxkZXNoZWltLCBIUkEgMjY4NiAgICAgICAgICAg fCBGYXg6ICAgKzQ5LTUxMjEtMjA2OTE3LTU1NTUgfAoKX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBtYWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5n dXRyb25peC5kZQpUbyB1bnN1YnNjcmliZSwgc2VuZCBhIG1haWwgd2l0aCBzdWJqZWN0ICJ1bnN1 YnNjcmliZSIgdG8gcHR4ZGlzdC1yZXF1ZXN0QHBlbmd1dHJvbml4LmRlCg==