-
Notifications
You must be signed in to change notification settings - Fork 187
Open
Milestone
Description
Triggered by a discussion (in June & Aug) on systemd-devel ..
systemd-nspawn chooses to return EPERM for non-whitelisted syscalls. However, this causes problems in cases like openat2, where libc checks for ENOSYS and falls back to a different implementation.
It seems to me a 'mostly right' solution could be to check if the syscall number falls within the range of defined syscalls that existed at the time seccomp was built. I'm sure there are corner cases (I know some archs do weird things), but if the tools that parse syscalls.csv etc could generate a simple #define for the max known syscall number that might be useful?