]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Revert "seccomp: make do_resolve_add_rule() more strict"
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 5 Jun 2018 09:21:23 +0000 (11:21 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 5 Jun 2018 09:21:23 +0000 (11:21 +0200)
This reverts commit dfddc8aa7ef3362212f8394995088a5f525730dd.

Closes #2376.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/seccomp.c

index 24c69c305538c6a6ab936125d3c7d98a16ca3d98..5718ed337fc2416b3e54cc8abb70d7bae694ca47 100644 (file)
@@ -500,12 +500,14 @@ bool do_resolve_add_rule(uint32_t arch, char *line, scmp_filter_ctx ctx,
        nr = seccomp_syscall_resolve_name(line);
        if (nr == __NR_SCMP_ERROR) {
                WARN("Failed to resolve syscall \"%s\"", line);
-               return false;
+               WARN("This syscall will NOT be blacklisted");
+               return true;
        }
 
        if (nr < 0) {
                WARN("Got negative return value %d for syscall \"%s\"", nr, line);
-               return false;
+               WARN("This syscall will NOT be blacklisted");
+               return true;
        }
 
        memset(&arg_cmp, 0, sizeof(arg_cmp));