Booting secured kernels with customizable command line functionality
Abstract
Kernels can be securely booted while having customizable command line functionality. For example, a boot loader can initiate a kernel boot using a unified kernel image (UKI) that is cryptographically signed with a cryptographic signature and includes two or more command lines that are protected by the cryptographic signature. The two or more command lines can implement different functionalities with respect to the kernel boot. The boot loader can extract the two or more command lines from the signed UKI. A command line of the two or more command lines can be selected by a user to complete the kernel boot. Once the command line is selected, the boot loader can execute the command line to complete the kernel boot using the command line.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A non-transitory computer-readable medium comprising program code executable by a processing device for causing the processing device to perform operations comprising: initiating, by a boot loader, a kernel boot using a unified kernel image that is cryptographically signed with a cryptographic signature and includes: two or more command lines that are protected by the cryptographic signature, the two or more command lines configured to implement different functionalities with respect to the kernel boot; and an allowlist stored in the signed unified kernel image as a signed file section and indicating a customizable argument of at least one command line of the two or more command lines that is modifiable by an override value to adjust a functionality of the at least one command line, the override value modifying the customizable argument by replacing or appending to an existing argument value of the customizable argument; extracting, by the boot loader, the two or more command lines from the signed unified kernel image, the two or more command lines including a command line selectable by a user to complete the kernel boot; and in response to the user selecting the command line, executing, by the boot loader, the command line of the two or more command lines to complete the kernel boot using the command line.
- Claim 2Depends on #1
The non-transitory computer-readable medium of claim 1, wherein the signed unified kernel image containing the two or more command lines is cryptographically signed using a private key of a public-private key pair.
- Claim 3Depends on #1
The non-transitory computer-readable medium of claim 1, wherein the signed unified kernel image comprises a first file section that stores the command line selected by the user as a default command line and a second file section that stores a subset of the two or more command lines.
- Claim 4Depends on #3
The non-transitory computer-readable medium of claim 3, wherein the second file section further comprises a respective human-readable sequence that describes each command line of the subset of the two or more command lines.
- Claim 5Depends on #3
The non-transitory computer-readable medium of claim 3, wherein the default command line is a first command line, and wherein a second command line of the subset of the two or more command lines is executable to initiate a troubleshooting process associated with the kernel boot.
- Claim 6Depends on #1
The non-transitory computer-readable medium of claim 1, wherein the signed unified kernel image comprises a respective file section that is cryptographically signed to store each command line of the two or more command lines, and wherein each file section of the signed unified kernel image comprises a respective human-readable sequence that describes the respective command line.
- Claim 7Depends on #1
The non-transitory computer-readable medium of claim 1, wherein the operations further comprise: providing a boot loader interface to the user to select the command line of the two or more command lines, the boot loader interface displaying a respective human-readable sequence that describes the two or more command lines; and in response to the user selecting the command line, executing the command line to complete the kernel boot using the command line selected by the user via the boot loader interface.
- Claim 8Independent Claim
A method comprising: initiating a kernel boot using a unified kernel image that includes a command line comprising one or more arguments, the unified kernel image being cryptographically signed with a cryptographic signature that covers the command line; extracting, from the signed unified kernel image, an allowlist stored in the signed unified kernel image as a signed file section protected by the cryptographic signature, the allowlist indicating one or more customizable arguments of the one or more arguments that are modifiable to adjust a functionality of the command line; in response to extracting the allowlist stored in the signed unified kernel image, determining an override value configured to modify a customizable argument of the one or more customizable arguments included in the allowlist to adjust the functionality of the command line, the override value modifying the customizable argument by replacing or appending to an existing argument value of the customizable argument; modifying the customizable argument of the command line to create a modified command line, the modified command line configured to implement the adjusted functionality; and executing the modified command line to complete the kernel boot using the modified command line.
- Claim 9Depends on #8
The method of claim 8, wherein determining the override value comprises accessing a boot partition configured to store a specification file that provides the override value, and wherein the specification file is modifiable using user input.
- Claim 10Depends on #9
The method of claim 9, wherein the override value comprises a series of alphanumeric characters inputted at least in part by a user as part of the user input.
- Claim 11Depends on #8
The method of claim 8, wherein the allowlist further comprises a set of permitted override values that indicates allowable values to override the one or more arguments that are modifiable, and wherein the method further comprises: determining, using a rule set, that the override value is included in the set of permitted override values, wherein the rule set enables wildcard matching associated with the set of permitted override values; and in response, modifying the customizable argument of the command line using the override value to create the modified command line.
- Claim 12Depends on #11
The method of claim 11, wherein the override value is a first override value configured to override a first argument of the command line, and wherein the method further comprises: determining that a second override value is excluded from the set of permitted override values, wherein the second override value is configured to override a second argument of the command line that is included in the allowlist; and in response, outputting an alert to indicate that the second override value is excluded from the set of permitted override values, wherein the alert results in a failure of the kernel boot.
- Claim 13Depends on #8
The method of claim 8, wherein the customizable argument is a first argument configured to be overrode by a first override value, and wherein the method further comprises: identifying a second override value configured to override a second argument of the command line that is included in the allowlist; determining that the first override value is incompatible with the second override value; and in response, outputting an alert to indicate that the first override value is incompatible with the second override value, wherein the alert results in a failure of the kernel boot.
- Claim 14Depends on #8
The method of claim 8, further comprising, subsequent to initiating the kernel boot using the unified kernel image: determining that the allowlist is available in the signed unified kernel image; and determining, using a set of argument names in the allowlist, the customizable argument.
- Claim 15Independent Claim
A system comprising: a boot loader configured to: initiate a kernel boot using a unified kernel image that includes a command line comprising one or more arguments, the unified kernel image being cryptographically signed with a cryptographic signature that protects the command line; extract, from the signed unified kernel image, an allowlist stored in the signed unified kernel image as a signed file section protected by the cryptographic signature, the allowlist indicating one or more customizable arguments of the one or more arguments that are modifiable to adjust a functionality of the command line; in response to extracting the allowlist stored in the signed unified kernel image, determine an override value configured to modify a customizable argument of the one or more customizable arguments included in the allowlist to adjust the functionality of the command line, the override value modifying the customizable argument by replacing or appending to an existing argument value of the customizable argument; modify the customizable argument of the command line to create a modified command line, the modified command line configured to implement the adjusted functionality; execute the modified command line to complete the kernel boot using the modified command line; and a boot partition configured to store a specification file including the override value.
- Claim 16Depends on #15
The system of claim 15, wherein determining the override value comprises accessing the specification file stored in the boot partition, and wherein the specification file is modifiable using user input.
- Claim 17Depends on #16
The system of claim 16, wherein the override value comprises a series of alphanumeric characters inputted at least in part by a user as part of the user input.
- Claim 18Depends on #15
The system of claim 15, wherein the allowlist further comprises a set of permitted override values that indicates allowable values to override the one or more arguments that are modifiable, and wherein the boot loader is further configured to: determine, using a rule set, that the override value is included in the set of permitted override values, wherein the rule set enables wildcard matching associated with the set of permitted override values; and in response, modify the customizable argument of the command line using the override value to create the modified command line.
- Claim 19Depends on #18
The system of claim 18, wherein the override value is a first override value configured to override a first argument of the command line, and wherein the boot loader is further configured to: determine that a second override value is excluded from the set of permitted override values, wherein the second override value is configured to override a second argument of the command line that is included in the allowlist; and in response, output an alert to indicate that the second override value is excluded from the set of permitted override values, wherein the alert results in a failure of the kernel boot.
- Claim 20Depends on #15
The system of claim 15, wherein the boot loader is further configured to, subsequent to initiating the kernel boot using the unified kernel image: determine that the allowlist is available in the signed unified kernel image; and determine, using a set of argument names in the allowlist, the customizable argument.
Technical Overview & Description
TECHNICAL FIELD The present disclosure relates generally to a computing environment. More specifically, but not by way of limitation, this disclosure relates to booting secured kernels with customizable command line functionality. BACKGROUND To start an operating system of a computing device, a bootloader of the computing device can find a kernel image of a kernel and load the kernel image into memory to initiate a booting process. The computing system may use a signature validation process as a security feature to prevent malicious software from loading during the booting process. The signature validation process can involve confirming that the kernel image being booted is signed by a vendor key trusted by firmware of the computing device. After validating the kernel image using the signature validation process, the bootloader can continue the booting process to initialize hardware components and start the operating system of the computing device. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of an example of a system for a kernel boot with multiple command lines to implement customizable command line functionality according to one example of the present disclosure. FIG. 2 is a block diagram of an example of a unified kernel image having a first file section including a single command line and a second file section including multiple command lines according to one example of the present disclosure. FIG. 3 is a block diagram of an example of a unified kernel image having a respective file section to store each command line according to one example of the present disclosure. FIG. 4 is a block diagram of an example of a computing environment for a kernel boot with multiple command lines to implement customizable command line functionality according to one example of the present disclosure. FIG. 5 is a flowchart of a process for a kernel boot with multiple command lines to implement customizable command line functionality according to one example of the p
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (5)
Non-Patent Literature (10)
- Anonymous,
- “
- How can I persist kernel options with systemd-boot?,
- ”
- Sep. 2020, Manjaro (Year: 2020).
- Anonymous,
- “
- Glob as the argument of a shell function
- ”
- May 2021, StackOverflow (Year: 2021).