@dalias @jschauma Module loading should require administrator intervention, such as allow-listing yes.
don't assume running network-facing junk daemons is safe just because they're running as nobody or chrooted
Given how many exploit chains require no actual on-disk IO, nobody doesn't accomplish much and it is just generally an anti-pattern. The daemon should have its own user for administrative purposes.
Allow-listing syscalls and their scope (in absence of proper capability security) is also a good idea. Chroot fails against broken syscalls & interactions of various subsystems.
Disable io_uring and other optional niche syscalls
They should just fail if the module hasn't been allowed by the administrator explicitly. Coupled with allow-listing syscalls as prior it would help a lot.
Daemons written in memory-safe languages that don't trivially result in RCE would be a good start, too.