Relax the policy to allow stat (and possibly stat64).

PiperOrigin-RevId: 414480521
Change-Id: If0ffca2141589ea3cf0dec4b0524c50ca37489b4
This commit is contained in:
Sandboxed API Team 2021-12-06 10:22:45 -08:00 committed by Copybara-Service
parent 60eb52c17f
commit 84c29dd3bb

View File

@ -97,10 +97,7 @@ absl::StatusOr<std::unique_ptr<Policy>> StackTracePeer::GetPolicy(
.AllowHandleSignals() .AllowHandleSignals()
// libunwind // libunwind
.AllowSyscall(__NR_fstat) .AllowStat()
#ifdef __NR_fstat64
.AllowSyscall(__NR_fstat64)
#endif
.AllowSyscall(__NR_lseek) .AllowSyscall(__NR_lseek)
#ifdef __NR__llseek #ifdef __NR__llseek
.AllowSyscall(__NR__llseek) // Newer glibc on PPC .AllowSyscall(__NR__llseek) // Newer glibc on PPC