Skip to content

Commit

Permalink
Int test for opencontainers#3551
Browse files Browse the repository at this point in the history
v2: use daemon-reexec
v3: require root to reload systemd
v4: use exec -t

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
  • Loading branch information
kolyshkin committed Aug 17, 2022
1 parent b54084f commit 7d420d8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/integration/dev.bats
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,19 @@ function teardown() {
runc exec test_allow_block sh -c 'fdisk -l '"$device"''
[ "$status" -eq 0 ]
}

# https://github.com/opencontainers/runc/issues/3551
@test "runc exec vs systemctl daemon-reload" {
requires systemd root

runc run -d --console-socket "$CONSOLE_SOCKET" test_exec
[ "$status" -eq 0 ]

runc exec -t test_exec sh -c "ls -l /proc/self/fd/0; echo 123"
[ "$status" -eq 0 ]

systemctl daemon-reload

runc exec test_exec -t sh -c "ls -l /proc/self/fd/0; echo 123"
[ "$status" -eq 0 ]
}

0 comments on commit 7d420d8

Please sign in to comment.