File openssh-7.6p1-seccomp_ioctl_s390_EP11.patch of Package openssh.21986

# HG changeset patch
# Parent  a64f36149cef8579bcca3c9207219603d5d3da48
Patch from IBM enabling use of EP11 hw crypto accelerator, submitted upstreams:

From: Eduardo Barretto <ebarretto@linux.vnet.ibm.com>
To: openssh-unix-dev@mindrot.org
Subject: [PATCH 3/3] Enable specific ioctl call for EP11 crypto card (s390)
Date: Tue,  9 May 2017 14:27:15 -0300

The EP11 crypto card needs to make an ioctl call, which receives an
specific argument. This crypto card is for s390 only.

Signed-off-by: Eduardo Barretto <ebarretto@linux.vnet.ibm.com>

Index: openssh-7.6p1/sandbox-seccomp-filter.c
===================================================================
--- openssh-7.6p1.orig/sandbox-seccomp-filter.c	2019-03-12 14:38:29.580898369 +0100
+++ openssh-7.6p1/sandbox-seccomp-filter.c	2019-03-12 14:38:29.824899741 +0100
@@ -253,6 +253,8 @@ static const struct sock_filter preauth_
 	SC_ALLOW_ARG(__NR_ioctl, 1, Z90STAT_STATUS_MASK),
 	SC_ALLOW_ARG(__NR_ioctl, 1, ICARSAMODEXPO),
 	SC_ALLOW_ARG(__NR_ioctl, 1, ICARSACRT),
+	/* Allow ioctls for EP11 crypto card on s390 */
+	SC_ALLOW_ARG(__NR_ioctl, 1, ZSENDEP11CPRB),
 #endif
 #if defined(__x86_64__) && defined(__ILP32__) && defined(__X32_SYSCALL_BIT)
 	/*
openSUSE Build Service is sponsored by