|
|
Log in / Subscribe / Register

How would file system being only writable or only executable work in practice?

How would file system being only writable or only executable work in practice?

Posted Nov 6, 2025 18:21 UTC (Thu) by NYKevin (subscriber, #129325)
In reply to: How would file system being only writable or only executable work in practice? by gray_-_wolf
Parent article: A security model for systemd

For local development, of arbitrary projects, it will probably never be feasible to have a fully write-xor-execute filesystem. But we can get partway there:

* A lot of users are not interested in local development, and just want to install and run applications that somebody else wrote. They can ignore this problem.
* If we are doing local development and need a writable executable filesystem, we can at least narrow the scope of that to $HOME or possibly even something more specific like the project directory.
* If we are using something like Bazel, we may be able to go further and actually have a write-xor-execute filesystem, because Bazel already requires you to pervasively describe the inputs and outputs of all parts of the build process, and already uses build sandboxing to enforce correctness. So it knows exactly which files need to be "blessed" or transferred into some immutable-and-executable location, and it even knows when this "blessing" operation needs to happen for correct build sequencing. I'm not sure if it actually has the functionality to do this, but I imagine it can be added if it is not already there.

Disclaimer: I work for Google and use the internal equivalent of Bazel all the time, but I have not studied its sandboxing functionality in detail.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds