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

Commit

Permalink
umask + usbguard
Browse files Browse the repository at this point in the history
  • Loading branch information
charles8191 authored Dec 3, 2024
1 parent d55496e commit 31ae59c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ ADD browser.json /etc/chromium/policies/managed/browser.json
ADD browser.json /usr/etc/chromium/policies/managed/browser.json
RUN \
set -x && \
# umask
sed -i 's/UMASK 022/UMASK 077/g' /etc/login.defs && \
sed -i 's/HOME_MODE/#HOME_MODE/g' /etc/login.defs && \
# hardened_malloc
curl --create-dirs -Lo /usr/lib64/libhardened_malloc.so https://github.com/charles8191/hardened_malloc/raw/refs/heads/main/libhardened_malloc-debian.so && \
chmod +x /usr/lib64/libhardened_malloc.so && \
chmod 755 /usr/lib64/libhardened_malloc.so && \
echo "/usr/lib64/libhardened_malloc.so" > /etc/ld.so.preload && \
echo "/usr/lib64/libhardened_malloc.so" > /usr/etc/ld.so.preload && \
# Branding
Expand All @@ -30,6 +33,9 @@ dnf config-manager --set-enabled crb && \
dnf swap -y firefox chromium && \
# firewalld (breaks the kickstart if not present)
dnf install firewalld -y && \
# usbguard
dnf install usbguard -y && \
systemctl disable usbguard ; \
# 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-almalinux9-ds.xml > /scap.sh && \
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Netherite is a secure & private operating system based on [Calcite](https://gith
- Modified `os-release` file
- [Enhanced NetworkManager privacy](net-privacy.conf)
- Count Me disabled
- usbguard installed (but not enabled)
- umask configured

## Installation

Expand Down

0 comments on commit 31ae59c

Please sign in to comment.