IP Library Granted Patent US 12,175,004
Granted Patent B2
US 12,175,004 · App. 17/678,430 · Granted Dec 24, 2024

Implementing privilege capabilities for devices used for container native function operations

Inventor: Yuval Kashtan (Tel Aviv, IL)
Assignee: Red Hat, Inc.
G06F21/629
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,175,004
App. No.
17/678,430
Granted
Dec 24, 2024
Kind
B2
Abstract

Privilege capabilities can be implemented for devices used for container native function (CNF) operations according to some aspects described herein. In one example, a system can receive a request for executing a CNF using a device in a computing cluster. The CNF can involve an operation associated with a privileged capability. The system can determine the CNF is associated with a first credential for the privileged capability based on a data structure that stores process-level capabilities for the CNF and file handle level capabilities for the device. The system can determine the device is associated with a second credential for the privileged capability based on the data structure. In response to determining that the CNF is associated with the first credential and the device is associated with the second credential, the system can execute the CNF using the device in the computing cluster.

Claims (64)

1. A non-transitory computer-readable medium comprising program code that is executable by a processing device for causing the processing device to perform operations including:

receiving a request for executing a container native function (CNF) using a device in a computing cluster, the CNF involving an operation associated with a privileged capability;

in response to receiving the request, determining the CNF is associated with a first credential for the privileged capability based on a data structure that stores process-level capabilities for the CNF and file handle level capabilities for the device by performing a first lookup of the process-level capabilities for the CNF;

in response to determining that the CNF is associated with the first credential, determining the device is associated with a second credential for the privileged capability based on the data structure by performing a second lookup of the file handle level capabilities for the device; and

in response to determining that the CNF is associated with the first credential and the device is associated with the second credential, executing the CNF using the device in the computing cluster.

2. The non-transitory computer-readable medium of claim 1 , wherein the device is a first device and further comprising program code that is executable by the processing device for causing the processing device to perform operations comprising:

receiving the request for executing the CNF involving the privileged capability using a second device associated with the CNF;

determining the second device is not associated with the second credential for the privileged capability based on the data structure; and

in response to determining that the second device is not associated with the second credential, prohibiting the second device from executing the CNF.

3. The non-transitory computer-readable medium of claim 1 , further comprising program code that is executable by the processing device for causing the processing device to determine the CNF is associated with the first credential for the privileged capability based on the data structure and the device is associated with the second credential for the privileged capability based on the data structure by:

determining an effective credential value by combining the process-level capabilities and the file handle level capabilities of the data structure;

storing the effective credential value in the data structure; and

in response to receiving the request, performing a lookup of the effective credential value.

4. The non-transitory computer-readable medium of claim 1 , further comprising program code that is executable by the processing device for causing the processing device to perform operations comprising:

receiving an update to the process-level capabilities for the CNF or the file handle level capabilities for the device;

determining an updated effective credential value based on the update to the process-level capabilities for the CNF or the file handle level capabilities for the device; and

storing the updated effective credential value in the data structure.

5. The non-transitory computer-readable medium of claim 1 , further comprising program code that is executable by the processing device for causing the processing device to perform operations comprising:

receiving an indication of the second credential for the privileged capability for the device by a system call from a client device; and

storing the second credential in the file handle level capabilities in the data structure based on the system call.

6. The non-transitory computer-readable medium of claim 1 , wherein the device comprises a network interface card and the operation comprises a network administration operation.

7. A method comprising:

receiving a request for executing a container native function (CNF) using a device in a computing cluster, the CNF involving an operation associated with a privileged capability;

in response to receiving the request, determining the CNF is associated with a first credential for the privileged capability based on a data structure that stores process-level capabilities for the CNF and file handle level capabilities for the device by performing a first lookup of the process-level capabilities for the CNF;

in response to determining that the CNF is associated with the first credential, determining the device is associated with a second credential for the privileged capability based on the data structure by performing a second lookup of the file handle level capabilities for the device; and

