Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user: adjusted the timing of the display of the kernel version is too low #607

Merged
merged 1 commit into from
Aug 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
user: adjusted the timing of the display of the kernel version is too…
… low

Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
  • Loading branch information
cfc4n committed Aug 25, 2024
commit 5dd3117e42c27bc54d4141eaaef6aabdf918f8c5
2 changes: 1 addition & 1 deletion user/module/imodule.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Loading