The details of
binfmt_misc are well
binfmt_misc lets you tell the kernel how to execute a particular
binary that isn't ELF and that doesn't start with a shebang (
#!). This means
./ execute files that you usually wouln't be able to.
which will install all the formats in the
formats/ directory. Warnings may be
printed during install if dependencies cannot be found; however, the format's
configs will still be installed.
The files that you run must have the executable bit set.
For example to run a new
$ chmod +x ./test.decaf $ ./test.decaf
or to run a new
$ chmod +x cool_app.jar $ ./cool_app.jar
chmod need only be set the first time the binary is executed.
After running the script, you should be able to verify that the installation
worked by running the corresponding file in the