forked from microsoft/hcsshim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Standardize LCOW uVM bootfiles update (microsoft#1861)
`NewDefaultOptionsLCOW` sets `RootFSFile` and `KernelFile` depending on the contents of the (default) `BootFilesPath` directory and `KerenelDirect` field. However, if `BootFilesPath` is subsequently updated, those fields are not updated. This can result in inconsistent behavior, where (depending on if the default `BootFilesPath` contains `vmlinux` and `rootfs.vhd` files), a uVM created with an overridden `BootFilesPath` may either use `initrd` (`kernel`) or `vmlinux` (`rootfs.vhd`), respectively. Add a `UpdateBootFilesPath` function to consistently change the `BootFilesPath` and associated options. Update annotation handling to use `UpdateBootFilesPath`. Security policy is still performed after the update, so settings will be re-overridden for the confidential case, or by other annotations, so existing (normal) behavior is persisted. Signed-off-by: Hamza El-Saawy <[email protected]>
- Loading branch information
Showing
6 changed files
with
68 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters