]> xenbits.xensource.com Git - xen.git/commit
tools/ocaml/xenstored: introduce permissions for special watches
authorEdwin Török <edvin.torok@citrix.com>
Tue, 15 Dec 2020 13:29:14 +0000 (14:29 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 15 Dec 2020 13:29:14 +0000 (14:29 +0100)
commitbfda5aefa1dfd359136465bf0c0ffacafd080c3e
tree6249ab852f8892d28ff3c28f92570398436e378b
parent551d75d1ff56b7a40c794923c440db7b02f6c207
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