Use new helpers in policy_test

PiperOrigin-RevId: 496904765
Change-Id: Id2e4a901ed29c780542423608c55d01ef19eee9a
This commit is contained in:
Wiktor Garbacz 2022-12-21 06:16:29 -08:00 committed by Copybara-Service
parent 7625c3dd24
commit 89a8f35f0e

View File

@ -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();