mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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> (cherry picked from commitc875b9778d) (cherry picked from commit3667bc0394) (cherry picked from commit aa804864f151352ba83292e8918637d0bb319491)
This commit is contained in:
1 parent
1d6ced7251
commit
2f8bdf1673
1 file changed
+1
-1
@@ -16,7 +16,7 @@ start_cmd="xen_startcmd"
|
||||
stop_cmd="xen_stop"
|
||||
status_cmd="xen_status"
|
||||
extra_commands="status"
|
||||
required_files="/dev/xen/privcmd"
|
||||
required_files="/dev/xen/xenstored"
|
||||
|
||||
XENSTORED_PIDFILE="/var/run/xenstored.pid"
|
||||
XENCONSOLED_PIDFILE="/var/run/xenconsoled.pid"
|
||||
|
||||