tools/libs/store: drop read-only functionality
authorJuergen Gross <jgross@suse.com>
Fri, 2 Oct 2020 15:41:39 +0000 (17:41 +0200)
committerWei Liu <wl@xen.org>
Thu, 8 Oct 2020 12:47:57 +0000 (12:47 +0000)
commit5144222bcd4b6653c15ce699780322dca5c02ea3
tree2a40ac888e538ba7d72a25588498085135a0b8d8
parentfa06cb8c38832aafe597d719040ba1d216e367b8
tools/libs/store: drop read-only functionality

Today it is possible to open the connection in read-only mode via
xs_daemon_open_readonly(). This is working only with Xenstore running
as a daemon in the same domain as the user. Additionally it doesn't
add any security as accessing the socket used for that functionality
requires the same privileges as the socket used for full Xenstore
access.

So just drop the read-only semantics in all cases, leaving the
interface existing only for compatibility reasons. This in turn
requires to just ignore the XS_OPEN_READONLY flag.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wl@xen.org>
tools/libs/store/include/xenstore.h
tools/libs/store/xs.c