From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1cmH4d-0002lG-4E for ptxdist@pengutronix.de; Fri, 10 Mar 2017 10:42:59 +0100 Received: from mol by pty.hi.pengutronix.de with local (Exim 4.84_2) (envelope-from ) id 1cmH4c-0005mc-Tp for ptxdist@pengutronix.de; Fri, 10 Mar 2017 10:42:58 +0100 Date: Fri, 10 Mar 2017 10:42:58 +0100 From: Michael Olbrich Message-ID: <20170310094258.nlqdhtukqr4bcopl@pengutronix.de> References: <20170308112305.12046-1-mkl@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170308112305.12046-1-mkl@pengutronix.de> Subject: Re: [ptxdist] [PATCH] scripts/lib/ptxd_make: fix image root permission, don't leak user's umask 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 T24gV2VkLCBNYXIgMDgsIDIwMTcgYXQgMTI6MjM6MDVQTSArMDEwMCwgTWFyYyBLbGVpbmUtQnVk ZGUgd3JvdGU6Cj4gU2lnbmVkLW9mZi1ieTogTWFyYyBLbGVpbmUtQnVkZGUgPG1rbEBwZW5ndXRy b25peC5kZT4KClRoYW5rcywgYXBwbGllZCwKCk1pY2hhZWwKCj4gLS0tCj4gIHNjcmlwdHMvbGli L3B0eGRfbWFrZV9pbWFnZV9nZW5pbWFnZS5zaCAgICAgICAgIHwgMiArLQo+ICBzY3JpcHRzL2xp Yi9wdHhkX21ha2VfaW1hZ2VfcHJlcGFyZV93b3JrX2Rpci5zaCB8IDIgKy0KPiAgc2NyaXB0cy9s aWIvc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