tools/xenstore: don't let special watches be children of /
authorJuergen Gross <jgross@suse.com>
Mon, 2 May 2022 10:07:22 +0000 (12:07 +0200)
committerJulien Grall <jgrall@amazon.com>
Thu, 5 May 2022 10:58:47 +0000 (11:58 +0100)
commitc1d5e4021c9d3878eab9bb1c65eb3c21ef9d5ddc
tree51b9e35396b12f9a4b1d6cfd441a9c6bcb7f18f9
parentaf570d1c90f1ed6040d724732f6c582383782e90
tools/xenstore: don't let special watches be children of /

When firing special watches (e.g. "@releaseDomain"), they will be
regarded to be valid children of the "/" node. So a domain having
registered a watch for "/" and having the privilege to receive
the special watches will receive those special watch events for the
registered "/" watch.

Fix that by calling the related fire_watches() with the "exact"
parameter set to true, causing a mismatch for the "/" node.

Reported-by: Raphael Ning <raphning@amazon.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Raphael Ning <raphning@amazon.com>
Reviewed-by: Julien Grall <jgrall@amazon.com>
tools/xenstore/xenstored_domain.c