如何更改Docker图像中的Linux内核配置?
我正在尝试查看进程的fork()
和exec()
事件详细信息,以进行某些安全目的。然后我找到了这个问题:如何检测程序的启动on Linux?
I built a monitor program in docker container with图像Alpine
,并成功运行它。但是,控制台的stdout
中没有任何数据输出。因此,我怀疑内核不会通过Netlink发送过程的事件,如何检查config_connector
和config_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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论