Skip to content

LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.

Release 0.8.0-beta: the Raspberry Pi image enables lord-netperm (the firewall was off there), the live ISO ships current update stamps (no ldconfig on every boot), and the Pi's missing BPF LSM is listed as a known issue

Federico Pereira46c972ac8972
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 35517b8..e7aa47b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -431,6 +431,10 @@ the review's, in [docs/SECURITY-REVIEW-0.8.0.md](docs/SECURITY-REVIEW-0.8.0.md))
- **The Raspberry Pi 5 image has not been booted on a board yet.** The build, the tests and the
login screen are verified on the Pi 5 running from its own SD card, but the published image
itself is still untested on hardware ([docs/RASPBERRY.md](docs/RASPBERRY.md)).
+- **On the Raspberry Pi 5, "No Bluetooth" is not enforced for Linux apps:** the LordOS build of the
+ Raspberry Pi kernel has no BPF LSM (`CONFIG_BPF_LSM`), so the Bluetooth socket program can't be
+ loaded there (`lord-netperm` reports `"bluetooth":false`). The network rules and the other
+ restrictions work as on a PC.
- **The clipboard restriction is not available for Linux apps:** the Wayland data device is not
mediated per app.
- **BlueZ over D-Bus is not mediated:** a Linux app restricted from Bluetooth can't open Bluetooth
diff --git a/tools/iso/build.sh b/tools/iso/build.sh
index db24417..117233d 100755
--- a/tools/iso/build.sh
+++ b/tools/iso/build.sh
@@ -158,6 +158,11 @@ rm -rf "$CH/var/lib/apt/lists/"* "$CH/var/cache/apt/"*.bin "$CH/tmp/"* "$CH/var/
: > "$CH/etc/resolv.conf"
: > "$CH/etc/machine-id" # generated on every boot
in_ch update-initramfs -u > /dev/null 2>&1
+# /etc/.updated and /var/.updated: without them every live boot ran ldconfig.service and
+# systemd-update-done (ConditionNeedsUpdate= compares them with /usr's time), about 7 s on VM 117.
+# The ld.so cache is already current (dpkg's triggers); written last, after every change to /usr.
+in_ch ldconfig
+in_ch /usr/lib/systemd/systemd-update-done
umount_all
# 4. kernel, initramfs and squashfs
diff --git a/tools/rpi/build-img.sh b/tools/rpi/build-img.sh
index 66b9a8d..77b8e64 100755
--- a/tools/rpi/build-img.sh
+++ b/tools/rpi/build-img.sh
@@ -298,6 +298,8 @@ mkdir -p "$CH/var/lib/lordos/rpi"
: > "$CH/var/lib/lordos/rpi/firstboot-pending"
in_root "$CH" systemctl enable lordos-rpi-firstboot.service lordos.service > /dev/null
in_root "$CH" systemctl enable lord-fand.service > /dev/null # fans by temperature from the first boot (docs/FANS.md)
+# per-app network permissions and the device restrictions in the kernel (docs/FIREWALL.md), as on the ISO
+in_root "$CH" systemctl enable lord-netperm.service > /dev/null
in_root "$CH" systemctl mask [email protected] > /dev/null
in_root "$CH" systemctl mask systemd-networkd-wait-online.service > /dev/null 2>&1 || true
# no root password: the emergency console stays locked (like the installed system)