From 88eadbf31fe25dcd7c224a5d92f71c79ccf6c9d3 Mon Sep 17 00:00:00 2001 From: Topi Miettinen Date: Sat, 14 Mar 2020 00:07:06 +0200 Subject: seccomp: allow defining separate filters for 32-bit arch System calls (names and numbers) are not exactly the same for 32 bit and 64 bit architectures. Let's allow defining separate filters for 32-bit arch using seccomp.32, seccomp.32.drop, seccomp.32.keep. This is useful for mixed 64/32 bit application environments like Steam and Wine. Implement protocol and mdwx filtering also for 32 bit arch. It's still better to block secondary archs completely if not needed. Lists of supported system calls are also updated. Warn if preload libraries would be needed due to trace, tracelog or postexecseccomp (seccomp.drop=execve etc), because a 32-bit dynamic linker does not understand the 64 bit preload libraries. Closes #3267. Signed-off-by: Topi Miettinen --- src/fsec-print/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/fsec-print/main.c') diff --git a/src/fsec-print/main.c b/src/fsec-print/main.c index 728308dac..7bb4fd0cd 100644 --- a/src/fsec-print/main.c +++ b/src/fsec-print/main.c @@ -24,6 +24,9 @@ static void usage(void) { printf("\tfsec-print file - disassemble seccomp filter\n"); } +int arg_quiet = 0; +void filter_add_errno(int fd, int syscall, int arg, void *ptrarg, bool native) {} + int main(int argc, char **argv) { #if 0 { -- cgit v1.2.3-54-g00ecf