Bug 28992 - systemd包验证失败,多个日志文件组属性与RPM记录不一致
Summary: systemd包验证失败,多个日志文件组属性与RPM记录不一致
Status: NEW
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 8.8
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Jacob
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-30 08:56 UTC by djjjjj
Modified: 2025-12-30 08:56 UTC (History)
0 users

See Also:


Attachments
用于复现问题的 Dockerfile (9.15 KB, application/octet-stream)
2025-12-30 08:56 UTC, djjjjj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description djjjjj 2025-12-30 08:56:07 UTC
Created attachment 1458 [details]
用于复现问题的 Dockerfile

Description of problem:
Anolis OS 8.8系统中执行rpm -V systemd验证失败,/var/run/utmp、/var/log/btmp、/var/log/lastlog、/var/log/wtmp等文件的组属性为root,但RPM数据库中记录的期望组属性为utmp,导致系统完整性检查失败。

Version-Release number of selected component (if applicable):
systemd-239-58.0.5.an8_6.8.x86_64

How reproducible:
每次必现

Steps to Reproduce:
安装Anolis OS 8.8系统
执行 rpm -V systemd 验证systemd包完整性
执行 ls -la /var/run/utmp 查看文件组属性
Actual results:
验证失败,输出包含:
......G..  g /var/log/btmp
......G..  g /var/log/lastlog
......G..  g /var/log/wtmp
......G..  g /var/run/utmp
文件组属性:-rw-rw-r-- root root(组为root)

Expected results:
验证应通过,文件组属性应为utmp(与CentOS 8行为一致)
文件组属性:-rw-rw-r-- root utmp

Additional info:
对比测试发现CentOS 8中/var/run/utmp等文件的组属性为utmp,rpm -V systemd验证通过无任何输出。Anolis OS 8.8的当前行为与CentOS 8不兼容。G标志表示组所有权不匹配。另外还发现28个locale文件(如/usr/share/locale/zh_CN/LC_MESSAGES/systemd.mo)缺失,建议一并检查。