THE MARTYR OF BUTLERIAN JIHAD on Nostr: My favorite escape-chroot-as-root for new-ish Linux is setns(pidfd_open(getpid(), 0), ...
My favorite escape-chroot-as-root for new-ish Linux is setns(pidfd_open(getpid(), 0), CLONE_NEWNS).
This causes the calling process to re-join its own mount namespace, thereby resetting the current filesystem root to the root of that namespace.
Fuck off, L'Eunuchs!
Published at
2024-07-14 22:03:15Event JSON
{
"id": "c2644ce1455609c9f06d26b01e8e6735b685e0e2268415f57c01a7cce6e4ecaa",
"pubkey": "a8b998527117a18bb2ceef79019c0a9430b384589e1160bff4193355fba3a0d8",
"created_at": 1720994595,
"kind": 1,
"tags": [
[
"proxy",
"https://mstdn.starnix.network/users/icon_of_computational_sin/statuses/112787101809124588",
"activitypub"
]
],
"content": "\n\nMy favorite escape-chroot-as-root for new-ish Linux is setns(pidfd_open(getpid(), 0), CLONE_NEWNS).\nThis causes the calling process to re-join its own mount namespace, thereby resetting the current filesystem root to the root of that namespace.\n\nFuck off, L'Eunuchs!",
"sig": "7ddb1a1f7525579d182ad099fd4097f3a30f1a2beee7523224a3fdb03679d2672f824699d1a4bc76cd9d9e95c3907d1901d91a5f15d2d0d5dfe66f7f75289d1c"
}