This commit is contained in:
valoq 2018-03-11 12:26:26 +01:00
parent 5a66aa92c0
commit 3d06164d71
Failed to generate hash of commit

View file

@ -303,24 +303,19 @@ main(int argc, char* argv[])
} else if (g_strcmp0(sandbox, "normal") == 0) {
girara_debug("Basic sandbox allowing normal operation.");
ret = seccomp_enable_basic_filter();
if (ret){
goto free_and_ret;
}
} else if (g_strcmp0(sandbox, "strict") == 0) {
girara_debug("Strict sandbox preventing write and network access.");
ret = seccomp_enable_strict_filter();
if (ret){
goto free_and_ret;
}
} else {
girara_error("Invalid sandbox option");
ret = -1;
goto free_and_ret;
}
g_free(sandbox);
if (ret){
goto free_and_ret;
}
#endif