in response to determining that the CNF is associated with the first credential and the device is associated with the second credential, executing the CNF using the device in the computing cluster.

8. The method of claim 7 , wherein the device is a first device and the method further comprises:

receiving the request for executing the CNF involving the privileged capability using a second device associated with the CNF;

determining the second device is not associated with the second credential for the privileged capability based on the data structure; and

in response to determining that the second device is not associated with the second credential, prohibiting the second device from executing the CNF.

9. The method of claim 7 , wherein determining the CNF is associated with the first credential for the privileged capability based on the data structure and the device is associated with the second credential for the privileged capability based on the data structure comprises:

determining an effective credential value from the process-level capabilities and the file handle level capabilities of the data structure;

storing the effective credential value in the data structure; and

in response to receiving the request, performing a lookup of the effective credential value.

10. The method of claim 9 , further comprising:

receiving an update to the process-level capabilities for the CNF or the file handle level capabilities for the device;

determining an updated effective credential value based on the update to the process-level capabilities for the CNF or the file handle level capabilities for the device; and

storing the updated effective credential value in the data structure.

11. The method of claim 7 , further comprising:

receiving an indication of the second credential for the privileged capability for the device by a system call from a client device; and

storing the second credential in the file handle level capabilities in the data structure based on the system call.

12. The method of claim 7 , wherein the device comprises a network interface card and the operation comprises a network administration operation.

13. A system comprising:

a processing device; and

a memory device including instructions that are executable by the processing device for causing the processing device to:

receive a request for executing a container native function (CNF) using a device in a computing cluster, the CNF involving an operation associated with a privileged capability;

in response to receiving the request, determine the CNF is associated with a first credential for the privileged capability based on a data structure that stores process-level capabilities for the CNF and file handle level capabilities for the device by performing a first lookup of the process-level capabilities for the CNF;

in response to determining that the CNF is associated with the first credential, determine the device is associated with a second credential for the privileged capability based on the data structure by performing a second lookup of the file handle level capabilities for the device; and

in response to determining that the CNF is associated with the first credential and the device is associated with the second credential, execute the CNF using the device in the computing cluster.

14. The system of claim 13 , wherein the device is a first device and the memory device further includes instructions that are executable by the processing device for causing the processing device to:

receive the request for executing the CNF involving the privileged capability using a second device associated with the CNF;

determine the second device is not associated with the second credential for the privileged capability based on the data structure; and

in response to determining that the second device is not associated with the second credential, prohibit the second device from executing the CNF.

15. The system of claim 13 , wherein the memory device further includes instructions that are executable by the processing device for causing the processing device to determine the CNF is associated with the first credential for the privileged capability based on the data structure and the device is associated with the second credential for the privileged capability based on the data structure by:

determining an effective credential value from the process-level capabilities and the file handle level capabilities of the data structure;

storing the effective credential value in the data structure; and

in response to receiving the request, performing a lookup of the effective credential value.

16. The system of claim 15 , wherein the memory device further includes instructions that are executable by the processing device for causing the processing device to:

receive an update to the process-level capabilities for the CNF or the file handle level capabilities for the device;

determine an updated effective credential value based on the update to the process-level capabilities for the CNF or the file handle level capabilities for the device; and

store the updated effective credential value in the data structure.

17. The system of claim 13 , wherein the memory device further includes instructions that are executable by the processing device for causing the processing device to:

receive an indication of the second credential for the privileged capability for the device by a system call from a client device; and

store the second credential in the file handle level capabilities in the data structure based on the system call.

Assignments (2)
CHANGE OF NAME Recorded Mar 3, 2026
From: RED HAT, INC.
To: RED HAT, LLC
Reel/Frame 074913/0759 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 23, 2022
From: KASHTAN, YUVAL
To: RED HAT, INC.
Reel/Frame 059077/0238 →