mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 20:56: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) {
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue