Skip to content

Commit

Permalink
controllers: Prevent host devices from being passed to privileged con…
Browse files Browse the repository at this point in the history
…tainers

`privileged_without_host_devices` is an option from CRI-O configuration
files that controls whether the runtime handler will prevent host
devices from being passed to privileged containers.  Its default value
is `false` and we're switching it to `true` in order to avoid exposing
the host's `/dev`.

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
  • Loading branch information
fidencio committed Jan 11, 2021
1 parent 97cf699 commit 84875e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/openshift_controller.go
Expand Up @@ -345,6 +345,7 @@ func generateDropinConfig(handlerName string) (string, error) {
runtime_path = "/usr/bin/containerd-shim-kata-v2"
runtime_type = "vm"
runtime_root = "/run/vc"
privileged_without_host_devices = true
[crio.runtime.runtimes.runc]
runtime_path = ""
Expand Down

0 comments on commit 84875e3

Please sign in to comment.