seccomp: silence 'unknown syscall' warnings
authorDaniel Golle <daniel@makrotopia.org>
Fri, 20 Nov 2020 23:56:13 +0000 (23:56 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 21 Nov 2020 01:13:13 +0000 (01:13 +0000)
Output them as debugging messages instead.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/seccomp-oci.c

index 88f80536dbf3d57eaf50ac4de8cced739453008e..c80c6be739710bb34a420133728ab11c45fb89a9 100644 (file)
@@ -227,7 +227,7 @@ struct sock_fprog *parseOCIlinuxseccomp(struct blob_attr *msg)
                blobmsg_for_each_attr(curn, tbn[OCI_LINUX_SECCOMP_SYSCALLS_NAMES], remn) {
                        sc = find_syscall(blobmsg_get_string(curn));
                        if (sc == -1) {
-                               ERROR("unknown syscall '%s'\n", blobmsg_get_string(curn));
+                               DEBUG("unknown syscall '%s'\n", blobmsg_get_string(curn));
                                /* TODO: support run.oci.seccomp_fail_unknown_syscall=1 annotation */
                                continue;
                        }