2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +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;
case LSMTYPE__SELINUX:
break;
case LSMTYPE__NO_LSM:
break;
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;