OpenCloudOS-Kernel/Documentation/arch/arm
Vegard Nossum e961f8c696 docs: kernel_feat.py: fix potential command injection
[ Upstream commit c48a7c44a1d02516309015b6134c9bb982e17008 ]

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 <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
..
google
keystone
nwfpe
omap
pxa
sa1100
samsung
spear
sti
stm32
sunxi Documentation: Fix typos 2023-08-18 11:29:03 -06:00
vfp
arm.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
booting.rst
cluster-pm-race-avoidance.rst
features.rst docs: kernel_feat.py: fix potential command injection 2024-01-31 16:18:46 -08:00
firmware.rst
index.rst
interrupts.rst
ixp4xx.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
kernel_mode_neon.rst
kernel_user_helpers.rst
marvell.rst
mem_alignment.rst
memory.rst
microchip.rst
netwinder.rst
porting.rst
setup.rst
sunxi.rst
swp_emulation.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
tcm.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
uefi.rst
vlocks.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00