linux/Documentation/arch/s390
Vegard Nossum f7f4ff54c4 docs: kernel_feat.py: fix potential command injection
commit c48a7c44a1 upstream.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2024-01-20 11:53:02 +01:00
..
3270.ChangeLog docs: move s390 under arch 2023-07-24 12:12:24 +02:00
3270.rst docs: move s390 under arch 2023-07-24 12:12:24 +02:00
cds.rst docs: move s390 under arch 2023-07-24 12:12:24 +02:00
common_io.rst docs: move s390 under arch 2023-07-24 12:12:24 +02:00
config3270.sh docs: move s390 under arch 2023-07-24 12:12:24 +02:00
driver-model.rst docs: move s390 under arch 2023-07-24 12:12:24 +02:00
features.rst docs: kernel_feat.py: fix potential command injection 2024-01-20 11:53:02 +01:00
index.rst docs: move s390 under arch 2023-07-24 12:12:24 +02:00
monreader.rst docs: move s390 under arch 2023-07-24 12:12:24 +02:00
pci.rst docs: move s390 under arch 2023-07-24 12:12:24 +02:00
qeth.rst docs: move s390 under arch 2023-07-24 12:12:24 +02:00
s390dbf.rst docs: move s390 under arch 2023-07-24 12:12:24 +02:00
text_files.rst docs: move s390 under arch 2023-07-24 12:12:24 +02:00
vfio-ap-locking.rst docs: move s390 under arch 2023-07-24 12:12:24 +02:00
vfio-ap.rst Documentation work keeps chugging along; stuff for 6.6 includes: 2023-08-30 20:05:42 -07:00
vfio-ccw.rst docs: move s390 under arch 2023-07-24 12:12:24 +02:00
zfcpdump.rst docs: move s390 under arch 2023-07-24 12:12:24 +02:00