2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-01 06:45:35 +00:00

lsm: do not print a warning if no LSM has been detected

Without any LSM detected CRIU would print a warning for every run:

 Warn  (criu/lsm.c:328): don't know how to suspend LSM 0

Which clutters up the CI logs.

Change the message to a debug message.

Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
Adrian Reber
2021-08-09 08:46:22 +00:00
committed by Andrei Vagin
parent 960f26f907
commit 399a53a43f

View File

@@ -324,8 +324,10 @@ int collect_and_suspend_lsm(void)
break; break;
case LSMTYPE__SELINUX: case LSMTYPE__SELINUX:
break; break;
case LSMTYPE__NO_LSM:
break;
default: default:
pr_warn("don't know how to suspend LSM %d\n", kdat.lsm); pr_debug("don't know how to suspend LSM %d\n", kdat.lsm);
} }
return 0; return 0;