Bugzilla – Bug 1214198
In 6.4 kernel, secomp will return wrong errno, leading sudo/useradd... don't work in systemd-nspawn
Last modified: 2023-08-21 06:58:30 UTC
After update kernel to 6.4.x, we found sudo, groupmod, groupadd, usermod, useradd don't work in systemd-nspawn like this: $ sudo ls sudo: PAM account management error: Function not implemented After checked, we found seccomp return wrong errno for netlink syscall. systemd-nspawn set it to EAFNOSUPPORT, but it return ENOSYS. It can be fixed by this patch. https://lore.kernel.org/linux-riscv/20230801141607.435192-1-CoelacanthusHex@gmail.com/
Fixed in 6.5-rc7.