points by cperciva 2 days ago

Alternatively, switch to an operating system like FreeBSD which doesn't take a YOLO approach to security. Security fixes don't just get tossed into the FreeBSD kernel without coordination; they go through the FreeBSD security team and we have binary updates (via FreeBSD Update, and via pkgbase for 15.0-RELEASE) published within a couple minutes of the patches hitting the src tree. (Roughly speaking, a few seconds for the "I've pushed the patches" message to go out on slack, 10-30 seconds for patches to be uploaded, and up to a minute for mirrors to sync).

gucci-on-fleek 1 day ago

I'm somewhat skeptical here, because I notified the FreeBSD security team of a vulnerability a few years ago, and I never got a response, even after a follow-up email a few weeks later. To be fair, my report was about a non-core component, and the vulnerability wouldn't be very easy to exploit, but Debian, OpenBSD, SUSE, and Gentoo all patched it within a week [0].

That being said, I'm not suggesting that anyone should judge an entire OS based off of how they handle a single minor report, since everything else that I've seen suggests that FreeBSD takes security reports quite seriously. But then you could also use this same argument for the Linux kernel bug, since it's pretty rare for a patch to be mismanaged like this there too :)

[0]: https://www.maxchernoff.ca/p/luatex-vulnerabilities#timeline

  • stingraycharles 1 day ago

    Linux Kernel doesn’t differentiate between security bugs and other bugs, which is the main complaint here I think. They have the same process.

    So the issue is bigger than the mishandling of a single issue, it’s a fundamental process issue around security for one of the most impactful projects in the entire space.

landr0id 1 day ago

FreeBSD didn’t have user land ASLR until 2019 and, amongst other mitigations, still doesn’t have kASLR. It’s not a serious operating system for people who care about security. If you want FreeBSD and security take Shawn Webb’s HardenedBSD.

  • kelnos 1 day ago

    Last I read, ASLR is a good thing to have, but overall is usually not difficult to defeat. It's a speed bump, not a brick wall.

    I don't think it's reasonable to say that an OS that lacks it isn't "serious" about security.

    • landr0id 1 day ago

      >Last I read, ASLR is a good thing to have, but overall is usually not difficult to defeat.

      For local attackers there may be easier avenues to leak the ASLR slide, but for remote attackers it's almost universally agreed it significantly raises the bar.

      >I don't think it's reasonable to say that an OS that lacks it isn't "serious" about security.

      When they implemented it in 2019 it had been an 18-year-old mitigation. If you are serious about security, you implement everything that raises the bar. The term "defense-in-depth" exists for a reason, and ASLR is probably one of the easiest and most effective defense-in-depth measures you can implement that doesn't necessarily require changes from existing code other than compiling with -pie.

  • user3939382 1 day ago

    So you have one example in hand and trash talked FreeBSD’s entire security team. Bold claims are fine but this is lazy.

    FreeBSD isn’t secure, I suspect you’re sitting on a pile of 0 days for it?

    • landr0id 1 day ago

      Ask yourself why Mythos was so easily able to develop a remote STACK buffer overflow vulnerability.

      • nozzlegear 1 day ago

        Define "so easily"?

        • landr0id 1 day ago

          They exploited a linear stack buffer overflow. Not a write-what-where or arb write. A linear stack buffer overflow in 2026! There are at least two distinct failures there:

          1. No strong stack protectors.

          2. No kASLR.

          That's 20-year-old exploit methodology.

  • abrookewood 1 day ago

    Is there anywhere that provides a good overview of the various OS protection technologies/approaches that exist and which OSes have implemented them?

krupan 1 day ago

