From 5dd3117e42c27bc54d4141eaaef6aabdf918f8c5 Mon Sep 17 00:00:00 2001 From: CFC4N Date: Sun, 25 Aug 2024 12:22:12 +0800 Subject: [PATCH] user: adjusted the timing of the display of the kernel version is too low Signed-off-by: CFC4N --- user/module/imodule.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/module/imodule.go b/user/module/imodule.go index 1c378fe9d..874d7345c 100644 --- a/user/module/imodule.go +++ b/user/module/imodule.go @@ -109,8 +109,8 @@ func (m *Module) Init(ctx context.Context, logger *zerolog.Logger, conf config.I // it's safe to ignore err because we have checked it in main funcition if kv < kernel.VersionCode(5, 2, 0) { m.isKernelLess5_2 = true + m.logger.Warn().Str("kernel", kv.String()).Msg("Kernel version is less than 5.2, Process filtering parameters do not take effect such as pid/uid.") } - m.logger.Warn().Str("kernel", kv.String()).Msg("Kernel version is less than 5.2, Process filtering parameters do not take effect such as pid/uid.") } logger.Info().Int("Pid", os.Getpid()).Str("Kernel Info", kv.String()).Send()