diff options
author | Vegard Nossum <[email protected]> | 2024-01-10 18:47:58 +0100 |
---|---|---|
committer | Jonathan Corbet <[email protected]> | 2024-01-11 09:21:01 -0700 |
commit | c48a7c44a1d02516309015b6134c9bb982e17008 (patch) | |
tree | c0900d3847622612f2b913f0071b1b78bb7ec928 /arch/mips/include/asm/pgtable-bits.h | |
parent | 1f4cac0f7465830a17a266983acbd60a2ce7ee6f (diff) |
docs: kernel_feat.py: fix potential command injection
The kernel-feat 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.
This is analogous to commit 3231dd586277 ("docs: kernel_abi.py: fix
command injection") where we did exactly the same thing for
kernel_abi.py, somehow I completely missed this one.
Link: https://fosstodon.org/@jani/111676532203641247
Reported-by: Jani Nikula <[email protected]>
Signed-off-by: Vegard Nossum <[email protected]>
Cc: [email protected]
Signed-off-by: Jonathan Corbet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/mips/include/asm/pgtable-bits.h')
0 files changed, 0 insertions, 0 deletions