mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 04:04:45 +00:00
kata-deploy: Add default privileged_without_host_devices
For privieleged containers, all host devices are passed to container. We have done work in crio and containerd to define a scope of privileged in Kata to prevent this from happening. Add this as the default as this falls under a best practice to follow with Kata. Note that if this flag has been already defined, then this change does not override it. Fixes #582 Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
parent
5f2a9fad4d
commit
219f93ffad
@ -96,6 +96,7 @@ function configure_crio() {
|
||||
# Path to the Kata Containers runtime binary that uses the QEMU hypervisor.
|
||||
[$kata_qemu_conf]
|
||||
runtime_path = "${kata_qemu_path}"
|
||||
privileged_without_host_devices = true
|
||||
EOT
|
||||
fi
|
||||
|
||||
@ -109,6 +110,7 @@ EOT
|
||||
# Path to the Kata Containers runtime binary that uses the QEMU hypervisor with virtiofs support.
|
||||
[$kata_qemu_virtiofs_conf]
|
||||
runtime_path = "${kata_qemu_virtiofs_path}"
|
||||
privileged_without_host_devices = true
|
||||
EOT
|
||||
fi
|
||||
|
||||
@ -122,6 +124,7 @@ EOT
|
||||
# Path to the Kata Containers runtime binary that uses the firecracker hypervisor.
|
||||
[$kata_fc_conf]
|
||||
runtime_path = "${kata_fc_path}"
|
||||
privileged_without_host_devices = true
|
||||
EOT
|
||||
fi
|
||||
|
||||
@ -135,6 +138,7 @@ EOT
|
||||
# Path to the Kata Containers runtime binary that uses the Cloud Hypervisor.
|
||||
[$kata_clh_conf]
|
||||
runtime_path = "${kata_clh_path}"
|
||||
privileged_without_host_devices = true
|
||||
EOT
|
||||
fi
|
||||
|
||||
@ -166,6 +170,7 @@ function configure_containerd_runtime() {
|
||||
cat <<EOT | tee -a "$containerd_conf_file"
|
||||
[$runtime_table]
|
||||
runtime_type = "${runtime_type}"
|
||||
privileged_without_host_devices = true
|
||||
EOT
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user