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

前端之家收集整理的这篇文章主要介绍了linux – rkhunter:“可疑的共享内存片段”前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我这里有一个安装了CentOS7和GroupOffice的新安装服务器.安装rkhunter并启动rkhunter检查后,我得到:
  1. [09:58:15] SuspicIoUs Shared Memory segments
  2. [09:58:15] Process: PID: 1769 Owner: apache [ Found ]
  3. [09:58:15] SuspicIoUs Shared Memory segments [ Warning ]

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

编辑

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

  1. # ps -p 1769
  2. PID TTY TIME CMD
  3. # ps aux | grep 1769
  4. root 12777 0.0 0.0 112660 960 pts/0 S+ 10:25 0:00 grep --color=auto 1769
  5. # ps aux | grep apache
  6. apache 12606 0.0 0.5 537092 10224 ? S 10:15 0:00 /usr/sbin/httpd -DFOREGROUND
  7. apache 12607 0.0 0.5 537092 10224 ? S 10:15 0:00 /usr/sbin/httpd -DFOREGROUND
  8. apache 12608 0.0 0.5 537092 10224 ? S 10:15 0:00 /usr/sbin/httpd -DFOREGROUND
  9. apache 12609 0.0 0.5 537092 10224 ? S 10:15 0:00 /usr/sbin/httpd -DFOREGROUND
  10. apache 12610 0.0 0.5 537092 10224 ? S 10:15 0:00 /usr/sbin/httpd -DFOREGROUND
  11. 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).

所以白名单使用以下内容

  1. ALLOWIPCPROC=path/to/service

例如

  1. ALLOWIPCPROC=/usr/sbin/httpd

猜你在找的Linux相关文章