From nobody Mon Feb 9 09:34:49 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=eu.citrix.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1580808907560600.3686783895428; Tue, 4 Feb 2020 01:35:07 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iyubP-0001L1-VQ; Tue, 04 Feb 2020 09:34:39 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iyubP-0001Kc-7V for xen-devel@lists.xenproject.org; Tue, 04 Feb 2020 09:34:39 +0000 Received: from esa4.hc3370-68.iphmx.com (unknown [216.71.155.144]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 8c5e15ac-4731-11ea-8ef9-12813bfff9fa; Tue, 04 Feb 2020 09:34:33 +0000 (UTC) X-Inumbo-ID: 8c5e15ac-4731-11ea-8ef9-12813bfff9fa DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1580808873; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=2g21h5VXnWTXEdDsr4vYTMSl4J4YBWAfT+fz1Duajyw=; b=heo5PjKWBw7a30NJkiddFHLEhCR9VftX3Dir3wXfHikxvnooI8OZRXZ6 KH5qWgw27lQkcAARmOomQh+Anf4mFAckYXiCH9xJi8wmZ+sQV+wR0VWjv JuomuNWyJIWb6Wk592RZK1dxXS2LA1WthRkwECBNu89KcViOu7h6IKcIL c=; Authentication-Results: esa4.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=ian.jackson@eu.citrix.com; spf=Pass smtp.mailfrom=Ian.Jackson@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: None (esa4.hc3370-68.iphmx.com: no sender authenticity information available from domain of ian.jackson@eu.citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa4.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="ian.jackson@eu.citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa4.hc3370-68.iphmx.com: domain of Ian.Jackson@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa4.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="Ian.Jackson@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ip4:168.245.78.127 ~all" Received-SPF: None (esa4.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa4.hc3370-68.iphmx.com; envelope-from="Ian.Jackson@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: iuOJ5ZnFPHC9BZKkcfeKt3lNFBZgeHWWGQNfLKHRzZEUrUBUd30yIulUNP19uOqYp8tYn6mx6u sbh7awwEupu/4aqSNHS/R1UXD+v2cpRK3OTLJsZlyEGWrIaRt46lHIKNPOWlySO1XDFXYAfCGe wVhYII8q87VUgxwRAGk4QOedOiGvxU8E74EFs4bWSIMBpMkgPZZEkeaze2M62AtK5ijL+eybaX GTrte6xxanJTopxtNjZqTJTNB925BTehNONIn7Roo2mlOA3CiagE/QsXl5ZFXPoC2mCoEFmAF1 iQo= X-SBRS: 2.7 X-MesageID: 12517738 X-Ironport-Server: esa4.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.70,401,1574139600"; d="scan'208";a="12517738" From: Ian Jackson To: Date: Tue, 4 Feb 2020 09:34:23 +0000 Message-ID: <20200204093424.10159-2-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200204093424.10159-1-ian.jackson@eu.citrix.com> References: <20200204093424.10159-1-ian.jackson@eu.citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [PATCH v3 1/2] tools/xenstore: Re-introduce (fake) xs_restrict call to preserve ABI X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Ian Jackson , Wei Liu , Stefan Bader Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Stefan Bader libxenstore3.0 in Xen 4.8 had this function. We don't really want to bump the ABI version (soname) just for this, since we don't think there are actual callers anywhere. But tools complain about the symbol going away. So, provide a function xs_restrict which conforms to the original semantics, although it always fails. Gbp-Pq: Topic xenstore Gbp-Pq: Name tools-fake-xs-restrict.patch Signed-off-by: Ian Jackson Acked-by: Wei Liu --- v3: Fixed commit author v2: New in this version of the series --- tools/xenstore/include/xenstore.h | 5 +++++ tools/xenstore/xs.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/tools/xenstore/include/xenstore.h b/tools/xenstore/include/xen= store.h index 254f556a0b..25b31881c8 100644 --- a/tools/xenstore/include/xenstore.h +++ b/tools/xenstore/include/xenstore.h @@ -134,6 +134,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); =20 +/* 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. */ diff --git a/tools/xenstore/xs.c b/tools/xenstore/xs.c index f823abe737..aa1d24b8b9 100644 --- a/tools/xenstore/xs.c +++ b/tools/xenstore/xs.c @@ -797,6 +797,12 @@ unwind: return false; } =20 +/* 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. --=20 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel