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

Commit

Permalink
revert scudo
Browse files Browse the repository at this point in the history
  • Loading branch information
charles8191 committed Nov 11, 2024
1 parent 7331914 commit c4377ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
18 changes: 10 additions & 8 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ ADD tunables.conf /usr/lib/sysctl.d/tunables.conf
RUN \
set -x && \
# Memory allocator
curl --create-dirs -Lo /usr/lib64/libscudo.so https://github.com/charles8191/scudo/raw/refs/heads/main/libscudo.so && \
chmod +x /usr/lib64/libscudo.so && \
echo "/usr/lib64/libscudo.so" > /etc/ld.so.preload && \
echo "/usr/lib64/libscudo.so" > /usr/etc/ld.so.preload && \
curl --create-dirs -Lo /usr/lib64/libmimalloc-secure.so https://github.com/charles8191/mimalloc-secure/raw/refs/heads/main/libmimalloc-secure.so && \
chmod +x /usr/lib64/libmimalloc-secure.so && \
echo "/usr/lib64/libmimalloc-secure.so" > /etc/ld.so.preload && \
echo "/usr/lib64/libmimalloc-secure.so" > /usr/etc/ld.so.preload && \
# Branding
sed -i 's,rockylinux.org,github.com/charles8191/netherite,g' /usr/lib/os-release && \
sed -i 's,Rocky Linux,Netherite,g' /usr/lib/os-release && \
Expand All @@ -30,11 +30,13 @@ rm -vf /pubkey.gpg && \
curl -fsSL https://repo.librewolf.net/librewolf.repo | tee /etc/yum.repos.d/librewolf.repo && \
mkdir -p /usr/etc/yum.repos.d && \
curl -fsSL https://repo.librewolf.net/librewolf.repo | tee /usr/etc/yum.repos.d/librewolf.repo && \
rpm-ostree override remove firefox --install librewolf && \
dnf swap firefox librewolf -y && \
# firewalld (breaks the kickstart if not present)
rpm-ostree install firewalld && \
dnf install firewalld -y && \
# SCAP
rpm-ostree install openscap openscap-scanner scap-security-guide -y && \
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-rl9-ds.xml > /scap.sh && \
(bash /scap.sh || true) && \
rm -vf /scap.sh
rm -vf /scap.sh && \
# Clean
dnf clean all
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Netherite is a secure & private operating system based on [Calcite](https://gith
## Features

- [scudo](https://source.android.com/docs/security/test/scudo) using [weekly scudo binaries](https://github.com/charles8191/scudo)
- [mimalloc](https://github.com/microsoft/mimalloc) (secure mode) using [mimalloc-secure binary](https://github.com/charles8191/mimalloc-secure)
- Some remediations from ANSSI-BP-028 Minimal
- [LibreWolf](https://librewolf.net/) instead of Firefox
- Custom chrony config
Expand Down

0 comments on commit c4377ed

Please sign in to comment.