From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Bastian Stender Date: Fri, 5 Jan 2018 18:37:19 +0100 Message-Id: <20180105173719.3005-2-bst@pengutronix.de> In-Reply-To: <20180105173719.3005-1-bst@pengutronix.de> References: <20180105173719.3005-1-bst@pengutronix.de> Subject: [ptxdist] [PATCH 2/2] python3: prevent host path leakage List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Bastian Stender SWYgaG9zdCBhbmQgdGFyZ2V0IGFyY2hpdGVjdHVyZSBtYXRjaCBQeUJ1aWxkRXh0LmNvbXBpbGVy LmxpYnJhcnlfZGlycwphbmQgUHlCdWlsZEV4dC5jb21waWxlci5pbmNsdWRlX2RpcnMgY29udGFp biBob3N0IHBhdGhzIChlLmcuCi91c3IvbGliL2kzODYtbGludXgtZ251LCAvdXNyL2luY2x1ZGUv aTM4Ni1saW51eC1nbnUpIGxlYWRpbmcgdG8gYnVpbGQKZmFpbHVyZXMgZm9yIHNvbWUgZXh0ZW5z aW9ucyAoYXQgbGVhc3QgX3NzbCBhbmQgX3NvY2tldCkuCgpTaWduZWQtb2ZmLWJ5OiBCYXN0aWFu IFN0ZW5kZXIgPGJzdEBwZW5ndXRyb25peC5kZT4KLS0tCiAuLi4vMDAwMi1weXRob24zLXByZXZl bnQtaG9zdC1wYXRoLWxlYWthZ2UucGF0Y2ggICB8IDQwICsrKysrKysrKysrKysrKysrKysrKysK IHBhdGNoZXMvUHl0aG9uLTMuNS40L3NlcmllcyAgICAgICAgICAgICAgICAgICAgICAgIHwgIDMg Ky0KIDIgZmlsZXMgY2hhbmdlZCwgNDIgaW5zZXJ0aW9ucygrKSwgMSBkZWxldGlvbigtKQogY3Jl YXRlIG1vZGUgMTA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