Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
f13b4d4a
Commit
f13b4d4a
authored
Aug 13, 2003
by
John Levon
Committed by
Linus Torvalds
Aug 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Document mounting of binfmt_misc
Patch by Ivan Gyurdiev.
parent
9bc63696
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
Documentation/binfmt_misc.txt
Documentation/binfmt_misc.txt
+3
-0
fs/Kconfig.binfmt
fs/Kconfig.binfmt
+3
-0
No files found.
Documentation/binfmt_misc.txt
View file @
f13b4d4a
...
@@ -11,6 +11,9 @@ at the beginning of the file with a magic byte sequence (masking out specified
...
@@ -11,6 +11,9 @@ at the beginning of the file with a magic byte sequence (masking out specified
bits) you have supplied. Binfmt_misc can also recognise a filename extension
bits) you have supplied. Binfmt_misc can also recognise a filename extension
aka '.com' or '.exe'.
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
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
:name:type:offset:magic:mask:interpreter: (where you can choose the ':' upon
your needs) and echo it to /proc/sys/fs/binfmt_misc/register.
your needs) and echo it to /proc/sys/fs/binfmt_misc/register.
...
...
fs/Kconfig.binfmt
View file @
f13b4d4a
...
@@ -111,6 +111,9 @@ config BINFMT_MISC
...
@@ -111,6 +111,9 @@ config BINFMT_MISC
feature, and <file:Documentation/java.txt> for information about how
feature, and <file:Documentation/java.txt> for information about how
to include Java support.
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 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
you have use for it; the module is called binfmt_misc. If you
don't know what to answer at this point, say Y.
don't know what to answer at this point, say Y.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment