mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH linux-next] scripts/extract_xc3028: use absolute path for which
@ 2022-09-22 10:26 cgel.zte
  2022-09-22 11:05 ` Conor Dooley
  0 siblings, 1 reply; 2+ messages in thread
From: cgel.zte @ 2022-09-22 10:26 UTC (permalink / raw)
  To: linux-kernel; +Cc: Xu Panda, Zeal Robot

From: Xu Panda <xu.panda@zte.com.cn>

Not using absolute path when invoking which can lead to serious security
issues.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Xu Panda <xu.panda@zte.com.cn>
---
 scripts/extract_xc3028.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/extract_xc3028.pl b/scripts/extract_xc3028.pl
index e1c9af25a595..c9ddcba07550 100755
--- a/scripts/extract_xc3028.pl
+++ b/scripts/extract_xc3028.pl
@@ -29,7 +29,7 @@ sub verify ($$)
        my ($filename, $hash) = @_;
        my ($testhash);

-       if (system("which md5sum > /dev/null 2>&1")) {
+       if (system("/usr/bin/which md5sum > /dev/null 2>&1")) {
                die "This firmware requires the md5sum command - see http://www.gnu.org/software/coreutils/\n";
        }

-- 
2.15.2

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-22 11:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-22 10:26 [PATCH linux-next] scripts/extract_xc3028: use absolute path for which cgel.zte
2022-09-22 11:05 ` Conor Dooley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®