linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* OCF_READ_LOCAL_CODECS is permitted only for root user
@ 2019-12-28 17:12 Pali Rohár
  2020-01-04  9:44 ` Marcel Holtmann
  0 siblings, 1 reply; 19+ messages in thread
From: Pali Rohár @ 2019-12-28 17:12 UTC (permalink / raw)
  To: linux-bluetooth

[-- Attachment #1: Type: text/plain, Size: 719 bytes --]

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.

-- 
Pali Rohár
pali.rohar@gmail.com

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2020-09-30 12:02 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-28 17:12 OCF_READ_LOCAL_CODECS is permitted only for root user Pali Rohár
2020-01-04  9:44 ` Marcel Holtmann
2020-01-04 10:24   ` Pali Rohár
2020-02-09 13:21     ` Pali Rohár
2020-04-14 22:56       ` Removal of HCI commands? (Was: Re: OCF_READ_LOCAL_CODECS is permitted only for root user) Pali Rohár
2020-08-08 13:27         ` Pali Rohár
2020-09-29 21:32           ` Removal of HCI commands, userspace bluetooth regression? Pali Rohár
2020-09-30  8:02             ` Greg Kroah-Hartman
2020-09-30  8:16               ` Marcel Holtmann
2020-09-30  9:20                 ` Greg Kroah-Hartman
2020-09-30  9:49                   ` Pali Rohár
2020-09-30  8:25               ` Pali Rohár
2020-09-30  9:20                 ` Greg Kroah-Hartman
2020-09-30  9:46                   ` Pali Rohár
2020-09-30 10:54                     ` Greg Kroah-Hartman
2020-09-30 11:00                       ` Pali Rohár
2020-09-30 11:20                         ` Greg Kroah-Hartman
2020-09-30 11:51                           ` Pali Rohár
2020-09-30 12:02                             ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).