Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp34636rdb; Mon, 22 Jan 2024 11:02:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQ8eYzr+TN661NJfGBWTudg9OQOxslEnljkg5Ey0MsAa14vsaDljtnnsc/JWcPgpE4GZ8o X-Received: by 2002:ac8:478c:0:b0:42a:41a3:c4de with SMTP id k12-20020ac8478c000000b0042a41a3c4demr1356376qtq.130.1705950131279; Mon, 22 Jan 2024 11:02:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705950131; cv=pass; d=google.com; s=arc-20160816; b=SsODNgCq/6LpZd8c03rGaBOOHs43369HcYAJCJJMhLUUBn4QEYtDpB9CuajcM68JTT ln0AxtPFqBuFS8Y0jSx0BoRXDG3pLqTBuX5BCzLPNRUSa/euTg2qpHQoOOAVSLRzDCFj SyFwIHb9kIk7Twj/yi5+hjh+Hto/2smrWzIauig4nOO33PP75dDw/RR3gRdG1W+X6xc0 /3EWMLOgYjeXQ2rFVEF5jPcLPR1n6J0PSQVkir6+w4sw92RHRjq6D+nV0ufkSTOmnr1l J/ppqqzWCagk3TiJddQObkAx2HMl4gVstIpejx6uA+WkLuRh1+zOGvxWM7F48DnMn+tH NWmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=TpIcFwHk8kM1CDGi1Wu6S1++eHqi3ashCsLMdIz8lzk=; fh=WHLPi97FAERsbBPZjOiYfbl/XGElJ5w7sUTgAdfCdg8=; b=o4MNjG8YIs4wtmQob4r4uEvm+aWACM8mdDdCxstsXeZgpF3uZDOJyhdWK9K+p2Ow0u b6ap2s0R4oqQBOb763qssyJafogL58JWEGWYKBg9GCN46U8Y8It0bDurNd4khUq9ucVa qXvA4DViCOlHPyp86iJC4X1rBedCq24rxjPceZ7w49VD+90xIQYqhqzpPJotIOH/WUt0 zPVPEIvOTJ7PegA84L82z1xUuDtgHu71Mtyrsx2ZbmRUtkzp215NCF1yNqN+/22xhkd7 HvseB/toKJ7xEwDkmUxH3RJcKXgDWTCaRABDHjRrzomlFCfw43f5SNuARRl49tgTiHVE DWVw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GpI23AD4; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-1243-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1243-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t38-20020a05622a182600b0042a35e9b068si4842885qtc.349.2024.01.22.11.02.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jan 2024 11:02:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1243-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=GpI23AD4; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-1243-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1243-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 845631C2A9F4 for ; Mon, 22 Jan 2024 19:01:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A2695380A; Mon, 22 Jan 2024 18:35:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GpI23AD4" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5DA6537FE for ; Mon, 22 Jan 2024 18:35:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705948511; cv=none; b=DPz4m2H9WjRGd5ygjIQ/9Ig0gzmCQ2RIcuWZ/9h0iaB1gwYRHIoL+2X2xu3d/qENsKcp4PSZEpPpslcFDrkDy4yLIkplvapAf7ibWDPhCOPzfhqotx42Dbfs8sAa1NgnBJDmjsnLUKZwbKwAJ+0pF7USU693LGVxfi0pChhqcJY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705948511; c=relaxed/simple; bh=WjuUBWOR6rKrzhbQihEaNJxU6R+yAnLtJqihCXX11Dw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=uRXIvuIFu0RHIMcFrVLdH9ilcA40JsDN+Za/JSslKZKedsMCl4d25GAboalSUHPh2tomdS/NHA7NorWNdzW1fkiB+u3ReYBqD8Xj0vwVsOqUxS4TPnOSaLXOeRdEDoy/m4zRBqPmfoYu7I17vD5/vRYEFCnwniAs3Mr4vClSIZA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GpI23AD4; arc=none smtp.client-ip=209.85.208.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2cd0f4797aaso33662161fa.0 for ; Mon, 22 Jan 2024 10:35:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705948508; x=1706553308; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=TpIcFwHk8kM1CDGi1Wu6S1++eHqi3ashCsLMdIz8lzk=; b=GpI23AD4d2jWXonpod8aVByO/7cgfzvIEX9Oz+2TU1GjJhwpDTE8bBZPB9E4ziLQRy tNytjkh+YEAvTRJpUPw60N3GYdEpDJb0cQQu9S+d937HgJtqzSD+GXFutihwfgLPWaJ5 DXzQHjscOUutYC/bqFPzZJAN1WRdsVX/TX8cYtlTv0aOEYsWvG4+KmQRG6CQRTIH/U8u ORN0xScTiN0ay9UHLTC886AE0XAQ7APZkPMunhlC1nRkasBEzm+UkIiJgKCM4aCH+9P2 9YD8rDdP0Jm82NC80PzBME5mW6mZRoWcPvnrtBNDK5NxtPPn+80UxHrFYC0H7IXFY6kW i/Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705948508; x=1706553308; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TpIcFwHk8kM1CDGi1Wu6S1++eHqi3ashCsLMdIz8lzk=; b=xInBF0oXwXxj/V5Zz/d6t8CnaoVFu+eNOw7BMD87lZ1DCDwM2VlF3wQ6rVyYH5V613 EwHp8kensuMxbgNB6ryuUhOcEoA9GYb4ZM3iNi5S7lxlrwlHZaGCSQIQHlkG3wu/o5KX nAH8D2I4vbciJ8fszdFDvGo+DynDOgRyZPDNSkEtLtZuG3dYMDWJWOg3KQA/ig+5RFXh TriSoe5qgu2v3530RhhrM9U3/KAkHua/PTHfqALPbhZJobdkzJEciOn8SP/OOyZnwk0F QARads16NFsXefT5DM9R5vXEdN1GGzLePomkEQw7gwsj6Nh5cr4FE0TxMfRTPvqfgJg3 Jr4Q== X-Gm-Message-State: AOJu0YysF05Nr+FmXuZZuBIFdrif+NMtoFWbw6BInt6KhLmO8hVL2cO9 5wO5SXrIC8nDPuCJrSaTnZNYPTCwqSOSFOXCRMUtwdD/mOhgMhw+7Tqss3JHjL0V6T0mPoCgCur 67A+bVshH/eYSz5fMtFvsmQEVYWk= X-Received: by 2002:a2e:a786:0:b0:2cc:a636:d5a0 with SMTP id c6-20020a2ea786000000b002cca636d5a0mr2112260ljf.100.1705948507708; Mon, 22 Jan 2024 10:35:07 -0800 (PST) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240116-rm-ext-plugins-v1-0-62990fb07369@gmail.com> In-Reply-To: <20240116-rm-ext-plugins-v1-0-62990fb07369@gmail.com> From: Luiz Augusto von Dentz Date: Mon, 22 Jan 2024 13:34:54 -0500 Message-ID: Subject: Re: [PATCH BlueZ 0/8] Remove support for external plugins To: emil.l.velikov@gmail.com Cc: linux-bluetooth@vger.kernel.org, Emil Velikov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Emil, On Tue, Jan 16, 2024 at 9:19=E2=80=AFAM Emil Velikov via B4 Relay wrote: > > Greetings one and all, > > In this series, we prune support for external plugins and cleanup the > associated code. The inspiration here is multiple-fold: > - the plugins are under linked - generally a bad idea > - the plugins use undefined, unscoped, unversioned internal API > - the main daemons expose their internal API increasing their size Im not so sure I want to remove the external plugins support completely, but I do understand that normally distros don't really want to have it enabled in production due to the reasons mentioned above, but I think we could find a middle ground here by disabling it by default but still let systems to re-enable it if they have some custom plugin that they may still want to use as external plugin. > So this series: > - bluetoothd: removes the "dummy" external plugin > - bluetoothd: converts the sixaxis plugin to builtin > - bluetoothd, obexd: removes support for external plugins > - bluetoothd, obexd: cleans the exported symbols by the daemons > - android: (bonus) export only the required HMI plugin entrypoint > > Please note: > - expect minor conflicts wrt my earlier patches - happy to respin > - there _might_ be third-party external plugins, that my distro search > have missed > > This concludes the paper cut patches. Expect some more around config > file handling in the upcoming days :-) > > Thanks > Emil > > --- > Emil Velikov (8): > obexd: remove support for external plugins > build: don't export internal obexd API > plugins: remove external-dummy > plugins: convert external sixaxis plugin to builtin > bluetoothd: remove support for external plugins > bluetoothd: remove debug support for external plugins > bluetoothd: don't export internal API > android: export only (android) entrypoint from the modules > > Makefile.am | 21 +------------- > Makefile.obexd | 8 ++---- > Makefile.plugins | 8 ++---- > android/Makefile.am | 3 ++ > android/hal-audio.c | 1 + > android/hal-bluetooth.c | 1 + > android/hal-sco.c | 1 + > obexd/src/obexd.h | 2 +- > obexd/src/plugin.c | 73 ++++--------------------------------------= ----- > obexd/src/plugin.h | 9 ------ > plugins/external-dummy.c | 28 ------------------ > src/bluetooth.ver | 20 ------------- > src/btd.h | 2 +- > src/log.c | 10 ++----- > src/log.h | 3 +- > src/plugin.c | 74 ++++--------------------------------------= ------ > src/plugin.h | 16 ----------- > 17 files changed, 30 insertions(+), 250 deletions(-) > --- > base-commit: 770ad5614e7e8074133e6f563495ce4822f63fe4 > change-id: 20240116-rm-ext-plugins-ba0b852a492b > > Best regards, > -- > Emil Velikov > > --=20 Luiz Augusto von Dentz