1
0
Fork 0
mirror of https://passt.top/passt synced 2025-06-08 08:35:35 +02:00

treewide: Compilers' name for armv6l and armv7l is "arm"

When I switched from 'uname -m' to 'gcc -dumpmachine' to fetch the
architecture name for, among others, seccomp.sh, I didn't realise
that "armv6l" and "armv7l" are just Linux kernel names -- compilers
just call that "arm".

Fix the "syscalls" annotation we use to define seccomp profiles
accordingly, otherwise pasta will be terminated on sigreturn() on
armv6l and armv7l.

Fixes: 213c397492 ("passt, pasta: Run-time selection of AVX2 build")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2024-04-11 17:34:04 +02:00
parent 954589b64b
commit 5d5208b67d
5 changed files with 8 additions and 9 deletions

4
log.c
View file

@ -220,7 +220,7 @@ void logfile_init(const char *name, const char *path, size_t size)
* @fd: Log file descriptor
* @now: Current timestamp
*
* #syscalls lseek ppc64le:_llseek ppc64:_llseek armv6l:_llseek armv7l:_llseek
* #syscalls lseek ppc64le:_llseek ppc64:_llseek arm:_llseek
*/
static void logfile_rotate_fallocate(int fd, const struct timespec *now)
{
@ -257,7 +257,7 @@ static void logfile_rotate_fallocate(int fd, const struct timespec *now)
* @fd: Log file descriptor
* @now: Current timestamp
*
* #syscalls lseek ppc64le:_llseek ppc64:_llseek armv6l:_llseek armv7l:_llseek
* #syscalls lseek ppc64le:_llseek ppc64:_llseek arm:_llseek
* #syscalls ftruncate
*/
static void logfile_rotate_move(int fd, const struct timespec *now)