Skip to content

Implement read-only file system parameter #896

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tracked by #843
n0toose opened this issue Feb 5, 2025 · 2 comments
Open
Tracked by #843

Implement read-only file system parameter #896

n0toose opened this issue Feb 5, 2025 · 2 comments
Labels
enhancement New feature or request File System

Comments

@n0toose
Copy link
Member

n0toose commented Feb 5, 2025

It would be interesting to add a flag that does not allow for any modifications to the host OS's file system, like virtio-fs does. write should return an error and, once merged, Landlock (#816) should only derive rulesets with read-only access and prohibit write operations as well.

See: #896

@n0toose n0toose changed the title readonly flag (prohibit modifications to the filesystem): https://gitlab.com/virtio-fs/virtiofsd/-/blob/main/src/main.rs#L161 Implement --readonly in Uhyve Feb 5, 2025
@n0toose n0toose added the enhancement New feature or request label Feb 5, 2025
@n0toose n0toose changed the title Implement --readonly in Uhyve Implement --readonly parameter Feb 5, 2025
@n0toose
Copy link
Member Author

n0toose commented May 6, 2025

Idea: We have a --file-isolation parameter, perhaps we could use it to do --file-isolation=readonly and alias --readonly to that.

@jounathaen
Copy link
Member

Docker does this via a flag upon volume mounting: -v volume-name:/path/in/container:ro. As we try to stick to the docker syntax anyway, I'd propose this instead of a separate flag.

@n0toose n0toose changed the title Implement --readonly parameter Implement read-only file system parameter May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request File System
Projects
Development

No branches or pull requests

2 participants