aboutgitcodebugslistschat
path: root/log.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2024-08-19 23:42:30 +0200
committerStefano Brivio <sbrivio@redhat.com>2024-08-21 12:00:43 +0200
commit2aea1da143895540eed3d1a08defb30158c7e5a6 (patch)
treec4f0fd5ca2b640f681c7a0b52c0300181d5a0e60 /log.c
parent57b7bd2a48a1dc5c87f4db51f7bf439cc84fcd53 (diff)
downloadpasst-2aea1da143895540eed3d1a08defb30158c7e5a6.tar
passt-2aea1da143895540eed3d1a08defb30158c7e5a6.tar.gz
passt-2aea1da143895540eed3d1a08defb30158c7e5a6.tar.bz2
passt-2aea1da143895540eed3d1a08defb30158c7e5a6.tar.lz
passt-2aea1da143895540eed3d1a08defb30158c7e5a6.tar.xz
passt-2aea1da143895540eed3d1a08defb30158c7e5a6.tar.zst
passt-2aea1da143895540eed3d1a08defb30158c7e5a6.zip
treewide: Allow additional system calls for i386/i686
I haven't tested i386 for a long time (after playing with some openSUSE i586 image a couple of years ago). It turns out that a number of system calls we actually need were denied by the seccomp filter, and not even basic functionality works. Add some system calls that glibc started using with the 64-bit time ("t64") transition, see also: https://wiki.debian.org/ReleaseGoals/64bit-time that is: clock_gettime64, timerfd_gettime64, fcntl64, and recvmmsg_time64. Add further system calls that are needed regardless of time_t width, that is, mmap2 (valgrind profile only), _llseek and sigreturn (common outside x86_64), and socketcall (same as s390x). I validated this against an almost full run of the test suite, with just a few selected tests skipped. Fixes needed to run most tests on i386/i686, and other assorted fixes for tests, are included in upcoming patches. Reported-by: Uroš Knupleš <uros@knuples.net> Analysed-by: Faidon Liambotis <paravoid@debian.org> Link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1078981 Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'log.c')
-rw-r--r--log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/log.c b/log.c
index e7202d0..433b552 100644
--- a/log.c
+++ b/log.c
@@ -98,7 +98,7 @@ const char *logfile_prefix[] = {
* @fd: Log file descriptor
* @now: Current timestamp
*
- * #syscalls lseek ppc64le:_llseek ppc64:_llseek arm:_llseek
+ * #syscalls lseek ppc64le:_llseek ppc64:_llseek arm:_llseek i686:_llseek
*/
static void logfile_rotate_fallocate(int fd, const struct timespec *now)
{