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>
Tue, 11 Sep 2018 13:34:35 +0000 (15:34 +0200)
Gbp-Pq: Topic xenstore
Gbp-Pq: Name tools-fake-xs-restrict.patch

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

index de591106ea06b9bbb6560fd9e68c8b2b7687f0c2..edf62718b4e7e4da11bae8eb20976e455e11ab8d 100644 (file)
@@ -133,6 +133,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 0355d3d1a1e764128295f26cab21300e996fbba2..4e99bf823185fe883dbeca20e43b40f91baedd38 100644 (file)
@@ -798,6 +798,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.