linux/Documentation/translations/zh_CN
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
..
accounting delayacct: improve the average delay precision of getdelay tool to microsecond 2023-04-08 13:45:36 -07:00
admin-guide Commit volume in documentation is relatively low this time, but there is 2023-04-24 12:35:49 -07:00
arch docs: kernel_feat.py: fix potential command injection 2024-01-31 16:18:46 -08:00
core-api workqueue: doc: Fix function and sysfs path errors 2023-10-12 07:27:22 -10:00
cpu-freq cpufreq: Reintroduce ready() callback 2022-02-09 13:18:49 +05:30
dev-tools LoongArch changes for v6.6 2023-09-08 12:16:52 -07:00
devicetree docs: zh_CN/devicetree: sync usage-model fix 2023-06-08 07:31:59 -06:00
doc-guide docs/zh_CN: Fix '.. only::' directive's expression 2022-12-05 02:33:27 -07:00
driver-api gpiolib: remove unused gpio_cansleep() 2023-06-13 16:49:23 +02:00
filesystems driver core: bus: mark the struct bus_type for sysfs callbacks as constant 2023-03-23 13:20:40 +01:00
iio Docs/zh_CN: Update the translation of iio_configfs to 5.19-rc8 2022-07-28 09:37:25 -06:00
infiniband docs/zh_CN: add infiniband user_verbs translation 2021-08-12 08:52:03 -06:00
kernel-hacking docs: zh_CN: align to submitting-drivers removal 2022-07-14 15:03:58 -06:00
locking docs/zh_CN: Add mutex-design Chinese translation 2022-06-30 11:27:46 -06:00
maintainer docs: use the lore redirector everywhere 2021-10-12 13:58:19 -06:00
mm Documentation work keeps chugging along; stuff for 6.6 includes: 2023-08-30 20:05:42 -07:00
PCI docs/zh_CN: Update the translation of msi-howto to 6.1-rc8 2023-01-02 16:14:11 -07:00
peci docs/zh_CN: add peci subsystem translation 2022-03-09 16:21:18 -07:00
power docs/zh_CN: Update the translation of energy-model to 6.1-rc8 2023-01-02 16:14:11 -07:00
process docs: fix typo in zh_TW and zh_CN translation 2023-07-03 08:33:42 -06:00
riscv docs/zh_CN: riscv: Update the translation of vm-layout.rst to 5.19-rc1 2022-06-27 16:24:39 -06:00
rust docs/zh_CN: Add rust arch-support Chinese translation 2022-11-01 15:23:31 -06:00
scheduler sh updates for v6.4 2023-04-27 17:41:23 -07:00
sound PATCH Documentation translations:translate sound/hd-audio/controls to chinese 2021-03-08 16:54:05 -07:00
staging docs/zh_CN: Add staging/xz Chinese translation 2022-10-28 12:32:08 -06:00
userspace-api docs/zh_CN: Add userspace-api/accelerators/ocxl Chinese translation 2022-11-15 14:53:48 -07:00
video4linux media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
virt docs/zh_CN: add virt acrn cpuid translation 2021-08-12 08:49:38 -06:00
disclaimer-zh_CN.rst Docs/zh_CN: update Alex Shi new email address 2021-03-31 13:52:25 -06:00
glossary.rst docs/zh_CN: Add a glossary of Chinese translation terms 2023-01-19 14:46:50 -07:00
index.rst docs: zh_CN: create the architecture-specific top-level directory 2023-03-30 12:59:54 -06:00