Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp12301183ybl; Sat, 28 Dec 2019 09:13:56 -0800 (PST) X-Google-Smtp-Source: APXvYqyyMW6n7m2Eg2UtappjRqWt3/IbJk6P8zsFY91KMt9Q07FzRkhOrkNKK8O0Z2DGZ/4t7k7L X-Received: by 2002:a9d:67c1:: with SMTP id c1mr27622626otn.161.1577553236347; Sat, 28 Dec 2019 09:13:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577553236; cv=none; d=google.com; s=arc-20160816; b=wbuN+65ckuH7ygphOOS8PbN6dyLkWcO29nH5w8Yq1+ETng/EczB7QuAeGi1hse6we/ 8NFrSnF68WCcwBJAErTevxUNkbZqNtpWrPNW4fRAZ4rTpOdHMmGQ0b4JlBbCox83rHg7 BlPdjBEhy+4gXwJzVDqoZ9RNyYzzih+PkVWeZ+75Thn+9GiPyn0WVFZXG0KuabCaq6VO WTo2CrRG1Z8/5MmYPtIiZn9QP+WQzy5ndJ8UzPJ/40q015ACiJZYtjVN04ufuH5c4w13 qFNeqHOxguH/PiHbzDjx6kMZqppMETDB/d9cAbZYYJq/zZOt/oT64lcG41WQOacn1uIm s5RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=AOaY7iVi9fWm05Hu74mfBoMfPdqBkYD19rHCxJnpJH4=; b=VRZvqV5c+RIeJ3LOOzSAYl4LuvyDxpgRqZwLcYZ+MtKOaJguqWMiiU97csTrajarvR CREd5XzCB5A/lM3WQqeGXfGs4l0g65fIv0MpL4dlSvPpY4oehrYWxJmMvYLGyzNKib68 TxiKciMntldoDwJhZosr6VTsW31ON4HGk5/qtBUdXYvaIGWgOTZKsfB2z6WVhueCXA++ itJHY78elYwnTIv4fK1whEC+sX1ms9JB8uRd3t/Ca99/55VEASlCXLo9tSRKIpPUNPkk JIYPrN38bu5wfCqTJUSzBMnxoNtvo1FdbdbjBtp/0foE7O+VfLhE2hWK5U2ykNE46A1k P5sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u+EKCkTh; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u5si13823011otg.99.2019.12.28.09.13.27; Sat, 28 Dec 2019 09:13:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u+EKCkTh; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 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 S1726248AbfL1RMP (ORCPT + 99 others); Sat, 28 Dec 2019 12:12:15 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:38539 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726088AbfL1RMP (ORCPT ); Sat, 28 Dec 2019 12:12:15 -0500 Received: by mail-wr1-f67.google.com with SMTP id y17so28951698wrh.5 for ; Sat, 28 Dec 2019 09:12:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=AOaY7iVi9fWm05Hu74mfBoMfPdqBkYD19rHCxJnpJH4=; b=u+EKCkThvZIfnVQzrs7byEApwPq3bU/pRdx8qKh8umnicPOOnVe8FdISS3KNtC3aDg hACqGpHNCUQKQMqtLKiVy6zgs7j0gGD8BOQQ8tKjgmEjS6GGpeBtAl94VqxaDSW/iWsm AGm5lmxYojUA+JnrpMzsU193s/1P/FuwtYyqK8mM93uMtZe1EQ3iLrmr4DlwtizudgPk YY3qRn5qq0QUVjO0THo/oPi/kRhA9O0MgutKeAL+kq35ZsgYnvxT/yVS+jvP7deuGOn/ XloTSyAS/2RvvDthaE6pHdhnI/L884+SYYIjjcGIud1DWtyvZ1t/3/0+/WpXEmiegtaq e7AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=AOaY7iVi9fWm05Hu74mfBoMfPdqBkYD19rHCxJnpJH4=; b=MEnXnApBfKxF6EYf0c4kQaLzi4AYsonhgveY+J+PC8oFoix5qAlYMmYGV/jROfmaaF 1PgcHmVviAsrZgrMFJmEzD215XFSyNQXsFy7oEYqlDeZUYpgLshG3GS+cHKxsnKcbEsC Skz59wgNWbb8Fj3kLJU+4EOgB32NYjhqeIlA1+URD0UcspBltH42WEWTPj6OOYc9BNTN Jgg1b0pQEvtaSRsCVyL5DKTVjRWruavLKObG8Jk6X1A837nyK5h1rkAoVSRQtgCfkRU9 PXiJIOh+Pk6XbatrfRMGMQRJSN1zaETy/O0zmws5E6iFmOUWN/nx6Mgo4/X0eyLAgmqS fNDw== X-Gm-Message-State: APjAAAVr7sr8V5K6G4SRqLI7rd6hd35BnRAjFhvrICejXNX8jhO7qKQu RmH6vniROFKKJIForLgibH0Nl1ZS X-Received: by 2002:adf:f501:: with SMTP id q1mr26261144wro.263.1577553133517; Sat, 28 Dec 2019 09:12:13 -0800 (PST) Received: from pali ([2a02:2b88:2:1::5cc6:2f]) by smtp.gmail.com with ESMTPSA id a1sm14973529wmj.40.2019.12.28.09.12.12 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 28 Dec 2019 09:12:12 -0800 (PST) Date: Sat, 28 Dec 2019 18:12:12 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: linux-bluetooth@vger.kernel.org Subject: OCF_READ_LOCAL_CODECS is permitted only for root user Message-ID: <20191228171212.56anj4d4kvjeqhms@pali> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jlswcyicf3hldqhd" Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org --jlswcyicf3hldqhd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello! I wrote a simple script "sco_features.pl" which show all supported codecs by local HCI bluetooth adapter. Script is available at: https://github.com/pali/hsphfpd-prototype/blob/prototype/sco_features.pl And I found out that OCF_READ_LOCAL_CODECS HCI command cannot be send by non-root user. Kernel returns "Operation not permitted" error. What is reason that kernel blocks OCF_READ_LOCAL_CODECS command for non-root users? Without it (audio) application does not know which codecs local bluetooth adapter supports. E.g. OCF_READ_LOCAL_EXT_FEATURES or OCF_READ_VOICE_SETTING commands can be send also by non-root user and kernel does not block them. --=20 Pali Roh=C3=A1r pali.rohar@gmail.com --jlswcyicf3hldqhd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQS4VrIQdKium2krgIWL8Mk9A+RDUgUCXgeM6QAKCRCL8Mk9A+RD UvPmAJ0aHHNlT3F3+UrCSH4kQ9MPR+BddACfVJ5m7uvD8sW7SU3NNmoNcPal65I= =Us8J -----END PGP SIGNATURE----- --jlswcyicf3hldqhd--