linux-stable/Documentation/riscv
Vegard Nossum e961f8c696 docs: kernel_feat.py: fix potential command injection
[ Upstream commit c48a7c44a1 ]

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 3231dd5862 ("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 <jani.nikula@intel.com>
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Cc: stable@vger.kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20240110174758.3680506-1-vegard.nossum@oracle.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-31 16:18:46 -08:00
..
acpi.rst RISC-V: Document the ISA string parsing rules for ACPI 2023-07-06 10:25:17 -07:00
boot-image-header.rst Documentation: riscv: Update boot image header since EFI stub is supported 2023-08-18 11:04:05 -06:00
boot.rst Documentation: riscv: Add early boot document 2023-08-18 11:04:05 -06:00
features.rst docs: kernel_feat.py: fix potential command injection 2024-01-31 16:18:46 -08:00
hwprobe.rst Merge patch series "RISC-V: Probe for misaligned access speed" 2023-09-08 11:24:12 -07:00
index.rst Documentation: riscv: Add early boot document 2023-08-18 11:04:05 -06:00
patch-acceptance.rst Documentation: RISC-V: patch-acceptance: mention patchwork's role 2023-06-14 07:44:11 -07:00
uabi.rst Documentation: riscv: fix insufficient list item indent 2023-02-14 16:00:02 -08:00
vector.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
vm-layout.rst RISC-V: mm: Document mmap changes 2023-08-23 14:54:15 -07:00