summaryrefslogtreecommitdiff
path: root/Documentation/admin-guide/abi-obsolete.rst
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@oracle.com>2024-01-01 02:59:59 +0300
committerJonathan Corbet <corbet@lwn.net>2024-01-03 23:44:11 +0300
commit3231dd5862779c2e15633c96133a53205ad660ce (patch)
treeb5ce97e6795806590224de86ff910418f2834e96 /Documentation/admin-guide/abi-obsolete.rst
parent5889d6ede53bc17252f79c142387e007224aa554 (diff)
downloadlinux-3231dd5862779c2e15633c96133a53205ad660ce.tar.xz
docs: kernel_abi.py: fix command injection
The kernel-abi 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. Link: https://fosstodon.org/@jani/111676532203641247 Reported-by: Jani Nikula <jani.nikula@intel.com> Cc: stable@vger.kernel.org Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20231231235959.3342928-2-vegard.nossum@oracle.com
Diffstat (limited to 'Documentation/admin-guide/abi-obsolete.rst')
-rw-r--r--Documentation/admin-guide/abi-obsolete.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/admin-guide/abi-obsolete.rst b/Documentation/admin-guide/abi-obsolete.rst
index d095867899c5..594e697aa1b2 100644
--- a/Documentation/admin-guide/abi-obsolete.rst
+++ b/Documentation/admin-guide/abi-obsolete.rst
@@ -7,5 +7,5 @@ marked to be removed at some later point in time.
The description of the interface will document the reason why it is
obsolete and when it can be expected to be removed.
-.. kernel-abi:: $srctree/Documentation/ABI/obsolete
+.. kernel-abi:: ABI/obsolete
:rst: