blockprivilegedcontainers

package
v0.0.0-...-44dad58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

README

Block privileged containers [MTB-PL1-BC-CPI-5]

Profile Applicability:

1

Type:

Behavioral Check

Category:

Control Plane Isolation

Description:

Linux

Rationale:

By default a container is not allowed to access any devices on the host, but a “privileged” container can access all devices on the host. A process within a privileged container can also get unrestricted host access. Hence, tenants should not be allowed to run privileged containers.

Audit:

Create a pod or container that sets privileged to true in its securityContext. The pod creation must fail.

Remediation:

Define a PodSecurityPolicy with privileged set to false and map the policy to each tenant's namespace, or use a policy engine such as OPA/Gatekeeper or Kyverno to prevent tenants from running privileged containers. You can use the policies present here.

namespaceRequired:

1

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL