summaryrefslogtreecommitdiff
path: root/sandbox-seccomp-filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox-seccomp-filter.c')
-rw-r--r--sandbox-seccomp-filter.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c
index 2831e9d10..3833424bf 100644
--- a/sandbox-seccomp-filter.c
+++ b/sandbox-seccomp-filter.c
@@ -166,18 +166,36 @@ 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_getpgid 172#ifdef __NR_getpgid
170 SC_ALLOW(__NR_getpgid), 173 SC_ALLOW(__NR_getpgid),
171#endif 174#endif
172#ifdef __NR_getpid 175#ifdef __NR_getpid
173 SC_ALLOW(__NR_getpid), 176 SC_ALLOW(__NR_getpid),
174#endif 177#endif
178#ifdef __NR_getuid
179 SC_ALLOW(__NR_getuid),
180#endif
181#ifdef __NR_getuid32
182 SC_ALLOW(__NR_getuid32),
183#endif
184#ifdef __NR_geteuid
185 SC_ALLOW(__NR_geteuid),
186#endif
187#ifdef __NR_geteuid32
188 SC_ALLOW(__NR_geteuid32),
189#endif
175#ifdef __NR_getrandom 190#ifdef __NR_getrandom
176 SC_ALLOW(__NR_getrandom), 191 SC_ALLOW(__NR_getrandom),
177#endif 192#endif
178#ifdef __NR_gettimeofday 193#ifdef __NR_gettimeofday
179 SC_ALLOW(__NR_gettimeofday), 194 SC_ALLOW(__NR_gettimeofday),
180#endif 195#endif
196#if defined(__NR_ipc) && defined(__s390__)
197 SC_ALLOW(__NR_ipc),
198#endif
181#ifdef __NR_madvise 199#ifdef __NR_madvise
182 SC_ALLOW(__NR_madvise), 200 SC_ALLOW(__NR_madvise),
183#endif 201#endif
@@ -231,6 +249,8 @@ static const struct sock_filter preauth_insns[] = {
231 SC_ALLOW_ARG(__NR_ioctl, 1, Z90STAT_STATUS_MASK), 249 SC_ALLOW_ARG(__NR_ioctl, 1, Z90STAT_STATUS_MASK),
232 SC_ALLOW_ARG(__NR_ioctl, 1, ICARSAMODEXPO), 250 SC_ALLOW_ARG(__NR_ioctl, 1, ICARSAMODEXPO),
233 SC_ALLOW_ARG(__NR_ioctl, 1, ICARSACRT), 251 SC_ALLOW_ARG(__NR_ioctl, 1, ICARSACRT),
252 /* Allow ioctls for EP11 crypto card on s390 */
253 SC_ALLOW_ARG(__NR_ioctl, 1, ZSENDEP11CPRB),
234#endif 254#endif
235#if defined(__x86_64__) && defined(__ILP32__) && defined(__X32_SYSCALL_BIT) 255#if defined(__x86_64__) && defined(__ILP32__) && defined(__X32_SYSCALL_BIT)
236 /* 256 /*