Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2929963rwe; Mon, 29 Aug 2022 02:54:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR6f8nSQWbCIznkgj4jGhE84+xGvtBf2V65W0n4QKc6TLUqxzgf0oO7q+B4NEXXELtqQAkRX X-Received: by 2002:a63:8142:0:b0:42b:a0c4:1e9 with SMTP id t63-20020a638142000000b0042ba0c401e9mr8065443pgd.314.1661766879761; Mon, 29 Aug 2022 02:54:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661766879; cv=none; d=google.com; s=arc-20160816; b=asTxpvhHcaUBV9Aa7Y3WsKcGQOj4GzHNhk7w4ieFOFQMSEa7WeeK3FrsriWznD93LH b8r9MIXr9c7j15F3wPVzQQqlRHa+Ed3PK+WqwZjtNIc/Q+stZgwaMt5ZnDEMfdQwNQwC c6bB6fm/ZOrgE7+n4AdrLYlJvA7BrPFtQ9WlbXhk57wIRPP/HDupbl63WFGVaAnxGsZK z9kmWLQqcW5ULWIGP6x9ouA6OiFHn24TAP4aiRq7CnEk4U4Vbrx7XPfmiVPlmsFTWpr5 Amqems3c2/28phBCDSmVCB98PTFn6mvDiQeeTrZ0bR946Vxm57ySQnTPyYFNQdu2RoYB jqPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id; bh=3IQB05pgLMhQh8TcCwXDBAUsyo18cmMmiTRwhhmN8DI=; b=xRfWKzPJa82OQKj2VXwJf6F0M73GbQ4345A2md7RXqtSGLTs1ZL/Gwb7KAEnrHC04w qlLy3kkitm8UDvYUoDCJUqJOMmCILqp4q0I/iePzRyV0NaZ0kJKMsPjDaVJjMOjosqqF 2iFeumDsrb4gvbAyYzOaUPrbtKcFdFkyqzHxssREb67SjQHnD2cEBKoselMfxUTRfrx7 hbIjyxDnLcHoeV5desotR7fDSada2hEiSoTcQNqsrPAVVVlOzpcB/67PSkvb20qOkV2r xVfcpn4uTbFnDxWdM1hqG5TYiuakEel5N5KtHvawNfUxJ2f6tdJB1DQlvo8nNkTemarA ncOw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r11-20020a63ec4b000000b0041d4864e99asi8501602pgj.111.2022.08.29.02.54.28; Mon, 29 Aug 2022 02:54:39 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229620AbiH2JtT convert rfc822-to-8bit (ORCPT + 99 others); Mon, 29 Aug 2022 05:49:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbiH2JtS (ORCPT ); Mon, 29 Aug 2022 05:49:18 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68D562D1C0 for ; Mon, 29 Aug 2022 02:49:17 -0700 (PDT) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id A8514E0002; Mon, 29 Aug 2022 09:49:15 +0000 (UTC) Message-ID: <3dd715a9d8b30ccb6dce4d4e1e034cf8d0458d44.camel@hadess.net> Subject: Re: What could cause pairing to fail when bluetoothctl is not running? From: Bastien Nocera To: John Klug , Linux-Bluetooth MailingList Date: Mon, 29 Aug 2022 11:49:15 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-1.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, 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 On Fri, 2022-08-26 at 22:43 +0000, John Klug wrote: > Maybe I need to create a pairing AgentManager, even though I don't > use one? You need a pairing agent otherwise all pairing attempts will be rejected. This is a security feature. The bluez-tools at: https://github.com/khvzak/bluez-tools can help if you want to automate pairing without writing new code (or to experiment).