Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp597354pxb; Tue, 15 Feb 2022 23:17:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMoG2Ow4KunzzZ5cSkJCYG+PDIjHYw6mhxVosxfpyZyQMCuhfdyMA30v6mywVBmjmGGg0C X-Received: by 2002:a63:f654:0:b0:346:cec6:b301 with SMTP id u20-20020a63f654000000b00346cec6b301mr1211483pgj.374.1644995821047; Tue, 15 Feb 2022 23:17:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644995821; cv=none; d=google.com; s=arc-20160816; b=BKWkm5Usn+XNWQKI3Liuu6Brua3h4t0dghON+ZCtO3s4NZQZSuoMzfJAatanPgnw6f LLqXRHOAaHwvDwW6+BJ/dcMusKDpSL9hcVHChazIarEy+HrcxBvoaqnZa3yd2HmwdYlb GUd9cWWlS6zqM63JAGQzZY6vkxsxt8AqKD3Zb3CRqOWNrhP1eI2EN8KDtpkGWWAEGBW3 F+9FiKCsWzXieg20rziC9R22Lu6ftvObla1cd+T0xy26/6PxpIviRjdZKwbzi9zA7Kfz VrYzijQyMjZ0XhnoN9dkEBrLiOuhlvy6cSEHPkW4Ydpjvy/lQ1vfQtDdGS5j809kBVmC BGpg== 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=ZT4wF/MHqavWEsO40mxjqMITqCdp59SbwsnEV7hRF7g=; b=Cy+e5u0oYxdow/cknzG3BNA/CCe/9GCPg+1w9GuJfAHKcB5SSviphzgDSeBq3jc/JZ IOgmnv71DhbTWY313xiUhleUs0nod1kepBCHXD31K+mG3woIFVyUdTuMAiym7Y7qvEbs VZKdOV1m2PyWDpOpjd51P8AHtPW6NDrDKDV0NY30OomuK4FanFPtiKCP+tidj3TiJD33 BpTwH5vkx/+cd0I40X+FHbOlxIN3qhecF6ywK+s+VssQIYA2IscUKUzE7Ao9tjnhyATz a99UjaMB5Qh1iiQVqtYroyxBO5P53+0Aceix7uotXSNI58qOHrXlxbpPohm+ipNQedVw ovqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PerSpL7e; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c3si5228866pgm.621.2022.02.15.23.17.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 23:17:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=PerSpL7e; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 84DBE26A2F6; Tue, 15 Feb 2022 22:48:42 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243224AbiBPB5Z (ORCPT + 99 others); Tue, 15 Feb 2022 20:57:25 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:34750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235112AbiBPB5V (ORCPT ); Tue, 15 Feb 2022 20:57:21 -0500 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C8AA7F6D6 for ; Tue, 15 Feb 2022 17:57:06 -0800 (PST) Received: by mail-yb1-xb34.google.com with SMTP id l125so1647828ybl.4 for ; Tue, 15 Feb 2022 17:57:06 -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=ZT4wF/MHqavWEsO40mxjqMITqCdp59SbwsnEV7hRF7g=; b=PerSpL7e4qINu5kCY49pWoLsJeCrR96nNucAiC9ZHmVcOoYg9JGlfDu46mLuFePTnh 36sTiAa4sZZWv3Ev7OTYXNFf8Kr+wx5+e+BmV3lSNTPyKTYeNau2KiZbpakxqYibb+cW SaivgQLIwxIiDXxlQ775Rjg7W5sijsF5qQLKAC4hOXc9TaDZONzC4OpGZEmG/5pyOZqf B5mryRyhCoU/S+aBVq9FIYoB27u37RH3fUfscvuoiylO53kUv9hJ1Zx9rPB5ys95VSLJ x2viZ35LtseDIu1epgwhfbWcXLyZTrUXY8KEuK9Z1wpcPHbrd3oSVe4fKyfEtE4mWMEM E7Rg== 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=ZT4wF/MHqavWEsO40mxjqMITqCdp59SbwsnEV7hRF7g=; b=Uq0AaTAcVf1PlypmrByh+Kr18VK4mdDzyR6RFaesamZdsNpmmaaYSB/CNX2nwaCNOc q9R2T/XRhLAIjlvjc3YEVPYCzh2Cl1YGw8MBBNhOLiNUIU5JKsg2DNnv8I2VEIr7bkzR ljuyx+moLJnsVO5VIIxiM2lmR74o51WMG3gLhSuy0J1Od6gvUNvDtZQ5e3AgrxyCVYw8 XuXFuWaglsi7ZLUnAr9xkCmA389731S+z8SWR0GBM92SSpTWQxbIGozfNXxLeOCAoPhd ivuS+y1eWvS3s7aZP+k3fTiG528qGjAZtbxszVEHD/2NgTL/kzgzEyRIJ+LEwOkmj8IF i67w== X-Gm-Message-State: AOAM531ymP7bJTDwaCMON8F9ezBn+EN+45Bl/8yr6HlfvSg1OUEurhI/ I4qnpMEHlOUcuRnsSHpESImSpk2NQ1OUF97TnSo= X-Received: by 2002:a81:ed06:0:b0:2d1:5f32:7e94 with SMTP id k6-20020a81ed06000000b002d15f327e94mr508170ywm.317.1644976625420; Tue, 15 Feb 2022 17:57:05 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Luiz Augusto von Dentz Date: Tue, 15 Feb 2022 17:56:54 -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=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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