If you are switching to a BSD for security reasons, why FreeBSD? Isn't OpenBSD the super secure one? Sorry, it's been a while since I've looked at those projects

  • andai 1 day ago

    I haven't switched to BSD but I've been thinking about it for a while. I just saw Vultr has both FreeBSD and OpenBSD!

  • loloquwowndueo 1 day ago

    The person suggesting FreeBSD is a FreeBSD developer (Colin Percival - actually according to Wikipedia FreeBSD engineering lead), would be weird for him to suggest openbsd.

    • Rendello 1 day ago

      I'm reminded of another legendary HN thread:

      https://news.ycombinator.com/item?id=35079

      • guiambros 1 day ago

        Also hilarious to see Drew Houston responding a bit later on the same thread:

        > we're in a similar space -- http://www.getdropbox.com (and part of the yc summer 07 program) basically, sync and backup done right (but for windows and os x). i had the same frustrations as you with existing solutions.

        > let me know if it's something you're interested in, or if you want to chat about it sometime.

        >drew (at getdropbox.com)

      • liamwire 1 day ago

        It may well have been your point, but that it's the exact same person makes this even better

        • Rendello 21 hours ago

          It was, yes. I was trying to figure a way to bring it up but I didn't want to imply that the comment here was ignorant for not knowing the account. It's the opposite, HN accounts have so little fanfare and we all talk in the same threads, it's fun!

    • krupan 4 hours ago

      Why did you assume I didn't know that?

tclancy 1 day ago

There’s always a guy. It’s great that your favorite distro is definitely safer. An order of magnitude fewer exploits will mean only a few thousand or so, I suppose. Ozymandis used Gentoo.

  • dag100 1 day ago

    Calling FreeBSD "just a distro" is verging on insulting. It's an operating system.

    • tclancy 1 day ago

      Apologies, "OS". I am not a native speaker of whatever place that considers these fightin' words.

    • pocksuppet 1 day ago

      Distros are operating systems.

      • dag100 23 hours ago

        But operating systems are not distros.

        Less laconically, distros generally refer to the userland parts of the operating systems rather than the actual kernel. FreeBSD does not use the Linux kernel so calling it a distro, which typically refer specifically to Linux distros, wouldn't be accurate.

  • GalaxyNova 1 day ago

    FreeBSD is not a distro

    • stackghost 1 day ago

      What does the D in BSD stand for again?

      • beng-nl 1 day ago

        Distribution. But it’s not a Linux distribution.

      • shaky-carrousel 1 day ago

        Distribution. Which is a different word than distro, with a different meaning. Like smart and smartass.

        • einsteinx2 1 day ago

          While you’re correct that FreeBSD is not a Linux distribution, the word “distro” is literally short for distribution. It doesn’t have a different meaning like smart and smartass, it’s more like repo and repository.

      • tom_alexander 1 day ago

        That's more of a historical artifact. The BSDs started as just "BSD": a set of patches for AT&T Unix that were _distributed_ by Berkeley. Eventually the patches became complete enough to be an entire operating system. _Then_ the various BSDs that we know today (FreeBSD, OpenBSD, NetBSD, DragonflyBSD) all forked and became completely independent operating systems. For decades, FreeBSD's kernel and userland has been developed independently from the OpenBSD kernel and userland which is developed independently from NetBSD's kernel and userland, etc. You could not take an OpenBSD program and run it on FreeBSD. Even recompilation from source isn't necessarily enough since the BSDs support different syscalls.

        They are completely independent operating systems with a distant shared history.

        Whereas on Linux, the distros are taking a common Linux kernel source, and combining it with their choice of common userlands like GNU. Debian has the same kernel and GNU userland that Arch and Fedora use. You could take a program compiled for Debian and run it on Arch, which is common these days due to Docker where you're pulling another distro's userland and running it on your distro's kernel. That is how Linux distros are "distros" whereas the BSDs are independent operating systems.

        • radiator 2 hours ago

          This seems too long and it does not even answer the question. The question was specific, and the answer could be only one word long.

  • LoganDark 1 day ago

    FreeBSD is not a distro. It's not even Linux; it's a completely different kernel and operating system that traces back to even before Linux. It's honestly closer to Darwin than it is to Linux; macOS is technically a BSD. (Not FreeBSD though.)

    • steve1977 1 day ago

      Darwin is its own thing really. There are parts from BSD, there are also parts from Mach and there are also unique parts.

      • LoganDark 1 day ago

        Of course. Linux does not share any heritage with BSD though.

        • Melatonic 1 day ago

          Except that they are both based on Unix and (generally) made to run on x86 processors. Which is a pretty big similarity

          • LoganDark 23 hours ago

            Linux is not based on Unix. AFAIK it was inspired by Unix, but does not actually share anything.

  • shakna 1 day ago

    Well, as they're a FreeBSD dev, I would be surprised if they pointed anyone in a different direction.

dijit 1 day ago

FreeBSD is quite lax when it comes to security- especially defaults and configs.

The preference is for usability over security.

Famously: https://vez.mrsk.me/freebsd-defaults

I appreciate your work on the project, but I can’t in good conscience suggest people switch while are such bad defaults.

eahm 2 days ago

Also funny they never show Debian in those tests/videos.

  • cperciva 1 day ago

    Debian is probably the best of all the Linuxes, but still suffers from split-brain: If patches are sent upstream first, Debian can't start digesting them until they're already public.

    With FreeBSD there's never any question of "who should this get reported to".

    • JoshTriplett 1 day ago

      > Debian can't start digesting them until they're already public

      Not sure what you mean by this. Debian is able to handle coordinated disclosures (when they're actually coordinated), and get embargoed security updates out rapidly without breaking the embargo.

      Is there some other aspect of this that you're referencing?

      • pavon 1 day ago

        The fact that the kernel security team has decided coordinating disclosure is someone else's problem so it happens inconsistently.

      • cperciva 1 day ago

        The key words there are "when they're actually coordinated". Debian doesn't own the Linux kernel, and the kernel developers don't bother with coordinated disclosure, so the happy path of coordinated disclosure only happens when reporters make the non-obvious choice of reporting vulnerabilities to people other than the maintainers.

        • JoshTriplett 1 day ago

          Fair enough; yeah, at the point where the embargo failed, it was important that patches get to distros as fast as possible in order to ship the fixes.

    • goodpoint 1 day ago

      No, Debian has its own security team and receives embargoed vulnerabilities and patches.

f30e3dfed1c9 1 day ago

Been constructing a lot of infrastructure servers recently, almost all of them FreeBSD VMs running under bhyve on FreeBSD physical hosts. It's a very simple, clean, pleasant environment to work in. And they all run tarsnap. ;-)

voidUpdate 1 day ago

I've kept hearing about BSD recently, how hard is it to actually switch to? I'm guessing Linux executables don't work on it since it's not Linux, do all your packages have to be made specifically for BSD?

  • brewmarche 1 day ago

    My experiences from dabbling with it a few months ago:

    In general everything needs to be compiled for FreeBSD, but the ports collection is quite extensive. For example you will find Firefox, wayland, GNOME, KDE, xfce, … even dotnet was on there.

    Problems arise with properietary stuff like Spotify, Widevine DRM etc. However, FreeBSD has a Linux emulation layer (providing syscalls), dubbed ‘Linuxulator’. I managed to run the Spotify Linux desktop client but the Spotify website wouldn’t let me log in, didn’t research further. AFAIK the emulator is limited though, not implementing all syscalls.

    There is also podman for FreeBSD and in addition to running FreeBSD containers (using Jails under the hood I guess?) it can run Linux containers as well (using the Linuxulator in addition then?).

    It also comes with a hypervisor called bhyve if you want to run VMs

    There is a handbook on their website describing how to set up a system (including desktop environment) if you want to give it a go.

    • wolvoleo 2 hours ago

      For spotify, just use spotify-qt :)

      I don't think docker works in the linuxulator though. That's the one thing I miss sometimes.

  • wolvoleo 2 hours ago

    Yes they do but there's a team of maintainers that do just that. There's even ports of software which isn't officially supported on FreeBSD.

ComplexSystems 1 day ago

While I am sure FreeBSD is more secure than your average Linux distro, I sure hope they are using these new AI models to harden everything.

pjmlp 1 day ago

Only to be thrown out of the windows with a plain "curl | sh".

  • skydhash 1 day ago

    curl | sh is more prevalent in Linux where you can expect a stable ABI from the kernel and sometimes GNU libc. No such things in BSD land. Packages are built against a release always. They don't maintain binary compatibility.

    • pjmlp 1 day ago

      Hardly an argument against random shell scripts execution, quite often elevated.

      Not everyone installs only what is available in pkgsrc.

bananamogul 1 day ago

FreeBSD just slaps at the problem. OpenBSD solves it.

I kid, I kid...