aboutgitcodebugslistschat
path: root/test
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2025-12-04 21:48:20 +0100
committerStefano Brivio <sbrivio@redhat.com>2025-12-07 23:17:25 +0100
commit9e2e381be1d2ff6b385067af276d0e38f202422c (patch)
tree96da467f8a3826e60bc7daa976efb2e61986349f /test
parentfdbb4efd38f7211881e05f7284c364df5d4856be (diff)
downloadpasst-9e2e381be1d2ff6b385067af276d0e38f202422c.tar
passt-9e2e381be1d2ff6b385067af276d0e38f202422c.tar.gz
passt-9e2e381be1d2ff6b385067af276d0e38f202422c.tar.bz2
passt-9e2e381be1d2ff6b385067af276d0e38f202422c.tar.lz
passt-9e2e381be1d2ff6b385067af276d0e38f202422c.tar.xz
passt-9e2e381be1d2ff6b385067af276d0e38f202422c.tar.zst
passt-9e2e381be1d2ff6b385067af276d0e38f202422c.zip
seccomp: Fix build and operation on 32-bit musl targets
On 32-bit musl targets (for example, Alpine i386 / i586), we need to: - use the set of system calls already defined for i686. While Alpine's kernel supports i586 as well (Debian for example doesn't), it's the same architecture, so change i386/i486/i586 machine strings to i686 in seccomp.sh - allow clock_gettime64() as an alternative to clock_gettime() (not just added on top, rather replacing it), because clock_gettime() isn't available as a system call name at all in musl headers (while glibc aliases it to the kernel's clock_gettime64()) - similarly, allow timerfd_gettime64() as a name for timerfd_gettime() - allow timerfd_settime32() as a name for timerfd_settime(), even though there's no such system call declared in Linux kernel headers, as musl uses that name to distinguish it from timerfd_settime64() - unconditionally allow timerfd_settime64(), because musl uses it whenever the 'old' argument is non-NULL and sizeof(time_t) > 4, which happens to be the case in tcp_timer_handler() Reported-by: John D. Rowell <me@jdrowell.com> Link: https://bugs.passt.top/show_bug.cgi?id=177 Link: https://gitlab.alpinelinux.org/alpine/aports/-/issues/17686 Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions