Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3186103pxb; Thu, 10 Feb 2022 14:35:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGX9DayySCi+GJT3qB61x3NmyRnIthUPJvk8TNTYhux7DrI9KAmkrNwmaBl5HChyVUB61H X-Received: by 2002:a17:902:bd93:: with SMTP id q19mr9656700pls.140.1644532537910; Thu, 10 Feb 2022 14:35:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644532537; cv=none; d=google.com; s=arc-20160816; b=yBACjqhVEVorPpugfi0ReQeJD3aP8oJUbt1JOX1/Rqmv3TLaLYQvDyPKPe7UzW/oNB 0Q4ckWuSKXhWFZa5Tu2uUCqQpymUlEPIN1t9xOmk/pLZAml+wZx9lUyCoeMVXImy6K2S kSBQ556jIMkTSaSSqGeladA/FZLOdNjJj0wcK5nyY3++UQQCmvunpgmwqpVT1WK/Aa2M foKXRaEExDI4XJDGcfHCdRSztKNy+ulurkWYxpPsea9yVllODWxOuHsejmV+U5aLaR7a btDCKBgWQ2DlOxvehUD75r97GSNBiAvHVXjlfx1gg5A8ZUdoyqPfy5tlGw0B3O45XoNp Nqyg== 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=fVwxEECkeZqV/eQtZJeAUfb8gUHhW4uYh9hvRYEyOd4=; b=Hc9n2R4Z9uHfg0g8Mrdan044g1be+FNF580t11EzEF05UwWs30sNqRebYPeoXTGXHK aVkVz6b1kqIjJMjglKDX6CXLZeHilVpvErTOH9DmmBfmDI7snuHnCPzH/0zl7SX1E99H RXNQp+T6euGhhRM4kNEwlwbiQxMWfWoFMS60ts2jEnDJ6Luzbxz6vD+dNof+88+0VkHI zE+DenFUXpJwlun1GVduPyL6pwfvE/BlAQRsCqpswfVG3zj/fJ+NjY9lgXCoihUGviot GUR1K+uHVl3JWVxgD0oU4ZOIsBhRGY7MAQ0u3rmdbO4D1ok1Ku/iPqUfORqbX9FrYgfO 5+oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=lih9joxg; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i16si3198343plg.54.2022.02.10.14.35.09; Thu, 10 Feb 2022 14:35:37 -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=@gmail.com header.s=20210112 header.b=lih9joxg; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243233AbiBJVaW (ORCPT + 99 others); Thu, 10 Feb 2022 16:30:22 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:46586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230287AbiBJVaW (ORCPT ); Thu, 10 Feb 2022 16:30:22 -0500 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A4C7AF for ; Thu, 10 Feb 2022 13:30:22 -0800 (PST) Received: by mail-yb1-xb35.google.com with SMTP id g14so19336676ybs.8 for ; Thu, 10 Feb 2022 13:30:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fVwxEECkeZqV/eQtZJeAUfb8gUHhW4uYh9hvRYEyOd4=; b=lih9joxgHpLxKGOpi74urpWswTn9hmWDV5ACes2BusD43fiaL/dE648aUU92RfvKJM 4KuJzVsjA8rb+LVyR8yrp/5g3DWb4zDG8wijW2JlRGsQXjTUFDdkmxNJq8YYO0/0O7JZ FTikBDIR1eH91TWNrh6ZNVUahUyR9vs/oV84sPu8kUiIUj5rnW1DqUN2kVJHGU99arDW UBCVFENhaj4jnoVq4bjBuRQ/7xiG/yTqn6GwOf7Gsds4kwt7C/Sduh29eAJG71SRQsLa BFGCZlOdwvYyFVwjdWUDloi5HXexwf/NGIhWKTaBzk5e3f4JfffYeptmSwSO58HCFF+r 6U0Q== 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=fVwxEECkeZqV/eQtZJeAUfb8gUHhW4uYh9hvRYEyOd4=; b=dtZSo2ZRQqFP8wPYe9zxxrKvPS/KC6/v6UMyZF8V5OtKTpTqmQN9cQvcmKUWArO+Eo bb3dZamMOLPxHBY/ukna8tRMHlbPcYpY1zcqsw1l/zCX44fFfnYCqzPN740BPkA9tSm+ SSa4dU3s/3LNK9WvxdNhZ/SA291vIky30OcX1MUHqFeiUvHIUczOZmL7llCb+HtvGE0G KEkLqllyR8KwtmpgjmeollhZSRhDsidsbW4zmBH42OQhmN4usbHeK/v9CywSV3D8mbA7 gd6zo/V6sJ2VHke87jKaNHyD5v79GURsR9+wGf//pBEkgteMIo7s2UhuuSUUI8jKSmfO Yh8w== X-Gm-Message-State: AOAM532nhpGQpPtGxmD7mkOFZYx7tyHM6kOCE9829u6m/5siOmW8iosD tp5V0me3MpjsWST/zgod3l8vTAT4sen1Jazj/A1ass8rwds= X-Received: by 2002:a25:3857:: with SMTP id f84mr8734803yba.733.1644528621666; Thu, 10 Feb 2022 13:30:21 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Luiz Augusto von Dentz Date: Thu, 10 Feb 2022 13:30:10 -0800 Message-ID: Subject: Re: Question about Trusted property To: Sonny Sasaka Cc: BlueZ Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 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