|
|
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 12:12 UTC (Thu) by gray_-_wolf (subscriber, #131074)
Parent article: A security model for systemd

> A filesystems should be mounted writable so that its contents can be modified, or it should be mounted as executable so that binaries could be run from it. But a filesystem should never be both. If that were implemented through the whole system, he said, it would be much more secure.

So, uh, how is this supposed to work in practice? I want to install program into /opt/PROG, using `make install'. So I first need to switch /opt to be writable. (Well, first I need to make it into a separate file system.) Ok, now I can install my program. And after I am done, I need to re-mount the /opt into executable mode. And then I will need to go through the installed files and decide which needs to be executable and which writable. Since /opt/PROG/bin needs to be executable, but /opt/PROG/etc needs to be writable.

This does not seem very... ergonomic.

Related question, is there an upper limit on number of mounts? Quick `find' across my file system suggests I would need around 10k of them currently (but I did a clean up fairly recently).


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


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