mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-02 21:47:29 +00:00
config: Add examples for path_list configuration
The path_list configuration gives a series of regular expressions that limit which values are acceptable through annotations in order to avoid kata launching arbitrary binaries on the host when receiving an annotation. Fixes: #901 Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
This commit is contained in:
parent
2d431c61c6
commit
076690179d
@ -16,6 +16,10 @@ ctlpath = "@ACRNCTLPATH@"
|
|||||||
kernel = "@KERNELPATH_ACRN@"
|
kernel = "@KERNELPATH_ACRN@"
|
||||||
image = "@IMAGEPATH@"
|
image = "@IMAGEPATH@"
|
||||||
|
|
||||||
|
# List of valid annotations values for the hypervisor (default: empty)
|
||||||
|
# Each member of the list can be a regular expression
|
||||||
|
# path_list = [ "@ACRNPATH@.*" ]
|
||||||
|
|
||||||
# Optional space-separated list of options to pass to the guest kernel.
|
# Optional space-separated list of options to pass to the guest kernel.
|
||||||
# For example, use `kernel_params = "vsyscall=emulate"` if you are having
|
# For example, use `kernel_params = "vsyscall=emulate"` if you are having
|
||||||
# trouble running pre-2.15 glibc.
|
# trouble running pre-2.15 glibc.
|
||||||
|
@ -12,6 +12,9 @@
|
|||||||
|
|
||||||
[hypervisor.clh]
|
[hypervisor.clh]
|
||||||
path = "@CLHPATH@"
|
path = "@CLHPATH@"
|
||||||
|
# List of valid annotations values for the hypervisor (default: empty)
|
||||||
|
# Each member of the list can be a regular expression
|
||||||
|
# path_list = [ "@CLHPATH@.*" ]
|
||||||
kernel = "@KERNELPATH_CLH@"
|
kernel = "@KERNELPATH_CLH@"
|
||||||
image = "@IMAGEPATH@"
|
image = "@IMAGEPATH@"
|
||||||
|
|
||||||
|
@ -12,6 +12,13 @@
|
|||||||
|
|
||||||
[hypervisor.firecracker]
|
[hypervisor.firecracker]
|
||||||
path = "@FCPATH@"
|
path = "@FCPATH@"
|
||||||
|
kernel = "@KERNELPATH_FC@"
|
||||||
|
image = "@IMAGEPATH@"
|
||||||
|
|
||||||
|
# List of valid annotations values for the hypervisor (default: empty)
|
||||||
|
# Each member of the list can be a regular expression
|
||||||
|
# path_list = [ "@FCPATH@.*" ]
|
||||||
|
|
||||||
# Path for the jailer specific to firecracker
|
# Path for the jailer specific to firecracker
|
||||||
# If the jailer path is not set kata will launch firecracker
|
# If the jailer path is not set kata will launch firecracker
|
||||||
# without a jail. If the jailer is set firecracker will be
|
# without a jail. If the jailer is set firecracker will be
|
||||||
@ -19,8 +26,7 @@ path = "@FCPATH@"
|
|||||||
# This is disabled by default as additional setup is required
|
# This is disabled by default as additional setup is required
|
||||||
# for this feature today.
|
# for this feature today.
|
||||||
#jailer_path = "@FCJAILERPATH@"
|
#jailer_path = "@FCJAILERPATH@"
|
||||||
kernel = "@KERNELPATH_FC@"
|
|
||||||
image = "@IMAGEPATH@"
|
|
||||||
|
|
||||||
# Optional space-separated list of options to pass to the guest kernel.
|
# Optional space-separated list of options to pass to the guest kernel.
|
||||||
# For example, use `kernel_params = "vsyscall=emulate"` if you are having
|
# For example, use `kernel_params = "vsyscall=emulate"` if you are having
|
||||||
@ -87,10 +93,10 @@ default_memory = @DEFMEMSZ@
|
|||||||
#memory_offset = 0
|
#memory_offset = 0
|
||||||
|
|
||||||
# Disable block device from being used for a container's rootfs.
|
# Disable block device from being used for a container's rootfs.
|
||||||
# In case of a storage driver like devicemapper where a container's
|
# In case of a storage driver like devicemapper where a container's
|
||||||
# root file system is backed by a block device, the block device is passed
|
# root file system is backed by a block device, the block device is passed
|
||||||
# directly to the hypervisor for performance reasons.
|
# directly to the hypervisor for performance reasons.
|
||||||
# This flag prevents the block device from being passed to the hypervisor,
|
# This flag prevents the block device from being passed to the hypervisor,
|
||||||
# 9pfs is used instead to pass the rootfs.
|
# 9pfs is used instead to pass the rootfs.
|
||||||
disable_block_device_use = @DEFDISABLEBLOCK@
|
disable_block_device_use = @DEFDISABLEBLOCK@
|
||||||
|
|
||||||
@ -126,7 +132,7 @@ block_device_driver = "@DEFBLOCKSTORAGEDRIVER_FC@"
|
|||||||
# Enabling this will result in the VM memory
|
# Enabling this will result in the VM memory
|
||||||
# being allocated using huge pages.
|
# being allocated using huge pages.
|
||||||
# This is useful when you want to use vhost-user network
|
# This is useful when you want to use vhost-user network
|
||||||
# stacks within the container. This will automatically
|
# stacks within the container. This will automatically
|
||||||
# result in memory pre allocation
|
# result in memory pre allocation
|
||||||
#enable_hugepages = true
|
#enable_hugepages = true
|
||||||
|
|
||||||
|
@ -16,6 +16,10 @@ kernel = "@KERNELVIRTIOFSPATH@"
|
|||||||
image = "@IMAGEPATH@"
|
image = "@IMAGEPATH@"
|
||||||
machine_type = "@MACHINETYPE@"
|
machine_type = "@MACHINETYPE@"
|
||||||
|
|
||||||
|
# List of valid annotations values for the hypervisor (default: empty)
|
||||||
|
# Each member of the list can be a regular expression
|
||||||
|
# path_list = [ "@QEMUPATH@.*" ]
|
||||||
|
|
||||||
# Optional space-separated list of options to pass to the guest kernel.
|
# Optional space-separated list of options to pass to the guest kernel.
|
||||||
# For example, use `kernel_params = "vsyscall=emulate"` if you are having
|
# For example, use `kernel_params = "vsyscall=emulate"` if you are having
|
||||||
# trouble running pre-2.15 glibc.
|
# trouble running pre-2.15 glibc.
|
||||||
|
Loading…
Reference in New Issue
Block a user