tools-fake-xs-restrict
authorDebian Xen Team <pkg-xen-devel@lists.alioth.debian.org>
Fri, 24 Aug 2018 17:45:17 +0000 (18:45 +0100)
committerHans van Kranenburg <hans@knorrie.org>
Wed, 2 Jan 2019 19:59:40 +0000 (20:59 +0100)
Gbp-Pq: Topic xenstore
Gbp-Pq: Name tools-fake-xs-restrict.patch

tools/xenstore/include/xenstore.h
tools/xenstore/xs.c

index f460b8c5e5363a8d45d4edee141c63c8b802f38c..0d95bb0e5ccd919d7dac4f0da83f7b01fd670dd8 100644 (file)
@@ -132,6 +132,11 @@ bool xs_mkdir(struct xs_handle *h, xs_transaction_t t,
 bool xs_rm(struct xs_handle *h, xs_transaction_t t,
           const char *path);
 
+/* Fake function which will always return false (required to let
+ * libxenstore remain at 3.0 version.
+ */
+bool xs_restrict(struct xs_handle *h, unsigned domid);
+
 /* Get permissions of node (first element is owner, first perms is "other").
  * Returns malloced array, or NULL: call free() after use.
  */
index 77700bff2bd264ea1385c047121b5aacc75fb12f..cbcebb2bce622d3c8c764f584f655f83988ce83d 100644 (file)
@@ -796,6 +796,12 @@ unwind:
        return false;
 }
 
+/* Always return false a functionality has been removed in Xen 4.9 */
+bool xs_restrict(struct xs_handle *h, unsigned domid)
+{
+       return false;
+}
+
 /* Watch a node for changes (poll on fd to detect, or call read_watch()).
  * When the node (or any child) changes, fd will become readable.
  * Token is returned when watch is read, to allow matching.