All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Features/HelperNetworking wiki page: setup description misses root ownership
@ 2018-10-24 13:23 Artem Pisarenko
  0 siblings, 0 replies; only message in thread
From: Artem Pisarenko @ 2018-10-24 13:23 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Maydell, Anthony Liguori, Liguori

'Setup' section of https://wiki.qemu.org/Features/HelperNetworking says
that setuid attribute needs to be turned on for 'qemu-bridge-helper'
binary, but it forgets to mention that owner of this file must be root
user. Otherwise, setuid bit makes no sense.
Looks like in most scenarios this binary already installed with root
privileges. But this isn't a case, when you build QEMU from sources and
install it in custom location, running 'make install' by non-privileged
user. Yes, maybe it's obvious for mature linux users, but it took me a lot
of time to figure out why QEMU fails with error: "failed to create tun
device: Operation not permitted" (googling this error shows mostly answers
like "you just forget setuid").
So, it would be useful to add
    sudo chown root /usr/local/libexec/qemu-bridge-helper
*before*
    sudo chmod u+s /usr/local/libexec/qemu-bridge-helper

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-10-24 13:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-24 13:23 [Qemu-devel] Features/HelperNetworking wiki page: setup description misses root ownership Artem Pisarenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.