Files
infix/test/case/containers/host_commands
Joachim Wiberg 1bbd80d8c7 test: drop leading ietf/infix prefix from directories
Let's drop the leading IETF or Infix prefixes from tests.  Initially the
idea was to mimnic the YANG models, but it's difficult to navigate and
does not provide any real benefit to developers or end-users.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2025-11-20 20:23:23 +01:00
..

=== Host Command Execution from Container

ifdef::topdoc[:imagesdir: {topdoc}../../test/case/containers/host_commands]

==== Description

This test verifies that a container in privileged mode can break out of
the container to execute commands that affect the host system.
Specifically, it confirms that the container can change the hostname of
the host.

==== Topology

image::topology.svg[Host Command Execution from Container topology, align=center, scaledwidth=75%]

==== Sequence

. Set up topology and attach to target DUT
. Set initial hostname
. Verify initial hostname in operational
. Include script in OCI image to modify host hostname
. Verify container has started
. Verify the new hostname set by the container