summaryrefslogtreecommitdiff
path: root/sandbox-seccomp-filter.c
diff options
context:
space:
mode:
authorEduardo Barretto <ebarretto@linux.vnet.ibm.com>2017-05-09 13:33:30 -0300
committerColin Watson <cjwatson@debian.org>2017-10-04 13:54:49 +0100
commit801a62eedaaf47b20dbf4b426dc3e084bf0c8d49 (patch)
treeb1e9f1de7ffd942e3c439244d84393b272afba0c /sandbox-seccomp-filter.c
parent8165600205696cca8a080a5cb6746070512174e9 (diff)
Enable specific ioctl call for EP11 crypto card (s390)
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> Origin: other, https://bugzilla.mindrot.org/show_bug.cgi?id=2752 Bug: https://bugzilla.mindrot.org/show_bug.cgi?id=2752 Bug-Ubuntu: https://bugs.launchpad.net/bugs/1686618 Last-Update: 2017-08-28 Patch-Name: seccomp-s390-ioctl-ep11-crypto.patch
Diffstat (limited to 'sandbox-seccomp-filter.c')
-rw-r--r--sandbox-seccomp-filter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c
index e86aa2c91..98062f152 100644
--- a/sandbox-seccomp-filter.c
+++ b/sandbox-seccomp-filter.c
@@ -250,6 +250,8 @@ static const struct sock_filter preauth_insns[] = {
250 SC_ALLOW_ARG(__NR_ioctl, 1, Z90STAT_STATUS_MASK), 250 SC_ALLOW_ARG(__NR_ioctl, 1, Z90STAT_STATUS_MASK),
251 SC_ALLOW_ARG(__NR_ioctl, 1, ICARSAMODEXPO), 251 SC_ALLOW_ARG(__NR_ioctl, 1, ICARSAMODEXPO),
252 SC_ALLOW_ARG(__NR_ioctl, 1, ICARSACRT), 252 SC_ALLOW_ARG(__NR_ioctl, 1, ICARSACRT),
253 /* Allow ioctls for EP11 crypto card on s390 */
254 SC_ALLOW_ARG(__NR_ioctl, 1, ZSENDEP11CPRB),
253#endif 255#endif
254#if defined(__x86_64__) && defined(__ILP32__) && defined(__X32_SYSCALL_BIT) 256#if defined(__x86_64__) && defined(__ILP32__) && defined(__X32_SYSCALL_BIT)
255 /* 257 /*