-
Notifications
You must be signed in to change notification settings - Fork 574
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
feat: implement secure boot from disk #7375
Conversation
@@ -109,7 +109,7 @@ func NewInstaller(cmdline *procfs.Cmdline, seq runtime.Sequence, opts *Options) | |||
} | |||
} | |||
|
|||
i.manifest, err = NewManifest(seq, bootLoaderPresent, i.options) | |||
i.manifest, err = NewManifest(seq, i.bootloader.UEFIBoot(), bootLoaderPresent, i.options) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: above, on line 106, needs a way to force a specific bootloader based on Options
(flags), so that one could create sd-boot
metal image for example
@@ -29,5 +33,10 @@ func PseudoSubMountPoints() (mountpoints *Points, err error) { | |||
pseudo.Set("hugetlb", NewMountPoint("hugetlbfs", "/dev/hugepages", "hugetlbfs", 0, "")) | |||
pseudo.Set("securityfs", NewMountPoint("securityfs", "/sys/kernel/security", "securityfs", unix.MS_NOSUID|unix.MS_NOEXEC|unix.MS_NODEV|unix.MS_RELATIME, "")) | |||
|
|||
if _, err := os.Stat(constants.EFIVarsMountPoint); err == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mount as readonly
, remount in the code which writes the vars? better for security
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: for later
/promote integration-trusted-boot |
@frezbo please help me to fix this when you're back:
|
Seems alpine has a different file: |
/promote integration-trusted-boot |
/promote integration-trusted-boot |
/promote integration-trusted-boot |
/promote integration-trusted-boot |
/promote integration-trusted-boot |
/promote integration-trusted-boot |
7b11f28
to
090631b
Compare
/promote integration-trusted-boot |
This includes sd-boot handling, EFI variables, etc. There are some TODOs which need to be addressed to make things smooth. Install to disk, upgrades work. Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
/m |
This includes sd-boot handling, EFI variables, etc.
There are some TODOs which need to be addressed to make things smooth.
Install to disk, upgrades work.