James Just James on Nostr: TIL how systemd-binfmt works and how Linux binfmt_misc works! This lets you teach ...
TIL how systemd-binfmt works and how Linux binfmt_misc works!
This lets you teach Linux how to run different kinds of binaries, like aarch64 ones, or even M$ stuff with wine!
Interesting, the shebang mechanism actually uses this Kernel feature to kick off scripts!
Of course someone hacked it to run golang as well:
https://blog.cloudflare.com/using-go-as-a-scripting-language-in-linux/Published at
2024-03-22 16:05:34Event JSON
{
"id": "b5b19acf67b500eb9f05b4192341479e0799319565cd1029e5fe165526cdd545",
"pubkey": "8825ea4ff6d2a06ee9fdbdc494ba755f04cf0f4959506d1b8ce47e464e68138f",
"created_at": 1711123534,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/purpleidea/statuses/112140191969193754",
"activitypub"
]
],
"content": "TIL how systemd-binfmt works and how Linux binfmt_misc works!\n\nThis lets you teach Linux how to run different kinds of binaries, like aarch64 ones, or even M$ stuff with wine!\n\nInteresting, the shebang mechanism actually uses this Kernel feature to kick off scripts!\n\nOf course someone hacked it to run golang as well:\n\nhttps://blog.cloudflare.com/using-go-as-a-scripting-language-in-linux/",
"sig": "258702678353265701f371d23afd5a2b68eec9b0d8e66f2b645dac22d0e7d4148cb926ee71c6804f2e2fdcbd6efe1cbb5e1b8dce813de88d8439101d6771820b"
}