Skip to content

Commit

Permalink
Merge pull request #17901 from ilausuch/improte_test_containers_privi…
Browse files Browse the repository at this point in the history
…leged

Containers: Improve container runtime privileged mode
  • Loading branch information
ilausuch committed Oct 4, 2023
2 parents 77ead5a + 0f535ed commit 522c5e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/containers/privileged_mode.pm
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ sub run {
# Capabilities are only available in privileged mode
my $capbnd = script_output("cat /proc/1/status | grep CapBnd");
validate_script_output("$runtime run --rm --privileged $image cat /proc/1/status | grep CapBnd", sub { m/$capbnd/ });

# Podman inside the container
assert_script_run("$runtime run -it --privileged --name outer-container $image /bin/bash");
assert_script_run("$runtime exec outer-container zypper in -y podman");
assert_script_run("$runtime exec outer-container podman run -it $image ls");
}

sub cleanup {
Expand Down

0 comments on commit 522c5e4

Please sign in to comment.