Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
Fix SCAP
Browse files Browse the repository at this point in the history
  • Loading branch information
charles8191 authored Nov 29, 2024
1 parent 274f4cc commit 3fe4773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ dnf swap -y firefox chromium && \
dnf install firewalld -y && \
# SCAP
dnf install openscap openscap-scanner scap-security-guide -y && \
oscap xccdf generate fix --profile xccdf_org.ssgproject.content_profile_anssi_bp28_minimal --fix-type bash /usr/share/xml/scap/ssg/content/ssg-cs9-ds.xml > /scap.sh && \
oscap xccdf generate fix --profile xccdf_org.ssgproject.content_profile_anssi_bp28_minimal --fix-type bash /usr/share/xml/scap/ssg/content/ssg-al9-ds.xml > /scap.sh && \
bash /scap.sh ; \
rm -vf /scap.sh && \
# Count Me
sed -i -e s,countme=1,countme=0, /etc/yum.repos.d/*.repo ; \
sed -i -e s,countme=1,countme=0, /usr/etc/yum.repos.d/*.repo ; \
systemctl mask rpm-ostree-countme.timer ; \
# Clean
dnf clean all
dnf clean all

0 comments on commit 3fe4773

Please sign in to comment.