Hi! There is a way to detect qemu-user: export QEMU_VERSION=meow then execve() something. As "meow" is not a legal value of that variable for any guest, qemu will error out.
Fixing a future version of qemu is not enough: it's usual to run unstable chroots on a stable host. Meow! -- ⢀⣴⠾⠻⢶⣦⠀ Laws we want back: Poland, Dz.U. 1921 nr.30 poz.177 (also Dz.U. ⣾⠁⢰⠒⠀⣿⡁ 1920 nr.11 poz.61): Art.2: An official, guilty of accepting a gift ⢿⡄⠘⠷⠚⠋⠀ or another material benefit, or a promise thereof, [in matters ⠈⠳⣄⠀⠀⠀⠀ relevant to duties], shall be punished by death by shooting.