Skip to content

The rootfs of a microVM should be read-only #283

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

Merged
merged 3 commits into from
Oct 15, 2019

Conversation

kzys
Copy link
Contributor

@kzys kzys commented Oct 10, 2019

Issue #, if available:

NA

Description of changes:

While customers won't be able to access the rootfs, making it read-only
will reduce its attack surface.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@sipsma sipsma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sipsma sipsma marked this pull request as ready for review October 11, 2019 19:55
kzys added a commit to kzys/firecracker-go-sdk that referenced this pull request Oct 11, 2019
kzys added a commit to kzys/firecracker-go-sdk that referenced this pull request Oct 11, 2019
While customers can make it writable by sending a request,
the rootfs should be read-only to reduce our attack surface.

Signed-off-by: Kazuyoshi Kato <[email protected]>
@kzys kzys force-pushed the read-only branch 3 times, most recently from 6de89ed to f31fd30 Compare October 15, 2019 01:11
@kzys kzys force-pushed the read-only branch 2 times, most recently from 56734d8 to df38500 Compare October 15, 2019 18:46
kzys added 2 commits October 15, 2019 12:15
In proto3, all omitted boolean values are considered as false!

This change allows makes the default mode of a drive read-only,
even if the flag is omitted.

Signed-off-by: Kazuyoshi Kato <[email protected]>
Signed-off-by: Kazuyoshi Kato <[email protected]>
Copy link
Contributor

@xibz xibz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@kzys kzys merged commit 7649f00 into firecracker-microvm:master Oct 15, 2019
@kzys kzys deleted the read-only branch October 15, 2019 20:53
Copy link
Contributor

@samuelkarp samuelkarp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

xibz pushed a commit to xibz/firecracker-go-sdk that referenced this pull request Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants