Add TestRunCapAddSYSTIME test case.

Signed-off-by: Yuan Sun <sunyuan3@huawei.com>
This commit is contained in:
Yuan Sun 2015-07-31 12:53:46 +08:00
parent 500a314713
commit a5e2fa2b2e
1 changed files with 4 additions and 0 deletions

View File

@ -2776,3 +2776,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$")
}