Repository navigation
Ulpm : Universal Linux Package Manager
🚀 ReleaseNotes - ULPM v4.0.0ULPM v4.0.0 is a massive architectural leap forward.
We took everything that made the v3 series fast and innovative, completely refactored the internal engine into a clean modular architecture, hardened unprivileged security boundaries, and added on-the-fly runtime controls.
🏗️ 1. Complete Engine Modularization & Concurrency Safety
•Monolith Decoupling: Replaced the legacy monolithic codebase with a clean, decoupled library layout (lib/crypto.sh, lib/sandbox.sh, lib/pack.sh, lib/deb.sh, lib/stream.sh, lib/run.sh, lib/manage.sh, lib/utils.sh).
•Strict POSIX/Bash Hardening: Comprehensiveaudit with set -euo pipefail, bulletproof variable expansion (${arr[@]+"${arr[@]}"}), and localized function traps ensuring zero dangling mounts or orphaned processes on unexpected termination.
•Non-Blocking Mutex Locking: Integratedkernel-level inter-process file locking via flock on file descriptor 200, preventing race conditions anddatabase corruption during concurrent installs or background streaming.
🔐 2. Autonomous Ed25519 Cryptography & Key Management•Zero-Detached Signatures:
Re-engineered package verification with an autonomous 104-byte binary trailer appended directly to the SquashFS image ([8B Magic ULPM_SIG | 32B Raw Public Key | 64B Ed25519 Signature]).
•ASN.1 /DER Normalization: Implemented low-level dynamic reconstruction of the Ed25519 SubjectPublicKeyInfo prefix (\x30\x2a\x30\x05\x06\x03\x2b\x65\x70\x03\x21\x00), preventing false verification rejections caused by trailingCRLF or PEM whitespace quirks.
•Strict umask Key Protection: Hardened key generation routines enforcing umask 077 subshells to eliminate local private key exposure windows.
🎛️ 3. Dynamic Runtime Kill-Switches Users now have full, instant authority over sandbox permissions via CLI flags without modifying application manifests:
•--offline / --no-net : Kernel-level network unsharing (--unshare-net).
•--no-gpu : Strips /dev/dri, Vulkan, and proprietary NVIDIA devices for untrusted rendering.
•--no-audio : Cuts PipeWire, PulseAudio, andALSA socket pass-through.
•--no-gui : Headless / pure CLI execution isolating X11, Wayland, and IPC sockets.
•--bind : : Dynamic directory bind-mounting into the sandbox at launch.
🐧 4. Advanced RootFS & Full Distro Containment
•Native RootFS Support: First-class execution engine for complete unprivileged operating systems (Debian XFCE, Arch Linux, Alpine, Recalbox/Batocera) directly encapsulated in .lpk bundles.
•Deterministic Entrypoint Dispatch: Intelligent fallback resolution (startxfce4,x-session-manager, bash, sh) when executing distro containers.
•Hardware & Controller Integration: Automatic binding of gamepads, joysticks (/dev/input, /dev/js*, /dev/uinput, /dev/fb0), and render nodes for gaming and emulation runtimes.
🛡️ 5. Sandboxing & Desktop Hardening
•Enhanced Session D-Bus Proxy: Tightened xdg-dbus-proxy filtering policy exposing only essential portal APIs (Desktop, Documents, Notifications, MPRIS, ScreenSaver) while completely isolating host system buses.
•Multi-Language Downloads Gate: Automatic host download directory discovery (xdg-user-dir,user-dirs.dirs, localized fallback paths) linked bidirectionally inside virtual sandboxed $HOME.
•Universal Multiarch Library Paths: Dynamic host library path discovery resolving amd64, arm64, armhf, andriscv64 multiarch locations inside unshared containers.
•Safe Unmount Traps: Lazyand force user-space unmounting routines (fusermount3 -u -z) preventing stale mounts in transient sessions or crash scenarios.
⚡ 6. Ephemeral Streaming & Packaging Enhancements
•In-Memory RAM Streaming (/dev/shm): Redesigned ulpm stream targeting /dev/shm with /run fallbacks to run heavy packages entirely in volatile memory without disk footprint or quota exhaustion.
•GitHub Shorthand Resolution: Native resolution of owner/repo syntax directly fetching matching architecture releases via GitHub API.
•Bounded ELFBundler: Protected DT_NEEDED dynamic library resolution with maximum depth ceilings and copy-check validations, eliminating CPU-spinning infinite loops.
•APT & Local DEB Processing: Robust dual-mode .deb builder extracting both local Debian packages and remote repository dependencies with core C-runtime conflict stripping.