11 Star 1 Fork 28

src-openEuler / selinux-policy

 / 详情

【SP3-arm/x86】全量操作中bind包调用selinx-policy导致升级、降级报错

已验收
缺陷
创建于  
2021-12-02 11:15

【环境信息】
OS:用LTS标准镜像安装系统
repo源:LTS everything、SP3 everything
【操作步骤】
1、配置LTS everything源
2、全量安装 yum -y install “LTS everything源中rpm包”
3、配置SP3 everything源
4、 全量升级 yum -y update “SP3 everything源中rpm包”
5、reboot
6、 全量降级 yum -y downgrade “SP3 everything源中 已安装的 rpm包”
【预期结果】
升级成功
降级成功
【实际结果】
全量操作中 bind包升级、降级将触发该issue
输入图片说明
输入图片说明

附件
suhang 2021-12-02 11:19
update_log(5.09 MB)下载
suhang 2021-12-02 11:20
suhang 2021-12-02 11:20

评论 (6)

suhang 创建了缺陷

Hi suhangself, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at
https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md.
If you have any questions, please contact the SIG: sig-security-facility, and any of the maintainers: @zhujianwei001, @mailofzxf, @robertosassu, @gwei3, @wucaijun.

suhang 修改了描述
suhang 修改了标题
suhang 修改了描述
suhang 上传了附件downgrade_log
suhang 上传了附件update_log
suhang 上传了附件install_log

setools子包python3-setools中提供这些python脚本,在版本升级中老版本(LTS)的python3-setools为4.1.1-17提供这些脚本,在新版本(SP3)4.3.0-4中没有这些脚本

lujie 添加协作者lujie
lujie 负责人lujie 修改为jinag12
lujie 取消协作者lujie

最终出错是在setools,先转给setools的owner。

jinag12 添加协作者jinag12
jinag12 负责人jinag12 修改为gengqihu
jinag12 取消协作者jinag12

全量升级的流程是先升级所有软件包,都升级到新版本后,才去统一清理旧版本文件。policyrep模块属于python3-setools软件包,setools包结构发生过变更:
setools-4.2.0之前版本中,policyrep模块在/usr/lib64/python3.7/site-packages/setools/policyrep目录中。
社区稳定版本setools-4.2.0及之后版本中,policyrep模块集成在动态库中,/usr/lib64/python3.7/site-packages/setools/policyrep.cpython-37m-aarch64-linux-gnu.so。
全量升级过程中,bind升级时以上两者都存在,寻找policyrep模块时,python的机制会优先找policyrep目录,导致找到了旧版本的文件从而没有成功执行semanage命令。
bind能升级到新版本,但影响升级时的semanage命令的正常执行。为不影响关于bind的selinux策略的配置,全量升级后,请使用“dnf -y reinstall bind”命令重新安装bind软件包。

gengqihu 任务状态待办的 修改为已完成
suhang 修改了描述

验证结果: 单包验证 通过
验证版本:SP3-RC5
补充说明:全量升级已验证两次,未复现
验证截图:
输入图片说明
输入图片说明

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

登录 后才可以发表评论

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

搜索帮助

14c37bed 8189591 565d56ea 8189591