]> Git Repo - qemu.git/commit - configure
Add basic version of bridge helper
authorCorey Bryant <[email protected]>
Thu, 26 Jan 2012 14:42:24 +0000 (09:42 -0500)
committerAnthony Liguori <[email protected]>
Wed, 1 Feb 2012 22:24:38 +0000 (16:24 -0600)
commit7b93fadf3a38d1ed65ea5536a52efc2772c6e3b8
tree748cdb705ee503951593ad246f78f4e35211fd6f
parent069ab0eb8a46bc4ff6f4d4d81bf037d3441347da
Add basic version of bridge helper

This patch adds a helper that can be used to create a tap device attached to
a bridge device.  Since this helper is minimal in what it does, it can be
given CAP_NET_ADMIN which allows qemu to avoid running as root while still
satisfying the majority of what users tend to want to do with tap devices.

The way this all works is that qemu launches this helper passing a bridge
name and the name of an inherited file descriptor.  The descriptor is one
end of a socketpair() of domain sockets.  This domain socket is used to
transmit a file descriptor of the opened tap device from the helper to qemu.

The helper can then exit and let qemu use the tap device.

Signed-off-by: Anthony Liguori <[email protected]>
Signed-off-by: Richa Marwaha <[email protected]>
Signed-off-by: Corey Bryant <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
Makefile
configure
qemu-bridge-helper.c [new file with mode: 0644]
This page took 0.025887 seconds and 4 git commands to generate.