3 ms·
Yes, bitfmt_misc is quite useful. In WSL (Windows Subsystem for Linux), we register Windows executables in binfmt_misc and have a handler that launches a Window
by jstarks 8y ago
Yes, bitfmt_misc is quite useful. In WSL (Windows Subsystem for Linux), we register Windows executables in binfmt_misc and have a handler that launches a Windows process back and relays stdin, etc.:
$ cat /proc/sys/fs/binfmt_misc/WSLInterop
enabled
interpreter /init
flags:
offset 0
magic 4d5a
This is nice because it uses standard Linux functionality; we didn't have to extend our Linux-compatible kernel interface to support running Windows processes.