From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 10 Aug 2021 12:00:25 +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 1mDOYb-0002yp-Q4 for lore@lore.pengutronix.de; Tue, 10 Aug 2021 12:00:25 +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 1mDOYb-0000qD-88; Tue, 10 Aug 2021 12:00:25 +0200 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mDOYK-0000PS-AN; Tue, 10 Aug 2021 12:00:08 +0200 Received: from rhi by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mDOYK-0006w3-27; Tue, 10 Aug 2021 12:00:08 +0200 From: Roland Hieber To: ptxdist@pengutronix.de Date: Tue, 10 Aug 2021 12:00:00 +0200 Message-Id: <20210810100000.26602-4-rhi@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210810100000.26602-1-rhi@pengutronix.de> References: <20210810100000.26602-1-rhi@pengutronix.de> MIME-Version: 1.0 Mail-Followup-To: Roland Hieber , ptxdist@pengutronix.de Subject: [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 Cc: Roland Hieber , Bastian Krause 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 U2ltaWxhcmx5IHRvIGNzX2luaXRfc29mdGhzbSwgaW50cm9kdWNlIGNzX2luaXQgZm9yIG5vbi1T b2Z0SFNNIHVzZQpjYXNlcy4gSW4gYm90aCBjYXNlcywgY2xlYW4gdXAgYW55IGxlZnQtb3ZlciBm aWxlcyBmcm9tIHByZXZpb3VzCmluc3RhbGxhdGlvbnMgdG8gZW5zdXJlIGEgY2xlYW4gc3RhdGUs IGFuZCBlbmZvcmNlIHRoZWlyIHVzZSBmb3IKZXhpc3RpbmcgcHJvdmlkZXJzLgoKUmVwb3J0ZWQt Ynk6IEJhc3RpYW4gS3JhdXNlIDxic3RAcGVuZ3V0cm9uaXguZGU+ClNpZ25lZC1vZmYtYnk6IFJv bGFuZCBIaWViZXIgPHJoaUBwZW5ndXRyb25peC5kZT4KLS0tClBBVENIIHYyOiBuZXcgaW4gdjIs IHNwbGl0IG9mZiBmcm9tIHByZXZpb3VzIHBhdGNoCiAtIGVuZm9yY2UgY2FsbGluZyBjc19pbml0 KiBhdCBzdGFydCBvZiB0aGUgcHJvdmlkZXIgKGZlZWRiYWNrIGZyb20KICAgQmFzdGlhbiBLcmF1 c2UpCiAtIHNsaWdodCBmaXhlcyB0byB0aGUgZG9jcwotLS0KIGRvYy9yZWZfY29kZV9zaWduaW5n X2hlbHBlcnMucnN0ICAgICAgICAgICAgICB8IDMxICsrKysrKysrKysrKysrKysrKysKIC4uLi9w dHhkaXN0LXNldC1rZXlzLWhzbS5zaCAgICAgICAgICAgICAgICAgICB8ICAxICsKIHNjcmlwdHMv bGliL3B0eGRfbGliX2NvZGVfc2lnbmluZy5zaCAgICAgICAgICB8IDI4ICsrKysrKysrKysrKysr KysrCiAzIGZpbGVzIGNoYW5nZWQsIDYwIGluc2VydGlvbnMoKykKCmRpZmYgLS1naXQgYS9kb2Mv cmVmX2NvZGVfc2lnbmluZ19oZWxwZXJzLnJzdCBiL2RvYy9yZWZfY29k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