[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220922083610.235936-1-xu.panda@zte.com.cn>
Date: Thu, 22 Sep 2022 08:36:11 +0000
From: cgel.zte@...il.com
To: brendan.higgins@...ux.dev
Cc: davidgow@...gle.com, paul.walmsley@...ive.com, palmer@...belt.com,
aou@...s.berkeley.edu, skhan@...uxfoundation.org,
dlatypov@...gle.com, linux-kselftest@...r.kernel.org,
kunit-dev@...glegroups.com, linux-riscv@...ts.infradead.org,
linux-kernel@...r.kernel.org, Xu Panda <xu.panda@....com.cn>,
Zeal Robot <zealci@....com.cn>
Subject: [PATCH linux-next] kunit: tool: use absolute path for wget
From: Xu Panda <xu.panda@....com.cn>
Not using absolute path when invoking wget can lead to serious
security issues.
Reported-by: Zeal Robot <zealci@....com.cn>
Signed-off-by: Xu Panda <xu.panda@....com.cn>
---
tools/testing/kunit/qemu_configs/riscv.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/kunit/qemu_configs/riscv.py b/tools/testing/kunit/qemu_configs/riscv.py
index 6207be146d26..c3dcd654ca15 100644
--- a/tools/testing/kunit/qemu_configs/riscv.py
+++ b/tools/testing/kunit/qemu_configs/riscv.py
@@ -11,7 +11,7 @@ if not os.path.isfile(OPENSBI_FILE):
'Would you like me to download it for you from:\n' + GITHUB_OPENSBI_URL + ' ?\n')
response = input('yes/[no]: ')
if response.strip() == 'yes':
- os.system('wget ' + GITHUB_OPENSBI_URL)
+ os.system('/usr/bin/wget ' + GITHUB_OPENSBI_URL)
else:
sys.exit()
--
2.15.2
Powered by blists - more mailing lists