summaryrefslogtreecommitdiff
path: root/sandbox-seccomp-filter.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2021-03-12 15:58:57 +1100
committerDarren Tucker <dtucker@dtucker.net>2021-03-12 15:58:57 +1100
commit82fef71e20ffef425b932bec26f5bc46aa1ed41c (patch)
treee4fac8479c0cf528f670783a19b9e25a8830e5c0 /sandbox-seccomp-filter.c
parent1cd67ee15ce3d192ab51be22bc4872a6a7a4b6d9 (diff)
downloadopenssh-git-82fef71e20ffef425b932bec26f5bc46aa1ed41c.tar.gz
Allow (but return EACCES) fstatat64 in sandbox.
This is apparently used in some configurations of OpenSSL when glibc has getrandom(). bz#3276, patch from Kris Karas, ok djm@
Diffstat (limited to 'sandbox-seccomp-filter.c')
-rw-r--r--sandbox-seccomp-filter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c
index d8dc7120..7981c84a 100644
--- a/sandbox-seccomp-filter.c
+++ b/sandbox-seccomp-filter.c
@@ -154,6 +154,9 @@ static const struct sock_filter preauth_insns[] = {
#ifdef __NR_fstat64
SC_DENY(__NR_fstat64, EACCES),
#endif
+#ifdef __NR_fstatat64
+ SC_DENY(__NR_fstatat64, EACCES),
+#endif
#ifdef __NR_open
SC_DENY(__NR_open, EACCES),
#endif