sandbox: policy levels
authorRobert Swiecki <robert@swiecki.net>
Mon, 12 Feb 2018 02:06:28 +0000 (03:06 +0100)
committerRobert Swiecki <robert@swiecki.net>
Mon, 12 Feb 2018 02:06:28 +0000 (03:06 +0100)
sandbox.cc

index 59d0ab2bef05d955bb3bead15f5e190b54ae7e9b..50d90959e4ad7eccddfe4daecef16fcb197e4110 100644 (file)
@@ -62,7 +62,7 @@ bool preparePolicy(nsjconf_t* nsjconf) {
                return true;
        }
        if (!nsjconf->kafel_file_path.empty() && !nsjconf->kafel_string.empty()) {
-               LOG_E(
+               LOG_W(
                    "You specified both kafel seccomp policy, and kafel seccomp file. Specify one "
                    "only");
                return false;
@@ -87,7 +87,7 @@ bool preparePolicy(nsjconf_t* nsjconf) {
        }
 
        if (kafel_compile(ctxt, &nsjconf->seccomp_fprog) != 0) {
-               LOG_E("Could not compile policy: %s", kafel_error_msg(ctxt));
+               LOG_W("Could not compile policy: %s", kafel_error_msg(ctxt));
                kafel_ctxt_destroy(&ctxt);
                return false;
        }