Merge pull request #14463 from sunyuan3/TestRunCapAddSYSTIME

Add TestRunCapAddSYSTIME test case.
This commit is contained in:
Brian Goff 2015-07-31 09:40:12 -04:00
commit 5276655b69
1 changed files with 4 additions and 0 deletions

View File

@ -2775,3 +2775,7 @@ func (s *DockerSuite) TestAppArmorTraceSelf(c *check.C) {
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$")
}