mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Relax the policy to allow stat
(and possibly stat64
).
PiperOrigin-RevId: 414480521 Change-Id: If0ffca2141589ea3cf0dec4b0524c50ca37489b4
This commit is contained in:
parent
60eb52c17f
commit
84c29dd3bb
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user