I can reproduce this by running:
sudo gpsdctl add /dev/ttyUSB0
even without a /dev/ttyUSB0 device being present. We can then resolve
the AppArmor denial by adding something like:
/{,var/}run/gpsd.sock rw,
to the AppArmor profile - so that this remains if the package provided
profile gets replaced on a package upgrade, please try adding the above
line to the file /etc/apparmor.d/local/usr.sbin.gpsd and then reload the
AppArmor profile by running
sudo apparmor_parser -r /etc/apparmor.d/usr.sbin.gpsd
And finally then see if you can add the device as expected. If this
resolves the issue then I suggest this be added to the standard GPSD
AppArmor profile via an SRU.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1790496
Title:
apparmor profile for gpsd
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gpsd/+bug/1790496/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs