File openssh-7.6p1-seccomp_stat.patch of Package openssh-askpass-gnome.21986

# HG changeset patch
# Parent  ddbb42a2825e7e837d7b0387b79a9542c7869174
Allow the stat() syscall for OpenSSL re-seed patch
(which causes OpenSSL use stat() on some file)

bnc#912436

Index: openssh-7.6p1/sandbox-seccomp-filter.c
===================================================================
--- openssh-7.6p1.orig/sandbox-seccomp-filter.c	2019-03-12 14:38:29.080895556 +0100
+++ openssh-7.6p1/sandbox-seccomp-filter.c	2019-03-12 14:38:29.332896973 +0100
@@ -229,6 +229,9 @@ static const struct sock_filter preauth_
 #ifdef __NR_sigprocmask
 	SC_ALLOW(__NR_sigprocmask),
 #endif
+#ifdef __NR_stat
+	SC_ALLOW(__NR_stat),
+#endif
 #ifdef __NR_time
 	SC_ALLOW(__NR_time),
 #endif
openSUSE Build Service is sponsored by