Christian Lehnert — Linux, Hacking & Faith

tag: #linux

10 posts
6 days ago run0 vs sudo - Escalating Privilege Without a setuid Binary

sudo's oldest weakness is structural - it is a large setuid program that starts as root holding a process the untrusted user built. run0, from systemd 256, escalates the opposite way, by asking the already-privileged systemd to spawn a clean process with no inherited context and no setuid anywhere. Here is the real architectural difference, when it matters, and why sudo still wins for automation.

#linux #systemd #sudo #run0 #security
1 month ago Appreciate Your Package Manager

Building Linux From Scratch means living without a package manager for the duration, and the absence teaches you what the presence was doing all along. apt install is one command. Underneath it is dependency resolution, ordering, conflict detection, file tracking, and clean removal, all of which you do by hand under LFS, and all of which you stop noticing the moment you have a package manager to do them for you.

#linux #lfs #apt #package-manager
1 month ago Linux From Scratch Again

Seven years ago I built Linux From Scratch for the first time and understood maybe sixty percent of what I was doing. Last week I built it again on 13.0-systemd, and the second build turned out to be the clearest benchmark I have of what seven years of this work actually added up to.

#linux #lfs
1 month ago Ubuntu Touch Convergence - The Fairphone as a Desktop

The follow-up to running Ubuntu Touch on a Fairphone 4 is the feature that actually distinguishes it from every mainstream phone. Plug the phone into a monitor over USB-C, pair a Bluetooth keyboard, and the phone becomes a desktop computer. The phone's own touchscreen then works as the trackpad. This is convergence, and once it works, it changes what the phone is for.

#ubuntu-touch #ubports #fairphone #linux
1 month ago bcachefs - The Best Filesystem Design That the Kernel Threw Out

bcachefs is, on technical merit, the most interesting copy-on-write filesystem to arrive on Linux in a decade. It is also, as of Linux 6.18, no longer in the kernel, ejected after a governance dispute between its author and Linus Torvalds and now shipping as a DKMS module like ZFS. This is the story of a filesystem whose engineering and whose politics point in opposite directions, and what that means for anyone deciding whether to run it.

#linux #bcachefs #kernel
2 months ago Ubuntu Touch on a Fairphone 4

I run Ubuntu Touch on a Fairphone 4 as my actual phone. It is a good experience, better than the skeptics assume and worse than the enthusiasts claim. Waydroid runs most Android apps, microG handles most of the apps that expect Google services, and the one real cost is that backups do not work the way you are used to. This is the honest writeup.

#ubuntu-touch #ubports #linux
1/6 older >