Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2011628ybi; Thu, 18 Jul 2019 02:00:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwc+1heIAkbMoXHX+wd1WRlB3FbQ1n0Q+F2AhbvZc9o3ALzLlHp6athwlAiJ4T6U4XcmjfL X-Received: by 2002:a63:1950:: with SMTP id 16mr46391454pgz.312.1563440438559; Thu, 18 Jul 2019 02:00:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563440438; cv=none; d=google.com; s=arc-20160816; b=vVPBeKFPAUPMKLixTXUl7OeMwNDIsBdBWgh5KkdR3yRCrCvCmn52IMMkjxlrt1/h4Z QTmEsssIJukODSWQaj2Z01Q3OYCIqtGtW0myPOrzwSYOpSbvKP2P2zA5t08KDtFQ0gB5 +yjVItjLmDbbOutaMDPqoge+YpuYZS+UQsO56kOZcf+2nnfnxuskCJSRLjlxDa4TfBqS BmgR6wGsefl2ZN2F/G3NReGs8DLHvSZBuRShaCUDtm67YIaFP1Cf6jMBlc1zRTy45HXR 9LU4daA156e5InYFMiZb4su3BLazGBh4DtwADQBzTJWBKwQZUUH2EzmkM2IBvEU9C/Rc FTaw== 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:date:from :dkim-signature; bh=cvQUMNFfESzuGoMGJZ57MR9rk/uOD5rYwl2mMw1RDJU=; b=Ip/TWj30YYMh51QcKfG+IqHX/PmYGZ7bULy2sntJovNMQmyqUgOsd+ddToJ4FTlWTQ 221/GQrQTE+3pf1Nx7kNOpzsphkON235Fpua1bIBE326PITa9O1gInrcgxj71f/nX1D6 0xeLzVBvij5F09BSyH/jT6nndJYmfaKKstiaztNRhxUNnn4WHAUsCXXeltziejrFLI2H nnc0At+EgwGqTfXTCO6/U+DpUxKneVk+hjh+0KduK5nWIh3zJf8UQ5K5Xvvy9PcyMix5 /IfSY0pQIoy9WP/w+H93MduC/hEGoQQL+QXDDs92iueIgMjWpupvfyplLXFA6kpx2W6I bPIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=f2JhplnX; 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 j74si1331332pje.12.2019.07.18.02.00.23; Thu, 18 Jul 2019 02:00:38 -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=f2JhplnX; 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 S1726608AbfGRI71 (ORCPT + 99 others); Thu, 18 Jul 2019 04:59:27 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:37969 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726383AbfGRI71 (ORCPT ); Thu, 18 Jul 2019 04:59:27 -0400 Received: by mail-lj1-f194.google.com with SMTP id r9so26509624ljg.5 for ; Thu, 18 Jul 2019 01:59:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=from:date:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=cvQUMNFfESzuGoMGJZ57MR9rk/uOD5rYwl2mMw1RDJU=; b=f2JhplnXkAF5eWC5yQtTZ4cT+yi2Ra5gljW7fAWqcYOW0HLfXK0P6AFOJnABPhFZ18 wHfZufEv1l1JVora/PATaZFBidblq6Dg6vjGMckb45xCpBlVJVgacIfYYSmfwGEBFKPg Qo0/hZ/VMABR8n9+FLP/tL8JjS0LXioDGSDc6pozkLA3qfQkcaHsMt2XTF1CexahV3ic RStjrQvfvo6qvlCe3a4q8U82QDVy18RKQF/vbkPI/gHCtat18I7jo2au0qGNJx+AEZam HjBA+nNB/Uzu4HK38xuBOBwtX9iHwVbXXMujWy7QYkLA39nYmYxpIuPMXZq1xRSveLpp 7Kkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=cvQUMNFfESzuGoMGJZ57MR9rk/uOD5rYwl2mMw1RDJU=; b=LRFcnUhaSc6WTXfBEj+UFO+apVqMQPaMcLA59AJF/LWICqUKdXkPB9iAOwHb2CZh34 63F60QiyDV4jTHyq2XI2LBTPmwLCEBI2EG3W/7rXkYBzL/dXyP0Vd7V7nUkjiGN/YWuX RPWD/ILqUG2r8iK1697F+88LZnse/PlUSIUADLVS5Lt98Ly9GStAzq+eI73gN6+qdeOJ 2EYp57bljmObNYE+tYml8ecQvSYSYBwj06Ty1g3EUvsUECHaMqRAdRAbLFiD6HdiZmyJ k+G8l3RT34HT0vqytajyIVuhaxRh8SZfp3ph6aLIoXV9aEHxNUJoogAwY8rTZAtz//An Y+3g== X-Gm-Message-State: APjAAAVA63/tvnsIuPlbv5R8iMAVDtZtCZTbf0xkzagJUb5zzfKy4O42 i4OnJ+p4VUxA1Zb2KdiH6nZCUJH5jLI= X-Received: by 2002:a2e:4b12:: with SMTP id y18mr22756309lja.238.1563440365438; Thu, 18 Jul 2019 01:59:25 -0700 (PDT) Received: from mlowasrzechonek2133 ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id z22sm5009595ljz.20.2019.07.18.01.59.24 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 18 Jul 2019 01:59:24 -0700 (PDT) From: "=?utf-8?Q?Micha=C5=82?= Lowas-Rzechonek" X-Google-Original-From: =?utf-8?Q?Micha=C5=82?= Lowas-Rzechonek Date: Thu, 18 Jul 2019 10:59:23 +0200 To: Inga Stotland Cc: linux-bluetooth@vger.kernel.org, brian.gix@intel.com Subject: Re: [PATCH BlueZ] mesh: Init keyring storage directory on node Attach() Message-ID: <20190718085923.4ljvk3t3avqdh24d@mlowasrzechonek2133> Mail-Followup-To: Inga Stotland , linux-bluetooth@vger.kernel.org, brian.gix@intel.com References: <20190718040126.5152-1-inga.stotland@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190718040126.5152-1-inga.stotland@intel.com> User-Agent: NeoMutt/20180716 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On 07/17, Inga Stotland wrote: >This adds initialization of keyring storage directory when >a mesh node is attached successfully. >--- > mesh/node.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/mesh/node.c b/mesh/node.c >index 652551756..6b784bf8d 100644 >--- a/mesh/node.c >+++ b/mesh/node.c >@@ -1656,6 +1656,14 @@ static void get_managed_objects_cb(struct l_dbus_message *msg, void *user_data) > } else > goto fail; > >+ /* >+ * TODO: For now always initialize directory for storing >+ * keyring info. Need to figure out what checks need >+ * to be performed to do this conditionally, i.e., presence of >+ * Provisioner interface, etc. >+ */ >+ init_storage_dir(node); I think the keyring should be initialized as soon ad the node is created. The keyring should always exist, and should contain at least the local device key - otherwise DevKeySend can't be used to talk to local Config Server. -- Michał Lowas-Rzechonek Silvair http://silvair.com Jasnogórska 44, 31-358 Krakow, POLAND