RediWM is a Wayland compositor written in Zig (OpenGL ES) that includes everything in one process
rediwm-dm
Runs as root. The greeter (rediwm --greeter) is untrusted input.
- The daemon never blocks; workers own one PAM handle each.
- Signal masks survive exec: clear them.
setuidclearsPR_SET_PDEATHSIG. - Never format JSON with
{s}. - Only the daemon and workers are root. Don't sandbox
rediwm-dm.service: user sessions inherit it. --test,--confdir,--data-dirand--markerare refused as root.- Login appearance: provision only the numeric UID directory after PAM has opened a user session. Root never reads appearance files. The shared parent stays root-owned and not writable by users; never follow or chown an existing user-controlled entry. Test mode must not provision system directories.