tools/ocaml/xenstored: introduce permissions for special watches
authorEdwin Török <edvin.torok@citrix.com>
Tue, 15 Dec 2020 12:35:13 +0000 (13:35 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 15 Dec 2020 12:35:13 +0000 (13:35 +0100)
commitcf4116c38c0d3ab83cdaac7a23bc8598362c410d
tree49292b93274b22e3e95438f375ad59c4ad1d5a88
parent0911dfad0fbadee2ffaf1da1a8c596b750fd21d4
tools/ocaml/xenstored: introduce permissions for special watches

The special watches "@introduceDomain" and "@releaseDomain" should be
allowed for privileged callers only, as they allow to gain information
about presence of other guests on the host. So send watch events for
those watches via privileged connections only.

Start to address this by treating the special watches as regular nodes
in the tree, which gives them normal semantics for permissions.  A later
change will restrict the handling, so that they can't be listed, etc.

This is part of XSA-115.

Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/ocaml/xenstored/process.ml
tools/ocaml/xenstored/store.ml
tools/ocaml/xenstored/utils.ml
tools/ocaml/xenstored/xenstored.ml