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.
C cdebiandesktop-environmentebpffirewalllandlocklinuxlinux-distributionopen-sourceprivacyquickjsraspberry-pi-5reactsecuritywaylandwayland-compositor
Package: ptrace only of descendants, so a restricted Linux app can't act through an unrestricted process
Federico Pereirae765bc94f4d5
diff --git a/tools/iso/mkdeb.sh b/tools/iso/mkdeb.shindex bc8f8ed..00509fc 100755--- a/tools/iso/mkdeb.sh+++ b/tools/iso/mkdeb.sh@@ -72,6 +72,11 @@ install -m 644 assets/app-host.bundle.js "$L/assets/app-host.bundle.js"install -m 755 tools/iso/rootfs/usr/lib/lordos/lordos-live-prep "$L/lordos-live-prep"install -D -m 644 tools/iso/rootfs/etc/wireplumber/wireplumber.conf.d/lordos-bluez.conf "$PKG/etc/wireplumber/wireplumber.conf.d/lordos-bluez.conf"install -D -m 644 tools/iso/rootfs/etc/pipewire/pipewire-pulse.conf.d/lordos-no-modules.conf "$PKG/etc/pipewire/pipewire-pulse.conf.d/lordos-no-modules.conf"+# a process may only trace its own descendants: a restricted Linux app must not take over an+# unrestricted process of the same user (lord-server, PipeWire, another app) and act through it+install -d "$PKG/usr/lib/sysctl.d"+printf '%s\n' '# LordOS: ptrace only of descendants (docs/FIREWALL.md, "Linux apps")' 'kernel.yama.ptrace_scope = 1' > "$PKG/usr/lib/sysctl.d/50-lordos-ptrace.conf"+chmod 644 "$PKG/usr/lib/sysctl.d/50-lordos-ptrace.conf"install -m 644 tools/iso/rootfs/etc/systemd/system/lordos.service "$PKG/usr/lib/systemd/system/lordos.service"# boot splash (docs/brand/README.md, "Boot splash"): the Plymouth theme and the hand-off to LordOSinstall -m 755 tools/boot/lordos-splash "$L/lordos-splash"@@ -185,6 +190,7 @@ set -eif [ "$1" = configure ] && command -v systemctl >/dev/null 2>&1; thensystemctl daemon-reload >/dev/null 2>&1 || truesystemctl enable lord-fand.service >/dev/null 2>&1 || true+ if [ -d /run/systemd/system ]; then systemctl restart systemd-sysctl.service >/dev/null 2>&1 || true; fiif [ -d /run/systemd/system ]; then systemctl restart lord-fand.service >/dev/null 2>&1 || true; fifi# the boot splash lives in the initramfs: when it is the selected theme, rebuild it with the new images