Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6057423pxv; Thu, 29 Jul 2021 05:32:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGDR1ZlMhmAehJ6zt5FZnSrVeFTVFJcBc50kP1TsXxEnvzGiaISgPKr7YTEy5RY8lemxZe X-Received: by 2002:a17:907:72ce:: with SMTP id du14mr341867ejc.523.1627561955501; Thu, 29 Jul 2021 05:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627561955; cv=none; d=google.com; s=arc-20160816; b=i+/mUWyMBJLEbd5XEEMt/aQsZ8sRf4YehO8XSJvTLLeEbyAx9aLs8zWWwrLdfmkr0x 0e6yr7AVAMD8L10nxuftDl7uF8TCKZYTPUku495Desb2QXeNtzAsbAYRpfoUZU+x89o+ ASVSBP/qbDSeM4rT9y64RNGXP56djApevYi0AH4AxeUytMyB3N4CC2XxzxYimyUp2xVT 8xi9VrAEqTrDX51Ld0LDCdU+nAkZ6IFXGmDZ8PM5HfQS/hvA/svK9bf/0GSnOMDIvEE5 KaFfRhEJGs1LxnnfZzJAO+w6aNPFh7ZrPln8+Q5CruWom9ta+fNIylxw0ByxojCDrg1c HtGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=GUGK6mf2HhVtnM87+R/s6TG00Oczs2xSvSnRMURkPe8=; b=A2qqpWCottUb8DS5ApC1WyKbrph5utP6WxYKHlgBI9TZQUAMrvmZdP9GWRjN0tesot kKGtdj6PrbcHsOWx17Ki7ia2SmqyhDPj7Z2iz9N3y1IgmOqox3xrTqyTbJk36BPaoIKQ CCG6R/yXKhDEyC4dUIQY70F6PDrQsUyX6vFNVs7RkdfyYQWEMTkLuVJSMLIu/I/dubRC 4aro/lEosGscpum3QkRP1mpJDtsB28Vzgdk8nni8sVW30/Ajo84HyaCACuJ5D2V4pzXd s+mUJmPZxcAIsYZU1AgvoJgGLLHQ35H7J4P+mcr19c7El7+uyWVdUMYZshW6HpQ7tHD4 mvmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pgxH0xBe; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lv19si3154073ejb.527.2021.07.29.05.32.11; Thu, 29 Jul 2021 05:32:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pgxH0xBe; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237112AbhG2M3M (ORCPT + 99 others); Thu, 29 Jul 2021 08:29:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236909AbhG2M3M (ORCPT ); Thu, 29 Jul 2021 08:29:12 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DDCBC061765 for ; Thu, 29 Jul 2021 05:29:08 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id e145-20020a2550970000b029056eb288352cso6587831ybb.2 for ; Thu, 29 Jul 2021 05:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=GUGK6mf2HhVtnM87+R/s6TG00Oczs2xSvSnRMURkPe8=; b=pgxH0xBevsXulso7Jul8p87Lt+1kw6KfbKf1brpLJjsmcRiJm9ZMYYAGduXafHPSqi 1ALs1azVFDlj/t0VkyDx2AViSGt15aYj2o+f9KwAHKvDtYbuIut4nNUAk6+MJSujNQc4 UvCQV6YGAWrPsS70diJfE2UnMfS53TScVzusn9t9Lzbw/RA1IIia7Y8mL9pyVyh7PT8s cEVeaQtMyDFgB/NCfTwINH/tZecQ/9gbsMZD+N7t31Vg+T+nvcC78A5AavOUwFyKe+36 mbT5a6KfPckzip5XNq+57KCvYoM9fw+nhQTYyym2Z1H4m9UUSipdwYphxWWYKhNCWqN1 2BVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=GUGK6mf2HhVtnM87+R/s6TG00Oczs2xSvSnRMURkPe8=; b=RsH4awglx/rhX05b/h+RRvih3j/m/fW7n3dI/zW+nlfErBuqGamVximZeFWXa+UNrA yqGZ7zZTClOSH7YHfDKiOMIh73MP2eDw+RTYsPl1sC423Sf4xoMnc1lUZ3n52ToRUfVr LDkuljT0wBX2n71bWbQPqL9xO9W1DeKyFDMoUURo3QjcRm8pbaM47Eqw+rid+qkrQnLr x6KhR6nxcXQu1Nqtz84Xx8qq+w0cR3WZf7MbTViy8jsJZAhNs7/Iz8izGBRtRCkbzv9V dAy1hc/4+pt6smUwjF3UxH3so/L+zZ1vpJQfyUTSEU18xAFtthb5RGR0RFi7wl28TlZl A0pg== X-Gm-Message-State: AOAM530JCnDdgbITiIic4seD2hpCVpVYPIWGOz5CGAuf0vGC6BzKbO8h QQSfq0EFisjOFGLXtk9sh0mXfsnAi4II0OZgfaGY1qj0Y+R4h6qU0pX7B5ZZQ1tAWQEua+LpXBR l0PDr1O4/z/eMFcNnpkTNiYAAhN7EUXnlTU5A/3yp0Ltsgz1uZAp4ZfRbwzHkyGMQPjEIC9cTF+ ReMZfhapluRwI= X-Received: from howardchung-p920.tpe.corp.google.com ([2401:fa00:1:10:ff72:1420:4502:fdaf]) (user=howardchung job=sendgmr) by 2002:a5b:648:: with SMTP id o8mr6543509ybq.260.1627561747391; Thu, 29 Jul 2021 05:29:07 -0700 (PDT) Date: Thu, 29 Jul 2021 20:27:51 +0800 In-Reply-To: <20210729122751.3728885-1-howardchung@google.com> Message-Id: <20210729202648.Bluez.v6.13.I433ab6a7ac1d4f8f8dea496ac14bdbf3597015d3@changeid> Mime-Version: 1.0 References: <20210729122751.3728885-1-howardchung@google.com> X-Mailer: git-send-email 2.32.0.554.ge1b32706d8-goog Subject: [Bluez PATCH v6 13/13] doc: add description of admin policy From: Howard Chung To: linux-bluetooth@vger.kernel.org, luiz.dentz@gmail.com Cc: Yun-Hao Chung , Miao-chen Chou Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Yun-Hao Chung This adds admin-policy-api.txt. Reviewed-by: Miao-chen Chou --- (no changes since v1) doc/admin-policy-api.txt | 65 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 doc/admin-policy-api.txt diff --git a/doc/admin-policy-api.txt b/doc/admin-policy-api.txt new file mode 100644 index 000000000000..3f116901dbd7 --- /dev/null +++ b/doc/admin-policy-api.txt @@ -0,0 +1,65 @@ +BlueZ D-Bus Admin Policy API description +*********************************** + +This API provides methods to control the behavior of bluez as an administrator. + +Interface AdminPolicySet1 provides methods to set policies. Once the policy is +set successfully, it will affect all clients and stay persistently even after +restarting Bluetooth Daemon. The only way to clear it is to overwrite the +policy with the same method. + +Interface AdminPolicyStatus1 provides readonly properties to indicate the +current values of admin policy. + + +Admin Policy Set hierarchy +================= + +Service org.bluez +Interface org.bluez.AdminPolicySet1 +Object path [variable prefix]/{hci0,hci1,...} + +Methods void SetServiceAllowList(array{string} UUIDs) + + This method sets the service allowlist by specifying + service UUIDs. + + When SetServiceAllowList is called, bluez will block + incoming and outgoing connections to the service not in + UUIDs for all of the clients. + + Any subsequent calls to this method will supersede any + previously set allowlist values. Calling this method + with an empty array will allow any service UUIDs to be + used. + + The default value is an empty array. + + Possible errors: org.bluez.Error.InvalidArguments + org.bluez.Error.Failed + + +Admin Policy Status hierarchy +================= + +Service org.bluez +Interface org.bluez.AdminPolicyStatus1 +Object path [variable prefix]/{hci0,hci1,...} + +Properties array{string} ServiceAllowList [readonly] + + Current value of service allow list. + + + +Admin Policy Status hierarchy +================= + +Service org.bluez +Interface org.bluez.AdminPolicyStatus1 +Object path [variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX + +Properties bool IsAffectedByPolicy [readonly] + + Indicate if there is any auto-connect profile in this + device is not allowed by admin policy. -- 2.32.0.554.ge1b32706d8-goog