Lunatik is a framework for scripting the Linux kernel with Lua.

Modules

byteorder Byte Order Conversion
completion Lua bindings for kernel completion mechanisms.
cpu Lua interface to Linux CPU abstractions.
crypto Lua interface to the Linux Crypto API.
darken Encrypted Lua script execution using AES-256-CTR.
data Direct memory access and manipulation.
device Low-level Lua interface for creating Linux character device drivers.
fib Forwarding Information Base (FIB) rules.
fifo kfifo (kernel FIFO) implementation.
hid Lua interface to the Linux HID subsystem.
lighten Encrypted Lua script support (AES-256-CTR).
lunatik Manages Lunatik runtimes — isolated Lua states running in the kernel.
lunatik.runner Manages the execution and lifecycle of Lunatik scripts.
linux Various Linux kernel facilities.
mailbox Inter-runtime communication mechanism using FIFOs and completions.
net Network utility functions.
netfilter Low-level Lua interface to the Linux Kernel Netfilter framework.
skb Linux socket buffer interface.
notifier Notifier chain mechanism.
probe kprobes mechanism.
rcu RCU-synchronized hash table.
signal POSIX Signals
socket Low-level Lua interface for kernel networking sockets.
socket.inet Internet (AF_INET) socket operations.
socket.raw RAW AF_PACKET socket operations.
socket.unix UNIX domain socket (AF_UNIX) operations.
syscall Accessing kernel system call information.
syscall.table A table mapping system call names to their kernel addresses.
thread Kernel thread primitives.
xdp eXpress Data Path (XDP) integration.

Classes

crypto.hkdf HMAC-based Extract-and-Expand Key Derivation Function (HKDF) based on RFC 5869.
crypto_aead Lua interface to AEAD (Authenticated Encryption with Associated Data) ciphers.
crypto_comp Lua interface to synchronous compression algorithms.
crypto_rng Lua interface to synchronous Random Number Generators (RNG).
crypto_shash Lua interface to synchronous message digest (hash) algorithms, including HMAC.
crypto_skcipher Lua interface to symmetric-key ciphers (SKCIPHER).

Topics

README.md
generated by LDoc 1.5.0 Last updated 2026-03-31 12:21:45