Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10412049ybi; Wed, 24 Jul 2019 22:45:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4a2EjLeyO0gj1nNtg8yC30cKrUo00Z0OF9IJOrZNwnSBEo1201zhNYOkJwOt2fBwqiyDU X-Received: by 2002:a62:107:: with SMTP id 7mr15057551pfb.4.1564033515945; Wed, 24 Jul 2019 22:45:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564033515; cv=none; d=google.com; s=arc-20160816; b=pxRKSFgWZ5I9gGyovUbOwxvbVyxEfLbiqKzRvXdd21+thB1XMCmb0qVh6tmKrcPt9v IHLg5PoE2WMZTDk+505qBGf5GE42xmkPpAhKtzupfVCG7oFIeuG57aNhywMWTNJEm1WK xTVBU7T0XtkZ9UlGLWnOCRXxX99AOFhFHNK1QFAFzmK0HyIhsBxU0FsgBunQipJvkpFv +2p8dEYW4IpNcsDQQdap7GNwY8QrAS8CpKYuWiQ6ADZxSqzvbQ3ym4Jz63W9iWsjOl7B aULQ3fK1NNbupxPn/tGxcsvBtScE9g/OPEIPd6AxLdbiB1cMAdTshOHLqjuZMridAcXm 8fvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=hmlvj5tO0BIGDCO4OS0ImFhNLTrkJuJdf3V358IwTvE=; b=bKKWT8twO4/1sakIdAKvWp5ZYkk2jMijvPt8SYUtXTRJXbml9pnifo8z1fJo4aaf++ NZUyl1zi66wQw658reVdMCL5KojV12cDViO+tyvP59EKvtKrdKaDnVPtAeaDIYqVO7zM wTxbPqj8YVHxN4Lu/H8sO/dO3A3HRKbGjAiUocLQS5wYmREkfOxyvgRN4rf1Bj7neasB pw2WOmh3d6L9jmm+7zKVh2IYJM4Qf8QDhle4FnbltMVGAXsDtdBsUOBkhMzScxVsZ6Ht RWL9hqRHyy5PSfr2hAt7PAlNJf9it4v7JT0RW/q6INj9+0i//4mDphXTkyGSLNDeg/CU EBfQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k22si14849553pll.168.2019.07.24.22.44.44; Wed, 24 Jul 2019 22:45:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727031AbfGXVYN (ORCPT + 99 others); Wed, 24 Jul 2019 17:24:13 -0400 Received: from mga01.intel.com ([192.55.52.88]:48506 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726622AbfGXVYN (ORCPT ); Wed, 24 Jul 2019 17:24:13 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Jul 2019 14:24:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,304,1559545200"; d="p7s'?scan'208";a="177775286" Received: from orsmsx105.amr.corp.intel.com ([10.22.225.132]) by FMSMGA003.fm.intel.com with ESMTP; 24 Jul 2019 14:24:13 -0700 Received: from orsmsx158.amr.corp.intel.com (10.22.240.20) by ORSMSX105.amr.corp.intel.com (10.22.225.132) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 24 Jul 2019 14:24:12 -0700 Received: from orsmsx103.amr.corp.intel.com ([169.254.5.29]) by ORSMSX158.amr.corp.intel.com ([169.254.10.82]) with mapi id 14.03.0439.000; Wed, 24 Jul 2019 14:24:12 -0700 From: "Stotland, Inga" To: "michal.lowas-rzechonek@silvair.com" CC: "linux-bluetooth@vger.kernel.org" Subject: Re: [PATCH BlueZ v2 2/5] mesh: Validate application by comparing composition data Thread-Topic: [PATCH BlueZ v2 2/5] mesh: Validate application by comparing composition data Thread-Index: AQHVQT5ejI7O/syxIkGR3fbqW91HL6bZo/4AgAA5GoCAAKu6gIAAEZGAgAAkvAA= Date: Wed, 24 Jul 2019 21:24:11 +0000 Message-ID: <0b15073aa143b3036d19c74884219cd16c7278fa.camel@intel.com> References: <20190723100623.6957-1-michal.lowas-rzechonek@silvair.com> <20190723100623.6957-3-michal.lowas-rzechonek@silvair.com> <164c441cf7b43a1be420444676417f77f88a86c4.camel@intel.com> <20190724075511.elmqslt5kb3u3p2m@mlowasrzechonek2133> <20190724191241.ad4vri23hs2zqyce@kynes> In-Reply-To: <20190724191241.ad4vri23hs2zqyce@kynes> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.251.147.57] Content-Type: multipart/signed; micalg=sha-1; protocol="application/x-pkcs7-signature"; boundary="=-MsaCaV+kv4BzdBlO0abz" MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org --=-MsaCaV+kv4BzdBlO0abz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Michal, On Wed, 2019-07-24 at 21:12 +0200, michal.lowas-rzechonek@silvair.com wrote: > Hi Inga, >=20 > On 07/24, Stotland, Inga wrote: > > > > So here, prior to removing the temorary node, the element paths > > > > need to be copied into the "req->attach" version of the node. > > > > Same goes for node->agent and node->provisioner.=09 > > >=20 > > > True, thanks! I'll fix this in v3. > >=20 > > Also, could you please add some comment there, like "Deleting the > > temporary node" just to make the point that tit was temporary? I am > > afraid that for an outside person this will not be clear why the > > node > > is being removed. >=20 > Sure thing. >=20 > > > > "Location" property is described as optional in mesh-api.txt. > > > > It's > > > > populated with "Default Location", if the property is not > > > > present. > (...) > > Let's try to keep it as optional then. >=20 > Will do. >=20 > > This will require some *fuzzy* matching of the composition data, > > something like: > > add a boolean flag to generate_node_composition() that indicates > > whether the composition is generated for the verification or as a > > result of an external request, i.e. for the config server model. > > Based > > on the flag, either include location field, or not. >=20 > I don't think I follow. If the application doesn't provide the > "Location" property, everything behaves as if it provided it with > value > "0", no? >=20 > Location descriptor is *not* optional in Composition Data (Table 4.4 > in > section 4.2.1.1). >=20 >=20 Never mind, I was overthinking this. Even if the property is *optional*, the value (or the fact of its presense) is not supposed to change. Let's keep it optional, and, just as it is currently, and it be populated with "Default Location" if it's not found.=20 --=-MsaCaV+kv4BzdBlO0abz Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIKbDCCBOsw ggPToAMCAQICEDabxALowUBS+21KC0JI8fcwDQYJKoZIhvcNAQEFBQAwbzELMAkGA1UEBhMCU0Ux FDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRUcnVzdCBFeHRlcm5hbCBUVFAgTmV0 d29yazEiMCAGA1UEAxMZQWRkVHJ1c3QgRXh0ZXJuYWwgQ0EgUm9vdDAeFw0xMzEyMTEwMDAwMDBa Fw0yMDA1MzAxMDQ4MzhaMHkxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEUMBIGA1UEBxMLU2Fu dGEgQ2xhcmExGj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