MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Linux Kernel Capabilities of Rkt, Docker and Lxd

Summary of Linux kernel capabilities used by Rkt, Docker and LXD containers

Linux capabilities are special attributes in the Linux kernel that grant processes and binary executables specific privileges that are normally reserved for processes whose effective user ID is 0 (The root user, and only the root user, has UID 0).

Essentially, the goal of capabilities is to divide the power of ‘root’ into specific privileges, so that if a process or binary that has one or more capability is exploited, the potential damage is limited when compared to the same process running as root.

Capabilities can be set on processes and executable files. A process resulting from the execution of a file can gain the capabilities of that file.

The capabilities implemented on Linux are numerous, and many have been added since their original release. Some of them are as follows:

  • CAP_CHOWN: Make changes to the User ID and Group ID of files
  • CAP_DAC_OVERRIDE: Override DAC (Discretionary Access Control). For example, vto bypass read/write/execute permission checks.
  • CAP_KILL: Bypass permission checks for sending signals to processes.
  • CAP_SYS_NICE: Raise the niceness of processes (An explanation of niceness can be found here)
  • CAP_SYS_TIME: Set the system and real-time hardware clock

What are kernel capabilities?

Starting with kernel 2.2, Linux divides the privileges traditionally associated with superuser into distinct units, known as capabilities, which can be independently enabled and disabled. Capabilities are a per-thread attribute.

What are the Linux capabilities?

Linux capabilities are special attributes in the Linux kernel that grant processes and binary executables specific privileges that are normally reserved for processes whose effective user ID is 0 (The root user, and only the root user, has UID 0).

How many Linux capabilities are there?

The number of capabilities supported by recent Linux versions is close to 40. To see the highest capability number for your kernel, use the data from the /proc file system. The full list of available Linux capabilities for the active kernel can be displayed using the capsh command.

What are file capabilities in Linux?

File capabilities aim to provide fine-grained control over root permissions. These capabilities are a partitioning of the all root privileges into a set of distinct and independent privileges. Using this functionality, reduces/prevents the need to switch as the root user.

Where are Linux capabilities stored?

All the capabilities for processes and threads are stored in the status file under the process/thread directory in the /proc file system. These properties start “Cap” name. Alternatively, for a running process, you can get the hex-encoded capabilities and then later decode it with capsh.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Best Wiz Alternatives for Developer-Led Cloud Security

The problem with a cloud-security backlog is not necessarily finding more risk. It can be translating a cloud finding into a change that the responsible development team…

Read More

Best Software Supply Chain Malware Detection Tools

A malicious dependency presents a different question from an ordinary vulnerable library: should this package be allowed to run at all? A tool that reports a problem…

Read More

Could Transparency Logs Become the Next Container Security Control?

Traditionally, container security has been about scanning images, patching vulnerable packages and monitoring workloads after deployment. While these controls are still relevant, there is a more fundamental…

Read More

Securing the Modern Software Supply Chain: Strategies for Cloud-Native and DevSecOps Environments

Rapid enterprise adoption of cloud-native architectures, microservices, and automated continuous integration and continuous delivery (CI/CD) pipelines has fundamentally transformed modern software engineering. While these advancements significantly increase…

Read More

Scaling Cloud-Native Infrastructure: Best Practices for Kubernetes and DevSecOps Integration

Managing cloud-native environments at scale presents significant challenges for modern engineering teams. As organizations migrate from monolithic architectures to microservices, the complexity of orchestrating containers, securing deployment…

Read More

Agentless Runtime Security Has Moved Past the DevOps Tradeoffs of Yesteryear

Agentless security platforms are popular with DevOps teams because they deploy fast and skip the operational overhead of managing agents on every host. But conventional wisdom still…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x