linux/Documentation/powerpc
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
..
associativity.rst powerpc/doc: Fix htmldocs errors 2021-08-27 00:56:34 +10:00
booting.rst docs: powerpc: Fix misspellings and grammar errors 2021-03-31 13:50:59 -06:00
bootwrapper.rst powerpc: Remove Xilinx PPC405/PPC440 support 2020-05-28 23:24:34 +10:00
cpu_families.rst docs: powerpc: add POWER9 and POWER10 to CPU families 2022-11-24 23:31:47 +11:00
cpu_features.rst docs: powerpc: convert docs to ReST and rename to *.rst 2019-07-17 06:57:51 -03:00
cxl.rst docs: powerpc: cxl.rst: mark two section titles as such 2020-04-20 15:45:25 -06:00
cxlflash.rst docs: powerpc: convert docs to ReST and rename to *.rst 2019-07-17 06:57:51 -03:00
dawr-power9.rst powerpc: Enable the DAWR on POWER9 DD2.3 and above 2022-05-22 15:59:53 +10:00
dexcr.rst Documentation: Document PowerPC kernel DEXCR interface 2023-06-19 17:36:27 +10:00
dscr.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
eeh-pci-error-recovery.rst docs: powerpc: Fix misspellings and grammar errors 2021-03-31 13:50:59 -06:00
elf_hwcaps.rst docs: powerpc: use different label name for elf_hwcaps.rst 2022-07-28 16:19:37 +10:00
elfnote.rst docs: powerpc: Fix misspellings and grammar errors 2021-03-31 13:50:59 -06:00
features.rst docs: kernel_feat.py: fix potential command injection 2024-01-31 16:18:46 -08:00
firmware-assisted-dump.rst docs: powerpc: Fix misspellings and grammar errors 2021-03-31 13:50:59 -06:00
hvcs.rst docs: powerpc: convert docs to ReST and rename to *.rst 2019-07-17 06:57:51 -03:00
imc.rst powerpc/imc: Add documentation for IMC and trace-mode 2020-01-06 16:25:27 +11:00
index.rst powerpc/book3s64/radix: add support for vmemmap optimization for radix 2023-08-18 10:12:55 -07:00
isa-versions.rst powerpc/64s: update cpu selection options 2022-09-28 19:22:10 +10:00
kasan.txt Documentation: Fix typos 2023-08-18 11:29:03 -06:00
kaslr-booke32.rst docs: powerpc: Fix misspellings and grammar errors 2021-03-31 13:50:59 -06:00
mpc52xx.rst docs: powerpc: Fix misspellings and grammar errors 2021-03-31 13:50:59 -06:00
papr_hcalls.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
pci_iov_resource_on_powernv.rst docs: powerpc: convert docs to ReST and rename to *.rst 2019-07-17 06:57:51 -03:00
pmu-ebb.rst docs: powerpc: convert docs to ReST and rename to *.rst 2019-07-17 06:57:51 -03:00
ptrace.rst Documentation/powerpc: Fix ptrace request names 2023-08-16 23:54:50 +10:00
qe_firmware.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
syscall64-abi.rst powerpc/64s/syscall: Use pt_regs.trap to distinguish syscall ABI difference between sc and scv syscalls 2021-05-21 00:58:03 +10:00
transactional_memory.rst docs: powerpc: Fix misspellings and grammar errors 2021-03-31 13:50:59 -06:00
ultravisor.rst KVM: PPC: Book3S HV: In H_SVM_INIT_DONE, migrate remaining normal-GFNs to secure-GFNs 2020-07-28 12:34:52 +10:00
vas-api.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
vcpudispatch_stats.rst docs: powerpc: convert vcpudispatch_stats.txt to ReST 2020-06-19 14:09:48 -06:00
vmemmap_dedup.rst powerpc/book3s64/radix: add support for vmemmap optimization for radix 2023-08-18 10:12:55 -07:00