Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ FROM quay.io/fedora-ostree-desktops/silverblue:${FEDORA_MAJOR_VERSION}
COPY rootfs/ /

RUN systemctl enable rpm-ostree-kargs.service && \
rpm-ostree install chromium haveged && \
rpm-ostree install chromium haveged usbguard && \
rpm-ostree override remove firefox firefox-langpacks && \
rpm-ostree cleanup -m && \
systemctl enable usbguard.service && \
ostree container commit
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Features
- Set additional kernel runtime parameters.
- Blacklist rarely used kernel modules.
- Replace Firefox with Chromium.
- Install and enable [USBGuard][5].

Verification
------------
Expand All @@ -39,3 +40,4 @@ References
[2]: https://madaidans-insecurities.github.io/guides/linux-hardening.html
[3]: https://wiki.archlinux.org/title/Security
[4]: https://docs.sigstore.dev/cosign/overview/
[5]: https://github.com/USBGuard/usbguard
3 changes: 3 additions & 0 deletions rootfs/etc/systemd/system/usbguard.service.d/override.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Service]
ExecStartPre=-mkdir -p /var/log/usbguard
ExecStartPre=-/bin/sh -C -c 'usbguard generate-policy > /etc/usbguard/rules.d/custom.conf'