【环境信息】
arm和x86
openEuler-23.03-round-1
【问题复现步骤】
具体操作步骤
dnf install -y clamav clamav-milter
mv /etc/mail/clamav-milter.conf /etc/mail/clamav-milter.conf.bak
echo " MilterSocket /run/clamav-milter/clamav-milter.socket
User clamilt
ClamdSocket unix:/var/run/clamd.scan/clamd.sock
LogSyslog yes" >/etc/mail/clamav-milter.conf
clamav-milter -c /etc/mail/clamav-milter.conf
出现概率(是否必现,概率性错误):必现
【预期结果】
命令执行成功
【实际结果】
命令执行失败
Hi ssttkx, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Others, and any of the maintainers: @jimmy_hero , @small_leek , @mdche , @王歌
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
clamav-milter.service链接如下:
https://gitee.com/src-openeuler/clamav/blob/openEuler-23.03/clamav-milter.systemd
`[Unit]
Description = Milter module for the Clam Antivirus scanner
After = syslog.target nss-lookup.target network.target
Before = sendmail.service
Before = postfix.service
After = clamd@scan.service
[Service]
Type = forking
ExecStart = /usr/sbin/clamav-milter -c /etc/mail/clamav-milter.conf
Restart = on-failure
User=clamilt
Group=clamilt
PrivateTmp=yes
PrivateDevices=yes
CapabilityBoundingSet=CAP_KILL
ReadOnlyDirectories=/etc
ReadOnlyDirectories=/usr
ReadOnlyDirectories=/var/lib
[Install]
WantedBy = multi-user.target`
实际执行的命令和issue测试问题一致,systemctl start clamav-milter服务可以启动成功。
kernel升级后,clamav-milter -c /etc/mail/clamav-milter.conf命令无回显,可以用 clamav-milter -c /etc/mail/clamav-milter.conf & ,后获取返回值来判断命令是否执行成功。
已与开发确认,命令后置可以启动服务
登录 后才可以发表评论