IP Library Granted Patent US 12,164,675
Granted Patent B2
US 12,164,675 · App. 17/734,187 · Granted Dec 10, 2024

Capability management method and computer device

Inventors: Nan Wang (Beijing, CN); Zipeng Zhang (Shanghai, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G06F21/629G06F9/468G06F9/545
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,164,675
App. No.
17/734,187
Granted
Dec 10, 2024
Kind
B2
Abstract

A capability management method and apparatus, a computer device, and the like relate to permission management of a kernel object in an operating system, for example, permission management of a kernel object in a microkernel architecture. In the method, two types of information are stored in a capability node of a capability owner: information used to indicate that a capability is granting and information used to indicate a granted capability. A capability association relationship between a grantor and a grantee is established by recording the two types of information, so that capability copying is avoided in a capability granting procedure, and capability deletion is avoided in a procedure of rejecting a capability by the grantee, thereby ensuring a deterministic latency while implementing capability revocation and granting. The method may be applied to a smartphone system, an unmanned driving system, or the like.

Claims (35)

1. A capability management method, comprising:

receiving a reject request sent by a grantee, wherein the reject request comprises a first identifier, the first identifier is used to indicate a to-be-rejected capability, and the to-be-rejected capability is a capability granted by a grantor to the grantee; and

deleting first target information that matches the first identifier from a capability node of the grantee, wherein the to-be-rejected capability is stored only in a capability node of the grantor, and the first target information is used to search the capability node of the grantor for the to-be-rejected capability.

2. The capability management method according to claim 1 , further comprising:

receiving a revoke request sent by the grantor, wherein the revoke request comprises a second identifier, the second identifier is used to indicate a to-be-revoked capability, and the to-be-revoked capability is a capability granted by the grantor to the grantee; and

deleting second target information that matches the second identifier from the capability node of the grantor, wherein the to-be-revoked capability is stored only in the capability node of the grantor, and the second target information is used to search all capabilities of the grantor for the to-be-revoked capability.

3. The capability management method according to claim 2 , wherein the second identifier is further used to indicate a target grantee, and the target grantee is a different grantees; and

the deleting second target information that matches the second identifier from the capability node of the grantor comprises:

deleting the second target information that matches the second identifier from the capability node of the grantor, wherein the second target information is further used to indicate the target grantee.

4. The capability management method according to claim 1 , further comprising:

receiving a grant request sent by the grantor, wherein the grant request is used to indicate to grant a target capability in the capability node of the grantor, and the target capability is stored only in the capability node of the grantor;

recording grant information in the capability node of the grantor, wherein the grant information is used to indicate that the target capability has been granted; and

recording granted information in the capability node of the grantee, wherein the granted information is used to search the capability node of the grantor for the target capability.

5. A computer device, wherein the computer device comprises a memory and a processor, the memory is configured to store computer-readable instructions, and the processor executes the instructions to:

receive a reject request sent by a grantee, wherein the reject request comprises a first identifier, the first identifier is used to indicate a to-be-rejected capability, and the to-be-rejected capability is a capability granted by a grantor to the grantee; and

delete first target information that matches the first identifier from a capability node of the grantee, wherein the to-be-rejected capability is stored only in a capability node of the grantor, and the first target information is used to search the capability node of the grantor for the to-be-rejected capability.

6. The computer device according to claim 5 , wherein the processor executes the instructions to:

receive a revoke request sent by the grantor, wherein the revoke request comprises a second identifier, the second identifier is used to indicate a to-be-revoked capability, and the to-be-revoked capability is a capability granted by the grantor to the grantee; and

delete second target information that matches the second identifier from the capability node of the grantor, wherein the to-be-revoked capability is stored only in the capability node of the grantor, and the second target information is used to search all capabilities of the grantor for the to-be-revoked capability.

7. The computer device according to claim 6 , wherein the second identifier is further used to indicate a target grantee, and the target grantee is a different grantees; and the processor executes the instructions to:

delete the second target information that matches the second identifier from the capability node of the grantor, wherein the second target information is further used to indicate the target grantee.

8. The computer device according to claim 5 , wherein the processor executes the instructions to:

receive a grant request sent by the grantor, wherein the grant request is used to indicate to grant a target capability in the capability node of the grantor, and the target capability is stored only in the capability node of the grantor;

record grant information in the capability node of the grantor, wherein the grant information is used to indicate that the target capability has been granted; and

record granted information in the capability node of the grantee, wherein the granted information is used to search the capability node of the grantor for the target capability.

9. A capability management method, comprising:

sending, by a grantor, a grant request to a kernel, wherein the grant request comprises a grant parameter, the grant parameter is used to indicate a to-be-granted capability, and the grant request is used to indicate the kernel to grant the to-be-granted capability to a grantee; and

obtaining, by the grantor, a revoke parameter returned by the kernel, wherein the revoke parameter is used by the grantor to manage the current grant.

10. The capability management method according to claim 9 , further comprising:

sending, by the grantor, a revoke request to the kernel, wherein the revoke request comprises the revoke parameter, and the revoke parameter is used by the kernel to perform capability revocation.

11. The capability management method according to claim 9 , wherein the method further comprises:

sending, by the grantee, a prepare request to the kernel; and

obtaining, by the grantee, a reject parameter returned by the kernel, wherein the reject parameter is used by the grantee to manage the granted capability.

12. The capability management method according to claim 11 , further comprising:

sending, by the grantee, a reject request to the kernel, wherein the reject request comprises the reject parameter, and the reject parameter is used by the kernel to perform capability rejection.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 20, 2022
From: WANG, NAN; ZHANG, ZIPENG
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 060565/0940 →
Priority Claims (1)
CN 201911088881.6 · Nov 8, 2019 · national
Continuity (2)
Continuation PCTCN2020125765 · Nov 2, 2020
Related Publication 20220261489A1 · Aug 18, 2022