[File] [PATCH] seccomp: allow fstatat64

Mike Gilbert floppym at gentoo.org
Fri Apr 23 19:14:08 UTC 2021


This is needed for the libsandbox LD_PRELOAD wrapper on Gentoo Linux.

Bug: https://bugs.gentoo.org/784857
---
 src/seccomp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/seccomp.c b/src/seccomp.c
index 81842cf5..43abc684 100644
--- a/src/seccomp.c
+++ b/src/seccomp.c
@@ -178,6 +178,9 @@ enable_sandbox_full(void)
  	ALLOW_RULE(fcntl64);
 	ALLOW_RULE(fstat);
  	ALLOW_RULE(fstat64);
+#ifdef __NR_fstatat64
+	ALLOW_RULE(fstatat64);
+#endif
 	ALLOW_RULE(futex);
 	ALLOW_RULE(getdents);
 #ifdef __NR_getdents64
-- 
2.31.1



More information about the File mailing list