Open
openscap在openEuler-24.03上进行合规检查报错 #3
jcz1234567Add on  Jul 25, 2024
jcz1234567
Jul 25, 2024 Create

一、缺陷信息
镜像:
openEuler-24.03-LTS-x86_64-dvd.iso
内核信息:
6.6.0-28.0.0.34.oe2403.x86_64
缺陷归属组件:
openscap
缺陷归属的版本:
openscap-1.3.9-3.oe2403.x86_64
scap-security-guide-0.1.68-4.oe2403.noarch
缺陷简述:
执行此命令报错,找不到/usr/share/xml/scap/ssg/content/openeuler2403目录,所有检测项均为notapplicable
oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_standard --results results.xml --report report.html /usr/share/xml/scap/ssg/content/ssg-openeuler2403-xccdf.xml

【问题复现步骤】,请描述具体的操作步骤
oscap info /usr/share/xml/scap/ssg/content/ssg-openeuler2403-xccdf.xml
oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_standard --results results.xml --report report.html /usr/share/xml/scap/ssg/content/ssg-openeuler2403-xccdf.xml
【实际结果】,请描述出问题的结果和影响
报错信息如下:

输入图片说明

likedislike
Jjcz1234567
Jul 25, 2024 创建了缺陷
-
Jul 25, 2024 Comments:

Hi jcz1234567, 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: Programming-language, and any of the maintainers: @algorithmofdish , @Charlie_li , @lyn1001 , @caodongxia , @Lostwayzxc

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Jul 25, 2024 添加了   sig/Programming-lang 标签
Jjcz1234567
Jul 25, 2024 修改了描述
Jjcz1234567
Jul 25, 2024 修改了描述
Jjcz1234567
Jul 25, 2024 修改了描述
-
Jul 27, 2024 Comments:

命令使用错误,使用如下命令:
oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_standard --results scan_results.xml --report scan_report.html /usr/share/xml/scap/ssg/content/ssg-openeuler2403-ds.xml

likedislike
-
Jul 27, 2024 Comments:
jcz1234567
Aug 6, 2024 Comments:

命令使用错误,使用如下命令:
oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_standard --results scan_results.xml --report scan_report.html /usr/share/xml/scap/ssg/content/ssg-openeuler2403-ds.xml

可以理解为,ssg-openeuler2403-ds.xml包含ssg-openeuler2403-xccdf.xml的内容,但ssg-openeuler2403-xccdf.xml不能使用吗

likedislike