]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Iface: disallow network tuning in session mode globally
authorErik Skultety <eskultet@redhat.com>
Thu, 6 Nov 2014 11:38:52 +0000 (12:38 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 6 Nov 2014 13:28:37 +0000 (14:28 +0100)
commit9a8fc3efc24705df093e4af2ac964822e3cf9a06
treefd3d52ecd35eaf1d007e64158139ea7d5ac3abc2
parent74ae5be44e43d333bac3f923ceeb21c702b7ae2a
Iface: disallow network tuning in session mode globally

Patch 43b67f2e disallowed network tuning only with qemu driver, however
this patch moved the check for root privileges into
virNetDevBandwidthSet function, so the call should now
fail in all possible cases. A mock function was created so that the test
suite doesn't fail because of unsufficient privileges.
src/util/virnetdevbandwidth.c
tests/Makefile.am
tests/virnetdevbandwidthmock.c [new file with mode: 0644]
tests/virnetdevbandwidthtest.c