seccomp-util: also use ENOSYS for unknown syscalls in seccomp_load_syscall_filter_set()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 3 Dec 2023 09:01:20 +0000 (18:01 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 3 Dec 2023 09:01:30 +0000 (18:01 +0900)
commit78b2ad7d67e118355d309fe28938c5d55e2d1263
tree76169eab050e1685ba0f1c7dd6e8d04647a9e1f1
parent03c0730ffe9fe7153c43444e5a32959b6736d7cf
seccomp-util: also use ENOSYS for unknown syscalls in seccomp_load_syscall_filter_set()

Follow-up for 2331c02d06cae97b87637a0fc6bb4961b509ccf2.

Note, currently, the function is always called with SCMP_ACT_ALLOW as
the default action, except for the test. So, this should not change
anything in the runtime code.
src/shared/seccomp-util.c