I am using hte following command line commands to set BLE service on the mangoH yellow:
bluetoothctl
power on
advertise on
menu gatt
register-service e2d36f99-8909-4136-9a49-00805f9b34fb
yes
register-characteristic 0x0011 read,write
0x0
register-characteristic 0x0033 write,notify
0x0
register-application
now I can connect to the mangoH yellow via phone BLE and see the charecteristics, read and write
however, when I try to register to BLE notifications with my phone I get:
so I found the issue:
Jul 6 20:05:53 swi-mdm9x28-wp user.notice kernel: [ 128.301702] audit: type=1400 audit(1625591153.612:3): lsm=SMACK fn=smack_file_receive action=denied subject="_" object=“admin” requested=rw pid=483 comm=“dbus-daemon” path=“socket:[10118]” dev=“sockfs” ino=10118
my question is, can I disable SMACK from userspace?
apperentlly the solution implemented by mangoH to enable using BLE for the example was to specifically allow BLE access for specific Legato application names
this is very problematic, since I need to be able to use the BLE freely from any application I write, even outside legato