EMILUA(3em)
πΈ NAME πΈ
Emilua - Lua execution engine.
okay bestie, welcome to the Emilua page (3em) β this is the Lua execution engine manual, and weβre keeping every detail cute but intact. π
β¨ SYNOPSIS β¨
hereβs the starter pack, literally copy it exactly and donβt let autocorrect touch it:
local system = require "system"
local caps = system.cap_init()
caps:set_proc()
system.cap_reset_ambient()
π FUNCTIONS π
these are the capability besties, each one doing its own little slay. signatures stay exactly as written β no renaming, no merging, no invented options. periodt. π
π¦ cap_get_proc() β linux_capabilities
See cap_get_proc(3). β¨
π¦ cap_init() β linux_capabilities
See cap_init(3). β¨
π¦ cap_from_text(caps: string) β linux_capabilities
See cap_from_text(3). β¨
π¦ cap_get_bound(cap: string) β boolean
See cap_get_bound(3). β¨
π¦ cap_drop_bound(cap: string)
See cap_drop_bound(3). β¨
π¨ Note: Only the master VM is allowed to use this function.
π¦ cap_get_ambient(cap: string) β boolean
See cap_get_ambient(3). β¨
π¦ cap_set_ambient(cap: string, value: boolean)
See cap_set_ambient(3). β¨
π¨ Note: Only the master VM is allowed to use this function.
π¦ cap_reset_ambient()
See cap_reset_ambient(3). β¨
π¨ Note: Only the master VM is allowed to use this function.
π¦ cap_get_secbits() β integer
See cap_get_secbits(3). β¨
π¦ cap_set_secbits(bits: integer)
See cap_set_secbits(3). β¨
The securebits flag constants are available from the system table:
SECBIT_NOROOTSECBIT_NOROOT_LOCKEDSECBIT_NO_SETUID_FIXUPSECBIT_NO_SETUID_FIXUP_LOCKEDSECBIT_KEEP_CAPSSECBIT_KEEP_CAPS_LOCKEDSECBIT_NO_CAP_AMBIENT_RAISESECBIT_NO_CAP_AMBIENT_RAISE_LOCKED
π¨ Note: Only the master VM is allowed to use this function.
π¦ dup(self) β linux_capabilities
See cap_dup(3). β¨
π¦ clear(self)
See cap_clear(3). β¨
π¦ clear_flag(self, flag: string)
See cap_clear_flag(3). β¨
π¦ get_flag(self, cap: string, flag: string) β boolean
See cap_get_flag(3). β¨
π¦ set_flag(self, flag: string, caps: string[], value: boolean)
See cap_set_flag(3). β¨
π¦ fill_flag(self, to: string, ref: linux_capabilities, from: string)
See cap_fill_flag(3). β¨
π¦ fill(self, to: string, from: string)
See cap_fill(3). β¨
π¦ set_proc(self)
See cap_set_proc(3). β¨
π¨ Note: Only the master VM is allowed to use this function.
π¦ get_nsowner(self) β integer
See cap_get_nsowner(3). β¨
π¦ set_nsowner(self, rootuid: integer)
See cap_set_nsowner(3). β¨
π¦ METAMETHODS π¦
π
__tostring()
See cap_to_text(3). β¨
π BUGS π
Thereβs a libpsx bug that prevents thread synchronization to work: https://bugzilla.kernel.org/show_bug.cgi?id=218607. This affects:
set_proc()cap_drop_bound()cap_set_ambient()cap_reset_ambient()cap_set_secbits()
π§π thatβs the whole page, bestie β Emilua 0.12.1-nixpkgs1, dated 1980-01-01, manual EMILUA(3em). periodt. ππ§
π¦ where this page comes from
- nixos 26.05: emilua 0.12.1
- nixpkgs unstable: emilua 0.12.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms