3 ms·
Writing a kernel module for shits and giggles is a great intellectual exercise, but... Linux's binfmt_misc was designed for use cases like this, and configurabl
by bitwize 5y ago
Writing a kernel module for shits and giggles is a great intellectual exercise, but... Linux's binfmt_misc was designed for use cases like this, and configurably allows to run binaries in exotic formats with a user-mode loader/interpreter for them.
- Brian_K_White 5y agoThis misses the entire expressed point. He explains why this is uninteresting and does not work toward his goal. It just calls an interpreter, which is no better than any ordinary script except that you can supply a smaller interpreter than say bash, but no matter how small the interpreter, the binary plus interpreter is obviously and unavoidably larger than the binary alone.