diff options
author | Nir Lichtman <nir@lichtman.org> | 2024-11-17 02:13:23 +0300 |
---|---|---|
committer | Kees Cook <kees@kernel.org> | 2024-11-30 06:35:58 +0300 |
commit | fa1bdca98d74472dcdb79cb948b54f63b5886c04 (patch) | |
tree | 428332de6c40883aadf88df9012ffcb696a4738c /scripts/lib/abi/abi_regex.py | |
parent | 4188fc31a95e6c7a03c5859831d48ce646b26e46 (diff) | |
download | linux-fa1bdca98d74472dcdb79cb948b54f63b5886c04.tar.xz |
exec: remove legacy custom binfmt modules autoloading
Problem: The search binary handler logic contains legacy code
to handle automatically loading kernel modules of unsupported
binary formats.
This logic is a leftover from a.out-to-ELF transition.
After removal of a.out support, this code has no use anymore.
Solution: Clean up this code from the search binary handler,
also remove the line initialising retval to -ENOENT and instead
just return -ENOEXEC if the flow has reached the end of the func.
Note: Anyone who might find future uses for this legacy code
would be better off using binfmt_misc to trigger whatever
module loading they might need - would be more flexible that way.
Suggested-by: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Nir Lichtman <nir@lichtman.org>
Link: https://lore.kernel.org/r/20241116231323.GA225987@lichtman.org
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'scripts/lib/abi/abi_regex.py')
0 files changed, 0 insertions, 0 deletions