linux – rkhunter:“可疑的共享内存片段”

linux – rkhunter:“可疑的共享内存片段”,第1张

概述我这里有一个安装了CentOS7和GroupOffice的新安装服务器.安装rkhunter并启动rkhunter检查后,我得到: [09:58:15] Suspicious Shared Memory segments[09:58:15] Process: PID: 1769 Owner: apache [ Found ][09:58:15] Suspi 我这里有一个安装了CentOS7和GroupOffice的新安装服务器.安装rkhunter并启动rkhunter检查后,我得到:
[09:58:15] SuspicIoUs Shared Memory segments[09:58:15]   Process:     PID: 1769    Owner: apache         [ Found ][09:58:15]   SuspicIoUs Shared Memory segments               [ Warning ]

有人知道“可疑共享内存段”是什么意思吗?我如何检查这是否是误报?如果是这样的话:我怎么能列出这个错误?

编辑

如果我尝试使用ps命令列出进程,那么使用PID 1769的进程不存在:

# ps -p 1769  PID TTY          TIME CMD# ps aux | grep 1769root     12777  0.0  0.0 112660   960 pts/0    S+   10:25   0:00 grep --color=auto 1769# ps aux | grep apacheapache   12606  0.0  0.5 537092 10224 ?        S    10:15   0:00 /usr/sbin/httpd -DFOREGROUNDapache   12607  0.0  0.5 537092 10224 ?        S    10:15   0:00 /usr/sbin/httpd -DFOREGROUNDapache   12608  0.0  0.5 537092 10224 ?        S    10:15   0:00 /usr/sbin/httpd -DFOREGROUNDapache   12609  0.0  0.5 537092 10224 ?        S    10:15   0:00 /usr/sbin/httpd -DFOREGROUNDapache   12610  0.0  0.5 537092 10224 ?        S    10:15   0:00 /usr/sbin/httpd -DFOREGROUNDroot     12779  0.0  0.0 112660   960 pts/0    S+   10:26   0:00 grep --color=auto apache
解决方法 从 changelog for v 1.4.4:

Added the ALLOWIPCPROC configuration file option. This can be
used to whiteList suspicIoUs processes using shared memory
segments (found during the ‘ipc_shared_mem’ check).

所以白名单使用以下内容

ALLOWIPCPROC=path/to/service

例如

ALLOWIPCPROC=/usr/sbin/httpd
总结

以上是内存溢出为你收集整理的linux – rkhunter:“可疑的共享内存片段”全部内容,希望文章能够帮你解决linux – rkhunter:“可疑的共享内存片段”所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1040114.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存