aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-07-23 06:50:30 +0000
committerOmar Polo <op@omarpolo.com>2021-07-23 06:50:30 +0000
commit21f7d2469937a5168542cc12586fb1153d5cc2f4 (patch)
treeb311f787182ed4a7b9ef5a4d4a65656ada2389cd
parentaf5f9b271e852c641ff6c1d226e42d98f4182f25 (diff)
allow fstat64
used by glibc on aarch64. Found and tested by pine, thanks!
-rw-r--r--sandbox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sandbox.c b/sandbox.c
index 7828922..096f9fc 100644
--- a/sandbox.c
+++ b/sandbox.c
@@ -300,6 +300,9 @@ static struct sock_filter filter[] = {
#ifdef __NR_fstat
SC_ALLOW(fstat),
#endif
+#ifdef __NR_fstat64
+ SC_ALLOW(fstat64),
+#endif
#ifdef __NR_getdents64
SC_ALLOW(getdents64),
#endif