mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Use new helpers in policy_test
PiperOrigin-RevId: 496904765 Change-Id: Id2e4a901ed29c780542423608c55d01ef19eee9a
This commit is contained in:
parent
7625c3dd24
commit
89a8f35f0e
|
@ -244,6 +244,9 @@ TEST(MinimalTest, MinimalSharedBinaryWorks) {
|
|||
#ifdef __NR_access
|
||||
// New glibc accesses /etc/ld.so.preload
|
||||
.BlockSyscallWithErrno(__NR_access, ENOENT)
|
||||
#endif
|
||||
#ifdef __NR_faccessat
|
||||
.BlockSyscallWithErrno(__NR_faccessat, ENOENT)
|
||||
#endif
|
||||
.BlockSyscallWithErrno(__NR_prlimit64, EPERM);
|
||||
auto policy = builder.BuildOrDie();
|
||||
|
|
Loading…
Reference in New Issue
Block a user