# US 2023/0069485 A1 · Generating and distributing customized embedded operating systems

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0069485 A1
- Document ID: US20230069485A1
- Status: Published application
- Kind: A1
- Application number: 17/411,975
- Filed: 2021-08-25
- Published: 2023-03-02
- Earliest claimed: 2021-08-25
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Sudhanva HURULI; Reuben Ross OLINSKY; Mark Andrew CAWSTON; Rebecca Leigh HOLT
- Web page: https://patentgrep.com/patent/US20230069485A1

## CPC

- G06F 8/63: {Image based installation; Cloning; Build to order}
- G06F 21/572: {Secure firmware programming, e.g. of basic input output system [BIOS]}
- H04L 9/3247: {involving digital signatures}
- G06F 8/71: Version control (security arrangements therefor G06F21/57); Configuration management
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

This disclosure relates to building and finalizing an operating system (OS) image package in a way that allows for flexibility and customization of OS images while preventing certain runtime modifications after deployment of the OS image package on one or more target devices (e.g., embedded devices). For example, the systems described herein can build an OS image package based on information from an OS manifest that provides a declarative summary of a target OS. The systems described herein can further finalize the OS image package by performing one or more actions on the OS image package that prevent an end-user from performing various runtime modifications to the target OS after deployment of the OS image package. This finalization process provides an improved pipeline for implementing OS updates while providing safeguards against a variety of security risks associated with deploying OS image packages on a large scale.

## Claims

### Claim 1

A method, comprising:
receiving, at a computing device, an operating system (OS) manifest including a declarative summary of a target device OS to be instantiated on a target device of a target device class, wherein the OS manifest includes a plurality of resource identifiers;
building, by the computing device, an OS image package from a base OS template referenced by the OS manifest by installing resources corresponding to the plurality of resource identifiers to the base OS template;
generating, by the computing device, a finalized OS image package by sealing the OS image package to prevent runtime modifications to the finalized OS image package upon installation of the target device OS on the target device; and
causing the finalized OS image package to be deployed to a plurality of target devices of the target device class.

### Claim 2 (depends on 1)

The method of claim 1, wherein the plurality of resource identifiers reference one or more executable packages configured to be added to the OS image package and deployed in conjunction with the finalized OS image package on the plurality of target devices.

### Claim 3 (depends on 2)

The method of claim 2, wherein the one or more executable packages include an OS kernel and one or more modules configured to be plugged into the OS kernel.

### Claim 4 (depends on 1)

The method of claim 1, wherein the plurality of resource identifiers reference one or more resource feeds, wherein a resource feed includes a collection of executable packages configured to be added to the OS image package, and wherein the collection of executable packages includes one or more executable binaries associated with the target device class.

### Claim 5 (depends on 1)

The method of claim 1, wherein building the OS image package includes composing a linear set of data including content of an OS kernel and the resources obtained from one or more feeds referenced within the OS manifest.

### Claim 6 (depends on 1)

The method of claim 1, wherein building the OS image package includes, prior to sealing the OS image package, emulating a runtime environment for a given target device by mounting a file system of the given target device on an OS of the computing device and running one or more post-processing scripts to resolve one or more dependencies of the OS image package.

### Claim 7 (depends on 1)

The method of claim 1, wherein sealing the OS image package includes cryptographically signing the OS image package.

### Claim 8 (depends on 1)

The method of claim 1,
wherein building the OS image package includes installing package databases that are relied upon to resolve dependencies within the OS image package, and
wherein sealing the OS image package includes removing the package databases prior to deploying the OS image package to the plurality of target devices.

### Claim 9 (depends on 1)

The method of claim 1, wherein generating the finalized OS image package further includes adding an audit log within the OS image package, the audit log including an indication of actions performed on the base OS template to generate the OS image package in accordance with the declarative summary of the target device OS from the OS manifest.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
providing an unsealed copy of the OS image package to a second computing device;
receiving, from the second computing device, one or more modifications to the OS manifest; and
performing an update of the OS image package based on the one or more modifications to the OS manifest.

### Claim 11 (depends on 10)

The method of claim 10, wherein performing the update of the OS image package includes:
building a modified OS image package including one or more additional resources based on the at least one modified resource identifier;
generating an updated finalized OS image package by sealing the modified OS image package to prevent runtime modifications to the modified OS image package upon installation of an updated OS to be deployed on the target device of the target device class; and
causing the updated finalized OS image to be deployed to the plurality of target devices of the target device class.

### Claim 12 (depends on 1)

The method of claim 1, wherein the target device class includes a target class of embedded devices having a corresponding set of functional features.

### Claim 13

A system, comprising:
one or more processors;
memory in electronic communication with the one or more processors; and
instructions stored in the memory, the instructions being executable by the one or more processors to:
receive, at a computing device, an operating system (OS) manifest including a declarative summary of a target device OS to be instantiated on a target device of a target device class, wherein the OS manifest includes a plurality of resource identifiers;
build, by the computing device, an OS image package from a base OS template referenced by the OS manifest by installing resources corresponding to the plurality of resource identifiers to the base OS template;
generate, by the computing device, a finalized OS image package by sealing the OS image package to prevent runtime modifications to the finalized OS image package upon installation of the target device OS on the target device; and
cause the finalized OS image package to be deployed to a plurality of target devices of the target device class.

### Claim 14 (depends on 13)

The system of claim 13, wherein the plurality of resource identifiers reference one or more executable packages configured to be added to the OS image package and deployed in conjunction with the finalized OS image package on the plurality of target devices.

### Claim 15 (depends on 13)

The system of claim 13, wherein the plurality of resource identifiers reference one or more resource feeds, wherein a resource feed includes a collection of executable packages configured to be added to the OS image package, and wherein the collection of executable packages includes one or more executable binaries associated with the target device class.

### Claim 16 (depends on 13)

The system of claim 13, wherein building the OS image package includes, prior to sealing the OS image package, emulating a runtime environment for the given target device by mounting a file system of the given target device on an OS of the computing device and running one or more post-processing scripts to resolve one or more dependencies of the OS image package.

### Claim 17 (depends on 13)

The system of claim 13, wherein sealing the OS image package includes one or more of:
cryptographically signing the OS image package; and
removing, prior to deploying the OS image package to the plurality of target devices, package databases that have been installed and relied upon to resolve dependencies within the OS image package.

### Claim 18 (depends on 13)

The system of claim 13, wherein the target device class includes a target class of embedded devices having a corresponding set of functional features.

### Claim 19

A non-transitory computer readable medium storing instructions thereon that, when executed by one or more processors, causes a computing device to:
receive an operating system (OS) manifest including a declarative summary of a target device OS to be instantiated on a target device of a target device class, wherein the OS manifest includes a plurality of resource identifiers;
build an OS image package from a base OS template referenced by the OS manifest by installing resources corresponding to the plurality of resource identifiers to the base OS template;
generate a finalized OS image package by sealing the OS image package to prevent runtime modifications to the finalized OS image package upon installation of the target device OS on the target device; and
cause the finalized OS image package to be deployed to a plurality of target devices of the target device class.

### Claim 20 (depends on 19)

The non-transitory computer readable medium of claim 19, wherein sealing the OS image package includes one or more of:
cryptographically signing the OS image package; and
removing, prior to deploying the OS image package to the plurality of target devices, package databases that have been installed and relied upon to resolve dependencies within the OS image package.
