linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: James Pearson <james-p@moving-picture.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: Re: Limiting what devices can pair over Bluetooth?
Date: Wed, 8 Jan 2020 20:15:03 +0000	[thread overview]
Message-ID: <ac3d2402-abad-96dc-b042-8c8c7d592124@moving-picture.com> (raw)
In-Reply-To: <CABBYNZ++9739ptHJm+tiUUJANN_MfRpurvfdD=a4Qw3OHE-Epg@mail.gmail.com>

Luiz Augusto von Dentz wrote:
> Hi James,
> 
> On Wed, Jan 8, 2020 at 3:47 AM James Pearson
> <james-p@moving-picture.com> wrote:
>> 
>> We don't normally enable Bluetooth on Linux (CentOS 7) installs for
>> security reasons, but we have a case where we would like to use a
>> Wacom tablet over Bluetooth
>> 
>> I would like to be able to configure things so Bluetooth can _only_
>> be used to pair with Wacom tablets (or just HID devices?)
>> 
>> As I never used Bluetooth in anger before, I'm struggling to find
>> out where to start looking - does anyone know how to do this - or
>> any pointers for where I should start looking?
> 
> Are you asking this from the system or user perspective, from the 
> system we don't have a configuration where you can restrict the
> types of devices that the user can pair, on the other hand there is
> nothing stopping the user interface (gnome, kde, etc) to implement
> such policy on their bluetooth settings, though be aware targeting a
> subset of HID devices may not be possible.

Ideally I would want to limit this at the system level - although I can 
not find anything user interface-wise that mentions limiting access 
either (although I might be looking in the wrong places?)

My aim is to prevent Bluetooth being used (in any way) to transfer 
files/data on/off the workstation

I've found that if I blacklist the bnep, cmtp and rfcomm kernel modules 
(just leaving the bluetooth and hidp kernel modules enabled) then the 
Wacom tablet still works over Bluetooth

Would this be sufficient to prevent any kind of file transfer over 
Bluetooth ?

Thanks

James Pearson

  reply	other threads:[~2020-01-08 20:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-08 11:46 Limiting what devices can pair over Bluetooth? James Pearson
2020-01-08 18:42 ` Luiz Augusto von Dentz
2020-01-08 20:15   ` James Pearson [this message]
2020-01-08 20:53     ` Luiz Augusto von Dentz
2020-01-09 14:53       ` James Pearson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ac3d2402-abad-96dc-b042-8c8c7d592124@moving-picture.com \
    --to=james-p@moving-picture.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).