Skip to content
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

Is it possible to use overlayfs with tdxref-signed? #47

Open
thepinkmile opened this issue Aug 10, 2024 · 2 comments
Open

Is it possible to use overlayfs with tdxref-signed? #47

thepinkmile opened this issue Aug 10, 2024 · 2 comments

Comments

@thepinkmile
Copy link

Currently building minimal reference image adding this layer for secure boot and encrypted partition.

I am wondering if there might be a possibility to implement an overlayfs such that I can use my encrypted partition as the writable layer of the fs?
Mainly due to the fact the rootfs will be read-only.

This would also enable me to have a temp solution to provide remote-offline-updates (albeit a hacky one). At least until we can re-evaluate the decision to not use torizon os.

@sergioprado
Copy link
Collaborator

I have never tried combining dm-verity and overlayfs, but it seems to be possible: see https://docs.kernel.org/filesystems/overlayfs.html#fs-verity-support

Just be aware that this might have some security impacts, as this enables writes to the rootfs at runtime.

@thepinkmile
Copy link
Author

Will have a look at that link tomorrow when I get to the rootfs testing again.

I believe the idea is to actually use a tempfs as the writable layer. But to temporarily allow partial updates, we would “commit” these changes via an external mechanism.

However, this is only until we can move over to a better solution (ideally using TorizonOS).

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

No branches or pull requests

2 participants