The Restricted policy in Kubernetes is designed to enforce strict security constraints on containers, but it does allow certain capabilities that are considered safe and necessary for common container operations. Among the capabilities listed, NET_BIND_SERVICE is typically allowed under the Restricted policy because it is often needed for binding to network ports below 1024, which is a common requirement for many applications
The Restricted policy in Kubernetes is designed to be very secure, so it only allows a minimal set of capabilities. SYS_CHROOT is considered safe enough because:
- It doesn't give elevated privileges
- It's often needed for container operations
- It can't be easily exploited
In Kubernetes, the Restricted policy is a security context that enforces tight constraints on what a container can do. When using the Restricted policy, the capabilities granted to containers are minimal and restricted to those necessary for basic functionality.
The CHOWN capability is typically allowed in restricted environments because it is essential for many applications to modify file ownership within the container.
D. NET_BIND_SERVICE
The Restricted policy in Kubernetes is designed to limit the capabilities that can be added to containers to enhance security. Among the options provided, NET_BIND_SERVICE is the capability allowed under the Restricted policy.
Containers must drop ALL capabilities, and are only permitted to add back the NET_BIND_SERVICE capability.
Reference: https://kubernetes.io/docs/concepts/security/pod-security-standards/#:~:text=add%20back%20the-,NET_BIND_SERVICE,-capability.%20This
https://kubernetes.io/docs/concepts/security/pod-security-standards/
Capabilities (v1.22+)
Containers must drop ALL capabilities, and are only permitted to add back the NET_BIND_SERVICE capability. This is Linux only policy in v1.25+ (.spec.os.name != "windows")
This section is not available anymore. Please use the main Exam Page.KCNA Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
shahy0
1 month, 2 weeks agod759fb3
1 month, 4 weeks agoyoyo2424
2 months, 4 weeks ago2211094
3 months, 1 week agoabitwrong
4 months, 2 weeks agoAndrei_Z
7 months agoalex78
11 months, 2 weeks agofabianvera19822
11 months, 3 weeks ago