diff options
author | Eduardo Barretto <ebarretto@linux.vnet.ibm.com> | 2017-05-09 10:53:04 -0300 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2018-08-24 17:49:07 +0100 |
commit | 04910479f7869c27065950b7deb0d69d85230927 (patch) | |
tree | eab0a03a2882770ae35e1f5c8e74baedecdcd9e6 | |
parent | 2bc71f46ab96ec8af88a5b86786fb0835d9b65bc (diff) |
Allow flock and ipc syscall for s390 architecture
In order to use the OpenSSL-ibmpkcs11 engine it is needed to allow flock
and ipc calls, because this engine calls OpenCryptoki (a PKCS#11
implementation) which calls the libraries that will communicate with the
crypto cards. OpenCryptoki makes use of flock and ipc and, as of now,
this is only need on s390 architecture.
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: 2018-08-24
Patch-Name: seccomp-s390-flock-ipc.patch
-rw-r--r-- | sandbox-seccomp-filter.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c index 12c4ee130..bcea77997 100644 --- a/sandbox-seccomp-filter.c +++ b/sandbox-seccomp-filter.c | |||
@@ -166,6 +166,9 @@ static const struct sock_filter preauth_insns[] = { | |||
166 | #ifdef __NR_exit_group | 166 | #ifdef __NR_exit_group |
167 | SC_ALLOW(__NR_exit_group), | 167 | SC_ALLOW(__NR_exit_group), |
168 | #endif | 168 | #endif |
169 | #if defined(__NR_flock) && defined(__s390__) | ||
170 | SC_ALLOW(__NR_flock), | ||
171 | #endif | ||
169 | #ifdef __NR_geteuid | 172 | #ifdef __NR_geteuid |
170 | SC_ALLOW(__NR_geteuid), | 173 | SC_ALLOW(__NR_geteuid), |
171 | #endif | 174 | #endif |
@@ -190,6 +193,9 @@ static const struct sock_filter preauth_insns[] = { | |||
190 | #ifdef __NR_getuid32 | 193 | #ifdef __NR_getuid32 |
191 | SC_ALLOW(__NR_getuid32), | 194 | SC_ALLOW(__NR_getuid32), |
192 | #endif | 195 | #endif |
196 | #if defined(__NR_ipc) && defined(__s390__) | ||
197 | SC_ALLOW(__NR_ipc), | ||
198 | #endif | ||
193 | #ifdef __NR_madvise | 199 | #ifdef __NR_madvise |
194 | SC_ALLOW(__NR_madvise), | 200 | SC_ALLOW(__NR_madvise), |
195 | #endif | 201 | #endif |