Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9926154ybi; Wed, 24 Jul 2019 12:27:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSZQE/ixho06rsswpkF8xmgRg0Xtmr06dzyUhOlsa/Nk9aTQoKWMkeu4Cbwek1yK3vNcDz X-Received: by 2002:a05:6a00:c7:: with SMTP id e7mr12833727pfj.52.1563996433690; Wed, 24 Jul 2019 12:27:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563996433; cv=none; d=google.com; s=arc-20160816; b=GV/Ee2c1SHukZ240Y3ucG2ZSPgsbGXZ98H13ib6kfFpu5cbSashobdAKORrTuesfO2 KA5iV4qjqFTLjnqH8QDQg5jNGLHRiOVJT4eix5Va+V87o8JWNn/pghhsmYRZyIQPovDy gGK7ObrXKZ6l/8ngtyDMVUFSxnbiav6hfjShHxJhg1IfrdqG1Wf0hkxFQlkF/qTWCtf+ WPtbMPNqpNk3RhXfohX8f75HuRy5h9Bys5PKfZvVvUAxIqiIeEV1tZUSXdMqi7dkjHO8 Z2XcWzlLmVGqb6e58gMHyHPGskMtXIBpsnDnZQKA+qLhhXUtdnvBgiI+Qc6nUCxcO1Ra f0jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=5YwAIA0kuKzNKxzpxQq64RzoBMp/ErDL78MenJ/PqHw=; b=Hid68qMgWS7dL+WY5AdGEIwVFlsfq+cB3PJO5k6rFBa1tGPAd8Jyu8Z/eA4hyhuWG8 RKQDYiipcv66HWkHwEjGGl1Si2wxhah2ZpORzTOr0OARJRE7GFSXiLNhPWhQSOv4sR62 6yvfyvDIJgJ+zKKfzD+uP9fnpMj0gAGj0nLSCJiyfXYTsLntS4DW2XSu+jriBksq++pW 1ogvIEf7qO1wM83jRXnU47bK/X26fQ+Rf8bnWtOZitksocC0NYedkO2NeUTHiHHp8LUA 4FIp3nOAHcA7bpc6Vr5YvgSsdYtOF/9fTCg0BOfIa+35OiVzXiEbTpZitHD7HfuDau3l zAFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=zjNJzw6K; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k21si15246753pls.202.2019.07.24.12.26.58; Wed, 24 Jul 2019 12:27:13 -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; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=zjNJzw6K; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727366AbfGXTMr (ORCPT + 99 others); Wed, 24 Jul 2019 15:12:47 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:37114 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbfGXTMq (ORCPT ); Wed, 24 Jul 2019 15:12:46 -0400 Received: by mail-lf1-f67.google.com with SMTP id c9so32670767lfh.4 for ; Wed, 24 Jul 2019 12:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=5YwAIA0kuKzNKxzpxQq64RzoBMp/ErDL78MenJ/PqHw=; b=zjNJzw6K4pNYGlMlKjfinpwXeAn4Ei23SVx4myStGMH14ivsrbn68sWvmw8vGazLh9 zeIjc8topHlGnpwA+aDjcA9h5JznuqF6oxlGePtYAnvUSMqWMotV0oBZ4YaSzVxc6wSO RUWThM9NMipcp7yV9yEyEUcVvO5/QdamHgvsKr19FViio4zmTPnrlJkLCylpyqIUrBwR P3v+qpCv1y1wOiSXL+yLLzc2GT9RrLiNcVuCCNCAI3ZxcywRIfnFRyVsCd12rPH2ZzPi cgK2uHeiCmmx07rt3ztNAi3xZf7VaZ/dTa/vdkCKABkP+clM6ayqRrC1anpYBVTHq6dE FA2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=5YwAIA0kuKzNKxzpxQq64RzoBMp/ErDL78MenJ/PqHw=; b=mSAs2rQZ64jNIax2r30dElaucAhhfo2HRdRviURoNcmnN3vx0TipRymsXQAWXs/tpr Sgugk5t/b3xDjzV9haYWs+4ZTLxSmWAoMoLvSxrJLky88akhVyc98Xmk5cOi9Qs9zpRm W8XGf23JZmFInNd5JzxqtHUJq4AwxMUJ8OGyaw6viYx45JSBlDmwD+wc7lqN0HEsDJwf bTGko7O+LPaSqMLXHCBmeWCf08R9L0QK7Ta5Z05DwqJmu+tF9CrGWC0rXWKWcptj2QgN 6prp9sLy2CCi1pE+2EYUMnu7gCbz1wQLwgRjWo5+vbT0Tsyfn+eduSXch8hN/ShbT0Xr veYQ== X-Gm-Message-State: APjAAAW4Eo6YSCH6UVMkiOkk2M0FfSSdfvwKpWUl/ehQGI/x9hFOT53W dsrgJtk1YCdNuhhMTnE5BQkyDA== X-Received: by 2002:a19:7616:: with SMTP id c22mr39988182lff.115.1563995564847; Wed, 24 Jul 2019 12:12:44 -0700 (PDT) Received: from kynes (apn-95-40-32-72.dynamic.gprs.plus.pl. [95.40.32.72]) by smtp.gmail.com with ESMTPSA id m17sm8735037lji.16.2019.07.24.12.12.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Jul 2019 12:12:43 -0700 (PDT) Date: Wed, 24 Jul 2019 21:12:41 +0200 From: "michal.lowas-rzechonek@silvair.com" To: "Stotland, Inga" Cc: "linux-bluetooth@vger.kernel.org" Subject: Re: [PATCH BlueZ v2 2/5] mesh: Validate application by comparing composition data Message-ID: <20190724191241.ad4vri23hs2zqyce@kynes> Mail-Followup-To: "Stotland, Inga" , "linux-bluetooth@vger.kernel.org" References: <20190723100623.6957-1-michal.lowas-rzechonek@silvair.com> <20190723100623.6957-3-michal.lowas-rzechonek@silvair.com> <164c441cf7b43a1be420444676417f77f88a86c4.camel@intel.com> <20190724075511.elmqslt5kb3u3p2m@mlowasrzechonek2133> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Inga, 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. > > > > True, thanks! I'll fix this in v3. > > 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. Sure thing. > > > "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. Will do. > 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. 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? Location descriptor is *not* optional in Composition Data (Table 4.4 in section 4.2.1.1). -- Michał Lowas-Rzechonek Silvair http://silvair.com Jasnogórska 44, 31-358 Krakow, POLAND