Harald Hoyer

Triple Faults for Debug

Rust Echo Server

On modern CPUs, rust seems to perform very nicely with the thread context switches, at least when benchmarking an echo server. For that I also wrote an echo server benchmark client.

dracut and CVE-2016-4484: Cryptsetup Initrd root Shell

People who want to secure their Fedora/RHEL system have to:

  • add a BIOS password
  • add a grub password
  • add "rd.shell=0" to the kernel command line

Anaconda does add "rd.shell=0" to the kernel command line automatically, if you setup the bootloader with a password.

GPG, Smartcard and ssh

This blog post shows how to tweak Fedora, if you want to use a smartcard with OpenPGP and use it also as a ssh key. It also serves me as a recipe for fresh installations.

A Python Transaction Class

This is a repost of a blog post of 2008. Just for the reference :-)

This class allows sub-classes to commit changes to an instance to a history, and rollback to previous states.

libtool: getting rid of 180,000 sed forks

When compiling systemd on rawhide, we noticed a significant slowdown in compile time. Investigating further, it turns out, that libtool forks an incredible amount of sed. Running perf showed 30% of the "make all" was spent in bash. strace showed an execve of sed with the same arguments 180,000 times!!!!!