News for hackers. Stuff that matters.
Re:Ask HN: Startup getting spammed with PayPal disputes, wha... by danbreuer on Monday June 16, 2025 @08:02AM (#44288760)
Yep, forgot to mention that.

To take this further, it's also possible to enforce that executables are confined to a few well-understood directories with good permissions by using the noexec option when mounting. Directories with executables are mounted normally (with locked down write permissions) and everything else mounted with noexec.

I use this on Nix OS. There all executables live under the read-only directory /nix/store. So you can mount / with noexec, giving the nice property that all files that are writable are by definition not executable.

There are no comments on this comment yet.