jail: don't load libpreload-seccomp.so if it doesn't exist
authorDaniel Golle <daniel@makrotopia.org>
Sat, 25 Apr 2020 09:24:35 +0000 (10:24 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 25 Apr 2020 09:25:55 +0000 (10:25 +0100)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/jail.c

index cc310aab0c9cc34691c5e8c76413e14babd01524..8ae477c730262414cb06f51bc56105651a96d21f 100644 (file)
@@ -759,6 +759,7 @@ int main(int argc, char **argv)
 
        if (opts.namespace && opts.seccomp && add_path_and_deps("libpreload-seccomp.so", 1, -1, 1)) {
                ERROR("failed to load libpreload-seccomp.so\n");
+               opts.seccomp = 0;
                if (opts.require_jail)
                        return -1;
        }