EMILUA(3em)

πŸ“¦ version 0.12.1, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

EMILUA(3em) β€” Emilua reference β€” Emilua - Lua execution engine πŸ’…βœ¨


✨ SYNOPSIS ✨

local system = require "system"
system.set_no_new_privs()

🌸 DESCRIPTION 🌸

Okay so bestie, this sets the no_new_privs attribute for the calling process (i.e. threads are synchronized even on Linux). That’s the whole move. 🫢

⚠️ Note: Only the master VM is allowed to use this function. Master VM only, no cap.

πŸ’€ BUGS πŸ’€

There’s a libpsx bug that prevents thread synchronization to work: https://bugzilla.kernel.org/show_bug.cgi?id=218607. Yep, that’s the drama. 😭

πŸ’‘ Tip: You may use system.seccomp_set_mode_filter() afterwards to synchronize the no_new_privs bit in all threads. iykyk 🧚

πŸ’Œ Emilua 0.12.1-nixpkgs1 Β· 1980-01-01 Β· bye bestie, slay responsibly πŸ«ΆπŸ’–

πŸ“¦ where this page comes from