PiperOrigin-RevId: 242531141
Change-Id: I2a3bd815bda09f392f511f47120d5d9e6e86a40d
This commit is contained in:
Michael Pratt
2019-04-08 13:48:40 -07:00
committed by Shentubot
parent 70906f1d24
commit 218a7b5449
+2 -1
View File
@@ -30,7 +30,8 @@ TEST(RlimitTest, SetRlimitHigher) {
struct rlimit rl = {};
EXPECT_THAT(getrlimit(RLIMIT_NOFILE, &rl), SyscallSucceeds());
// Even with CAP_SYS_RESOURCE, gVisor does not allow setting a higher rlimit.
// TODO: Even with CAP_SYS_RESOURCE, gVisor does not allow
// setting a higher rlimit.
rl.rlim_max++;
EXPECT_THAT(setrlimit(RLIMIT_NOFILE, &rl), SyscallFailsWithErrno(EPERM));
}