sandbox denials for snaps on BTLE device
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Fix Released
|
Medium
|
Jamie Strandboge |
Bug Description
I got the following error running a BTLE snap on strict mode. On dev-mode works fine. Syslog reporting an AppArmor denial.
pcoca@haswell16
Connecting to C4:BE:84:70:A6:0C
Traceback (most recent call last):
File "/snap/
load_
File "/snap/
tag = SensorTag(arg.host)
File "/snap/
Peripheral.
File "/snap/
self.
File "/snap/
"Failed to connect to peripheral %s, addr type: %s" % (addr, addrType))
bluepy.
Here is the snapcraft.yaml used for the snap:
name: sensortag
version: 1.0.5
summary: SensorTag Python Bluetooth LE implementation
description: API and command line tools for Python Bluetooth Low Energy access
confinement: strict
apps:
sensortag:
command: usr/bin/sensortag
plugs: [bluez]
parts:
bluepy:
plugin: python3
source: https:/
source-type: git
build-packages: [libglib2.0-dev]
Here is the error on syslog with the AppArmor denial:
Aug 15 23:42:08 haswell16 kernel: [18475.807003] audit: type=1400 audit(147132972
Aug 15 23:42:08 haswell16 /usr/lib/
Aug 15 23:42:08 haswell16 /usr/lib/
Aug 15 23:44:25 haswell16 kernel: [18612.885097] audit: type=1400 audit(147132986
Changed in snappy: | |
assignee: | nobody → Jamie Strandboge (jdstrand) |
status: | Confirmed → Triaged |
Changed in snappy: | |
status: | Triaged → In Progress |
I have tried some interfaces (bluetooth-control, network-control, network-bind) and the snap is getting the same error.