Skip to content

Commit

Permalink
documentation and script changes for switching to just using hte harb…
Browse files Browse the repository at this point in the history
…ian-audit project
  • Loading branch information
mmguero committed Sep 12, 2022
1 parent 5eee892 commit 6ac88e0
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 159 deletions.
85 changes: 11 additions & 74 deletions README.md

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions malcolm-iso/config/hooks/normal/0910-agg-build.hook.chroot
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ cat << 'EOF' >> /etc/aide/aide.conf.d/00_local_excludes
!/etc/systemd/system/multi-user\.target\.wants/ntp.service$
!/home(/|$)
!/malcolm_images\.tar\.gz$
!/opt/debian-cis(/|$)
!/opt/STIG-4-Debian(/|$)
!/opt/harbianaudit(/|$)
!/root(/|$)
!/run(/|$)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@

# Copyright (c) 2022 Battelle Energy Alliance, LLC. All rights reserved.

# clone STIG-4-Debian, harbian-audit and debian-cis and clean up some stuff we don't need
# clone harbian-audit and clean up some stuff we don't need
mkdir -p /opt
git clone --depth 1 --recursive --single-branch https://github.com/hardenedlinux/STIG-4-Debian /opt/STIG-4-Debian
git clone --depth 1 --recursive --single-branch https://github.com/hardenedlinux/harbian-audit /opt/harbianaudit
git clone --depth 1 --recursive --single-branch https://github.com/ovh/debian-cis /opt/debian-cis
sed -i "s#CIS_ROOT_DIR=.*#CIS_ROOT_DIR='/opt/harbianaudit'#" /opt/harbianaudit/etc/default.cfg
sed -i "s#CIS_ROOT_DIR=.*#CIS_ROOT_DIR='/opt/debian-cis'#" /opt/debian-cis/debian/default
# cp /opt/harbianaudit/debian/default.cfg /etc/default/cis-hardening
# cp /opt/debian-cis/debian/default /etc/default/cis-hardening
rm -rf /opt/STIG-4-Debian/.git /opt/harbianaudit/.git /opt/debian-cis/.git
cp /opt/harbianaudit/etc/default.cfg /etc/default/cis-hardening
rm -rf /opt/harbianaudit/.git
Loading

0 comments on commit 6ac88e0

Please sign in to comment.