]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Documentation/binfmt-misc.rst: Specify aux vector for "O" flag description
authorCharlie Jenkins <thecharlesjenkins@gmail.com>
Sat, 18 Apr 2026 21:08:49 +0000 (17:08 -0400)
committerJonathan Corbet <corbet@lwn.net>
Mon, 27 Apr 2026 09:58:19 +0000 (03:58 -0600)
Instead of replacing the file path in the argument vector, the file
descriptor is passed as AT_EXECFD in the auxilary vector. This appears
to have been the case at least since the git port, update the
documentation to reflect this.

Signed-off-by: Charlie Jenkins <thecharlesjenkins@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <20260418-binfmt_misc_doc_update-v1-1-c2e9601ab868@gmail.com>

Documentation/admin-guide/binfmt-misc.rst

index 59cd902e35497468f29f68b112f579f9b5de002b..c0a34fbf8022b5e1bee12b8f316b0beedbc0ea13 100644 (file)
@@ -68,10 +68,10 @@ Here is what the fields mean:
            Legacy behavior of binfmt_misc is to pass the full path
             of the binary to the interpreter as an argument. When this flag is
             included, binfmt_misc will open the file for reading and pass its
-            descriptor as an argument, instead of the full path, thus allowing
-            the interpreter to execute non-readable binaries. This feature
-            should be used with care - the interpreter has to be trusted not to
-            emit the contents of the non-readable binary.
+            descriptor into the auxilary vector with the key "AT_EXECFD", thus
+            allowing the interpreter to execute non-readable binaries. This
+            feature should be used with care - the interpreter has to be trusted
+            not to emit the contents of the non-readable binary.
       ``C`` - credentials
             Currently, the behavior of binfmt_misc is to calculate
             the credentials and security token of the new process according to