Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1187658yba; Thu, 9 May 2019 12:12:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqymzZM2/oN57op56VBK0cVWzWqd0q5OZmKYiNl5vsHFptZIr4uCOQvV1Una5HW60ymeFWeI X-Received: by 2002:a17:902:4a:: with SMTP id 68mr7564317pla.235.1557429134304; Thu, 09 May 2019 12:12:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557429134; cv=none; d=google.com; s=arc-20160816; b=Kjj4bmcIo+om6kMF+NPH8aHBY7Wd9I6Rn77EKbfxnqhYJepBJMolekmQQxC6U5LpG/ 0Qs6eMzU6UMq2pdmOBjF1W4nULlQeOzStK24ZuIm+5IWYITSl2HdaFi1E0nxsKHbHRTI yM8X9jPEm0mA+jSbwlgxjzncABx+QutdZaHQmwgAXAz1Fd558iTlNKXzRbUubO3e0/++ BEyyQKO+ZXSf52vMZ4Fs6THB2g7rAiP42gig+puLo3/KSZqeyeEi6vusdQLVy6x46+Mj QFS8GsCkkpc1t7wVr72J5X3Kg7fPbveG42Ff+5m4SlTC0l499oyOZgMWk0SkIp5T3JtU dgIw== 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=U0P9XFjYm3AUa4GTdhBQBlitfwmftJFA3SrNmoWTmro=; b=uzrKXUZ2lE+gxrs4JMK2Yjqaf484f4KPE6c7PUVpEF21VlK9yO6/l9+VrwXFhX4+GF cvJdRXnnZipSotIxmyrXJXIDNJGclbQkaUDo3XfA2OJL0qjIdCFdsiV2ozr/un4pX6eC 4PbM0JzamPHwZUEdIHKhjQgvwiog4tTO2FvbO0GULcqLTBK7kvvn3RkBsrQGnXrKuQ8a PWwdF7ZyTBKyJ+vIaVN9iBy+PfA8Erm8x0Sy+4HhDKqN4yk1mj7C5SiYtzxKJ6mCii8X gcAM3gsPdVhOy8UmJm/dt9MWsHwjCcf5VuQLk+VLthdNjz51qDDZFrPoq6x0dk9dtGPe 1bZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=oBDwJ0sD; 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 124si4226014pgi.38.2019.05.09.12.11.43; Thu, 09 May 2019 12:12:14 -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=oBDwJ0sD; 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 S1726683AbfEITLk (ORCPT + 99 others); Thu, 9 May 2019 15:11:40 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:37037 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726620AbfEITLk (ORCPT ); Thu, 9 May 2019 15:11:40 -0400 Received: by mail-lf1-f65.google.com with SMTP id h126so2356684lfh.4 for ; Thu, 09 May 2019 12:11:39 -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=U0P9XFjYm3AUa4GTdhBQBlitfwmftJFA3SrNmoWTmro=; b=oBDwJ0sDKMpuwIyIuuKzGk8OlVd6Z79UwSIM+Ajvy82IXByT1nItaxwiESEVE0xuTh 0UQUAor9THQgmZnnjFWchNF+pUOiyahISijiAYA7MFlLyi3IqKjYAp+0Iov1VgujOMVw s2I1hMhvCARUFM4/vWY6INScwat3geH3BlZkRJrXlK/XzL6cHS+SUsR7fsM36JgwJybS PMnb164W8em3lQBOflFvh2K7JQIF/rT0o5Le+d3wY7fcsnZaiPUyffLxCPTtYz1As3Ws 6Nn6/Ff0rrDCuOGDOdl1yqRbaGW9ID/ydNFFp5fPefsLi4+JNGLkN3TYP8seU8TQMwid pvCA== 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=U0P9XFjYm3AUa4GTdhBQBlitfwmftJFA3SrNmoWTmro=; b=ZPTsm9Bsstwdk2WNMleled5AeZRo3UZV49haiCma8iwep5ISrnvOnlwD+BLnHLaDsc ee719RElw36Fw/HkdDaBF7w4GBosi6VCzU60pNP0RpQKd7zgOrxW7/PvSj5/8F7jqFmj rvtY0IQdNFFTDF0+MuPW7hOa9a9tgAWs7OptK5lDQhS4dr0q/1Wp/rpnaIHP9yUACs4X szpAU5X52qvzG+AgTPY249Bung2J/Nbchpe/AiAkrXqrOww8FmspuknPltdndNS0R2V0 GRWpbtjNiN5yAYFzE64UIcMpeb9SZgPNs8eR9mt5OHDaEQN45iaSzLrOURHn5W3GzwE5 ElCw== X-Gm-Message-State: APjAAAVfWRI/AEsHpY6AB+h36HyZ87H1XjMLGqDX6rjy9vMtZxMVz+Gk XGjFyKPv32O0c7lylpk+j6vnHw== X-Received: by 2002:ac2:523a:: with SMTP id i26mr3397658lfl.118.1557429098521; Thu, 09 May 2019 12:11:38 -0700 (PDT) Received: from kynes (apn-31-2-19-253.dynamic.gprs.plus.pl. [31.2.19.253]) by smtp.gmail.com with ESMTPSA id e19sm679693lfd.36.2019.05.09.12.11.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 May 2019 12:11:37 -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, 9 May 2019 21:11:35 +0200 To: Brian Gix Cc: linux-bluetooth@vger.kernel.org, inga.stotland@intel.com Subject: Re: [PATCH BlueZ v5 2/2] mesh: Add key storage Message-ID: <20190509191135.y6rbo5ziv6hrxxah@kynes> Mail-Followup-To: Brian Gix , linux-bluetooth@vger.kernel.org, inga.stotland@intel.com References: <20190509175739.16891-1-brian.gix@intel.com> <20190509175739.16891-3-brian.gix@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190509175739.16891-3-brian.gix@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 Hi again, On 05/09, Brian Gix wrote: > + fd = open(key_file, O_WRONLY | O_CREAT | O_TRUNC); > + if (fd > 0) { Hm. I might be mistaken, since I'm not that much familiar with systemd internals, but 'back in the day' daemons were expected to close their stdin, leaving descriptor #0 free for reuse. regards -- Michał Lowas-Rzechonek Silvair http://silvair.com Jasnogórska 44, 31-358 Krakow, POLAND