Bug 1214198

Summary: In 6.4 kernel, secomp will return wrong errno, leading sudo/useradd... don't work in systemd-nspawn
Product: [openSUSE] openSUSE Tumbleweed Reporter: Coelacanthus <CoelacanthusHex>
Component: KernelAssignee: openSUSE Kernel Bugs <kernel-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: schwab, tiwai
Version: Current   
Target Milestone: ---   
Hardware: RISC-V   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Coelacanthus 2023-08-11 15:31:53 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/
Comment 1 Andreas Schwab 2023-08-21 06:58:30 UTC
Fixed in 6.5-rc7.