Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1737146ybi; Wed, 17 Jul 2019 21:03:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqz49FOWUwHGn5E0Ga+x2oCfMyJPpfxJdA2PnFtA34aVBXGbEWrhnQ4jBg+CKrwdpR/L+l65 X-Received: by 2002:a65:6547:: with SMTP id a7mr24976857pgw.65.1563422616446; Wed, 17 Jul 2019 21:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563422616; cv=none; d=google.com; s=arc-20160816; b=XXIRkkDLVNfevHjRM+CqCIWRLwnmUEmUY0p83kKPZ9ghrQiwjQNfo8AG3CJueCqwrq 1oKfqoDn+UQVARM8j1OcNZ7QiZj0pe0OzzOtqHgKSJ4xun49WuuWTNv2uG8n+oAMU8xD To34IrO1W8VJbb1J5AqfESQk1pct41l+99RJ2DDUQXoUQ16AZzj+9VOhRRKPrSsZgHIQ j533dEXawhs+IsyuzqELBMN859NeuD+SAAUV7DyErJaeKVjnzdTnPKsF6GTdb0jj5n0T OC1HRrGWStgCUoxzS7hMv7wJWcSkQtiT65vOSFGRKy9W0rnzI/NhzgL5qf0uWtLehuif iaTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=l2T0XwpP3EQEnZpmEbs+SvYqlO0FGu26LJ5lJCz91es=; b=CCUzRLXKwITqG9VbNLcOtwsxH3LcxMRLxTG16OzOWXS+0Faux8MgUoqPgfG5jIWkVZ nWNU2GoHPpBnXy5wWrOJqmym7tLMrBUrHmF3Ktc60glpsYOr/Q5IFK+1EQooj68Yymd/ wZCyJ2uzJr/wyla9BDVXHyJiRnUbQlfWgHOiKHypNfp3xA3UGockJ8iJdbKYakGSzyXb EToNR5Jk09d4ouno4Aojz72h1UwW4ycmvYSNube8CqoTUejrtKV7y94SQxXtp4CV0zBl fQxB2SYeCNlmlNLlC5KWXbV9ETR3a9fnXtG8kB/jXrXH/8B30u0ekkyADeeRDJ1W4uOU vcAA== 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 5si25065164plx.200.2019.07.17.21.03.20; Wed, 17 Jul 2019 21:03:36 -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 S1726086AbfGREB3 (ORCPT + 99 others); Thu, 18 Jul 2019 00:01:29 -0400 Received: from mga07.intel.com ([134.134.136.100]:51749 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725902AbfGREB2 (ORCPT ); Thu, 18 Jul 2019 00:01:28 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jul 2019 21:01:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,276,1559545200"; d="scan'208";a="191477413" Received: from ingas-nuc1.sea.intel.com ([10.251.148.241]) by fmsmga004.fm.intel.com with ESMTP; 17 Jul 2019 21:01:27 -0700 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, Inga Stotland Subject: [PATCH BlueZ] mesh: Init keyring storage directory on node Attach() Date: Wed, 17 Jul 2019 21:01:26 -0700 Message-Id: <20190718040126.5152-1-inga.stotland@intel.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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); + } else if (req->type == REQUEST_TYPE_JOIN) { node_join_ready_func_t cb = req->cb; -- 2.21.0