Skip to content

Theo de Raadt and OpenBSD

Abstract

Theo de Raadt, a Calgary programmer who grew up in South Africa, was one of the four founders of NetBSD in 1993. In December 1994 its other core members asked him to resign, citing his treatment of users and developers, and in October 1995 he started his own fork, OpenBSD. He has led it from Calgary ever since. The project made security its selling point: a file-by-file audit of its source tree from 1996, defences such as W^X and privilege separation switched on by default, and a front-page boast that the default installation has had “only two remote holes” in a very long time. Its side projects reach much further than the operating system. OpenSSH, built in 1999 from the last freely licensed version of Tatu Ylönen’s ssh, became the standard way to log in to Unix and Linux servers (by 2020 it ran on more than nine in ten SSH servers reachable on the internet); the PF packet filter replaced a firewall whose licence turned out not to be free; and LibreSSL forked OpenSSL after Heartbleed in 2014. Apart from a DARPA grant that ended in a row over his politics in 2003, the work has been paid for by donations, which more than once nearly ran out.

Theo de Raadt 2013
Theo de Raadt in 2013. Image: FAndrey, CC BY 2.0, via Wikimedia Commons.

Calgary

De Raadt’s family had lived in eight different parts of South Africa by the time he was nine. They then moved to Canada, first to Calgary and then to Whitehorse in the Yukon, and he went back to Calgary for university. He started in electrical engineering, switched to computer science, and graduated from the University of Calgary in 1993. In the computer science department he found a VAX running Berkeley Unix: “I had discovered 4.2BSD and life was never the same again.”

When the free 386BSD stalled in the early 1990s, de Raadt was one of the four people who started NetBSD, alongside Chris Demetriou, Adam Glass, and Charles Hannum (see The BSD Family). He maintained its port to Sun’s SPARC machines and sat on its core team.

Removal from NetBSD

On 20 December 1994 Demetriou wrote to him on behalf of the core group, signed by J. T. Conklin, Demetriou, Glass, Hannum, and Paul Kranenburg. “Your abusive actions have seriously impaired the success of the NetBSD project in several ways,” the letter said. “Your actions have driven away developers or potential developers, and have alienated many users.” It concluded that “it would be in the best interest of the NetBSD project if you were to resign all official association with the project,” asked him to announce his resignation by 9 a.m. the next day, failing which core would announce it itself, and noted that his accounts had already been disabled. Glass’s public notice of 23 December gave the reason as “Theo’s long history of rudeness towards and abuse of users and developers of NetBSD,” and added that the decision “was difficult to make because Theo has a long history of positive contributions to the project.”

Over most of 1995 de Raadt tried to get commit access back. He promised that “i will not flame people on mailing lists,” wrote that “core doesn’t matter to me anymore. it’s politics. working on code matters,” and complained when his mail went unanswered. Core wanted him to agree to a set of rules for the project; he replied that more than five people had been given access without signing them. By August he was writing that he would “likely setup a seperate BSD project,” and on 4 October 1995 that cutting his ties would “finally make me free to start my own seperate project.” He later put the correspondence on his website, saying he had “been personally slandered, and people have been lied to about why OpenBSD exists.” Both sides’ letters can be read there. He describes it as everything he and core sent each other, but he left out mail that others had forwarded to him, to protect them.

OpenBSD

OpenBSD started in October 1995 as a fork of NetBSD’s development tree, between releases 1.0 and 1.1, imported on 18 October 1995 and coordinated from Calgary. It was one of the first projects to let anyone check out its source tree through anonymous CVS. Being in Canada mattered: the United States still treated strong cryptography as a munition (see The Crypto Wars of the 1990s), and the installation notes of OpenBSD 2.0 pointed out that “OpenBSD is from Canada, and export of these pieces (such as kerberosIV) to the world is not restricted.” The project’s goals still say so, along with “Be as politics-free as possible” and “Try to be the #1 most secure operating system.”

The security work began as an audit. From the summer of 1996 a team of six to twelve people went through “every critical software component” file by file, looking for ordinary bugs more than for specific security holes. The most intense period ran from late 1996 to mid-1997, and thousands of problems were fixed. The default install turned off every service that was not needed.

From there the project moved to defences that assume bugs will remain. Todd Miller and de Raadt introduced strlcpy and strlcat, safer string functions, in 1998. Niels Provos and Markus Friedl brought privilege separation to the OpenSSH server in 2002. OpenBSD 3.3 (May 2003) switched on the ProPolice stack protector across the whole system and introduced W^X, the rule that no memory page may be both writable and executable, at first only on sparc, sparc64, alpha, and hppa, with i386 and powerpc following (see Smashing the Stack). De Raadt’s own pledge of 2015 is a system call with which a program declares which of about three dozen groups of operations it will use; most attempts to step outside them kill the process. Its companion unveil, written with Bob Beck in 2018, hides every file except those a program names.

