Skip to content

Commit 4af75df

Browse files
James BottomleyJames Bottomley
authored andcommitted
binfmt_misc: add F option description to documentation
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
1 parent 948b701 commit 4af75df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Documentation/binfmt_misc.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ Here is what the fields mean:
6666
This feature should be used with care as the interpreter
6767
will run with root permissions when a setuid binary owned by root
6868
is run with binfmt_misc.
69+
'F' - fix binary. The usual behaviour of binfmt_misc is to spawn the
70+
binary lazily when the misc format file is invoked. However,
71+
this doesn't work very well in the face of mount namespaces and
72+
changeroots, so the F mode opens the binary as soon as the
73+
emulation is installed and uses the opened image to spawn the
74+
emulator, meaning it is always available once installed,
75+
regardless of how the environment changes.
6976

7077

7178
There are some restrictions:

0 commit comments

Comments
 (0)