linux-next/Documentation/arch/powerpc
Vegard Nossum c48a7c44a1 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 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
2024-01-11 09:21:01 -07:00
..
associativity.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
booting.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
bootwrapper.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
cpu_families.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
cpu_features.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
cxl.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
cxlflash.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
dawr-power9.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
dexcr.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
dscr.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
eeh-pci-error-recovery.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
elf_hwcaps.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
elfnote.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
features.rst docs: kernel_feat.py: fix potential command injection 2024-01-11 09:21:01 -07:00
firmware-assisted-dump.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
hvcs.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
imc.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
index.rst powerpc updates for 6.7 2023-11-03 10:07:39 -10:00
isa-versions.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
kasan.txt docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
kaslr-booke32.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
kvm-nested.rst powerpc updates for 6.7 2023-11-03 10:07:39 -10:00
mpc52xx.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
papr_hcalls.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
pci_iov_resource_on_powernv.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
pmu-ebb.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
ptrace.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
qe_firmware.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
syscall64-abi.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
transactional_memory.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
ultravisor.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
vas-api.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
vcpudispatch_stats.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00
vmemmap_dedup.rst docs: move powerpc under arch 2023-10-10 13:35:55 -06:00