The front-page count of remote holes needs its fine print. It covers only the default installation. The first hole, in OpenSSH, was fixed on 24 June 2002. The second, an IPv6 kernel overflow reported by Core Security in 2007, was at first treated by OpenBSD as a denial-of-service bug and published on 7 March as a “reliability fix.” Two days earlier Core had told OpenBSD that it had proof-of-concept code that ran attacker code in the kernel, and on 9 March the notice was changed to “security fix.” The page now reads: “Only two remote holes in the default install, in a heck of a long time!”

OpenSSH

In 1999 Tatu Ylönen’s ssh had moved to commercial licences (see Tatu Ylönen and SSH). Version 1.2.12 was, in the OpenSSH project’s words, “the last one free enough for reuse,” and early that year Björn Grönvall had revived it as OSSH. OpenBSD developers found his work less than two months before their 2.6 release and forked it. De Raadt began by stripping out code that made the source harder to read; Provos removed the remaining encumbered cryptographic and GPL components; Friedl added newer protocol versions; Beck and Aaron Campbell handled the build and the documentation. The code was imported on 26 September 1999 and shipped with OpenBSD 2.6 on 1 December 1999. OpenSSH 2.0, with the SSH-2 protocol, followed in June 2000, and Damien Miller and others maintained a portable version for Linux and other systems.

In March 2006 de Raadt told NewsForge: “For our work on OpenSSH, companies using OpenSSH have never given us a cent.” Everything the project had ever received for it, he estimated, “might amount to $1,000.”

PF

OpenBSD had shipped Darren Reed’s IPFilter since 1996. In 2001 its licence turned out to be incompatible with OpenBSD’s requirement that software be free to use, modify, and redistribute, and it was removed. Daniel Hartmeier and Henning Brauer wrote a replacement, PF, which was imported on 24 June 2001 and released with OpenBSD 3.0 on 1 December 2001. Hartmeier described its design at the USENIX conference in 2002, writing that the project had used the opportunity to build a new filter with optimized data structures.

Money

OpenBSD has lived mainly on donations and on sales of CDs, T-shirts, and posters. For a time it also had a grant: from mid-2000 the University of Pennsylvania’s POSSE project, a $2.3 million DARPA contract, paid the salaries of de Raadt and at least three other developers. In early April 2003 The Globe and Mail quoted him saying that the US-led war in Iraq “sickens” him and that he tried to convince himself “that our grant means a half of a cruise missile doesn’t get built.” On 17 April he announced that the remaining money, about 15 percent of the grant, had been withdrawn, three weeks before a developer meeting planned in Calgary. He said the Penn professor in charge had phoned him two days earlier to say that people at the university and at DARPA were uncomfortable with his comments; the professor declined to discuss it with Computerworld, and DARPA did not reply.

In July 2007 the project set up the OpenBSD Foundation, a Canadian federally incorporated non-profit, to accept larger donations and to support OpenBSD, OpenSSH, and related projects. It is not a charity and issues no tax receipts. In January 2014 the foundation was about $20,000 short for the electricity that ran the project’s build machines, and Bob Beck warned on 14 January that “OpenBSD will shut down if we do not have the funding to keep the lights on.” Within a week, Beck said, the appeal had produced “a commitment of approximately $100,000 in donations.” A Romanian bitcoin entrepreneur, Mircea Popescu, announced on IRC that he had sponsored the project, though the foundation’s sponsor list did not yet show him.

LibreSSL

In April 2014 the OpenSSL project disclosed Heartbleed, a bug that let anyone read a server’s memory (see Volunteer-Maintained Infrastructure). On 8 April de Raadt explained on the openbsd-misc list why OpenBSD’s hardened memory allocator had not helped. Properly freed memory, he argued, would have crashed the daemon “instead of leaking your keys,” but OpenSSL kept its own cache of freed memory, on every platform, because malloc was slow “on some platforms.” He ended: “OpenSSL is not developed by a responsible team.”

On 13 April 2014 de Raadt, Ted Unangst, Bob Beck, Joel Sing, Miod Vallat, and Philip Guenther forked OpenSSL 1.0.1g as LibreSSL. Within nine days they had deleted thousands of lines, much of it support for VMS, OS/2, NetWare, classic Mac OS, and old Windows versions. The project’s first web page, set in Comic Sans, said its developers were “too busy deleting and rewriting code to make a decent web page.” The first release, LibreSSL 2.0.0, came out on 11 July 2014, and OpenBSD 5.6 (1 November 2014) was the first OpenBSD release to ship it in place of OpenSSL.

Reputation

Before interviewing de Raadt for Linux.com in 2001, Julie Bresnick found posts online describing him as “difficult.” He told her that he had never been a people person, but now was, and called the OpenBSD team “like a family.” In February 2005, at FOSDEM in Brussels, Richard Stallman presented him with the Free Software Foundation’s award for 2004, “for recognition as founder and project leader of the OpenBSD and OpenSSH projects.”

📚 Sources