I built a brand new UTM VM from 16.0.3.8-developers-only and the sdwdate issue is also present there.
I’m not sure how to debug this issue, I tried to run the python file directly and it seems to work fine except at the end it cannot set the date, but that’s probably because I’m running it wrong.
I did configure -rtc base=utc in QEMU parameters, but nothing changed.
Surely this issue affect all the aarch64 builds, right? So people just didn’t realize it yet. Or can it be related to my setup?
oh I managed to fix it!
Basically I just added unlinkat to the SECCOMP whitelist and then it worked:
user@host:~$ cat /lib/systemd/system/sdwdate.service.d/20_arch_syscall_whitelist.conf
## This file has been auto-generated by: /var/lib/dpkg/info/sdwdate.postinst
## Changes will be lost when sdwdate is upgraded.
## See file /lib/systemd/system/sdwdate.service for comments.
## Architecture: aarch64
[Service]
SystemCallFilter=faccessat readlinkat newfstatat mkdirat dup3 ppoll pselect6 unlinkat
user@host:~$ systemctl status sdwdate
● sdwdate.service - Secure Distributed Web Date
Loaded: loaded (/lib/systemd/system/sdwdate.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/sdwdate.service.d
└─20_arch_syscall_whitelist.conf
Active: active (running) since Sun 2022-01-30 16:03:07 UTC; 2min 6s ago
Docs: https://www.whonix.org/wiki/sdwdate
Main PID: 821 (sdwdate)
Status: "Running sdwdate main loop. iteration: 1 / 10000"
Tasks: 2 (limit: 2257)
Memory: 22.4M
CPU: 988ms
CGroup: /system.slice/sdwdate.service
├─ 821 /usr/bin/python3 -u /usr/bin/sdwdate
└─1222 sleep 8548.757159774