Skip to content

Commit

Permalink
Add a further testcase for a ro mount
Browse files Browse the repository at this point in the history
Add a further testcase that mounts a nodev,nosuid,noexec filesystem with
a ro flag.

Signed-off-by: Ruediger Pluem <ruediger.pluem@vodafone.com>
  • Loading branch information
rpluem-vf committed Apr 18, 2023
1 parent 3bc0de7 commit 06f65bf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/integration/mounts_nodev_nosuid_noexec.bats
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,15 @@ function teardown() {
runc run test_busybox
[ "$status" -eq 0 ]
}

@test "runc run [ro bind mount of a nodev,nosuid,noexec fuse sshfs mount]" {
update_config ' .mounts += [{
type: "bind",
source: "'"$DIR"'",
destination: "/mnt",
options: ["rbind", "ro"]
}]'

runc run test_busybox
[ "$status" -eq 0 ]
}

0 comments on commit 06f65bf

Please sign in to comment.