-
Notifications
You must be signed in to change notification settings - Fork 12
add boot transparency support #6
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
base: development
Are you sure you want to change the base?
Conversation
|
|
||
| // loadFromUefiRoot reads the transparency configuration files from | ||
| // the UEFI partition. The entry argument allows per-bundle configurations. | ||
| func (c *Config) loadFromUefiRoot(entryPath string) (err error) { |
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.
Per earlier comments, why UEFI specific?
|
To address #9 the patch should always honor forward slashes when constructing paths for fs.FS and os.PathSeparator for any eventual pkg honoring os (e.g. filepath). |
|
|
||
| // Boot transparency configuration root directory and filenames. | ||
| const ( | ||
| transparencyRoot = `/transparency` |
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.
As this is used only once in the code, it feels up to the caller rather than being hard coded here (hashPrefix or similar?). Also, what is the purpose of the leading /?
As this package has expectations on the file names to load these constants should probably be exported for documentation.
Enable interaction with the transparency ecosystem for boot loading operation using the boot-transparency Go library functions.