From: John Levon Patch by Ivan Gyurdiev. 25-akpm/Documentation/binfmt_misc.txt | 3 +++ 25-akpm/fs/Kconfig.binfmt | 3 +++ 2 files changed, 6 insertions(+) diff -puN Documentation/binfmt_misc.txt~binfmt_misc-doc Documentation/binfmt_misc.txt --- 25/Documentation/binfmt_misc.txt~binfmt_misc-doc Mon Aug 11 13:56:54 2003 +++ 25-akpm/Documentation/binfmt_misc.txt Mon Aug 11 13:56:54 2003 @@ -11,6 +11,9 @@ at the beginning of the file with a magi bits) you have supplied. Binfmt_misc can also recognise a filename extension aka '.com' or '.exe'. +First you must mount binfmt_misc: + mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc + To actually register a new binary type, you have to set up a string looking like :name:type:offset:magic:mask:interpreter: (where you can choose the ':' upon your needs) and echo it to /proc/sys/fs/binfmt_misc/register. diff -puN fs/Kconfig.binfmt~binfmt_misc-doc fs/Kconfig.binfmt --- 25/fs/Kconfig.binfmt~binfmt_misc-doc Mon Aug 11 13:56:54 2003 +++ 25-akpm/fs/Kconfig.binfmt Mon Aug 11 13:56:54 2003 @@ -111,6 +111,9 @@ config BINFMT_MISC feature, and for information about how to include Java support. + To use binfmt_misc, you will need to mount it: + mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc + You may say M here for module support and later load the module when you have use for it; the module is called binfmt_misc. If you don't know what to answer at this point, say Y. _