Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1136460pxb; Wed, 16 Feb 2022 11:51:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvuvNEfaYBQYkSzp2VgchIVVb75cc0WJAQjmC3BAvcCz3suJla7QXYTZ7hUlCMlxtc2Dtp X-Received: by 2002:a17:906:3a8f:b0:6b4:474d:1e3b with SMTP id y15-20020a1709063a8f00b006b4474d1e3bmr3448114ejd.533.1645041065588; Wed, 16 Feb 2022 11:51:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645041065; cv=none; d=google.com; s=arc-20160816; b=d2+rLqWujpEvtQUHp4E/pyTgOjI7dYr+7uZXrmjztwatsGHnmXu39oUpM/z0DR5adk qUOmqSItx2dVJrCkvcTKk34Yizq75PEnVWr8+M7YzjnV+WIWEWKoevTB+OrBW1U+XTkZ NRMa8ZclHCFybVgZsjq4jc12v87bmizkyVqaDAhYdqCwn9jbsxZElLzJDAW8f0Zv/ul2 zokAADPwNcP7RApRE+XX3IOffvlgh886LeTScl/720dix0qjyzDUinXjpQPUEpdhriRC CFixPrZHTtb3dGlU7hbv6/HMNzLCb8m5iPxKDuLMy45HwXtk7TLhhEyD4PWjqNqfXQ5c SwIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=28gnj+XMtLZLxONL4SFPBLkXj4fxaMqzeVTUkVSlqac=; b=iLRO7pOHsw+mfQPfu7+LsE3RD/1qZAOOK+bl+TB4KLJqZajB/PncGqDPWTvwmoiPD8 /aY7ya2rkAR+DKxwH78ukNHXm46XhN9Gd6O/zQqKksp9MNf61hRgWMUL5XFV/11PQGEJ +0Ry3H1GlFzblc4PnXFokRCW53KsuA7AOLkdcblWbTmEZefUQE0eKXWsCKp1D510luKL x7YB6YrGpGvMjP/MRaCZg6esZlX04NCQdppxNdZ7wKdgRR02BvmsecESjeeMUwBGgYIC sQcXrDaTUpPSc4JLr6lNOwh3c1oaPaelzm7oOyzI/bdgEc9rmvJBdqEbqmh3RSHmcUew p9Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eEmphGOD; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dp13si493132ejc.716.2022.02.16.11.50.13; Wed, 16 Feb 2022 11:51:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eEmphGOD; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238043AbiBPTNA (ORCPT + 99 others); Wed, 16 Feb 2022 14:13:00 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:48998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238040AbiBPTNA (ORCPT ); Wed, 16 Feb 2022 14:13:00 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08024E8685 for ; Wed, 16 Feb 2022 11:12:47 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id b13so5710634edn.0 for ; Wed, 16 Feb 2022 11:12:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=28gnj+XMtLZLxONL4SFPBLkXj4fxaMqzeVTUkVSlqac=; b=eEmphGODii3w1fd44zy9IvonLOUquFrOlfn3JcgEympM3Bi6n8Xsu+Hfp3M4wzOPwc Q8CZgRF0mnH7YAO5yUQNKPk5PH6qjulTF0sMt0IWsPS+ttTa8liVxPFij8elmTZkXX/K eoNkoXH5YBCFQHCU99KBB8alC1g8CWlQdLEVo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=28gnj+XMtLZLxONL4SFPBLkXj4fxaMqzeVTUkVSlqac=; b=LDrTehTyUnpaGPOxbSF/nKjNDQ2ZV5KeBf4UAUpmLtoa5tghLYHMLKwm3T1m5tM40m 3j9EYV7NAbqc+VIR++ixpzxjNUD+8dRS0JumOmYlWevHe85q+HGOd89+lhVJF5XGqeeE PRAkPU7hGNtZLRCuXls+I9exLvnCZUJxkxEiUV9owYcdyl+RqPRPzi1pB4BVJZAWDuYx gJvQvjj8Qp+CImPAckO0ZsMC8aSRCGCYCqYOoIn+2jx0F2q5wQyqqvSgYrmAi/BCjBZ7 zZ87voNFNovBhjXtaobP4RgoysOT05s4bmbxS2Vpo3MlUxnKqPUQXu/ile1X0yNhk1CV M1pw== X-Gm-Message-State: AOAM531qlb+J73tAWpuMmvwEQGOfTlhLqUBpctpf3OgG0cHJXGhbBtkG PF30YtE1gXQRU+naXgkS0rjH7tS4WwQrtw== X-Received: by 2002:a05:6402:2065:b0:407:eb07:740 with SMTP id bd5-20020a056402206500b00407eb070740mr4504328edb.406.1645038765371; Wed, 16 Feb 2022 11:12:45 -0800 (PST) Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com. [209.85.221.41]) by smtp.gmail.com with ESMTPSA id p18sm238311ejm.63.2022.02.16.11.12.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Feb 2022 11:12:45 -0800 (PST) Received: by mail-wr1-f41.google.com with SMTP id v12so5114723wrv.2 for ; Wed, 16 Feb 2022 11:12:44 -0800 (PST) X-Received: by 2002:adf:dfc4:0:b0:1e4:ed7c:34ca with SMTP id q4-20020adfdfc4000000b001e4ed7c34camr3408536wrn.22.1645038764318; Wed, 16 Feb 2022 11:12:44 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Sonny Sasaka Date: Wed, 16 Feb 2022 11:12:33 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Question about Trusted property To: Luiz Augusto von Dentz Cc: BlueZ Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Thanks for the confirmation, Luiz. We will send patches related to this RFC. On Tue, Feb 15, 2022 at 5:57 PM Luiz Augusto von Dentz wrote: > > Hi Sonny, > > On Tue, Feb 15, 2022 at 8:50 AM Sonny Sasaka wrote: > > > > Hi Luiz, > > > > Friendly ping here. Could you respond to my RFC about adding "Bonded" > > property? I am about to write the patch but I would like to hear > > whether this makes sense from your perspective. Thanks. > > Yes please go ahead and introduce it, also remember to add support to > the likes of bluetoothctl as well. > > > On Thu, Feb 10, 2022 at 4:02 PM Sonny Sasaka wrote: > > > > > > Hi Luiz, > > > > > > Thanks for the clarification. So my guess was right that it does not > > > have to do with bondedness. In that case, do you think it makes sense > > > to add a "Bonded" flag property to org.bluez.Device1? There are some > > > use case flows that pair with a peer device but do not actually bond, > > > and just with Paired property the UI can't know whether to show this > > > device as "Bonded" or not. > > > > > > On Thu, Feb 10, 2022 at 1:30 PM Luiz Augusto von Dentz > > > wrote: > > > > > > > > Hi Sonny, > > > > > > > > On Thu, Feb 10, 2022 at 11:23 AM Sonny Sasaka wrote: > > > > > > > > > > Dear maintainers, > > > > > > > > > > Friendly ping on this question. Does adding "Bonded" property to > > > > > org.bluez.Device1 make sense? > > > > > > > > > > On Fri, Feb 4, 2022 at 4:02 PM Sonny Sasaka wrote: > > > > > > > > > > > > Hi Luiz/BlueZ maintainers, > > > > > > > > > > > > What is the purpose of the Trusted property on org.bluez.Device1 > > > > > > interface? Does it mean whether the device is bonded? My experiment > > > > > > with BlueZ shows that sometimes a device with "Trusted" property set > > > > > > is not bonded (does not have pairing key stored) and also vice versa, > > > > > > so I am assuming that the Trusted property means something else. What > > > > > > is an example use case of the Trusted property? > > > > > > > > > > > > Eventually, what I am trying to achieve is for BlueZ clients to find > > > > > > out whether a device is Bonded or not. Using the Paired property is > > > > > > not very accurate because it is set to true during connection although > > > > > > the device is not bonded (pairing key does not persist after > > > > > > disconnection). For this purpose, I am about to propose adding > > > > > > "Bonded" property to org.bluez.Device1. Some use cases include when > > > > > > there is a temporary pairing with a peer device we don't want UI to > > > > > > show that the device is in the Bonded device list. What do you think > > > > > > about exposing the Bonded state via D-Bus? I will do the > > > > > > implementation if this idea makes sense. > > > > > > > > > > > > Thanks! > > > > > > > > Trusted primary use is to bypass agent authorization, so when set the > > > > agent will not have to authorize profile connections, and yes you can > > > > set a device to be Trusted even without having it paired since the > > > > bonding procedure refers to authentication rather than authorization > > > > which is what Trusted controls. > > > > > > > > > > > > -- > > > > Luiz Augusto von Dentz > > > > -- > Luiz Augusto von Dentz