Login
You're viewing the code4lib.social public feed.
  • Nov 26, 2026, 10:24 AM

    I'm mostly giving up on the idea of memory safety for userspace code because ultimately it does not matter.

    If memory safety is a concern for you it means you have not appropriately sandboxed your application.

    Implement or fix your sandbox instead of chasing out of bounds accesses.

    💬 2🔄 0⭐ 0

Replies

  • Nov 26, 2026, 10:30 AM

    Every application should use landlock to grant itself access to only the files it needs.

    Different security domains should be isolated into their own processes so one cannot DoS another.

    Systemd services should use as many isolation features as possible.

    Memory safety is nice but it's not a catch all. Sandbox your shit

    💬 1🔄 0⭐ 0
  • Nov 26, 2026, 2:46 PM

    @juliank It's really difficult to get that set of access to grant on some applications, especially if it's got plugins of some type.

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 26, 2026, 12:04 PM

    @tris you want to have both but ultimately memory safety is just nice to have if you are properly sandboxed.

    A browser is a good case. A memory safe browser that has all hosts in the same process is less safe than a browser that has all hosts in different processes, assuming both are sandboxed to the host otherwise

    💬 1🔄 0⭐ 0
  • Nov 26, 2026, 12:31 PM

    @juliank Yes, I somewhat agree, @saelo might be have better perspective based on his experience. Memory safety would be a significant improvement to browser security, but only when paired with a good sandboxing architecture baseline like Chromium. This is why I'm not particularly convinced by new one's like Servo from security perspective. So if I had to choose between Servo and an mainstream browser, it would be latter until things get better

    💬 0🔄 0⭐ 0