mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 13:16:00 +01:00
bugfix
This commit is contained in:
parent
5a66aa92c0
commit
3d06164d71
1 changed files with 3 additions and 8 deletions
|
@ -303,24 +303,19 @@ main(int argc, char* argv[])
|
||||||
} else if (g_strcmp0(sandbox, "normal") == 0) {
|
} else if (g_strcmp0(sandbox, "normal") == 0) {
|
||||||
girara_debug("Basic sandbox allowing normal operation.");
|
girara_debug("Basic sandbox allowing normal operation.");
|
||||||
ret = seccomp_enable_basic_filter();
|
ret = seccomp_enable_basic_filter();
|
||||||
if (ret){
|
|
||||||
goto free_and_ret;
|
|
||||||
}
|
|
||||||
} else if (g_strcmp0(sandbox, "strict") == 0) {
|
} else if (g_strcmp0(sandbox, "strict") == 0) {
|
||||||
girara_debug("Strict sandbox preventing write and network access.");
|
girara_debug("Strict sandbox preventing write and network access.");
|
||||||
ret = seccomp_enable_strict_filter();
|
ret = seccomp_enable_strict_filter();
|
||||||
if (ret){
|
|
||||||
goto free_and_ret;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
girara_error("Invalid sandbox option");
|
girara_error("Invalid sandbox option");
|
||||||
ret = -1;
|
ret = -1;
|
||||||
goto free_and_ret;
|
goto free_and_ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
g_free(sandbox);
|
g_free(sandbox);
|
||||||
|
if (ret){
|
||||||
|
goto free_and_ret;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue