summaryrefslogtreecommitdiff
path: root/Documentation/admin-guide
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-10-19 17:02:56 -1000
committerLinus Torvalds <torvalds@linux-foundation.org>2026-10-19 17:02:56 -1000
commit550a7e28d801d35dd23aa2cdd30b7a59e193e080 (patch)
tree4a9cc3780a6a0cdc8b090dbeb5c887453ef2c768 /Documentation/admin-guide
parentb9a3eae9453b7547e4ab27df53a2ee8c7eb90c01 (diff)
parent87b76786cc04c8137133a360088d94ab2ed592ca (diff)
Merge tag 'vfs-7.4-rc1.binfmt' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs
Pull binfmt updates from Christian Brauner: "This only lets punctuation delimit a binfmt_misc register string. Arbitrary delimiters never made sense and nothing uses them. Every new flag shrank the set of possible delimiters and made extensions more hazardous than they need to be. Letters, digits, whitespace, control characters, bytes above 0x7f and the backslash now get EINVAL. Everything deployed uses ':' anyway. This extends the fix that rejected a flag character as the delimiter. Selftests and documentation are included" * tag 'vfs-7.4-rc1.binfmt' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs: binfmt_misc: document the field delimiter selftests/exec: test delimiter restrictions binfmt_misc: only let punctuation delimit a register string
Diffstat (limited to 'Documentation/admin-guide')
-rw-r--r--Documentation/admin-guide/binfmt-misc.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/admin-guide/binfmt-misc.rst b/Documentation/admin-guide/binfmt-misc.rst
index d26b63a27c25..9e84b877d06d 100644
--- a/Documentation/admin-guide/binfmt-misc.rst
+++ b/Documentation/admin-guide/binfmt-misc.rst
@@ -19,6 +19,9 @@ To actually register a new binary type, you have to set up a string looking like
``:name:type:offset:magic:mask:interpreter:flags`` (where you can choose the
``:`` upon your needs) and echo it to ``/proc/sys/fs/binfmt_misc/register``.
+The first character of the string is its field delimiter and can be any
+ASCII punctuation character other than the backslash ``\``.
+
Here is what the fields mean:
- ``name``