I did add setuid bit to qemu-bridge-helper to run qemu as non-root and
I did it for the new file location. It does not make any difference
with the new version. In my example I used '#' to indicate a root
prompt so the setuid bit wouldn't make a difference anyway. By the
way, the following command also hangs, but it works correctly with the
previous version:

# qemu-system-x86_64 -netdev tap,id=n1

On Fri, Aug 16, 2024 at 4:15 PM Michael Tokarev <m...@tls.msk.ru> wrote:
>
> Control: tag -1 + moreinfo
>
> 15.08.2024 17:37, bblinux wrote:
> > Package: qemu-system-x86
> > Version: 1:9.0.2+ds-4
> > Severity: important
> >
> > Dear Maintainer,
> >
> > The application worked fine before the upgrade to 9.0.2. Here is a
> > minimal example:
> >
> > $ qemu-system-x86_64 --version
> > QEMU emulator version 8.2.5 (Debian 1:8.2.5+ds-1)
> > Copyright (c) 2003-2023 Fabrice Bellard and the QEMU Project developers
> >
> > # qemu-system-x86_64 -netdev bridge,id=n1
> > qemu-system-x86_64: warning: netdev n1 has no peer
> > VNC server running on 127.0.0.1:5900
>
> Did you use dpkg-statoverride to add setuid bit to qemu-bridge-helper?
> -netdev bridge does not work by default on debian unless you run it as
> root (which is not recommended).
>
> qemu (1:9.0.2+ds-2) unstable; urgency=medium
>
>    * move helper binaries (qemu-bridge-helper, virtfs-proxy-helper,
>      vhost-user-gpu) from usr/lib/qemu to usr/libexec/qemu
>
> Please see if adding suid bit to /usr/libexec/qemu/qemu-bridge-helper
> resolves this issue.
>
> Thanks,
>
> /mjt

Reply via email to