Bug 255747

Summary: emulators/qemu-user-static: su: not running setuid
Product: Ports & Packages Reporter: nkoch
Component: Individual Port(s)Assignee: freebsd-emulation (Nobody) <emulation>
Status: New ---    
Severity: Affects Some People CC: martin, nkoch
Priority: --- Flags: bugzilla: maintainer-feedback? (emulation)
Version: Latest   
Hardware: amd64   
OS: Any   

Description nkoch 2021-05-10 12:52:25 UTC
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?
Comment 1 nkoch 2021-05-10 12:56:42 UTC
To answer my own question: After setuid on qemu 'su -' works,
but I see: 'qemu: unsupported syscall: 447 (calling anyway)'.
Comment 2 martin 2021-05-10 14:05:17 UTC
Won't adding setuid on qemu make it run everything as root?
Comment 3 nkoch 2021-05-10 14:10:09 UTC
Yes, of course. Setuid on qemu is not the solution. I just wanted to see if this works.