123 Star 0 Fork 27

src-openEuler / clamav

 / 详情

【23.03 round1 】clamav-milter -c命令执行失败

已验收
缺陷
创建于  
2023-03-02 10:50

【环境信息】
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
出现概率(是否必现,概率性错误):必现
【预期结果】
命令执行成功
【实际结果】
命令执行失败
输入图片说明

评论 (3)

ssttkx 创建了缺陷

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 , @王歌

openeuler-ci-bot 添加了
 
sig/Others
标签
ssttkx 负责人设置为caodongxia
ssttkx 计划截止日期设置为2023-03-03
ssttkx 计划开始日期设置为2023-03-02
ssttkx 优先级设置为主要
ssttkx 里程碑设置为openEuler-23.03-round-1

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 & ,后获取返回值来判断命令是否执行成功。

lyn 任务状态待办的 修改为修复中
lyn 任务状态修复中 修改为已完成

已与开发确认,命令后置可以启动服务

ssttkx 任务状态已完成 修改为已验收

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/clamav.git
git@gitee.com:src-openeuler/clamav.git
src-openeuler
clamav
clamav

搜索帮助