I am emulating aarch64 in a jail on an amd64 server (FreeBSD 13.0). 'su -' reports 'su: not running setuid' The setuid bit is set on /usr/bin/su. Should it also be set on qemu-aarch64-static or does qemu not support setuid?
To answer my own question: After setuid on qemu 'su -' works, but I see: 'qemu: unsupported syscall: 447 (calling anyway)'.
Won't adding setuid on qemu make it run everything as root?
Yes, of course. Setuid on qemu is not the solution. I just wanted to see if this works.