Verified Commit 55473743 authored by valoq's avatar valoq

fix coding style

parent a3050539
......@@ -225,7 +225,7 @@ seccomp_enable_strict_filter(bool test)
ADD_RULE("errno", SCMP_ACT_ERRNO(EPERM), sched_getattr, 0);
/* check test flag, allow additional syscalls for test mode */
if (test){
if (test) {
ALLOW_RULE(timer_create);
ALLOW_RULE(timer_delete);
}
......
......@@ -448,7 +448,7 @@ zathura_init(zathura_t* zathura)
break;
case ZATHURA_SANDBOX_STRICT:
girara_debug("Strict sandbox preventing write and network access.");
if (seccomp_enable_strict_filter(0) != 0) {
if (seccomp_enable_strict_filter(false) != 0) {
girara_error("Failed to initialize strict seccomp filter.");
goto error_free;
}
......@@ -457,7 +457,7 @@ zathura_init(zathura_t* zathura)
break;
case ZATHURA_SANDBOX_TEST:
girara_debug("Strict sandbox preventing write and network access, testmode.");
if (seccomp_enable_strict_filter(1) != 0) {
if (seccomp_enable_strict_filter(true) != 0) {
girara_error("Failed to initialize test seccomp filter.");
goto error_free;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment