Comments

The ideal way to use qemu-bridge-helper is to give it an fscap of using:
setcap cap_net_admin=ep qemu-bridge-helper
Unfortunately, most distros still do not have a mechanism to package files
with fscaps applied. This means they'll have to SUID the qemu-bridge-helper
binary.
To improve security, use libcap to reduce our capability set to just
cap_net_admin, then reduce privileges down to the calling user. This is
hopefully close to equivalent to fscap support from a security perspective.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>Signed-off-by: Richa Marwaha <rmarwah@linux.vnet.ibm.com>Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
---
configure | 34 ++++++++++++++++++++++++++++++++++
qemu-bridge-helper.c | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 70 insertions(+), 0 deletions(-)