Bug 2255 - [Anolis OS 23][5.19.0-1.an23.x86_64]修改selinux状态为enforcing,重启后设备不能正常启动
Summary: [Anolis OS 23][5.19.0-1.an23.x86_64]修改selinux状态为enforcing,重启后设备不能正常启动
Status: RESOLVED WONTFIX
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: Images&Installations (show other bugs) Images&Installations
Version: 23.0
Hardware: All Linux
: P2-High S2-major
Target Milestone: ---
Assignee: gaochang
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-23 11:15 UTC by liuyaqing
Modified: 2024-03-04 15:17 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description liuyaqing alibaba_cloud_group 2022-09-23 11:15:51 UTC
Description of problem:
在anolis23版本上修改selinux为Enforcing后重启无法启动

Version-Release number of selected component (if applicable):
anolis23 5.19.0-1.an23.x86_64

How reproducible:
必现

Steps to Reproduce:
1.执行 sed -i "s/SELINUX=disabled/SELINUX=enforcing/" /etc/selinux/config
2.创建文件 touch /.autorelabel
3.重启 reboot

Actual results:
机器无法启动

Expected results:
机器正常启动,selinux状态变成Enforcing

Additional info:
Comment 1 yunmeng365524 2022-09-23 11:36:05 UTC
Anolis8 运行OK
Comment 2 Banana alibaba_cloud_group 2022-11-24 14:01:41 UTC
我也遇到相同问题,配置文件修改为Enforcing模式,重启后无法启动,内核版本如下:
[root@iZbp10v7rsluvl3jma0w80Z sysak]# uname -r
5.17.0-1.an23.x86_64
Comment 3 gaochang alibaba_cloud_group 2024-03-04 15:13:04 UTC
5.17/5.19 内核已不再继续开发,该 bug 关闭