]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Allow (but return EACCES) fstatat64 in sandbox. V_8_5 anongit/V_8_5 github-selfhosted/V_8_5 github/V_8_5
authorDarren Tucker <dtucker@dtucker.net>
Fri, 12 Mar 2021 04:58:57 +0000 (15:58 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 12 Mar 2021 05:03:51 +0000 (16:03 +1100)
This is apparently used in some configurations of OpenSSL when glibc
has getrandom().  bz#3276, patch from Kris Karas, ok djm@

sandbox-seccomp-filter.c

index d8dc7120bdd42f56bab21d7f2e2a3683293e7183..7981c84ad10c37f69f02de16feefa9fb66ec8b11 100644 (file)
@@ -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