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

Rework current file-system logic #1572

Open
jounathaen opened this issue Jan 27, 2025 · 0 comments
Open

Rework current file-system logic #1572

jounathaen opened this issue Jan 27, 2025 · 0 comments

Comments

@jounathaen
Copy link
Member

Currently, Hermit creates a RAMfs on /, and then (optionally) mounts virtio and uhyve file systems into subdirectories of / (e.g., /root for uhyve).
This approach has the following problems:

  • Multiple mounts would be necessary to mount e.g., /etc and /var/log
  • it is not possible to mount a single host file in the root directory (e.g., /foo.txt)

Additionally, Uhyve now already provides a file sandbox (thanks to @n0toose) that filters desired files and keeps the host-fs clean.

Solution draft:

  • We should default to uhve if available for /, else we use the ramfs.
  • We should mount a special filesystem for /proc, /run, /dev and /sys
  • We should mount the ramfs for /tmp (and maybe /usr/tmp)
  • We could provide a mechanism for specifying other ramfs mounts (overshadowing uhvye)
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

1 participant