|
|
Subscribe / Log in / New account

Architecture emulation containers with binfmt_misc

Architecture emulation containers with binfmt_misc

Posted Mar 10, 2016 12:40 UTC (Thu) by RobSeace (subscriber, #4435)
Parent article: Architecture emulation containers with binfmt_misc

> When such a file is recognized, the name of the interpreter for the script will be read from the first line of the file; the interpreter will then be run with the file as its standard input.

Actually, it just passes the script as a command-line parameter not as stdin, doesn't it?


to post comments

Architecture emulation containers with binfmt_misc

Posted Mar 10, 2016 17:20 UTC (Thu) by itvirta (guest, #49997) [Link]

The filename of the script, yes. It couldn't be through stdin, since the script might need that for user input.

Architecture emulation containers with binfmt_misc

Posted Mar 10, 2016 21:01 UTC (Thu) by eternaleye (guest, #67051) [Link]

It depends on your flags - in particular, the "O" flag says to pass a pre-opened FD, and pass the FD number as an argument. There's also "C", which implies "O" and calculates credentials according to the binary rather than the interpreter.

However, you are correct that no mode of operation seems to pass it on stdin.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds