You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(fs): expose overlayfs API for macOS
Add public API for using OverlayFS functionality in libkrun on macOS by exposing
the implementation through a new FsImplConfig enum. This allows clients to
configure either passthrough or overlayfs filesystem modes.
Key changes:
- Add FsImplConfig enum to select between Passthrough and Overlayfs modes
- Add FsImplShare enum to handle different sharing configurations
- Refactor Fs implementation to delegate operations to selected backend
- Update Config struct to include layers configuration
- Clean up and reorganize filesystem server code
- Add comprehensive test coverage for overlayfs operations
The implementation maintains the existing passthrough functionality while adding
the ability to configure overlayfs mode with multiple read-only layers and a
writable top layer.
* feat(overlayfs): add special handling for init.krun lookup
Add special case handling in the lookup method to return a predefined entry
when looking up "init.krun" file. This allows exposing the init binary with
specific permissions (755) and size based on the included binary data.
* fix(overlayfs): improve init.krun inode handling and documentation
- Set init.krun inode ID dynamically using next_inode counter
- Reorder init.krun inode check before handle data lookup in read()
- Add documentation about default values for config options
- Clarify proc_sfd_rawfd usage in sandboxing scenarios
- Update comments to specifically reference init.krun
* refactor(fs): remove debug println statements from overlayfs
0 commit comments