Tech News
← Back to articles

Pizlix: Memory Safe Linux from Scratch

read original related products more articles

Pizlix: Memory Safe Linux From Scratch

Pizlix is LFS (Linux From Scratch) 12.2 with some added components, where userland is compiled with Fil-C. This means you get the most memory safe Linux-like OS currently available.

Caveats:

The kernel is compiled with Yolo-C. So that you can compile the kernel, a copy of GCC is installed in /yolo/bin/gcc .

The C/C++ compiler is compiled with Yolo-C++. Some more information about that: It's likely that a production memory safe OS would still let you run unsafe programs in cases where the security/performance trade-off was warranted. The compiler might be a good example of that. I haven't yet ported LLVM to Fil-C++, and so long as I haven't, the compiler will have to be Yolo-C++. The compiler is called /usr/bin/clang-20 but there are many symlinks to it ( gcc , g++ , cc , c++ , clang , and clang++ all point at clang-20 ). All of the other building-related tools (like ld , make , ninja , etc) are compiled with Fil-C (or Fil-C++).

Pizlix is possible because Fil-C is so compatible with C and C++ that many packages in LFS need no changes, and the rest of them mostly just require small changes. That said, it's not as simple as just replacing LFS's compiler with the Fil-C compiler because:

The Fil-C compiler isn't set up to do the cross-compilation hacks that LFS uses in Chapters 5-7. Therefore, Pizlix uses the Yolo-C toolchain and vanilla versions of the temporary cross-tools in those chapters.

We need to retain the Yolo GCC for compiling the Linux kernel.

This document starts with a description of how to install and build Pizlix. At the end of this document, I explain exactly how Fil-C is injected into LFS.

... continue reading