加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

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

发布时间:2020-12-13 17:02:55 所属栏目:Linux 来源:网络整理
导读:我这里有一个安装了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 [
我这里有一个安装了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 1769
root     12777  0.0  0.0 112660   960 pts/0    S+   10:25   0:00 grep --color=auto 1769
# ps aux | grep apache
apache   12606  0.0  0.5 537092 10224 ?        S    10:15   0:00 /usr/sbin/httpd -DFOREGROUND
apache   12607  0.0  0.5 537092 10224 ?        S    10:15   0:00 /usr/sbin/httpd -DFOREGROUND
apache   12608  0.0  0.5 537092 10224 ?        S    10:15   0:00 /usr/sbin/httpd -DFOREGROUND
apache   12609  0.0  0.5 537092 10224 ?        S    10:15   0:00 /usr/sbin/httpd -DFOREGROUND
apache   12610  0.0  0.5 537092 10224 ?        S    10:15   0:00 /usr/sbin/httpd -DFOREGROUND
root     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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读