Bug 255747 - emulators/qemu-user-static: su: not running setuid
Summary: emulators/qemu-user-static: su: not running setuid
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-emulation (Nobody)
Depends on:
Reported: 2021-05-10 12:52 UTC by nkoch
Modified: 2021-05-10 14:10 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (emulation)


Note You need to log in before you can comment on or make changes to this bug.
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.