Bug 29407 - auditctl 命令不支持 --help 选项,执行时报错 "Option --help is invalid",与 CentOS 8 行为不一致。CentOS 8 中 auditctl --help 可以正常显示帮助信息。
Summary: auditctl 命令不支持 --help 选项,执行时报错 "Option --help is invalid",与 CentOS 8 行为不一致。Ce...
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: 2026-01-11 22:29 UTC by djjjjj
Modified: 2026-01-11 22:29 UTC (History)
0 users

See Also:


Attachments
用于复现问题的 Dockerfile (3.37 KB, text/plain)
2026-01-11 22:29 UTC, djjjjj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description djjjjj 2026-01-11 22:29:13 UTC
Created attachment 1461 [details]
用于复现问题的 Dockerfile

Description of problem:
auditctl 命令不支持 --help 选项,执行时报错 "Option --help is invalid",与 CentOS 8 行为不一致。CentOS 8 中 auditctl --help 可以正常显示帮助信息。
Version-Release number of selected component (if applicable):
audit-3.0.7-6.0.1.an8.x86_64
How reproducible:
每次必现
Steps to Reproduce:

安装 audit 包: yum install -y audit
执行 auditctl --help
观察输出结果

Actual results:
AnolisOS 8.8 输出:
Option --help is invalid
There was an error while processing parameters
执行 auditctl -h 时虽然能显示帮助信息,但仍然先输出错误:
There was an error while processing parameters
usage: auditctl [options]
...
Expected results:
与 CentOS 8 行为一致,auditctl --help 和 auditctl -h 都应该正常显示帮助信息,不应该报错。
CentOS 8 输出:
usage: auditctl [options]
-a <l,a>            Append rule to end of <l>ist with <a>ction
-A <l,a>            Add rule at beginning of <l>ist with <a>ction
...
Additional info:
此问题影响用户体验和脚本兼容性。--help 是 Linux 命令行工具的标准惯例,用户习惯使用 --help 获取帮助信息。依赖 --help 返回值的自动化脚本在 AnolisOS 上可能会失败。
测试环境:
AnolisOS 8.8 容器镜像 openanolis/anolisos:8.8
对比环境: CentOS 8 容器镜像 centos:8