Skip to content

Commit

Permalink
Merge pull request #102 from flatcar-linux/kai/docker-alpha-test
Browse files Browse the repository at this point in the history
kola/tests/docker: Test no-new-privileges security option
  • Loading branch information
pothos authored May 5, 2020
2 parents 406f540 + 0994684 commit 02ace62
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kola/tests/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,9 @@ func dockerBaseTests(c cluster.TestCluster) {
}

// using a simple container, exercise various docker options that set resource
// limits. also acts as a regression test for
// https://github.com/coreos/bugs/issues/1246.
// limits and security options. also acts as a regression test for
// https://github.com/coreos/bugs/issues/1246 and
// https://github.com/flatcar-linux/Flatcar/issues/110
func dockerResources(c cluster.TestCluster) {
m := c.Machines()[0]

Expand Down Expand Up @@ -280,6 +281,8 @@ func dockerResources(c cluster.TestCluster) {
dCmd("--memory=50m --oom-kill-disable=true"),
dCmd("--memory-swappiness=50"),
dCmd("--shm-size=1m"),
dCmd("--security-opt=label=disable --security-opt=no-new-privileges"),
dCmd("--security-opt=no-new-privileges"),
} {
// lol closures
cmd := dockerCmd
Expand Down

0 comments on commit 02ace62

Please sign in to comment.