我这里有一个安装了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