如何更改Docker图像中的Linux内核配置?

发布于 2025-02-08 14:11:36 字数 591 浏览 3 评论 0原文

我正在尝试查看进程的fork()exec()事件详细信息,以进行某些安全目的。然后我找到了这个问题:如何检测程序的启动on Linux?

I built a monitor program in docker container with图像Alpine,并成功运行它。但是,控制台的stdout中没有任何数据输出。因此,我怀疑内核不会通过Netlink发送过程的事件,如何检查config_connectorconfig_proc_events是否启用?如果没有,我该如何以某种方式启用它?

I'm trying to catch processes' fork() and exec() event details for some security purposes. And then I found this question: How to detect the launching of programs on Linux?

I built a monitor program in docker container with image alpine, and run it successfully. But there is no any data output in stdout of console. So I suspect that kernel doesn't send processes' events by netlink, how to check if CONFIG_CONNECTOR and CONFIG_PROC_EVENTS are enabled? And if not, how can I enable it in some ways?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文