From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Bastian Stender Date: Fri, 5 Jan 2018 18:37:18 +0100 Message-Id: <20180105173719.3005-1-bst@pengutronix.de> Subject: [ptxdist] [PATCH 1/2] python2: 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 IFN0ZW5kZXIgPGJzdEBwZW5ndXRyb25peC5kZT4KLS0tCiAuLi4vMDAwOS1weXRob24yLXByZXZl bnQtaG9zdC1wYXRoLWxlYWthZ2UucGF0Y2ggICB8IDM5ICsrKysrKysrKysrKysrKysrKysrKysK IHBhdGNoZXMvUHl0aG9uLTIuNy4xMy9zZXJpZXMgICAgICAgICAgICAgICAgICAgICAgIHwgIDMg Ky0KIDIgZmlsZXMgY2hhbmdlZCwgNDEgaW5zZXJ0aW9ucygrKSwgMSBkZWxldGlvbigtKQogY3Jl YXRlIG1vZGUgMTAwNjQ0IHBhdGNoZXMvUHl0aG9uLTIuNy4xMy8wMDA5LXB5dGhvbjIt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