init/FreeBSD: fix xencommons so it can only be launched by Dom0
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 19 Dec 2016 15:02:03 +0000 (15:02 +0000)
committerWei Liu <wei.liu2@citrix.com>
Wed, 21 Dec 2016 16:33:45 +0000 (16:33 +0000)
commitc875b9778da0c56a0c118626771465b87df31fe8
tree78fb0b5e7c682e77de9942519182d2910ac38bed
parent29b968e46b215bea8881abdfd06a046417b83006
init/FreeBSD: fix xencommons so it can only be launched by Dom0

At the moment the execution of xencommons is gated on the presence of the
privcmd device, but that's not correct, since privcmd is available to all Xen
domains (privileged or unprivileged). Instead of using privcmd use the
xenstored device, which will only be available to the domain that's in charge
of running xenstored, and thus xencommons.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/hotplug/FreeBSD/rc.d/xencommons.in