mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #14463 from sunyuan3/TestRunCapAddSYSTIME
Add TestRunCapAddSYSTIME test case.
This commit is contained in:
commit
5276655b69
1 changed files with 4 additions and 0 deletions
|
@ -2775,3 +2775,7 @@ func (s *DockerSuite) TestAppArmorTraceSelf(c *check.C) {
|
||||||
c.Fatal("ptrace of self failed.")
|
c.Fatal("ptrace of self failed.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *DockerSuite) TestRunCapAddSYSTIME(c *check.C) {
|
||||||
|
dockerCmd(c, "run", "--cap-drop=ALL", "--cap-add=SYS_TIME", "busybox", "sh", "-c", "grep ^CapEff /proc/self/status | sed 's/^CapEff:\t//' | grep ^0000000002000000$")
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue