seccomp: swap hard-coded zeros to defined name
[firefly-linux-kernel-4.4.55.git] / kernel / seccomp.c
index 645e42d6fa4d2e7ecfaf555255283b760d9a15d7..383bd6caca815d3dcdf96a6715d6c195fbe14b48 100644 (file)
@@ -594,7 +594,7 @@ void secure_computing_strict(int this_syscall)
            unlikely(current->ptrace & PT_SUSPEND_SECCOMP))
                return;
 
-       if (mode == 0)
+       if (mode == SECCOMP_MODE_DISABLED)
                return;
        else if (mode == SECCOMP_MODE_STRICT)
                __secure_computing_strict(this_syscall);