aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorVegard Nossum <[email protected]>2024-01-01 00:59:59 +0100
committerJonathan Corbet <[email protected]>2024-01-03 13:44:11 -0700
commit3231dd5862779c2e15633c96133a53205ad660ce (patch)
treeb5ce97e6795806590224de86ff910418f2834e96 /tools/perf/scripts/python/export-to-postgresql.py
parent5889d6ede53bc17252f79c142387e007224aa554 (diff)
docs: kernel_abi.py: fix command injection
The kernel-abi directive passes its argument straight to the shell. This is unfortunate and unnecessary. Let's always use paths relative to $srctree/Documentation/ and use subprocess.check_call() instead of subprocess.Popen(shell=True). This also makes the code shorter. Link: https://fosstodon.org/@jani/111676532203641247 Reported-by: Jani Nikula <[email protected]> Cc: [email protected] Signed-off-by: Vegard Nossum <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions