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:
Christophe de Dinechin 2020-05-15 17:40:43 +02:00
parent 2d431c61c6
commit 076690179d
4 changed files with 23 additions and 6 deletions

View File

@ -16,6 +16,10 @@ ctlpath = "@ACRNCTLPATH@"
kernel = "@KERNELPATH_ACRN@"
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.
# For example, use `kernel_params = "vsyscall=emulate"` if you are having
# trouble running pre-2.15 glibc.

View File

@ -12,6 +12,9 @@
[hypervisor.clh]
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@"
image = "@IMAGEPATH@"

View File

@ -12,6 +12,13 @@
[hypervisor.firecracker]
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
# If the jailer path is not set kata will launch firecracker
# 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
# for this feature today.
#jailer_path = "@FCJAILERPATH@"
kernel = "@KERNELPATH_FC@"
image = "@IMAGEPATH@"
# Optional space-separated list of options to pass to the guest kernel.
# For example, use `kernel_params = "vsyscall=emulate"` if you are having

View File

@ -16,6 +16,10 @@ kernel = "@KERNELVIRTIOFSPATH@"
image = "@IMAGEPATH@"
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.
# For example, use `kernel_params = "vsyscall=emulate"` if you are having
# trouble running pre-2.15 glibc.