Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp335738pxb; Tue, 15 Feb 2022 14:40:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBTlVvFDPqt9nzmOq/9qTfD98FTc5lF+BIBuTKfBzvjVMeFPAjDUNZC1G3ktaeQM2H+36z X-Received: by 2002:a05:6402:4309:b0:410:db71:b5ce with SMTP id m9-20020a056402430900b00410db71b5cemr39839edc.432.1644964832252; Tue, 15 Feb 2022 14:40:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644964832; cv=none; d=google.com; s=arc-20160816; b=v8gsCcNY4/0M98LHSJA2iRjTHMg94+GjhY+bIrGuDmLCLdZHRnfTE/UMLb0zeMc9CX l14E+yzEh+yueMZTByWrwQmxpcdLPBd3xQ4rWhkipBVWW6ipcUCbKZmObocyioZDQC2S 2WsNHMF+mW/ktzeVxWd6W2kVIDcGgpJX0XouR2Yicdi5bluLf3Q/cjdPGCKC9o5BofDt PPhYbez54g69B9IuZeWiqS614lkmKTLaNGwAM4g+CFBAcmpcDt4WYp1nalhHGMFHOXQJ 2F9RxK67si/6BNe2IPDat4EVYzKtReodZrXiJm03RzNR3XHmLJbLuihSZlmNH2Ty9P5H RuWA== 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=w0zjgVIDtplPos2VPoxikHAoSHBsMmx80q+K1Ie+nTE=; b=UcAHTHsYOwnVfb6eiyg4uogTStrYXZs+eB4TuaJ3kJnwctUnOvKWHXYbOFLKGXfhVj Iy3f3PN3n60cZWgmj8T+bCIx427vi/1bDowp70x/mBm9Dm2kzKw5IWkoy03LeNlXxFGg nGEFITllCbi5vgNGdrfMhYMg4rT1K3CvqR8D2GVn7qysJ0ph2jmioV5oRchyEKMK/Dxo 2ZH5HfN89LnRb0s/l+odtmj1O2zT8F/VR4Zko8AuUo9NYqHxtnUs5tGar4OoMRz0zStM OzZCb6a4DcnPelDarKqGwau2Gbx7kbx7nZjXZPIaDrb/QnQvfmXj4cvKQuscBuVaxnvt NgLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oZnCFgJp; 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 13si21477773eje.262.2022.02.15.14.39.58; Tue, 15 Feb 2022 14:40:32 -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=oZnCFgJp; 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 S239139AbiBOQuV (ORCPT + 99 others); Tue, 15 Feb 2022 11:50:21 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:53624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234274AbiBOQuU (ORCPT ); Tue, 15 Feb 2022 11:50:20 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2385A106C98 for ; Tue, 15 Feb 2022 08:50:10 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id u18so447678edt.6 for ; Tue, 15 Feb 2022 08:50:10 -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=w0zjgVIDtplPos2VPoxikHAoSHBsMmx80q+K1Ie+nTE=; b=oZnCFgJp+oPjIuynVGNWfdx/LwanTzp9svRdpwK9i8mJMRj3rwTQ24Gmmy9Q2J1MyB UuRXaWBl2riv5PALrJ/7U7Jf7VUChLlZ6Vgl79w1jhg9DmXpgjTHar1uDcahfoGAXSOE L75iR7henSS08xSmJNJEP8k4DNRAsAmjp+W2k= 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=w0zjgVIDtplPos2VPoxikHAoSHBsMmx80q+K1Ie+nTE=; b=LbbMKEUPsgVDKYk2Nqv0f+6Nrmwy0qDn5Io340dpBs/SvSd/QkkHLDx/pai7eQyISp +cUp04Wxrr1EQailJRfa7cb8n/5vBkpLJ15kEKHconULRI7JCNgJcAvvU8LAG0lcCjJ4 8DM9yr7Te+f58betzTmOq1hgIjsqICFlfIABMNCxVdoEndDOlV2ral3MQRg34prH5vp+ n0XX6lK78Cn8mc1B06NwZO/uvNdIjNkfAQzIjjjxV7+JSOIFo4vqEv3977aJin+MQ3so AEmAsgxrnFzOArbxch8mUHnrVvKMvyJzvBIAEXxaLDhUEu31sUaavoR8PlMrhGkeO7PC Pq3w== X-Gm-Message-State: AOAM532R5UMAZkabd3iK3Ei1YVSA8YAU8bXxXmmplQ0K5I2LgNghU60F PF4JAuKO3befD6KzvDnqWK09JF4cgue6vw== X-Received: by 2002:aa7:d553:: with SMTP id u19mr4762256edr.298.1644943808201; Tue, 15 Feb 2022 08:50:08 -0800 (PST) Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com. [209.85.221.53]) by smtp.gmail.com with ESMTPSA id r1sm10805479ejh.52.2022.02.15.08.50.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Feb 2022 08:50:07 -0800 (PST) Received: by mail-wr1-f53.google.com with SMTP id i14so33100459wrc.10 for ; Tue, 15 Feb 2022 08:50:07 -0800 (PST) X-Received: by 2002:a05:6000:1683:: with SMTP id y3mr4024542wrd.222.1644943807164; Tue, 15 Feb 2022 08:50:07 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Sonny Sasaka Date: Tue, 15 Feb 2022 08:49:55 -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 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. 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